Documentation
Build with confidence
Everything you need to integrate Luminet — from your first request to production-grade routing rules and streaming.
Quickstart
Make your first API call in under 60 seconds.
2 min read
API Reference
Every endpoint, parameter, and response shape.
Reference
Routing & failover
How smart routing picks the best provider in real time.
5 min read
Guides
Tutorials for streaming, tools, vision, and RAG.
Various
Hello world (TypeScript)
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.luminet.ai/v1",
apiKey: process.env.LUMINET_API_KEY,
});
const stream = await client.chat.completions.create({
model: "anthropic/claude-sonnet-4.6",
messages: [{ role: "user", content: "Write a haiku about routing." }],
stream: true,
});
for await (const chunk of stream) {
process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
}