What you send
POST /v1/videos as multipart/form-data. Sending only a prompt (no frame, reference or Remake fields) selects text to video.
The remaining options (
seed, watermark) are in Common parameters and the API reference.
Price
You pay per second of video, byresolution, plus $0.01 per second while `enhance` is on. The example below (5 seconds, 768p, enhance on) costs 5 × (1 + 1) = 10 credits ($0.10). Every rate is on the overview.
Generate a video
Export your key asVIGGLE_API_KEY and run one of these as-is. Each script submits the job, polls every 5 seconds and prints the video URL. The cURL version needs jq.
Get the result
While the job runs,GET /v1/videos/{video_id} reports status (queued, then processing) and, while queued, queue_position and estimated_wait_seconds. When status is ready, download video_url.
- The link is valid for one hour. Every read returns a fresh one, so re-read the job rather than storing the link.
- The video is deleted 24 hours after the job finishes. Copy it to your own storage.
- The response includes the
seedthat was used. Send the sameseedand prompt to get a similar result again. - Only the API key that created the job can read it.
Write a better prompt
- Describe one shot: who or what is in frame, what happens, where, and how the camera moves.
- Keep
enhanceon while you explore. It expands a short prompt before generating. Turn it off (enhance=false, half the price at 768p) when you want your prompt used as written. - Iterate with
quality=low, then switch tohighfor the final take. Both cost the same.
Next steps
First frame to video
Animate a still and keep its composition.
Reference to video
Bring a subject or style from your own images or video.
Upscale a video
Double the resolution of a finished video with FlashVSR.
Create a video (API reference)
Every field, limit and error for
POST /v1/videos.