Submit a request
Create an async generation task and poll the task endpoint for terminal status updates.
Skyreels V4 Fast is a fast video generation model, making it suitable for efficiency-first 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": "skyreels-v4-fast",
"input": {
"prompt": "A serene forest at sunset with golden light filtering through the trees.",
"aspect_ratio": "16:9",
"resolution": "1080p",
"duration": 5,
"prompt_optimizer": 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.2475,
"cost_actual": 0.2475,
"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": {
"prompt": {
"type": "string",
"title": "Prompt",
"minLength": 1,
"description": "Text prompt for video generation. When tags are used, the prompt must include them.",
"x-playground": {
"rows": 6,
"widget": "textarea"
}
},
"duration": {
"type": "integer",
"title": "Duration",
"default": 5,
"maximum": 15,
"minimum": 3
},
"ref_images": {
"type": "array",
"items": {
"type": "object",
"required": [
"tag",
"type",
"image_urls"
],
"properties": {
"tag": {
"type": "string"
},
"type": {
"enum": [
"image",
"grid"
],
"type": "string"
},
"audio_url": {
"type": "string"
},
"image_urls": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 5,
"minItems": 1
}
},
"additionalProperties": false
},
"title": "Reference images",
"maxItems": 3,
"description": "Omni reference images. All items must use the same type.",
"x-playground": {
"advanced": true
}
},
"ref_videos": {
"type": "array",
"items": {
"type": "object",
"required": [
"tag",
"type",
"video_url"
],
"properties": {
"tag": {
"type": "string"
},
"type": {
"enum": [
"reference",
"extend"
],
"type": "string"
},
"video_url": {
"type": "string"
}
},
"additionalProperties": false
},
"title": "Reference videos",
"maxItems": 1,
"description": "Omni reference videos. Supports one uploaded video.",
"x-playground": {
"advanced": true
}
},
"resolution": {
"enum": [
"480p",
"720p",
"1080p"
],
"type": "string",
"title": "Resolution",
"default": "1080p"
},
"aspect_ratio": {
"enum": [
"16:9",
"4:3",
"1:1",
"9:16",
"3:4"
],
"type": "string",
"title": "Aspect ratio",
"default": "16:9"
},
"end_frame_image": {
"type": "string",
"title": "End frame image",
"description": "End frame image URL for I2V mode.",
"x-playground": {
"accept": "image/*",
"widget": "file-upload",
"advanced": true,
"uploadKind": "image"
}
},
"mid_frame_images": {
"type": "array",
"items": {
"type": "object",
"required": [
"tag",
"image_url"
],
"properties": {
"tag": {
"type": "string"
},
"image_url": {
"type": "string"
},
"time_stamp": {
"type": "integer",
"default": -1
}
},
"additionalProperties": false
},
"title": "Mid-frame images",
"maxItems": 6,
"description": "I2V keyframes. Tags must start with @ and appear in the prompt.",
"x-playground": {
"advanced": true
}
},
"prompt_optimizer": {
"type": "boolean",
"title": "Prompt optimizer",
"default": true
},
"first_frame_image": {
"type": "string",
"title": "First frame image",
"description": "First frame image URL for I2V mode.",
"x-playground": {
"accept": "image/*",
"widget": "file-upload",
"advanced": true,
"uploadKind": "image"
}
}
},
"additionalProperties": false
}{
"request_id": "req_demo_model",
"task_id": "task_demo_model",
"status": "succeeded",
"cost_estimate": 0.2475,
"cost_actual": 0.2475,
"output": {
"videos": [
{
"url": "https://example.com/output/demo.mp4"
}
]
}
}