Skip to content
VoiceMint Developers

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

FieldTypeDescription
aspect_ratiostringAspect ratio
auto_select_modelbooleanAuto-select optimal model
durationintegerDuration in seconds
enhance_promptbooleanEnable prompt enhancement
fpsintegerFrames per second
guidance_scalenumberGuidance scale
image_urlstringReference image URL for image-to-video models
interpolate_outputbooleanEnable frame interpolation (WAN models)
model_idstringAI model ID (optional if auto_select_model)
negative_promptstringNegative prompt
project_idstringProject to link to
prompt*stringText prompt
prompt_contextstringEnvironment context: urban, rural, nature, indoors, futuristic, etc.
prompt_domainstringDomain: governance, education, health, entertainment, etc.
prompt_tonestringTone modifier: formal, casual, cinematic, documentary, etc.
quality_prioritystringPriority for model selection: quality, speed, cost, or balanced
resolutionstringVideo resolution
seedintegerRandom seed for reproducibility

Response

200 application/json

FieldTypeDescription
credits_estimatedinteger
estimated_timeinteger
generation_id*string
message*string
status*string
{
  "credits_estimated": 0,
  "estimated_time": 0,
  "generation_id": "string",
  "message": "string",
  "status": "string"
}

Errors

401Missing, wrong, revoked or expired key.
403The key lacks media.write, the route is not available to keys, or the key's IP allow-list refuses this client.
402Not enough credits, or the key reached its spending cap.
422The request failed validation; `detail` lists the fields.
429Over 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"
}'