Skip to content
VoiceMint Developers

Video

Generate videos from text or an image, then wait for and download the result.

Keys need media.write. Video generations run in the background: start one, wait, download (see Async jobs).

curl -X POST https://api.voicemint.io/api/v1/generate/video \
  -H "Authorization: Bearer $VOICEMINT_API_KEY" -H "Content-Type: application/json" \
  -d '{"prompt": "a paper boat sailing down a rainy street", "duration": 5, "aspect_ratio": "9:16"}'
# -> {"generation_id": "..."}; poll GET /generate/GENERATION_ID/status until "completed"
  • image_url animates an image (image to video).
  • model_id picks a model; GET /ai-models/video lists them and POST /ai-models/{id}/estimate estimates the credits.
  • enhance_prompt rewrites a short prompt into a detailed one.
  • POST /generate/{id}/cancel cancels; a failed generation is refunded and can be retried with POST /generate/{id}/retry.

Generations, collections, assets and projects are shared with Image; see the "Video & Image (shared)" section of the API reference.

Dubbing a video#

client.video.dubbing (/video-dubbing/...) creates a project, uploads the video, dubs it into a language and downloads the result.