ElevenRouter documentation

ElevenRouter gives you one OpenAI-compatible API in front of many model providers, with routing, fallbacks and exact billing at official prices.

View as Markdown

How it works

You send an OpenAI-style chat completion request to https://elevenrouter.com/api/v1/chat/completions with your ElevenRouter key. The gateway resolves the model, picks the healthiest provider endpoint that can serve it, translates the request to the provider's wire protocol when needed, streams the answer back and bills your organization the model's official per-token price.

curl https://elevenrouter.com/api/v1/chat/completions \
  -H "Authorization: Bearer $ELEVENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "openai/gpt-5.6-luna", "messages": [{"role": "user", "content": "Hello!"}]}'

Base URL

All endpoints live under https://elevenrouter.com/api/v1. Authenticate with Authorization: Bearer sk-er-v1-.... Keys are created in the dashboard.

Supported protocols

One key, one bill, several dialects — every route shares the same routing, fallbacks and metering:

  • POST /chat/completions — OpenAI Chat Completions (native).
  • POST /messages — Anthropic Messages, usable with the Anthropic SDKs for any model.
  • POST /responses — OpenAI Responses API.
  • POST /completions — legacy text completions.
  • POST /embeddings — OpenAI embeddings, billed on input tokens.

Next steps