Velaron.AI

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
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#

modelstring · required

A video model from GET /v1/models (type video).

promptstring · required

What to film. Must not be empty.

durationnumber

Seconds, clamped to 1 to 20. Defaults to 4.

resolutionstring

Defaults to 720p. Must be one the model offers; otherwise 400 invalid_body lists what it does offer.

aspect_ratiostring

Defaults to 16:9. Forwarded when it looks like W:H.

generate_audioboolean

Defaults to false. Some models price audio separately; the matching rate is used.

Response#

200
{
  "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.