LumiRoute ← Home

API Documentation

OpenAI-compatible endpoints. Drop-in replacement for most AI tools.

Base URL

https://lumirouter.com/v1

Authentication

All API requests require a Bearer token:

Authorization: Bearer YOUR_API_KEY

Bring Your Own Key (BYOK)

Recommended for production. Use your own DeepSeek, Groq, or other provider API keys. LumiRoute provides the OpenAI-compatible gateway and auto-routing — you keep direct billing and compliance with each provider.

Health Check

GET/health

No auth. Returns provider configuration status (cloudflare, groq, deepseek).

curl https://lumirouter.com/health

Endpoints

POST/v1/chat/completions

Send a chat completion request. Fully OpenAI-compatible.

GET/v1/models

List all available models including auto-routing options.

Auto-Router Models

ModelBehavior
autoSmart routing based on request content
auto-cheapAlways cheapest sufficient model
auto-codeCode-focused model (DeepSeek Coder)
auto-qualityHighest quality model available

Available Models

ModelProvider
deepseek-chatDeepSeek
deepseek-coderDeepSeek
deepseek-reasonerDeepSeek
openai/gpt-oss-20bGroq
openai/gpt-oss-120bGroq

Example Request

curl https://lumirouter.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "auto",
    "messages": [
      {"role": "user", "content": "Write a Python function to reverse a string"}
    ]
  }'

Routing Info in Response

When using auto models, the response includes a lumiroute field:

{
  "model": "deepseek-coder",
  "choices": [...],
  "lumiroute": {
    "requested_model": "auto",
    "routed_model": "deepseek-coder",
    "provider": "deepseek",
    "route_reason": "code keywords detected"
  }
}

Tool Compatibility

Works with any tool that supports custom OpenAI-compatible endpoints:

Set base URL to https://lumirouter.com/v1 and use your LumiRoute API key.