packages/cloud-frontend/content/api/video.mdx
import { Callout, Tabs } from "@/docs/components";
Generate AI-powered videos from text descriptions using the configured video model catalog.
Create videos from text prompts.
<Tabs items={['cURL', 'JavaScript', 'Python']}> <Tabs.Tab>
curl -X POST "https://elizacloud.ai/api/v1/generate-video" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A butterfly flying through a colorful garden",
"model": "fal-ai/veo3"
}'
</Tabs.Tab> <Tabs.Tab>
const response = await fetch('https://elizacloud.ai/api/v1/generate-video', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
prompt: 'A butterfly flying through a colorful garden',
model: 'fal-ai/veo3',
}),
});
const data = await response.json();
console.log(data.video.url);
</Tabs.Tab> <Tabs.Tab>
import requests
response = requests.post(
'https://elizacloud.ai/api/v1/generate-video',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
json={
'prompt': 'A butterfly flying through a colorful garden',
'model': 'fal-ai/veo3',
}
)
data = response.json()
print(data['video']['url'])
</Tabs.Tab> </Tabs>
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | ✓ | Description of the video to generate |
model | string | Model to use. Check the API Explorer for the current default. |
{
"success": true,
"video": {
"url": "https://your-storage.vercel-storage.com/videos/abc123.mp4"
},
"model": "fal-ai/veo3"
}
Model availability changes with provider catalogs and deployment configuration.
Use /api/v1/models, the API Explorer, or the generated OpenAPI reference for
the current video model list.
Include camera direction in prompts:
camera pan left/rightzoom in/outdolly forward/backwardtracking shotaerial viewBe specific about the scene:
{
"prompt": "A golden retriever running through autumn leaves in a park, slow motion, cinematic lighting, tracking shot following the dog"
}
| Code | Error | Solution |
|---|---|---|
| 400 | Invalid prompt | Check prompt is non-empty string |
| 400 | Invalid model | Use a supported model from the list above |
| 402 | Insufficient credits | Add credits to your account |
| 429 | Rate limited | Wait and retry with exponential backoff |
| 500 | Generation failed | Retry, or try a different model |