Quickstart
Create an API key and generate your first video in a few minutes.
API reference
Every endpoint, parameter and response, with an interactive playground.
What you can build
Text to video
Describe a scene and get a video, with optional synchronized audio.
Image to video
Animate a photo, a product shot or an illustration.
Reference to video
Keep characters, motion and sound from your own reference assets.
Video extend
Continue an existing clip seamlessly, with matched audio.
Models
Video Fast 1.0 generates audio with every video. On the Wan models and Video Fast Extend, audio is optional: send
generate_audio: true on text to video, image to video and video extend.
See Models for the details of each model and how to choose.
How it works
1
Create a task
POST /v1/{brand}/{version}/{task}, for example POST /v1/wan/v3.0-spark/image-to-video. The model id is the path. Five API validates the request, holds the estimated price in credits and answers at once with a queued task.2
Wait for the result
Receive a signed
task.completed webhook, or poll GET /v1/tasks/{task_id} every few seconds.3
Download the video
output.video.url is a plain HTTPS download of the MP4. Results are kept for 7 days.Why Five API
One endpoint per model
One endpoint per model
Each model has its own endpoint and a published JSON input schema (
GET /v1/models), so you always know which fields and values a model accepts.Pay only for videos you get
Pay only for videos you get
Credits are held when a task is accepted and charged only when it completes. Failed and cancelled tasks are released in full, and a rejected request (any
4xx) never costs anything.Built for production
Built for production
Signed webhooks with automatic retries, safe retries with
Idempotency-Key, stable error codes, a request id on every response, per-key scopes and IP allowlists.Ready for AI coding agents
Ready for AI coding agents
Install the Five API agent skill or connect the docs MCP server and let your coding agent write the integration.
Get help
Email support@fiveapi.ai and include theX-Request-Id of the request you are asking about. Account, keys, credits and webhooks are managed in the developer console.