Submit a request
Create an async generation task and poll the task endpoint for terminal status updates.
Veo 3.1 Fast is designed for fast video generation, making it suitable for low-wait creative workflows.
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": "veo3-1-fast-official",
"input": {
"prompt": "A golden retriever running on the beach at sunset, cinematic lighting, realistic motion.",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 8,
"enhance_prompt": true,
"person_generation": "allow_adult",
"resize_mode": "pad",
"sample_count": 1
}
}'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.09,
"cost_actual": 0.09,
"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"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"maximum": 4294967295,
"minimum": 0,
"x-playground": {
"advanced": true
}
},
"prompt": {
"type": "string",
"title": "Prompt",
"minLength": 1,
"description": "Positive text prompt. English prompts are recommended.",
"x-playground": {
"rows": 6,
"widget": "textarea"
}
},
"duration": {
"enum": [
4,
6,
8
],
"type": "integer",
"title": "Duration",
"default": 8
},
"resolution": {
"enum": [
"720p",
"1080p",
"4K"
],
"type": "string",
"title": "Resolution",
"default": "720p"
},
"resize_mode": {
"enum": [
"pad",
"crop"
],
"type": "string",
"title": "Resize mode",
"default": "pad",
"x-playground": {
"advanced": true
}
},
"aspect_ratio": {
"enum": [
"16:9",
"9:16"
],
"type": "string",
"title": "Aspect ratio",
"default": "16:9"
},
"sample_count": {
"type": "integer",
"title": "Sample count",
"default": 1,
"maximum": 1,
"minimum": 1,
"x-playground": {
"advanced": true
}
},
"enhance_prompt": {
"type": "boolean",
"title": "Enhance prompt",
"default": true,
"description": "According to docs, this parameter can only be true.",
"x-playground": {
"advanced": true
}
},
"generate_audio": {
"type": "boolean",
"title": "Generate audio",
"default": false
},
"negative_prompt": {
"type": "string",
"title": "Negative prompt",
"x-playground": {
"rows": 3,
"widget": "textarea",
"advanced": true
}
},
"last_frame_image": {
"type": "string",
"title": "Last frame image",
"description": "Optional public image URL used together with first_frame_image.",
"x-playground": {
"accept": "image/*",
"widget": "file-upload",
"advanced": true,
"uploadKind": "image"
}
},
"first_frame_image": {
"type": "string",
"title": "First frame image",
"description": "Public image URL for image-to-video generation.",
"x-playground": {
"accept": "image/*",
"widget": "file-upload",
"advanced": true,
"uploadKind": "image"
}
},
"person_generation": {
"enum": [
"allow_adult",
"disallow"
],
"type": "string",
"title": "Person generation",
"default": "allow_adult",
"x-playground": {
"advanced": true
}
}
},
"additionalProperties": false
}{
"request_id": "req_demo_model",
"task_id": "task_demo_model",
"status": "succeeded",
"cost_estimate": 0.09,
"cost_actual": 0.09,
"output": {
"videos": [
{
"url": "https://example.com/output/demo.mp4"
}
]
}
}