Skip to content

openai Query Task

GET https://www.kkiai.com/v1/videos/{id}

Given a prompt, the model will return one or more predicted completions, and can also return the probability of alternative tokens at each position.

Create a completion for the provided prompt and parameters

Request Parameters

Authorization

Add the Authorization parameter in the Header, with the value being the Token concatenated after Bearer

Example: Authorization: Bearer ********************

Path Parameters

Parameter NameTypeRequiredDescription
idstringRequired

Header Parameters

Parameter NameTypeRequiredDescriptionExample
Content-TypestringRequiredapplication/json
AcceptstringRequiredapplication/json
AuthorizationstringOptionalBearer {{YOUR_API_KEY}}
X-Forwarded-HoststringOptionallocalhost:5173

cURL Example

bash
curl --location --request GET 'https://www.kkiai.com/v1/videos/sora-2:task_01k81e7r1mf0qtvp3ett3mr4jm' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>'

Response

🟢 200 Success

Response Body

Parameter NameTypeRequiredDescription
idstringRequired
statusstringRequired
video_urlnullRequired
enhanced_promptstringRequired
status_update_timeintegerRequired

Response Example

json
{
    "id": "sora-2:task_01k6x15vhrff09dkkqjrzwhm60",
    "detail": {
        "id": "task_01k6x15vhrff09dkkqjrzwhm60",
        "input": {
            "size": "small",
            "model": "sy_ore",
            "images": [
                "https://filesystem.site/cdn/20250612/VfgB5ubjInVt8sG6rzMppxnu7gEfde.png",
                "https://filesystem.site/cdn/20250612/998IGmUiM2koBGZM3UnZeImbPBNIUL.png"
            ],
            "prompt": "make animate",
            "orientation": "portrait"
        },
        "status": "pending",
        "pending_info": {
            "id": "task_01k6x15vhrff09dkkqjrzwhm60",
            "seed": null,
            "type": "video_gen",
            "user": "user-a1sGDUIOXV32hNITe59LEkHa",
            "model": "sy_8",
            "title": "New Video",
            "width": 352,
            "height": 640,
            "prompt": "make animate",
            "sdedit": null,
            "status": "processing",
            "actions": null,
            "guidance": null,
            "n_frames": 450,
            "priority": 2,
            "operation": "simple_compose",
            "preset_id": null,
            "created_at": "2025-10-06T15:10:26.875729Z",
            "n_variants": 1,
            "project_id": null,
            "request_id": null,
            "generations": [],
            "tracking_id": null,
            "progress_pct": 0.9302178175176704,
            "remix_config": null,
            "inpaint_items": [
                {
                    "type": "image",
                    "preset_id": null,
                    "crop_bounds": null,
                    "frame_index": 0,
                    "cameo_file_id": null,
                    "generation_id": null,
                    "upload_media_id": "media_01k6x15tnzezbst05sth2qgd8r",
                    "source_end_frame": 0,
                    "uploaded_file_id": null,
                    "source_start_frame": 0
                },
                {
                    "type": "image",
                    "preset_id": null,
                    "crop_bounds": null,
                    "frame_index": 0,
                    "cameo_file_id": null,
                    "generation_id": null,
                    "upload_media_id": "media_01k6x15tzafwztz74t018v3enw",
                    "source_end_frame": 0,
                    "uploaded_file_id": null,
                    "source_start_frame": 0
                }
            ],
            "interpolation": null,
            "is_storyboard": null,
            "failure_reason": null,
            "organization_id": null,
            "moderation_result": {
                "code": null,
                "type": "passed",
                "task_id": "task_01k6x15vhrff09dkkqjrzwhm60",
                "is_output_rejection": false,
                "results_by_frame_index": {}
            },
            "needs_user_review": false,
            "queue_status_message": null,
            "progress_pos_in_queue": null,
            "num_unsafe_generations": 0,
            "estimated_queue_wait_time": null
        }
    },
    "status": "pending",
    "status_update_time": 1759763621142
}