Skip to main content
Text to video turns a written description into an MP4 with native audio. You send a prompt, Viggle H3 plans and renders the shot, and you download the result. It needs no images or video, so it is the fastest way to try the API. Use it when you can describe the shot in words and don’t need to match an existing image. To start from a still, use First frame to video. To carry a subject or style from your own media, use Reference to video.

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, by resolution, 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 as VIGGLE_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.
The create call answers right away with the job ID:
If your balance can’t cover the job, the request is still accepted, and the job then ends failed with error.code: "INSUFFICIENT_CREDITS". Check GET /v1/credits before large batches.

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 seed that was used. Send the same seed and prompt to get a similar result again.
  • Only the API key that created the job can read it.
See Task lifecycle for statuses and failures, and Errors for error codes.

Write a better prompt

  • Describe one shot: who or what is in frame, what happens, where, and how the camera moves.
  • Keep enhance on 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 to high for 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.