OpenRouter is a model-routing layer that exposes a unified OpenAI-compatible API in front of more than 100 different language models from providers including OpenAI, Anthropic, Google, Meta, Mistral, and others. Because the request and response format matches the OpenAIDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/manusapis/Agix/llms.txt
Use this file to discover all available pages before exploring further.
/chat/completions standard exactly, Agix uses the same OpenAIProvider class under the hood — only the baseUrl and model identifier change. This makes OpenRouter an ideal choice when you want to experiment with different models without managing multiple API keys or accounts.
Default configuration
The default configuration registered inproviders.config.ts is:
Setting up OpenRouter in the sidebar
Open the Agix sidebar
In Excel, click Home → Agix. In Google Sheets, open the Agix add-on from the Extensions menu.
Enter your API key
Paste your OpenRouter API key into the API Key field. You can generate one at openrouter.ai/keys.
Choose a model (optional)
The default model is
openai/gpt-4o-mini. Enter any model in provider/model format — see below for examples.AIProviderConfig shape for OpenRouter
Model naming convention
OpenRouter identifies models using aprovider/model format. The routing layer maps this identifier to the correct upstream API automatically. Some commonly used examples:
| Model identifier | Upstream model |
|---|---|
openai/gpt-4o | OpenAI GPT-4o |
openai/gpt-4o-mini | OpenAI GPT-4o-mini |
anthropic/claude-3-5-sonnet | Anthropic Claude 3.5 Sonnet |
meta-llama/llama-3.1-70b-instruct | Meta Llama 3.1 70B |
mistralai/mistral-7b-instruct | Mistral 7B Instruct |
google/gemini-flash-1.5 | Google Gemini 1.5 Flash |
Shared implementation with OpenAI
OpenRouter and OpenAI both resolve toOpenAIProvider in the factory:
${config.baseUrl}/chat/completions with a standard Bearer token, using the same temperature (0.7 default) and max_tokens behaviour described for the OpenAI provider.
Get your OpenRouter API key at openrouter.ai/keys.
OpenRouter bills per token at rates that vary by model. You can set per-model
spending limits from your OpenRouter dashboard.