AI video answer
What is a text-to-video API?
A text-to-video API lets software send a written scene and output settings, start an asynchronous generation job, track its status, and receive a video result without using a visual editor.
Describe the scene in structured fields
The prompt describes the subject, action, setting, camera, light, style, timing, dialogue, and sound. Separate fields carry the model, duration, aspect ratio, resolution, audio choice, seed, callback, and cost limit.
Typed settings are easier to validate than hiding every instruction inside one long prompt.
Create and track an asynchronous job
Video generation normally takes longer than a normal web request. The create call returns a job ID, accepted settings, and an estimate, while a status call reports queued, running, completed, failed, or cancelled.
Alibaba's current Wan text-to-video reference also uses a create-task and poll-result flow because generation can take minutes.
Store the finished result
A completed response should include the video resource, poster frame, duration, resolution, model route, normalized settings, estimated cost, and final cost.
Save the final media to permanent storage when a provider returns a temporary download URL.
Related guide
Get the full context.
Text to video API with model routing, audio, and cost controls
Compare text-to-video API routes, prompt fields, audio support, pricing, jobs, and output controls across Wan, MiniMax, Kling, Seedance, and Veo.
Read the text to video API guideCurrent prices
Compare each video route.
| Model | Compared rate | Cre8vid price | 5 sec | 10 sec | Savings |
|---|---|---|---|---|---|
| MiniMax H3MiniMax | $0.065 | $0.029 | $0.145 | $0.29 | 55% less |
| Wan 3.0Alibaba | $0.050 | $0.025 | $0.125 | $0.25 | 50% less |
| Kling 3.0Kuaishou | $0.084 | $0.039 | $0.195 | $0.39 | 54% less |
| Seedance 2.5ByteDance | $0.144 | $0.069 | $0.35 | $0.69 | 52% less |
| Veo 3.1 Fast + audioGoogle | $0.100 | $0.049 | $0.24 | $0.49 | 51% less |
Source notes