Base URL & API key

The two things every tool needs, and how to get them right the first time.

Steps

01
Get your key
Redeem a voucher at /redeem. The key is shown once and starts with lxc_live_. Store it like a password; if you lose it, rotate it from your account.
02
Pick the right base URL
OpenAI-format clients want the URL that ends in /v1. Anthropic-format clients (Claude Code, the Anthropic SDK) want the root, with NO /v1 on the end, because they append /v1/messages themselves.
03
Authenticate
Send the key as an Authorization: Bearer lxc_live_... header. The Anthropic format also accepts the x-api-key header, so no shim is needed.
04
Check it works
Call GET /v1/models with your key. It returns exactly the models enabled for your account, which is the fastest way to prove the key and base URL are correct before touching any tool.
bash
# OpenAI-format base URL (ends in /v1)
https://api.luxechain.si/v1

# Anthropic-format base URL (no /v1)
https://api.luxechain.si

# prove the key works, and see your models
curl https://api.luxechain.si/v1/models \
  -H "Authorization: Bearer lxc_live_YOUR_KEY"
A trailing slash, or a /v1 that should (or should not) be there, is the single most common cause of a connection error. Copy the exact string from the box above.

← All guides Get tokens