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

# OpenRouter

> Configure OpenRouter to broadcast traces to Arize AX

[OpenRouter](https://openrouter.ai/) is a multi-provider LLM gateway — one API key and an OpenAI-compatible endpoint for 100+ models. OpenRouter's **broadcast** feature is OpenTelemetry-native: with a one-time configuration in the OpenRouter dashboard, **every** request routed through OpenRouter is exported to Arize AX as a trace — no application code or instrumentation required.

> [!NOTE]
>
> This page configures OpenRouter to broadcast traces for all of its traffic. To instead instrument your **own application's** calls to OpenRouter from Python, see the [OpenRouter LLM provider integration](/docs/ax/integrations/llm-providers/openrouter/openrouter-tracing.md).

## Launch Arize AX

To get started, sign up for a [free Arize AX account](https://arize.com/sign-up/). Then, from **Settings → API Keys**, create an API key, and from **Space Settings** copy your Space ID. You will need your:

* **API Key** — from the Arize **API Keys** section
* **Space Key** — your Space ID, from **Space Settings**

## Configure broadcast in OpenRouter

In the OpenRouter dashboard, navigate to **Settings → Observability** and toggle **Enable Broadcast**. Then click the edit icon next to **Arize AI** and enter:

| Field | Value |
| - | - |
| **Api Key** | Your Arize API Key |
| **Space Key** | Your Arize Space ID |
| **Model Id** | The Arize **project name** to send these traces to. (OpenRouter labels this field "Model Id," but it maps to the project your traces appear under in Arize.) |
| **Base Url** | Optional — defaults to `https://otlp.arize.com` |

Click **Test Connection** to verify the setup, then save.

![The OpenRouter broadcast-to-Arize configuration screen](https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/ai-integration-providers-openrouter-broadcast-config.png)

The OpenRouter broadcast configuration for Arize

> [!NOTE]
>
> OpenRouter's **Model Id** field is the Arize **project name** — not a model identifier. Set it to whatever you want the project called in Arize.

* **Custom metadata:** the `trace` field on an OpenRouter request maps to span attributes in Arize. Supported keys include `trace_id`, `trace_name`, `span_name`, `generation_name`, and `parent_span_id`.
* **Privacy mode:** enable it to exclude prompt and completion content from broadcast traces; metadata and usage data are still sent.

## Observe

Once broadcast is enabled, every request through OpenRouter is exported to Arize AX. In your Arize AX space, open the project matching the **Model Id** you configured to see traces appear within \~30 seconds of activity. Each trace includes the model, prompt, response, token usage, and latency for the request.

## Resources

> [card] [OpenRouter Broadcast to Arize Docs](https://openrouter.ai/docs/guides/features/broadcast/arize)

> [card] [OpenRouter Documentation](https://openrouter.ai/docs)
