Endpoint
Headers
| Header | Type | Required | Description |
|---|---|---|---|
x-api-key | string | Yes | Your API key |
Request Body
Image-to-Video Mode
Choose one of two input methods: Option 1: Using existing generated image| Parameter | Type | Required | Description |
|---|---|---|---|
jobId | string | Yes | ID of the source image generation task |
imageNo | integer | Yes | Image number to animate (0/1/2/3) |
prompt | string | No | Video generation prompt text (1-8192 characters) |
videoType | integer | No | Video quality type (0: 480p, 1: 720p) |
callback | string | No | Callback URL for task completion notifications |
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes | Video generation prompt text with image URL included, format: “[image_url] your prompt text” (1-8192 characters) |
videoType | integer | No | Video quality type (0: 480p, 1: 720p) |
callback | string | No | Callback URL for task completion notifications |
Video Types
| Value | Resolution | Description |
|---|---|---|
| 0 | 480p | Standard definition (default) |
| 1 | 720p | High definition |
Example Requests
Image-to-Video (Using existing image)
Image-to-Video (Using image URL)
Response
Returns a task object containing the task information.Authorizations
API key for authentication
Body
application/json
- Option 1
- Option 2
ID of the source image generation task (for existing image mode)
Image number to animate (0/1/2/3) (for existing image mode)
Required range:
0 <= x <= 3Video generation prompt text (required for prompt mode, optional for existing image mode)
Required string length:
1 - 8192Video quality type (0=480p, 1=720p)
Required range:
0 <= x <= 1Callback URL for task completion notifications
Response
200
Video generation task created successfully