API
API overview
Call Lumivora from your own scripts with a Lumivora API key: authentication, endpoints, credit charging, error format, and the usage dashboard.
On this page
Create an API key
A Lumivora API key authenticates your own scripts and apps to Lumivora itself — it is not a provider key. Create keys in Settings → API. You can hold up to 10 active keys per account. The full key (prefixed lv_live_) is shown once at creation; Lumivora stores only its SHA-256 hash, so a lost key cannot be retrieved — revoke it and create a new one. Settings shows each key's prefix, last four characters, and last-used time.
Authentication
Send the key as a Bearer token on every request. There is no session on API routes; the key identifies the account, and generations run on that account's connected provider keys and credits.
Authorization: Bearer lv_live_...A missing or malformed key returns 401 with "Missing or malformed API key."; an unknown or revoked key returns 401 with "Invalid or revoked API key."
Endpoints
| Endpoint | What it does | Credits |
|---|---|---|
POST /api/v1/chat | One conversation turn, no streaming, no persistence | 1 per completed call |
POST /api/v1/images | Generate an image; fetch bytes via GET /api/v1/images/:id | 1 per image |
POST /api/v1/videos | Start an async video job (202); poll GET /api/v1/videos/:id | 1 per segment |
POST /api/v1/videos/:id/extend | Extend a finished Omni clip | 1 per extend |
GET /api/v1/videos/:id/content | Download the finished MP4 | — |
POST /api/v1/audio | Text-to-speech; fetch bytes via GET /api/v1/audio/:id | 1 per clip |
All endpoints are served from https://www.lumivoralabs.com. Media endpoints return an x-request-id header; include it when reporting a problem.
Credits and usage
API calls charge the same credits as the product: one per generation, held before the provider is called and released in full if the call does not complete. Responses report credits.charged and credits.remaining. Every call — succeeded, failed, or refunded — is recorded in the usage dashboard at Settings → API → Usage, with endpoint, status, provider, model, and credits. Provider usage on your provider key is billed by the provider as usual; the API does not change that.
Errors
Errors return a JSON body with a single human-readable message:
{ "error": "Connect your OpenRouter API key in Settings → AI Providers to use this model." }| Status | Meaning |
|---|---|
| 400 | The request body is invalid — the message names the field to fix. |
| 401 | Missing, malformed, invalid, or revoked API key. |
| 402 | A required provider key is not connected, or the provider rejected the saved key. |
| 403 | The saved key is turned off for this product, or the account is not entitled. |
| 404 | The image, audio, or video id does not exist for this account. |
| 409 | The saved provider key can no longer be read; save it again in Settings → Providers. |
| 429 | Rate limited — by Lumivora key checks or by your provider. |
| 500 / 502 / 503 | Lumivora or the provider failed; credits for the call are released. |
Questions this page does not answer? Email support@lumivoralabs.com.
