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_urlanimates an image (image to video).model_idpicks a model;GET /ai-models/videolists them andPOST /ai-models/{id}/estimateestimates the credits.enhance_promptrewrites a short prompt into a detailed one.POST /generate/{id}/cancelcancels; a failed generation is refunded and can be retried withPOST /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.