Skip to content
BFCM deal: 50% off your first month — use code BFCM50OFF · Ends Nov 30
LumivoraLABS
Menu

API

Build on your own keys.

Lumivora API keys let your own scripts and apps work with your account — your credits, your connected provider keys, the same metering as the app itself.

Create a key in Settings → API Keys

What is available today

API keys are available now. Create, name, and revoke them in Settings → API Keys. The first programmatic endpoint — chat, below — is in development and is not accepting requests yet. Keys you create today will authenticate it as soon as it opens; you will not need to create new ones.

Create a key

Go to Settings → API Keys, give the key a name that says which app or script will use it, and create it. The full key is shown exactly once, on that screen. Copy it into your app right away: Lumivora stores only a SHA-256 hash of the key, so it cannot be shown again. If you lose a key, revoke it and create a new one. You can hold up to 10 active keys, and one key per app is the pattern we recommend — it makes revoking a single app painless.

Authentication

When endpoints open, every request carries your key in the Authorization header. Nothing else is needed — the key identifies your account, your credit balance, and your connected provider keys.

Authorization: Bearer lv_live_…

First endpoint: chat (in development)

POST /api/v1/chat sends one conversation turn and returns the reply as JSON. The "model" field is optional and takes any Chat model id; without it, the call uses your saved default model from Settings → Personalization. The planned request and response shapes:

POST https://www.lumivoralabs.com/api/v1/chat
Content-Type: application/json
Authorization: Bearer lv_live_…

{
  "messages": [
    { "role": "user", "content": "Summarize this release note in one sentence." }
  ]
}

{
  "message": { "role": "assistant", "content": "…" },
  "provider": "google",
  "model": "google/gemini-3.8-flash",
  "credits": { "charged": 1, "remaining": 1840 }
}

Errors

401 — the key is missing, malformed, or revoked. 400 — the request body or model is not valid. 402 — no credits or starter runs remain, or the provider key for the chosen model is not connected. A failed call never spends a credit: the hold described below is released in full whenever the provider call does not complete.

Credits and metering

An API call takes one credit — the same credit a Chat, Imagine, Code, or Agents run takes, from the same monthly balance. The credit is held before your provider is called and released if the call fails, so errors cost nothing. Free accounts spend starter runs instead: 20 starter runs with your own key, on one provider, under the same rules as the app. When no credits or starter runs remain, API calls pause until the balance renews or the account upgrades.

Bring your own keys

API calls run on the provider keys connected to your account in Settings → AI Providers — never on a shared platform key. You pay that provider directly for inference; membership does not include provider inference. If the provider behind the model you asked for is not connected, the call fails with a 402 before any credit is held.

Keep keys safe

Treat a key like a password: it acts as your account for API calls. Store it in a secrets manager or environment variable, never in source control or a public repository. Revoking takes effect immediately — use it the moment a key leaks or a device is lost. To rotate, create a new key, point your app at it, confirm the switch, then revoke the old one.