Any integer from 4s to 15s.
Video output resolution.
Video aspect ratio.
Generate audio
Generate synchronized audio.
Content filter
Standard safety filter (default true). Setting false relaxes restrictions and adds 10% to generation pricing; illegal content is always blocked.
USD estimate $0.25-$0.5: highest recharge package uses $1 = 2,000 credits; entry package uses $1 = 1,000 credits.
History
Saved locally in this browser
0 running · 0 completed
Billing Rules
Authentication
Every request needs a Bearer token in the Authorization header. Create an API key in the console.
Authorization: Bearer YOUR_API_KEYhttps://apiany.ai/v1/videos/generationsRequest parameters
| Parameter | Type | Required | Notes |
|---|---|---|---|
model | string | Required | Model identifier to invoke. Use this model's ID. |
prompt | string | Required | Text prompt describing what you want to generate. |
duration | number | Optional | Any integer from 4s to 15s. · Range: 4–15 · Default: 5 |
quality | string | Optional | Video output resolution. · Options: 480p, 720p · Default: 720p |
aspect_ratio | string | Optional | Video aspect ratio. · Options: adaptive, 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 · Default: adaptive |
generate_audio | boolean | Optional | Generate synchronized audio. · Default: true |
content_filter | boolean | Optional | Standard safety filter (default true). Setting false relaxes restrictions and adds 10% to generation pricing; illegal content is always blocked. · Default: true |
callback_url | string | Optional | Optional webhook URL called when the async task finishes. |
Request example
curl "https://apiany.ai/v1/videos/generations" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2.0-mini-text-to-video",
"prompt": "A cinematic drone shot over a coastal city at golden hour",
"duration": 5,
"quality": "720p",
"aspect_ratio": "adaptive",
"generate_audio": true,
"content_filter": true
}'Response example
{
"task_id": "task_abc123",
"status": "pending",
"poll_url": "/v1/tasks/task_abc123",
"request_id": "req_abc123",
"credits": {
"reserved": 1000
}
}This endpoint is asynchronous: it returns a task_id immediately. Poll the task-status endpoint until status becomes succeeded, then read the result. Generated media links stay valid for 24 hours.