kkcc
Text to Video
POST
Authorization
- Auth Type:
Bearer Auth(In:header) - Format:
Authorization: Bearer <YOUR_API_KEY> - Description: Use
Bearer <YOUR_API_KEY>. Format:Authorization: Bearer sk-xxxxxx. - API Key: where API Key is your AGCloud API KEY
Task status will be:
queued, pending(running), success(succeeded), failed, expired, cancelledParameters
Core Parameters
| Field | Type | Required | Description |
|---|---|---|---|
model | string | ✅ | The model ID to use for the request. |
content | array | ✅ | Content of the current conversation with the model. For single-turn queries, this contains one instance. For multi-turn queries (e.g., chat), this contains the conversation history and the latest request. |
Content Structure
| Field | Type | Required | Description |
|---|---|---|---|
>content.type | enum | ✅ | The type of the content part. Possible values: text, image_url, video_url, audio_url. |
>content.text | string | - | The text content of the part. Required when type is text. |
>content.role | enum | - | Required when type is not text. Position or intent of an image, video, or audio part. Allowed values: first_frame, last_frame, reference_image, reference_video, reference_audio. |
>content.image_url | object | - | The image content of the part. Required when type is image_url. |
>>content.image_url.url | string | - | The URL of the image. Supports HTTP/HTTPS URLs or base64-encoded data URIs (e.g., data:image/jpeg;base64,...). |
>content.video_url | object | - | The video payload for the part. Required when type is video_url. |
>>content.video_url.url | string | - | The URL of the video. Supports HTTP/HTTPS URLs. |
Multimodal Input
Advanced Parameters
| Field | Type | Required | Description |
|---|---|---|---|
callback_url | string | - | Callback URL for generation task notifications. When the video task status changes, the API sends a POST request to this endpoint. |
return_last_frame | boolean | - | Whether to return the last frame of the generated video as an image. Default: false. |
execution_expires_after | integer | - | Task timeout in seconds after submission, counted from the task created at timestamp. Default: 172800 (48 hours). Allowed range: [3600, 259200]. |
generate_audio | boolean | - | Whether the generated video includes audio synchronized with the visuals. Default: true. |
ratio | enum | - | Output aspect ratio. Default: adaptive. Allowed values: adaptive, 16:9, 4:3, 1:1, 3:3, 9:16, 21:9. |
resolution | enum | - | Video resolution. Default: 720p. Allowed values: 480p, 720p, 1080p. |
duration | integer | - | Video length in whole seconds: allowed range [4, 15], or -1 to let the model pick a suitable integer duration within valid bounds. |
frames | integer | - | Use either duration or frames; if both are set, frames takes precedence. Prefer frames when you need sub‑second clip length control. |
seed | integer | - | Random seed for reproducibility. Allowed range: [-1, 2^32 - 1]. |
watermark | boolean | - | Whether the output video includes a watermark. Default: false. |
tools | array | - | Tools the model may invoke for this request. |
safety_identifier | string | - | Unique identifier for the end user (for safety and policy enforcement). |