# ElevenRouter > One OpenAI-compatible API for every major model, billed at official vendor pricing, with automatic failover across credentials and vendors. Customers only ever see a model's official vendor. Base URL: https://elevenrouter.com/api/v1 · OpenAPI: https://elevenrouter.com/api/v1/openapi.json · Status: https://elevenrouter.com/api/v1/status · Changelog: https://elevenrouter.com/api/v1/changelog Every docs page is available as Markdown at https://elevenrouter.com/docs/md/ (for example https://elevenrouter.com/docs/md/quickstart) and all at once at https://elevenrouter.com/docs/llms-full.txt. ## Overview - [Overview](https://elevenrouter.com/docs/md/index): What ElevenRouter is: one OpenAI-compatible API in front of every major model, official vendor pricing, automatic failover. - [Quickstart](https://elevenrouter.com/docs/md/quickstart): Create a key and make your first chat completion with curl, the OpenAI SDK, the Anthropic SDK or the ElevenRouter SDKs; includes an interactive request builder. - [Changelog & versioning](https://elevenrouter.com/docs/md/changelog): API versioning policy (additive changes ship without notice, breaking changes get 90 days notice) and the dated changelog. ## Models & routing - [Models & pricing](https://elevenrouter.com/docs/md/models): How the catalog works: canonical ids, vendors, official pricing, context, capabilities and live availability. - [Routing & fallbacks](https://elevenrouter.com/docs/md/routing): Provider preferences (sort, max_price, require_parameters, latency/throughput thresholds), fallbacks, variants (:nitro, :floor, :thinking), ~latest aliases, deprecation lifecycle, response cache, transforms and response healing. - [Model migrations](https://elevenrouter.com/docs/md/migrations): Deprecated and retired models with their successors, price and capability differences, and how forwarding works. ## Features - [Streaming](https://elevenrouter.com/docs/md/streaming): Server-sent events, usage in the final chunk, keep-alives and mid-stream error events. - [Plugins, files, batches & media](https://elevenrouter.com/docs/md/plugins): Web search grounding with per-result fees on the receipt (:online), PDF parsing, server tools (datetime, search_models), the Files and Batch APIs, and image, rerank, speech and transcription endpoints. - [Workspaces, guardrails & presets](https://elevenrouter.com/docs/md/organization): Environments with their own keys and budgets, guardrail policies (model/vendor access, limits, prompt injection, PII redaction) with dry-run, presets addressable as @preset/slug, account privacy controls and the management API. - [Activity, logs & analytics](https://elevenrouter.com/docs/md/observability): What is recorded per request, Activity and Logs dashboards, sessions, exports, and the analytics API for management keys. - [Keys, limits & billing](https://elevenrouter.com/docs/md/limits): Credits, exact per-token billing, zero-completion insurance, key spend limits, budgets, rate limits, key rotation, alerts, the provisioning API, BYOK and teams. - [Enterprise: broadcast, I/O logging, private models, OAuth](https://elevenrouter.com/docs/md/enterprise): Forward every request to your observability stack (signed webhooks, OTLP, S3), store prompts and completions encrypted with retention and deletion, bring your own OpenAI-compatible endpoints as private models, let apps obtain user-controlled keys with OAuth PKCE, and settle usage by invoice against a credit line. ## Privacy & data handling - [Privacy & data handling](https://elevenrouter.com/docs/md/privacy): What ElevenRouter stores and for how long, prompt logging (off by default), what customers can and cannot see about routing, BYOK secrets, redaction, data residency of vendors and how to request deletion. ## Best practices - [Best practices](https://elevenrouter.com/docs/md/best-practices): Production checklist: keys per environment, budgets and alerts, fallbacks, timeouts and retries, idempotency, prompt caching, response caching, structured outputs, cost controls and observability. ## Cookbook - [Cookbook](https://elevenrouter.com/docs/md/cookbook): Copy-paste recipes: cheapest model that supports tools, JSON extraction with response healing, long documents with middle-out, per-customer keys via the management API, session cost tracking, cache-aware chat, guardrails for user-facing bots. ## Integrations - [SDKs](https://elevenrouter.com/docs/md/sdks): Official TypeScript (@elevenrouter/sdk) and Python (elevenrouter) clients generated from the OpenAPI document: install, chat, streaming, errors, retries, management API. - [Frameworks & coding agents](https://elevenrouter.com/docs/md/integrations): Use ElevenRouter with the OpenAI SDK, Anthropic SDK, Vercel AI SDK, LangChain, LiteLLM, PydanticAI, and coding agents (Claude Code, Codex, Cursor, Cline) with env-var recipes; the MCP server. ## Services - [Cursor](https://elevenrouter.com/docs/md/tools--cursor): The dedicated Cursor service: buy a plan, paste the Cursor base URL and key into Cursor Settings, add the neutral model names, verify. Plans, allowances, limits, what Cursor sends and what works (agent, tools, images, reasoning), troubleshooting. ## Reference - [API guide](https://elevenrouter.com/docs/md/api-reference): Endpoints, request and response shapes, headers (x-er-generation-id, x-er-provider, X-ER-Metadata, X-ER-Cache) and the route receipt. - [Generated API reference](https://elevenrouter.com/docs/md/reference): Every operation from the OpenAPI document with parameters, request bodies and response schemas: inference, models, account, status, management. - [Errors](https://elevenrouter.com/docs/md/errors): Error envelope, types and codes, and how to handle 400, 402, 403, 429, 502 and 503. ## Optional - [OpenAPI document](https://elevenrouter.com/api/v1/openapi.json): machine-readable description of every endpoint, request and response. - [Pricing](https://elevenrouter.com/pricing): fee schedule. - [Status page](https://elevenrouter.com/status): live availability with 90-day uptime. - [TypeScript SDK](https://www.npmjs.com/package/@elevenrouter/sdk) · [Python SDK](https://pypi.org/project/elevenrouter/) · [MCP server](https://www.npmjs.com/package/@elevenrouter/mcp)