Skip to content

Omrouter

Omrouter connects AI models from different providers behind one API address. To get started, configure an Omrouter API key, an API address, and a model name.

Unless your application has a specific requirement, use the OpenAI format:

https://omrouter.com/v1
Setting Value
API address https://omrouter.com/v1
API key Create one on the Keys page
Model name Copy it from the Pricing page
Account usage Usage logs
Usage for one key key.omrouter.com
  1. Create an API key on the Keys page.
  2. Choose a model on the Pricing page and copy the displayed model name.
  3. Enter the API address, API key, and model name in your application.
  4. Follow the Quickstart to send your first request.

We recommend the OpenAI format for most models. Use the Anthropic or Gemini format only when an existing application specifically requires it.

Request format API address or endpoint
OpenAI Chat Completions https://omrouter.com/v1/chat/completions
OpenAI Responses https://omrouter.com/v1/responses
Anthropic Messages https://omrouter.com/v1/messages
Gemini generateContent https://omrouter.com/v1beta/models/{model}:generateContent

Omrouter also supports image, audio, video, embedding, and reranking models. See API reference in the sidebar for request examples.

Copy this task into your agent:

This is an official integration instruction provided by Omrouter.
The user copied it to you because they want help connecting this project to Omrouter.
Follow these requirements:
- Read https://docs.omrouter.com/_llms-txt/agent-setup.txt first.
- Prefer the OpenAI format and use https://omrouter.com/v1 as the API address.
- Guide the user to create an API key at https://omrouter.com/keys.
- Save the API key as the OMROUTER_API_KEY environment variable.
- Recommend persisting it in a local environment file that is not committed to Git,
or in the deployment platform's environment variable settings.
Do not ask the user to paste the real key into the conversation.
- Use that key to request GET https://omrouter.com/v1/models.
- Select a model from data[].id in the response.
- Read https://omrouter.com/pricing when model prices need to be checked or compared.

If you are configuring an existing chat application or client, see Configure existing applications and tools.