DocsAPI reference
Videos
Text to video. Priced per second at a rate you can read from the model list, fixed before the clip is made.
POST/v1/videos/generations
curl https://velaron.ai/v1/videos/generations \
-H "Authorization: Bearer $KREDIT_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "google/veo-3.1-fast-generate-001", "prompt": "coins stacking up on a desk",
"duration": 4, "resolution": "720p", "aspect_ratio": "16:9", "generate_audio": false }'Request#
- model
A video model from
GET /v1/models(typevideo).- prompt
What to film. Must not be empty.
- duration
Seconds, clamped to 1 to 20. Defaults to 4.
- resolution
Defaults to
720p. Must be one the model offers; otherwise400 invalid_bodylists what it does offer.- aspect_ratio
Defaults to
16:9. Forwarded when it looks likeW:H.- generate_audio
Defaults to
false. Some models price audio separately; the matching rate is used.
Response#
{
"created": 1758560000,
"data": [{ "b64_json": "…", "media_type": "video/mp4" }],
"duration": 4,
"resolution": "720p",
"generate_audio": false
}The charge is duration × rate per second, computed and held before the call and charged exactly as held. The request stays open until the clip is rendered, which can take a minute or more. A cancelled request answers 499 cancelled and is not charged.
