Meet Video API
· Launch · NagaAI Team
NagaAI already served text, image and audio. Now POST /v1/videos turns a prompt or an image into a video clip, on the same key and balance you use for everything else on NagaAI.
Make your first clip
With a key from API keys in NAGA_API_KEY:
A clip takes from half a minute to several minutes, so the API answers at once with a job id. Poll GET /v1/videos/{id} until the job is completed, or add a webhook and NagaAI calls your server when the clip is ready. Then download it from GET /v1/videos/{id}/content. A finished clip stays available for seven days.
Every value is checked against the model's parameters before the job starts. A duration, resolution or aspect ratio the model can't do fails at once, with a message that lists the ones it can.
Beyond text to video
Video models differ in what they take, and each model's page on naga.ac/models lists what it supports.
- Image to video. Give a start or an end frame.
- References. Pass images or clips the result should follow: a character, an object, a style.
- Edit and extend. Give a model a clip you already have, and the prompt decides whether it changes the clip or continues it.
- Upscale. Make a clip sharper and larger, from 1.5 to 3 times on each side.
- Talking avatars. Animate one portrait so that it speaks a recording you give it.
What it costs
A video model has a price per second for every resolution and sound setting, and an upscaler a price per second and frame size. Each price is on the model's page and in GET /v1/models. NagaAI holds the price when the job starts and charges it when the clip is ready. A clip that fails costs nothing.
Try a prompt in the Playground, or follow Generate a video for Python and JavaScript.