Submit a request
Create an async generation task and poll the task endpoint for terminal status updates.
Viduq 3 is a general video generation model, making it suitable for everyday creative video creation.
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": "viduq3",
"input": {
"prompt": "Santa Claus and a bear hug by the lake while the camera slowly moves closer.",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 5,
"image_urls": [
"https://example.com/santa.png",
"https://example.com/bear.png"
]
}
}'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.45,
"cost_actual": 0.45,
"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": [
"prompt",
"image_urls"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"description": "Optional random seed for similar generations under the same parameters.",
"x-playground": {
"advanced": true
}
},
"prompt": {
"type": "string",
"title": "Prompt",
"maxLength": 5000,
"minLength": 1,
"description": "Describe actions and camera movement. Do not describe appearance because the reference images define it.",
"x-playground": {
"rows": 6,
"widget": "textarea"
}
},
"duration": {
"type": "integer",
"title": "Duration",
"default": 5,
"maximum": 16,
"minimum": 3
},
"image_urls": {
"type": "array",
"items": {
"type": "string"
},
"title": "Reference images",
"maxItems": 7,
"minItems": 1,
"description": "Public image URLs for reference generation. Supports 1 to 7 images.",
"x-playground": {
"accept": "image/*",
"widget": "file-upload",
"multiple": true,
"uploadKind": "image"
}
},
"resolution": {
"enum": [
"540p",
"720p",
"1080p"
],
"type": "string",
"title": "Resolution",
"default": "720p"
},
"aspect_ratio": {
"enum": [
"16:9",
"9:16",
"4:3",
"3:4",
"1:1"
],
"type": "string",
"title": "Aspect ratio",
"default": "16:9"
}
},
"additionalProperties": false
}{
"request_id": "req_demo_model",
"task_id": "task_demo_model",
"status": "succeeded",
"cost_estimate": 0.45,
"cost_actual": 0.45,
"output": {
"videos": [
{
"url": "https://example.com/output/demo.mp4"
}
]
}
}