Task: Image-to-Video
Overview
- Method:
POST - Path:
/task/vidu/img2video - Content-Type:
application/json - Tags: Video Models (Video) / Vidu Video
Authentication
- Header:
Authorization: Bearer <token>
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | Model name: vidu2.0 / vidu1.5 / vidu1.0 |
| images | array[string] | Yes | First-frame image, 1 item, URL or Base64, formats png/jpeg/jpg/webp, aspect ratio 1:4 or 4:1, <=50MB |
| prompt | string | No | Text prompt, up to 1500 characters |
| duration | integer | Yes | Video duration in seconds |
| seed | integer | No | Random seed, 0 or omit for random |
| resolution | string | Yes | 360p / 720p / 1080p (vidu1.0 only supports 360p) |
| movement_amplitude | string | No | auto / small / medium / large |
| callback_url | string | No | Callback URL (POST), status values: processing/success/failed |
Example Request
bash
curl -X POST "https://api.gpt.ge/task/vidu/img2video" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-xxxx" \
-d '{
"model":"vidu2.0",
"images":["https://p1-kling.klingai.com/bs2/upload...png"],
"prompt":"A classical beauty...",
"duration":4,
"resolution":"720p",
"movement_amplitude":"medium"
}'Success Response Example (200)
json
{
"task_id":"809387572068364288",
"type":"img2video",
"state":"created",
"model":"vidu2.0",
"style":"general",
"prompt":"A classical beauty, ...",
"images":["https://p1-kling.klingai.com/bs2/upload...png"],
"duration":4,
"seed":66,
"aspect_ratio":"16:9",
"resolution":"720p",
"movement_amplitude":"auto",
"created_at":"2025-04-14T15:29:10.002012956Z"
}