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.
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
Your new key — copy it now, it will not be shown again:
| Name | Key | Created | Last used | |
|---|---|---|---|---|
| Sign in to manage API keys. | ||||
Endpoints
Base URL: (same origin as this site) /api/v1. All responses are JSON unless noted.
/api/v1/jobsSubmit 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"
/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
}
/api/v1/jobsList your jobs, newest first.
/api/v1/jobs/{id}/downloadDownload the finished MP4 (redirect to a short-lived signed URL).
/api/v1/jobs/{id}/cancelCancel a queued or running job. Frees its queue slot; GPU seconds already spent are not refunded.
/api/v1/statusPublic — 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.
/api/v1/auth/loginWebsite sign-in (email + password). Returns the session user.
/api/v1/auth/meCurrent signed-in user.
/api/v1/auth/logoutSign out.
/api/v1/admin/providersAdmin only. Provider status and clips used this month.
/api/v1/admin/queueAdmin only. The live job queue.
/api/v1/api-keysCreate a key. Returns the secret once.
/api/v1/api-keysList your keys (prefixes only, never the secret).
/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.
Retry-After, 503 budget exhausted with a reset date). No webhooks in v1 — polling only.