Openrouter has an OpenAI compatible API. In the Admin settings under 'Connections' you can add an OpenAI API connection. Use https://openrouter.ai/api/v1 as your API Base URL, and the key by Openrouter as your API Key. Answer from Deleted User on reddit.com
🌐
OpenRouter
openrouter.ai › docs › quickstart
OpenRouter Quickstart Guide | Developer Documentation | OpenRouter | Documentation
Get started with OpenRouter's unified API for hundreds of AI models. Learn how to integrate using OpenAI SDK, direct API calls, or third-party frameworks.
🌐
OpenRouter
openrouter.ai › docs › api › reference › overview
OpenRouter API Reference | Complete API Documentation | OpenRouter | Documentation
At a high level, OpenRouter normalizes the schema across models and providers so you only need to learn one. Here is the request schema as a TypeScript type. This will be the body of your POST request to the /api/v1/chat/completions endpoint (see the quick start above for an example).
🌐
OpenRouter
openrouter.ai › docs › api › reference › authentication
API Authentication | OpenRouter OAuth and API Keys | OpenRouter | Documentation
Our API authenticates requests using Bearer tokens. This allows you to use curl or the OpenAI SDK directly with OpenRouter.
🌐
Relevance AI
relevanceai.com › llm-models › set-up-and-use-openrouter-auto-llm-for-ai-applications
OpenRouter Auto llm - Relevance AI
At its core, OpenRouter provides an OpenAI-compatible completion API that developers can leverage either through direct calls or by utilizing the OpenAI SDK. The base URL for all API interactions is 'https://openrouter.ai/api/v1'. When making requests, developers can enhance their application's ...
🌐
Kilo
kilo.ai › openrouter
Using OpenRouter With Kilo Code | Kilo Code Docs
Select Model: Choose your desired model from the "Model" dropdown. (Optional) Custom Base URL: If you need to use a custom base URL for the OpenRouter API, check "Use custom base URL" and enter the URL.
🌐
Cloudflare
developers.cloudflare.com › directory › ai gateway › using ai gateway › provider native › openrouter
OpenRouter · Cloudflare AI Gateway docs
When making requests to OpenRouter ↗, replace https://openrouter.ai/api/v1/chat/completions in the URL you are currently using with https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/openrouter/chat/completions.
🌐
Roo Code
docs.roocode.com › openrouter
Using OpenRouter With Roo Code | Roo Code Documentation
Select Model: Choose your desired model from the "Model" dropdown. (Optional) Custom Base URL: If you need to use a custom base URL for the OpenRouter API, check "Use custom base URL" and enter the URL.
Find elsewhere
🌐
OpenRouter
openrouter.ai › docs › api › reference › parameters
API Parameters | Configure OpenRouter API Requests | OpenRouter | Documentation
API Guides · Copy page · Sampling parameters shape the token generation process of the model. You may send any parameters from the following list, as well as others, to OpenRouter. OpenRouter will default to the values listed below if certain parameters are absent from your request (for example, temperature to 1.0).
🌐
DataCamp
datacamp.com › tutorial › openrouter
OpenRouter: A Guide With Practical Examples | DataCamp
August 14, 2025 - OpenRouter solves these problems with a set of connected features: One API key works with 400+ models from all major providers · Automatic switching to backup providers when your first choice fails · Side-by-side pricing for all models so you can compare costs instantly · Works with existing OpenAI code — just change the endpoint URL...
🌐
OpenRouter
openrouter.ai › docs › api-reference › list-endpoints-for-a-model
List endpoints for a model | OpenRouter | Documentation
API Reference · Copy page · GET · https://openrouter.ai/api/v1/models/:author/:slug/endpoints · GET · /api/v1/models/:author/:slug/endpoints · Python · Try it · 200Retrieved · authorstringRequired · slugstringRequired · List of endpoints for the model ·
🌐
LibreChat
librechat.ai › docs › configuration › librechat_yaml › ai_endpoints › openrouter
Openrouter
# recommended environment variables: apiKey: "${OPENROUTER_KEY}" # NOT OPENROUTER_API_KEY baseURL: "https://openrouter.ai/api/v1" models: default: ["meta-llama/llama-3-70b-instruct"] fetch: true titleConvo: true titleModel: "meta-llama/llam...
🌐
Cline
docs.cline.bot › provider-config › openrouter
OpenRouter - Cline
Select Model: Choose your desired model from the “Model” dropdown. (Optional) Custom Base URL: If you need to use a custom base URL for the OpenRouter API, check “Use custom base URL” and enter the URL.
🌐
GitHub
github.com › cline › cline › pull › 5636
feat(openrouter): Support Custom Base URL for OpenRouter API by xiaoguomeiyitian · Pull Request #5636 · cline/cline
This pull request introduces a new configuration option, openRouterBaseUrl, allowing users to specify a custom base URL for the OpenRouter provider. ... This change provides more flexibility for users who need to route OpenRouter API requests through a proxy or connect to a self-hosted or alternative OpenRouter-compatible endpoint.
Author   cline
🌐
OpenRouter
openrouter.ai › docs › guides › overview › multimodal › images
OpenRouter Image Inputs | Complete Documentation | OpenRouter | Documentation
Requests with images, to multimodel models, are available via the /api/v1/chat/completions API with a multi-part messages parameter. The image_url can either be a URL or a base64-encoded image. Note that multiple images can be sent in separate content array entries. The number of images you can send in a single request varies per provider and per model. Due to how the content is parsed, we recommend sending the text prompt first, then the images. If the images must come first, we recommend putting it in the system prompt. OpenRouter supports both direct URLs and base64-encoded data for images:
🌐
OpenRouter
openrouter.ai › docs › api-reference › get-a-generation
Get a generation | OpenRouter | Documentation
API Reference · Copy page · GET · https://openrouter.ai/api/v1/generation · GET · /api/v1/generation · Python · Try it · 200Retrieved · Returns metadata about a specific generation request · AuthorizationBearer · Bearer authentication of the form Bearer <token>, where token is your ...
🌐
OpenRouter
openrouter.ai › docs › faq
OpenRouter FAQ | Developer Documentation | OpenRouter | Documentation
OpenRouter implements the OpenAI API specification for /completions and /chat/completions endpoints, allowing you to use any model with the same request/response format. Additional endpoints like /api/v1/models are also available. See our API documentation for detailed specifications. The API supports text, images, and PDFs. Images can be passed as URLs ...
🌐
OpenRouter
openrouter.ai › deepseek › deepseek-r1:free
R1 - API, Providers, Stats | OpenRouter
DeepSeek R1 is here: Performance on par with [OpenAI o1](/openai/o1), but open-sourced and with fully open reasoning tokens. It's 671B parameters in size, with 37B active in an inference pass. Run R1 with API