> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenRouter

> Integrate with OpenRouter as a custom OpenAI-compatible AI Provider

Add your [OpenRouter](https://openrouter.ai/) endpoint to access 100+ models from OpenAI, Anthropic, Google, Meta, Mistral, and more in Arize AX's prompt playground and LLM-as-a-judge evaluations. OpenRouter exposes a single OpenAI-compatible endpoint, so it is added as a **Custom Model Endpoint**: Arize AX makes use of the OpenAI Client to make calls to it.

> [!NOTE]
>
> By adding this integration, your data may be sent through OpenRouter to the underlying model provider for certain actions within Arize AX (e.g., prompt playground) and your account may be billed for usage.

## Add the Integration Using the Arize Skills

Add an OpenRouter integration from your coding agent using the [Arize Skills](/docs/ax/skills/overview.md):

Create a custom model integration named 'my-openrouter' with my base URL [https://openrouter.ai/api/v1](https://openrouter.ai/api/v1) and API key sk-or-...

Create a custom model integration named 'my-openrouter' with my base URL [https://openrouter.ai/api/v1](https://openrouter.ai/api/v1) and API key sk-or-...

## Add the Integration from Arize AX

### Select Custom Model Endpoints from the Providers List

![The AI Provider integrations tab](https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/ai-integration-providers-custom.png)

The AI Provider integrations tab

### Fill Out Your Integration Details

![The OpenRouter integration details pane](https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/ai-integration-providers-openrouter-integration-details.png)

The OpenRouter custom model integration configuration pane

Give your integration a name (e.g. `OpenRouter`). Then set your base URL and an [OpenRouter API key](https://openrouter.ai/keys) from the OpenRouter dashboard.

> Enter the base URL: `https://openrouter.ai/api/v1`. **Do not** include endpoint paths like `/chat/completions` as these are appended automatically.

If you need to send any extra headers to every request, set these.

You then need to define the available model deployments. Leave OpenAI default models off and add your OpenRouter model identifiers as custom model names. OpenRouter uses a `<provider>/<model>` format (e.g. `openai/gpt-4.1`, `anthropic/claude-sonnet-4-6`, `meta-llama/llama-3.3-70b-instruct`). See the [OpenRouter model catalog](https://openrouter.ai/models) for the full list of available identifiers.

### Advanced Settings

![The AI integration details tab](https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/ai-integration-providers-advanced-settings.png)

The Advanced Settings configuration pane

Expand the **Advanced Settings** section to configure the following:

* **Supports Function Calling** - Turn this on to allow the integration to use function calling features. This is on by default.
* **Authorized Org(s)** - Configure which organizations have access to this integration.
* **Authorized Space(s)** - Configure which spaces have access to this integration.

At least one organization and space combination is required. The form selects all available organizations and spaces by default. Only Account Admins can use account-wide scope; other administrators grant access to specific organizations and spaces.

## Add the Integration

Finally check the box to agree to the terms and conditions, then select the **Add Integration** button to create the integration.
