How the video API works
Video generation is asynchronous because a clip takes longer to render than an HTTP request should stay open. You submit a job, receive a job ID immediately with HTTP 202, poll until it completes, then download the MP4.
GET https://api.fastinfra.ai/v1/videos/models— list the video model IDs you can use.POST https://api.fastinfra.ai/v1/videos— submit a prompt with duration and resolution; the response is HTTP 202 with a job ID.GET https://api.fastinfra.ai/v1/videos/{id}— poll untilstatusiscompleted, then fetch the output URL.
curl https://api.fastinfra.ai/v1/videos \
-H "Authorization: Bearer $FASTINFRA_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "lightricks/ltx-2.5", "prompt": "A drone shot over a misty pine forest at sunrise", "seconds": 5}'
Pricing
Video is billed per second of output from prepaid credits; output seconds are converted to token-equivalent usage, so video and LLM calls share one balance and one usage report. There is no subscription and no per-seat fee.
Prompting tips for better clips
- Describe the camera (drone shot, close-up, slow pan) as well as the subject.
- Name the lighting and time of day; it has a large effect on realism.
- Keep one action per clip; generate several short clips and cut them together rather than one long, complex prompt.
- Start at a low resolution to iterate on the prompt, then render the final take at full resolution.
Common use cases
Product and social media loops, B-roll for explainers, storyboards and pre-visualisation, and generated scenes inside apps — all driven from the same API key you use for LLMs.