OpenAI-compatible gateway. Base URL: https://api.onelitellm.net/v1
Send a virtual key in the Authorization header:
Authorization: Bearer sk-...
| Method | Path | Description |
|---|---|---|
| POST | /v1/chat/completions | Chat completion (supports stream: true) |
| GET | /v1/models | Models available to the key |
| GET | /health/liveliness | Process liveness |
| GET | /health/readiness | Dependencies readiness |
| GET | /openapi.json | Full OpenAPI schema |
curl https://api.onelitellm.net/v1/chat/completions \
-H "Authorization: Bearer $LITELLM_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-flash",
"messages": [{"role": "user", "content": "hello"}]
}'
deepseek-flash — fast, long context. deepseek-v4-pro — higher quality for complex tasks.
Per-key monthly budget and requests-per-minute are enforced by the gateway.
Exceeding them returns 429; invalid keys return 401.