Skip to content

API Reference ​

Base URL: http://localhost:8080 (your proxy). All LLM endpoints are served in three client protocols — OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages — and the proxy translates between them and every configured upstream.

Authentication is a single API key on every /v1/* route: Authorization: Bearer sk-… (see Authentication).

BASH
bash
curl http://localhost:8080/v1/chat/completions \
  -H "Authorization: Bearer $LLM_PROXY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "auto", "messages": [{"role": "user", "content": "Hello!"}]}'

Chat ​

Conversation completion across all three wire protocols, plus response storage and token counting.

Images ​

Audio ​

Embeddings ​

Models ​

Cross-cutting ​

Conventions ​

  • model is always the name your proxy configured — including the virtual models auto, fast, best when smart routing is on.
  • The model field in responses echoes the client-requested alias, never the resolved upstream model.
  • Every response carries X-Request-Id; pass it when reporting problems.
  • Upstream rate-limit headers (x-ratelimit-*, retry-after) are forwarded.
BASH
bash
curl http://localhost:8080/v1/chat/completions \
  -H "Authorization: Bearer $LLM_PROXY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "auto", "messages": [{"role": "user", "content": "Hello!"}]}'

MIT licensed