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.
Videos
10:42
OpenRouter: Easily access multiple AI models (including FREE ones) ...
04:11
How to Use OpenRouter Models in Cursor - YouTube
07:26
Open WebUI and Open Router - YouTube
08:52
Connecting Make.com to any API using OpenRouter AI as an example ...
14:46
🚀 OpenRouter + Spring AI: Access 400+ AI Models with One API ...
01:13
What is OpenRouter API? Use ANY AI model with your application ...
Reddit
reddit.com › r/openwebui › openrouter?
r/OpenWebUI on Reddit: OpenRouter?
October 30, 2024 -
Sorry for the dumb question - how do I go about connecting my OpenRouter API key? I'm using the Anthropic function to connect my Anthropic API and that seems to be working well. Could not find similar for OpenRouter.
Thanks in advance!
Top answer 1 of 2
9
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.
2 of 2
1
I went to the connections from the admin settings and added the openrouter api, but the models do not appear, only when I add the connection from the user settings, the models appear like that.
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.
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 ·
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
Postman
postman.com › ai-engineer › generative-ai-apis › collection › ef6c9qg › -openrouter-api
OpenRouter API | Get Started
We cannot provide a description for this page right now
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 ...