AI video generation API
FlowAPI is an AI video generation API for 8 video models through one API key, with flat spec prices from $0.024 per second and failed jobs refunded. Start with Grok Imagine Video 1.5 for the lowest listed unit price; pick Veo 3.1 Fast at 1080p·audio when you need a spec that explicitly includes audio.
Compare video model API specs
Every currently listed video spec, loaded from the same catalog as /models. Duration ranges describe API validation, not guaranteed model support. Audio and resolution are marked “Not specified” when the catalog makes no declaration. Scroll the table to compare columns.
| Model | Vendor | Spec | Resolution | Duration | Price (USD) | Audio |
|---|---|---|---|---|---|---|
| Veo 3.1 Fast | 1080p·audio | 1080p | 8 seconds | $0.1875 / second | Yes | |
| Grok Imagine Video 1.5 | xAI | 480p | 480p | 1–60 (integer seconds); model limits apply | $0.024 / second | Not specified |
| MiniMax H3 | MiniMax | 768p | 768p | 1–60 (integer seconds); model limits apply | $0.031032 / second | Not specified |
| Wan 3.0 | Alibaba | 720p | 720p | 1–60 (integer seconds); model limits apply | $0.131504 / second | Not specified |
| Kling 3.0 | Kling | 720p·silent | 720p | 1–60 (integer seconds); model limits apply | $0.1344 / second | No (silent) |
| Seedance 2.0 | ByteDance | 480p | 480p | 1–60 (integer seconds); model limits apply | $0.132 / second | Not specified |
| Seedance 2.5 | ByteDance | 480p | 480p | 1–60 (integer seconds); model limits apply | $0.156 / second | Not specified |
| MAGI-2 | Sand AI | standard | Not specified | 1–60 (integer seconds); model limits apply | $0.16 / second | Not specified |
Which video model should you pick?
-
Budget testing: Grok Imagine Video 1.5 has the lowest listed per-second spec at $0.024 (480p). Compare total clip cost at the length and resolution you actually need.
-
Sound required: Veo 3.1 Fast lists audio enabled at 1080p, 8 seconds. “Not specified” in the table is not a promise of sound or silence.
-
Silent output required: Kling 3.0 lists an explicit silent spec (720p·silent).
-
A particular resolution or duration: Choose a matching row above, then validate the exact request with
POST /v1/quotes. The API duration range is a validation boundary; a model can reject lengths or input combinations within it. -
Veo 3.1 Fast: 1080p·audio: 1080p, audio yes, $0.1875/s. Open its model page for parameters and sample code.
-
Grok Imagine Video 1.5: 480p: 480p, audio not specified, $0.024/s. Open its model page for parameters and sample code.
-
MiniMax H3: 768p: 768p, audio not specified, $0.031032/s. Open its model page for parameters and sample code.
-
Wan 3.0: 720p: 720p, audio not specified, $0.131504/s. Open its model page for parameters and sample code.
-
Kling 3.0: 720p·silent: 720p, audio no (silent), $0.1344/s. Open its model page for parameters and sample code.
-
Seedance 2.0: 480p: 480p, audio not specified, $0.132/s. Open its model page for parameters and sample code.
-
Seedance 2.5: 480p: 480p, audio not specified, $0.156/s. Open its model page for parameters and sample code.
-
MAGI-2: standard: Not specified, audio not specified, $0.16/s. Open its model page for parameters and sample code.
Use the same prompt and source image to evaluate the models that fit your constraints. This comparison lists what FlowAPI sells; it does not rank visual quality or promise a generation speed. See all pricing and the full model catalog.
How to call the AI video generation API
- Create a server-side API key. A test key returns a fixed sample at $0; a live key generates new video from a prepaid balance. Keep the key in an environment variable (authentication).
- Submit a text-to-video job. Send a model id, prompt and parameters to
POST /v1/generations.
curl https://useflowapi.com/v1/generations \
-H "Authorization: Bearer $FLOWAPI_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: video-example" \
-d '{"model":"xai/grok-imagine-video-1.5","input":{"type":"text","prompt":"A lighthouse at dawn, waves moving gently, slow camera push in"},"parameters":{"resolution":"480p","duration":5}}'
This request uses Grok Imagine Video 1.5 at 480p: 5 seconds × $0.024 per second = $0.12. Use a new idempotency key for a new job; reuse the original key when retrying the same request.
- Read the async result. The API returns
202 Acceptedwith a job id. PollGET /v1/jobs/{id}untilstatusissucceeded,failedorcancelled. On success, download the URLs inresult.filesbeforeexpires_at; results are retained for 30 days. See async jobs.
For a webhook flow, include an optional HTTPS webhook_url in the generation body. A terminal callback uses job.succeeded, job.failed or job.cancelled, with the job in event.data. Verify the raw request body against FlowAPI-Webhook-Id, FlowAPI-Webhook-Timestamp and FlowAPI-Webhook-Signature using your account webhook secret, and deduplicate by event id. Keep polling as a fallback to reconcile delayed callbacks. Confirm callback delivery with a test-key job in your environment before depending on it.
The video generation documentation describes request fields and reference roles. You can also call the same models from Claude Code or Codex through MCP.
Text to video API or image to video API?
Use input.type: "text" to describe the scene entirely in a prompt. For image-to-video, upload your source image, set input.type: "image", and pass input.references: [{"role":"first_frame","file_id":"file_…"}] with the prompt. Keep the model id and its supported parameters. Reference mode also accepts reference media roles; each model validates its own input combinations before charging.
Billing and content boundaries
Live jobs are charged the quoted spec price when accepted. Failed, timed-out and cancelled jobs are refunded in full to your balance. Request a quote before generating; a quote does not charge your balance. There is no subscription required to call the API.
You must have the rights to uploaded images and other reference media, and you are responsible for how you use generated outputs (terms, acceptable use). FlowAPI is an independent API service, not affiliated with or endorsed by the model vendors.
Preguntas frecuentes
- How much does an AI video generation API request cost?
- Video prices start at $0.024 per second. Multiply the selected spec price by the requested duration; a quote returns the exact total before submission.
- Can I generate video from both text and images?
- Yes. Use text mode for a prompt or image mode with an uploaded first-frame reference; each model validates the supported combination.
- Do all video models generate audio?
- No. Only rows that explicitly declare audio enabled promise audio; silent specs and specs without an audio declaration are marked separately.
- Are failed video jobs charged?
- No. Accepted jobs are charged upfront, but failed, timed-out and cancelled jobs are refunded in full to your balance.
- Can I test the API for free?
- Yes. Test keys return fixed samples at $0. New Google signups also receive $0.5 trial credit for 30 days on specs up to $0.1 per unit.
- Is FlowAPI the official API of the model vendors?
- No. FlowAPI is an independent API service and is not affiliated with or endorsed by the model vendors.