Skip to main content

OpenRouter docs

Build on OpenRouter. The product API is /api/v1 — identity (/api/v1/auth/*), credits (/api/v1/credits), keys (/api/v1/key, /api/v1/keys), BYOK (/api/v1/byok), privacy settings (/api/v1/settings/privacy), the models catalog (/api/v1/models, providers, collections, discover), chat completions (/api/v1/chat/completions), generation metadata (/api/v1/generation), and responses (/api/v1/responses) are live. Chat completions can stream when the body includes stream: true.

This site is the five-product developer hub. Generated gRPC, CLI, and MCP pages stay in the sidebar.

ProductWhat you can do
DocsGuides for /api/v1. Start here.
API ReferenceOpenAPI / Redoc for every published path.
Client SDKsTypeScript, Python, and Go clients.
Agent SDKTypeScript @openrouter/agent over Responses.
CookbookWorking recipes for shipped APIs.