API keys
Keys belong to your Nova Linx account. Calls made with a key use your plan and your daily limits.
Sign in to create an API key
Use the same Nova Linx account you use in the app.
| Name | Key | Created | Plan | |
|---|---|---|---|---|
| Loading… | ||||
Paste this into a terminal to test your key
curl https://lumenaiassistant.com/api/v1/chat \ -H "Authorization: Bearer $NOVA_LINX_API_KEY" \ -H "Content-Type: application/json" \ -d '{"prompt": "Write a welcome line for my app"}'
Quickstart
Create a key, then send it on every request. Want to write the app in the browser? Open Nova Code. Base URL: https://lumenaiassistant.com/api/v1 · JSON in, JSON out · works from any origin (CORS).
1. Create an API key
Open API keys, sign in, and tap Create API key. You will see the full key once — copy it and keep it on your server.
2. Call chat
Paste this into a terminal to test your key
curl https://lumenaiassistant.com/api/v1/chat \ -H "Authorization: Bearer $NOVA_LINX_API_KEY" \ -H "Content-Type: application/json" \ -d '{"prompt": "Write a welcome line for my app"}'
Authentication
Send your Nova Linx key in the Authorization header on every request:
Authorization: Bearer nlx_xxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Keys start with nlx_. A missing, wrong or revoked key gets 401. Keep keys on your server; anyone with your key can use your limits.
GET /api/v1/me
Check that your key works and see your plan, limits and what's left today.
curl https://lumenaiassistant.com/api/v1/me -H "Authorization: Bearer $NOVA_LINX_API_KEY" { "object": "user", "name": "Ada", "email": "ada@example.com", "plan": "free", "key": { "id": "Ab12Cd34Ef56", "name": "My website", "prefix": "nlx_Ab12Cd34Ef56" }, "limits": { "chat_per_minute": 20, "chat_per_day": 500, "pictures_per_day": 10, "videos_per_day": 3, ... }, "usage_today": { "pictures_remaining": 10, "videos_remaining": 3 } }
Chat
Ask Nova something. Send a single prompt, or a messages array for a conversation. Long prompts (up to 200,000 characters) and full conversations.
| Field | Type | Notes |
|---|---|---|
prompt | string | Your message, up to 200,000 characters. Or use messages. |
messages | array | [{"role":"user", up to 200 items. The last one must be user. |
system | string | Optional instructions for Nova (up to 8,000 characters). |
model | string | auto (default), fast, lite, or expert (Pro; free keys use auto). |
stream | boolean | true streams the answer as it is written (see below). |
language | string | Optional answer language, e.g. French. |
curl https://lumenaiassistant.com/api/v1/chat \ -H "Authorization: Bearer $NOVA_LINX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "system": "You are the friendly helper for my bakery app.", "messages": [ {"role": "user", "content": "What goes well with sourdough?"} ] }'
// 200 OK
{
"id": "chat_8f2c1d0e9a7b6c5d4e3f",
"object": "chat.completion",
"created": 1794470400,
"model": "auto",
"reply": "Sourdough loves good butter, ...",
"message": { "role": "assistant", "content": "Sourdough loves good butter, ..." }
}
Streaming chat
With "stream": true the reply arrives as server-sent events. Each line is data: {json}; the stream ends with data: [DONE].
curl -N https://lumenaiassistant.com/api/v1/chat \ -H "Authorization: Bearer $NOVA_LINX_API_KEY" \ -H "Content-Type: application/json" \ -d '{"prompt": "Tell me a short story", "stream": true}' data: {"id": "chat_…", "type": "delta", "text": "Once upon"} data: {"id": "chat_…", "type": "delta", "text": " a time…"} data: {"id": "chat_…", "type": "done", "model": "auto", "reply": "Once upon a time…"} data: [DONE]
If you get {"type": "reset"}, throw away the text so far: Nova is starting the answer again. Errors come as {"type": "error", "error": {...}}.
Pictures
Turn a description into a picture. Get a link or the image data back, in square, wide or tall shapes.
/api/v1/images works too.
| Field | Type | Notes |
|---|---|---|
prompt | string | What to draw, up to 16,000 characters. Words in the picture are in English unless you ask for another language. |
aspect | string | 1:1 (default), 16:9, 9:16, 4:3, 3:4. |
size | string | Or an exact size like 768x1024 (256–1024 each side). |
response_format | string | url (default; link works for 1 hour) or b64_json (image data in the reply). |
curl https://lumenaiassistant.com/api/v1/pictures \ -H "Authorization: Bearer $NOVA_LINX_API_KEY" \ -H "Content-Type: application/json" \ -d '{"prompt": "A cozy rooftop cafe in Lagos at sunset", "aspect": "16:9"}'
// 200 OK
{
"id": "pic_3a9e…",
"object": "picture",
"created": 1794470400,
"width": 1024, "height": 576,
"mime_type": "image/jpeg",
"url": "https://lumenaiassistant.com/api/v1/files/f2b7…",
"expires_at": 1794474000
}
Pictures can take up to a minute. Save the file on your side if you need it for longer than an hour.
Video
Start a video from a prompt, then check on it until the MP4 is ready. Pick the length and shape.
Videos take a while, so this starts a job and answers 202 straight away. Then check the job until it's done.
| Field | Type | Notes |
|---|---|---|
prompt | string | What happens in the video. Speech and on-screen words are in English unless you ask for another language. |
duration | number | Seconds, from 2 up to 15 (default 5). 10 and 15 second videos are supported. |
aspect | string | 16:9 (default), 9:16, or 1:1. |
curl https://lumenaiassistant.com/api/v1/videos \ -H "Authorization: Bearer $NOVA_LINX_API_KEY" \ -H "Content-Type: application/json" \ -d '{"prompt": "A paper boat sailing down a rainy street", "duration": 10, "aspect": "9:16"}' // 202 Accepted { "id": "Vb3kx9Qa1yZ2", "object": "video", "status": "queued", "duration": 10, "aspect": "9:16", "poll_url": "https://lumenaiassistant.com/api/v1/videos/Vb3kx9Qa1yZ2" }
GET /api/v1/videos/{id}
Check every 5–10 seconds. status is queued, running, done or error. Videos are kept for 2 hours.
curl https://lumenaiassistant.com/api/v1/videos/Vb3kx9Qa1yZ2 \ -H "Authorization: Bearer $NOVA_LINX_API_KEY" // 200 OK { "id": "Vb3kx9Qa1yZ2", "object": "video", "status": "done", "duration": 10, "aspect": "9:16", "elapsed": 74.2, "url": "https://lumenaiassistant.com/api/video/Vb3kx9Qa1yZ2.mp4", "bytes": 3145728, "expires_at": 1794477600 }
Limits & pricing
Limits are per key per minute, plus your account's daily limits (shared with your Nova Linx app use). Days reset at midnight UTC (1 AM in Lagos).
| Free | Pro & admin | |
|---|---|---|
| Chat | 20 a minute, 500 a day | 60 a minute, no daily limit |
| Pictures | 4 a minute, 10 a day | 20 a minute, no daily limit |
| Videos | 3 a day | 10 a minute, no daily limit |
/me and video checks | 120 a minute | 300 a minute |
| Keys per account | Up to 10 | |
Nova makes one video at a time for everyone, so a new video can get 429 busy for a minute while another finishes. Want more? Upgrade to Pro in Nova Linx.
Errors
Errors always look like this, with a matching HTTP status:
{ "error": { "code": "invalid_api_key", "message": "That Nova Linx API key is not valid or was revoked." } }
| Status | Codes | Meaning |
|---|---|---|
| 400 | invalid_request, invalid_json, invalid_model, invalid_size, invalid_duration | Something in the request needs fixing; the message says what. |
| 401 | missing_api_key, invalid_api_key | No key, a wrong key, or a revoked key. |
| 404 | not_found, video_not_found, file_expired | Unknown endpoint, or the video/file has expired. |
| 413 | request_too_large | The request body is too big. |
| 429 | rate_limited, daily_limit, free_limit, busy | Slow down or wait. The Retry-After header (and error.retry_after) says how many seconds. |
| 5xx | busy, server_error, unavailable | Nova Linx couldn't finish just now. Try again shortly. |