Quickstart
1. Get an API key
Sign in to the Lazu console, open API keys and
click Create key. Copy the key (it starts with sk-lazu-…).
2. Pick a base URL
https://api.lazu.aiFor self-hosted Lazu, replace with your domain.
3. Make a request
cURL
curl https://api.lazu.ai/v1/chat/completions \
-H "Authorization: Bearer $LAZU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o-mini",
"messages": [
{"role": "user", "content": "Say hello from Lazu"}
]
}'Python (OpenAI SDK)
from openai import OpenAI
client = OpenAI(
base_url="https://api.lazu.ai/v1",
api_key="YOUR_LAZU_KEY",
)
resp = client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": "Say hello from Lazu"}],
)
print(resp.choices[0].message.content)TypeScript (OpenAI SDK)
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.lazu.ai/v1",
apiKey: process.env.LAZU_API_KEY,
});
const resp = await client.chat.completions.create({
model: "gpt-4o-mini",
messages: [{ role: "user", content: "Say hello from Lazu" }],
});
console.log(resp.choices[0].message.content);4. Verify the public receipt
Keep the response id or the X-Request-Id header. In Console → Usage,
select that request to inspect its safe public evidence:
- the public Route and selected model;
- end-to-end latency and token usage;
- settled cost and cache evidence;
- retry or fallback decisions without exposing internal Channel credentials.
The API key is never written into a receipt. Use the same key to inspect only requests that it owns.
5. Next steps
- Browse available models: Catalog
- See pricing per lane: Pricing
- Stream responses, send images, upload PDFs: Examples
- Hit a rate limit?: Rate limits · Errors