30-second reel
LiveWrite a short script or idea, and add a start image if you like. Get one finished 30-second vertical video with sound: 9:16 at 720p, ready for TikTok, Reels and Shorts.
30-second reel
Input
promptThe script or idea: what happens, what we hear and what is said (up to 2,000 characters).imageA start image the reel opens on: a public https link.The reel opens on this picture.
$3.99 per 30-second video.
How it works
- 01Write a script or ideaUp to 2,000 characters: what happens, what we hear and what is said. Add a start image if the reel should open on it.
- 02We make the reelOne finished 30-second video with sound that matches the picture, vertical 9:16 at 720p.
- 03Download the videoA 720 × 1280 MP4, 30 seconds with sound. Billed per video. Failed runs are not charged.
Call 30-second reel from your code
One endpoint and one key, on the same balance as the playground. The request below is the example's own.
https:/ / api.opennan.com/ v1/ videos/ reelsGet an API key
Create a key in the console. It uses the same balance as the playground.
Create a keySend your first request
The same request the playground sends. Set OPENNAN_KEY to your key.
curl https://api.opennan.com/v1/videos/reels \ -H "Authorization: Bearer $OPENNAN_KEY" \ -H "Content-Type: application/json" \ -d '{"prompt":"A street food cook in a busy night market flips sizzling noodles in a flaming wok, sparks and steam rising under warm string lights, then plates the noodles and slides the bowl toward the camera with a smile, vertical close-up shots, crackling fire, sizzling oil and lively market chatter"}' # Then poll until "status" is "succeeded" or "failed": curl https://api.opennan.com/v1/tasks/<task id> -H "Authorization: Bearer $OPENNAN_KEY"Poll the task
The call answers right away with a task id. Ask for the task until it finishes:
GEThttps:// api.opennan.com/ v1/ tasks/ {id} - queued
- Waiting for a worker
- running
- Being made
- succeeded
- Done: outputs[].url holds the files
- failed
- Failed: you are not charged
Errors and how to fix them
401Missing or wrong key
Send the header Authorization: Bearer with a key from the console.
402Balance too low
Add credit in Billing, then send the same call again.
400A value is not accepted
Read error.message: it names the field. Use a value from the parameter table.
429Too many requests
Wait a few seconds and try again, waiting longer after each 429.
30-second reel: questions
How much does 30-second reel cost?
$3.99 per 30-second video. The Run button shows the exact price for your input before you start.
How do I call it from my code?
Send POST https://api.opennan.com/v1/videos/reels with your API key. It answers with a task id: ask https://api.opennan.com/v1/tasks/{id} until the task succeeds or fails.
Can my AI agent use it?
Yes. Point your agent at https://api.opennan.com/llms.txt: it explains this endpoint and every other one.
What happens if a run fails?
A failed run is not charged. You pay only for results.
What do I get, and what can I send?
One finished 30-second vertical video with sound: an MP4 of 720 × 1280 (9:16). Send a script or idea of up to 2,000 characters, and optionally a start image (a public https link) the reel opens on. Nothing else to set: the length, shape and sound are always the same.