Public API

Generate videos from your own app. The API is a thin wrapper over the same job queue the website uses — same capabilities, same free budget, same limits. It is asynchronous by design: submit a job, get a job id, poll for status, download when it is done. There is no realtime or synchronous generation — a 5-second clip takes about 10–30 minutes on the free GPU.

No-API option: you do not need the API at all. Generate from the website with no key and no code — same queue, same results. The API is only for developers who want to automate it.

Authentication

Create a key below (or in the admin panel), then send it as a Bearer token. Keys are shown once at creation and stored hashed. Never put a key in client-side code that ships to browsers — keys are for your server.

Authorization: Bearer vgt_live_…

Your API keys

NameKeyCreatedLast used
Sign in to manage API keys.

Endpoints

Base URL: (same origin as this site) /api/v1. All responses are JSON unless noted.

POST/api/v1/jobs

Submit a job. Multipart form: input_kind (prompt | image | voice | reference | template | talking), prompt, duration (5 | 10 | 30 | 60), plus files (image, audio, files). Returns { job_id, status: "queued", position_in_queue, estimated_wait }.

curl -X POST https://example.com/api/v1/jobs \
  -H "Authorization: Bearer vgt_live_…" \
  -F "input_kind=prompt" \
  -F "prompt=A lighthouse on a stormy cliff at dusk" \
  -F "duration=10"
GET/api/v1/jobs/{id}

Poll one job. Returns { status, progress_pct, clips_done, clips_total, provider, error }. Status is queued | running | stitching | done | failed | cancelled. Poll no more than once every 30 seconds — a clip takes at least 10 minutes, so faster polling teaches you nothing.

{
  "job_id": "job_abc123",
  "status": "running",
  "progress_pct": 50,
  "clips_done": 3,
  "clips_total": 6,
  "provider": "modal-t4/wan-2.1",
  "error": null
}
GET/api/v1/jobs

List your jobs, newest first.

GET/api/v1/jobs/{id}/download

Download the finished MP4 (redirect to a short-lived signed URL).

POST/api/v1/jobs/{id}/cancel

Cancel a queued or running job. Frees its queue slot; GPU seconds already spent are not refunded.

GET/api/v1/status

Public — no key needed. Provider health and the monthly budget remaining, so your app can degrade gracefully instead of submitting jobs that will sit queued all month.

POST/api/v1/auth/login

Website sign-in (email + password). Returns the session user.

GET/api/v1/auth/me

Current signed-in user.

POST/api/v1/auth/logout

Sign out.

GET/api/v1/admin/providers

Admin only. Provider status and clips used this month.

GET/api/v1/admin/queue

Admin only. The live job queue.

POST/api/v1/api-keys

Create a key. Returns the secret once.

GET/api/v1/api-keys

List your keys (prefixes only, never the secret).

DELETE/api/v1/api-keys/{id}

Revoke a key.

Limits

Per-key daily cap

2 jobs per key per day, up to 10 seconds of video per job via the API. Longer 30 s / 60 s jobs are website-only in v1. Talking-head and 720p jobs count as 2× clips against quota.

Global monthly cap

The whole service shares the Modal $30 monthly credit — about 100–150 five-second clips a month. When it is exhausted, POST /api/v1/jobs returns 503 with a reset date, and the website shows the same paused state. No queueing past the cap.

Polling & bursts

Poll a job at most once every 30 seconds (429 beyond that). Max 5 queued jobs per key at once. Template slideshows are exempt from the GPU cap — they cost no GPU — but are capped at 20 per key per day so the server is not drowned in renders.

Upload limits

Image ≤ 10 MB, audio ≤ 20 MB / ≤ 60 s, reference video ≤ 100 MB / ≤ 60 s. Files are deleted after the job finishes or expires.

What the API cannot do: realtime or synchronous generation; videos over 60 seconds; 1080p AI video; guaranteed queue position; talking-head above 256px; any job while the monthly budget is exhausted. Errors use standard HTTP codes (400 validation, 401 bad key, 404 unknown job, 429 rate-limited with Retry-After, 503 budget exhausted with a reset date). No webhooks in v1 — polling only.