Generate Video
POST/generate/video
Authentication
Authorization: Bearer vm_sk_… with the media.write permission (or all.write). See Authentication. SDK: client.video.generate (Python), client.video.generate (Node).
Request body
application/json
| Field | Type | Description |
|---|---|---|
aspect_ratio | string | Aspect ratio |
auto_select_model | boolean | Auto-select optimal model |
duration | integer | Duration in seconds |
enhance_prompt | boolean | Enable prompt enhancement |
fps | integer | Frames per second |
guidance_scale | number | Guidance scale |
image_url | string | Reference image URL for image-to-video models |
interpolate_output | boolean | Enable frame interpolation (WAN models) |
model_id | string | AI model ID (optional if auto_select_model) |
negative_prompt | string | Negative prompt |
project_id | string | Project to link to |
prompt* | string | Text prompt |
prompt_context | string | Environment context: urban, rural, nature, indoors, futuristic, etc. |
prompt_domain | string | Domain: governance, education, health, entertainment, etc. |
prompt_tone | string | Tone modifier: formal, casual, cinematic, documentary, etc. |
quality_priority | string | Priority for model selection: quality, speed, cost, or balanced |
resolution | string | Video resolution |
seed | integer | Random seed for reproducibility |
Response
200 application/json
| Field | Type | Description |
|---|---|---|
credits_estimated | integer | |
estimated_time | integer | |
generation_id* | string | |
message* | string | |
status* | string |
{
"credits_estimated": 0,
"estimated_time": 0,
"generation_id": "string",
"message": "string",
"status": "string"
}Errors
401 | Missing, wrong, revoked or expired key. |
403 | The key lacks media.write, the route is not available to keys, or the key's IP allow-list refuses this client. |
402 | Not enough credits, or the key reached its spending cap. |
422 | The request failed validation; `detail` lists the fields. |
429 | Over a rate limit; retry after `Retry-After` seconds. |
All statuses: Errors.
Example
curl -X POST "https://api.voicemint.io/api/v1/generate/video" \
-H "Authorization: Bearer $VOICEMINT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "string"
}'