//
Search across all documentation pages
10 pages in this section.
Explains the request path from your call to OpenRouter's provider-selection logic and back.
Walks through generating an API key and making a first chat completion call.
A step-by-step setup recipe pointing any OpenAI-compatible SDK at OpenRouter.
Recipes for making OpenRouter calls with the official OpenAI Python and JS SDKs.
A reference list decoding OpenRouter's provider/model slug naming format.
Walks through externalizing model choice into config so swaps need no redeploy.
A recipe for consuming streamed completions identically across every routed provider.
Ten practices for a clean, swappable OpenRouter integration from day one.