Developer docs/veo3.1-quality

Veo 3.1 Quality

veo3.1-quality

Veo 3.1 Quality is the higher-fidelity fixed 8s Veo tier.

Overview

Official $0.20/s
LumeAPI from $0.20 / s
POST /v1/videos (+ poll + content)
Base: https://api.lumeapi.site/v1

Auth: Authorization: Bearer sk-… from the Console. Use this model id exactly in the model field.

Request parameters — Veo 3.1 video

Only parameters relevant to veo3.1-quality are listed below.

FieldTypeReqDescription
modelstringveo3.1-fast | veo3.1-quality | veo3.1-lite — all fixed 8s output; billed per second × resolution/audio tier
promptstringVideo description
resolutionstring720p | 1080p | 4k — or infer from size like 1920x1080
aspect_ratiostring16:9 | 9:16 (default 16:9)
sizestringOptional pixel size (1280x720 etc.) or aspect ratio string
image_urls / image_url / imagesarray|stringReference image(s) for image-to-video (max 3). Not supported on veo3.1-lite.
generation_typestringframe (first/last frame) | reference (subject consistency)
generate_audiobooleanBilling tier only — affects per-second rate.

Notes

FieldTypeReqDescription
Fixed durationAll Veo 3.1 tier ids output 8 seconds — do not pass duration or seconds.
veo3.1-liteText-to-video only. Do not pass image_urls, images, or reference fields.
veo3.1-qualityHigher visual fidelity tier at premium per-second rates. Supports T2V and I2V like veo3.1-fast.

Examples

bash
curl https://api.lumeapi.site/v1/videos \
  -H "Authorization: Bearer $LUMEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "veo3.1-quality",
    "prompt": "Cinematic ocean waves at golden hour",
    "resolution": "720p",
    "aspect_ratio": "16:9"
  }'

Video async flow

Base URL

All requests go to https://api.lumeapi.site/v1 with Authorization: Bearer sk-…

Three-step async flow

(1) POST /v1/videos → save id from response. (2) GET /v1/videos/{id} every 5–15s until status is completed or failed. (3) On completed, GET /v1/videos/{id}/content to download MP4.

Use the gateway task id

Poll and download with the id returned by POST /v1/videos (e.g. task_Fk6QrnX6…). This is the only task id your client needs.

Poll interval & timeout

Poll every 5–15 seconds with back-off. Typical completion: 30s–5min depending on model. Stop after 15–30 minutes if still not completed.

Failed tasks are terminal

When status=failed, read error.message. Do not call /content. Submit a new POST /v1/videos to retry.

Billing on submit

Balance is debited when POST /v1/videos returns 200. Poll until completed or failed before treating the job as successful.

Status map

StatusMeaningAction
queuedJob accepted, waiting to startKeep polling GET /v1/videos/{id}
in_progressVideo is being generatedKeep polling; progress may increase
completedReady to downloadGET /v1/videos/{id}/content
failedGeneration failedRead error.message; submit a new job to retry

Errors

  • 401 — invalid or missing Bearer key
  • 402 — insufficient wallet balance (top up in Account)
  • 403 — model id not on the whitelist / wrong id spelling
  • 429 — rate limited; back off and retry
  • 502 — temporary gateway error; retry