Video

Videos take a minute or more to render, so the API works in three steps: start a video, poll it, then download the file. The price is the model's per-second credit price for the resolution and sound you pick, times the length — charged when the video starts and refunded automatically if it fails.

1. Start a video

curl https://api.gluonart.com/v1/videos \
  -H "Authorization: Bearer $GLUONART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "veo-3.1-fast-generate-preview",
    "prompt": "Waves rolling onto a black sand beach at sunset",
    "seconds": 8,
    "size": "1280x720",
    "audio": true
  }'
{
  "id": "6f0c8f2e-1b7a-4a43-9d1e-0a3c5f6b7c8d",
  "object": "video",
  "model": "veo-3.1-fast-generate-preview",
  "status": "queued",
  "progress": 0,
  "created_at": 1764633600,
  "seconds": "8",
  "size": "1280x720",
  "credits": 1440,
  "error": null
}
FieldNotes
modelRequired. A video model from /v1/models.
promptRequired, up to 2,500 characters.
secondsOne of the model's seconds, as a number or a string. Defaults to the model's default length.
sizeOne of the model's sizes; it picks the resolution and shape. Defaults to the model's default resolution in landscape.
audiotrue or false, where the model makes sound optionally.
imageA start frame as a PNG, JPEG or WebP data URL (or { "image_url": ... }), for models that take one.

2. Poll

curl https://api.gluonart.com/v1/videos/6f0c8f2e-1b7a-4a43-9d1e-0a3c5f6b7c8d \
  -H "Authorization: Bearer $GLUONART_API_KEY"

status moves from queued to in_progress to completed, or to failed — in which case the credits are refunded and error.message says so. Poll every 5–10 seconds; polling is free.

3. Download

curl -o video.mp4 https://api.gluonart.com/v1/videos/6f0c8f2e-1b7a-4a43-9d1e-0a3c5f6b7c8d/content \
  -H "Authorization: Bearer $GLUONART_API_KEY"

Before the video is ready this answers 409. Finished videos are also saved, privately, to the key owner's library in the studio.