Submit a request
Create an async generation task and poll the task endpoint for terminal status updates.
Wan 2.6 I2v Flash is a fast image-to-video model, making it suitable for efficient image-to-video generation.
Submit a task to MindVideo with your platform model slug. The response includes a request ID, task ID, normalized status, and estimated cost.
For production retries, send a unique Idempotency-Key per business request. Reusing the same key with the same payload returns the original task without charging again; reusing it with different input returns 409.
curl -X POST https://api.mindvideo.ai/api/v1/tasks \
-H "Authorization: Bearer mv_live_xxx" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: task_$(date +%s)" \
-d '{
"model": "wan2-6-i2v-flash",
"input": {
"prompt": "Let the person in the image turn and smile while the camera slowly pushes in.",
"resolution": "1080p",
"duration": 5,
"image_urls": [
"https://example.com/portrait.jpg"
],
"audio": true
}
}'Every server-side request must include an API key in the Authorization header. Keys can be created, disabled, and deleted from the dashboard.
The platform maps runtime states into queued, processing, succeeded, failed, or cancelled so clients do not depend on model-specific fields.
Create an async generation task and poll the task endpoint for terminal status updates.
curl https://api.mindvideo.ai/api/v1/tasks/task_demo_model \
-H "Authorization: Bearer mv_live_xxx"curl https://api.mindvideo.ai/api/v1/tasks/task_demo_model/events \
-H "Authorization: Bearer mv_live_xxx"{
"request_id": "req_demo_model",
"task_id": "task_demo_model",
"status": "succeeded",
"cost_estimate": 0.0315,
"cost_actual": 0.0315,
"output": {
"videos": [
{
"url": "https://example.com/output/demo.mp4"
}
]
}
}Inputs can reference hosted files or compact data URIs depending on model constraints. Production apps should prefer stable hosted URLs.
{
"type": "object",
"required": [
"image_urls"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"minimum": 0,
"x-playground": {
"advanced": true
}
},
"audio": {
"type": "boolean",
"title": "Audio",
"default": true
},
"prompt": {
"type": "string",
"title": "Prompt",
"description": "Optional video content description for the intended motion and style.",
"x-playground": {
"rows": 6,
"widget": "textarea"
}
},
"duration": {
"type": "integer",
"title": "Duration",
"default": 5,
"maximum": 15,
"minimum": 2
},
"template": {
"type": "string",
"title": "Template",
"description": "Optional effect template such as flying.",
"x-playground": {
"advanced": true
}
},
"audio_url": {
"type": "string",
"title": "Audio URL",
"description": "Optional custom wav/mp3 audio URL. Ignored when audio=false.",
"x-playground": {
"accept": "audio/*",
"widget": "file-upload",
"advanced": true,
"uploadKind": "audio"
}
},
"shot_type": {
"enum": [
"single",
"multi"
],
"type": "string",
"title": "Shot type",
"default": "single"
},
"watermark": {
"type": "boolean",
"title": "Watermark",
"default": false
},
"image_urls": {
"type": "array",
"items": {
"type": "string"
},
"title": "Reference image",
"maxItems": 1,
"minItems": 1,
"description": "Exactly one first-frame image URL or base64 data URI.",
"x-playground": {
"accept": "image/*",
"widget": "file-upload",
"uploadKind": "image"
}
},
"resolution": {
"enum": [
"720p",
"1080p"
],
"type": "string",
"title": "Resolution",
"default": "1080p"
},
"prompt_extend": {
"type": "boolean",
"title": "Prompt extend",
"default": true
},
"negative_prompt": {
"type": "string",
"title": "Negative prompt",
"maxLength": 500,
"x-playground": {
"rows": 3,
"widget": "textarea",
"advanced": true
}
}
},
"additionalProperties": false
}{
"request_id": "req_demo_model",
"task_id": "task_demo_model",
"status": "succeeded",
"cost_estimate": 0.0315,
"cost_actual": 0.0315,
"output": {
"videos": [
{
"url": "https://example.com/output/demo.mp4"
}
]
}
}