Theme
Vidu image-to-video
Submit a first-frame image-to-video generation task.
http
POST /vidu/ent/v2/img2videoAvailable models
| Model | Description |
|---|---|
| Q3 flagship; direct audio/video output | |
| Q2 Pro | |
| Q2 turbo | |
| Q2 Pro fast | |
| Clear visuals, stable camera | |
| Q1 classic | |
| Version 2.0 |
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | Request authentication. Use a Bearer Token, for example: . | |
| string | Yes | Request content type; must be . |
Request body
| Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | Model name. See Available models above. | |
| array | Yes | First-frame image. Only one image is supported; Base64 or image URL. Formats: png, jpeg, jpg, webp. Aspect ratio must be less extreme than 1:4 or 4:1; max size 50 MB. | |
| string | No | Text prompt. Text description of the video. Ignored when recommended prompts are used. | |
| boolean | No | Direct audio/video output. : video with dialogue and ambient audio; : silent video. | |
| string | No | Voice ID for the video audio. Auto-recommended when empty. Note: ignored for q3 models. | |
| boolean | No | Whether to use recommended prompts. : system auto-recommends prompts (count=1); : generate from the input prompt. | |
| boolean | No | Background music. : pick suitable music from the preset BGM library; : no BGM. | |
| integer | No | Video duration in seconds. series: default 5s, range 1–10s. | |
| integer | No | Random seed. Omit or pass 0 for a random seed; set manually to use a fixed seed. | |
| string | No | Resolution. Default depends on model and duration. (1–10s): default 720p; options 540p, 720p, 1080p. | |
| boolean | No | Off-peak mode. : generate during off-peak hours; : generate immediately. | |
| boolean | No | Whether to add a watermark. : add watermark; : no watermark. | |
| integer | No | Watermark position. : top-left; : top-right; : bottom-right; : bottom-left. | |
| string | No | Watermark image URL. Default watermark when omitted: "AI-generated content". | |
| string | No | Passthrough parameter. Not processed; transmitted as-is. | |
| string | No | Metadata identifier. JSON string; passthrough field. |
Request example
bash
curl -X POST https://octopusx.ai/vidu/ent/v2/img2video \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '
{
"model": "viduq3-pro",
"images": ["https://example.com/first-frame.png"],
"prompt": "Make the person walk forward and smile",
"audio": true,
"is_rec": false,
"bgm": false,
"duration": 5,
"seed": 0,
"resolution": "720p",
"off_peak": false,
"watermark": false
}'Response example
json
{
"task_id": "48038932-0ff5-4251-8b4b-7a76c09fd114",
"status": "processing",
"created_at": 1774494511
}Response fields
| Name | Type | Description |
|---|---|---|
| string | Task ID, used to query task status. | |
| string | Task status. Options: (in progress), (failed), (completed). | |
| integer | Creation timestamp (Unix timestamp). |