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

> ## Agent Instructions
> If the person you are helping needs a new Vantage account, read https://docs.vantage.sh/auth.md before you register one.

# OpenRouter Broadcast

> Send OpenRouter Broadcast traces to Vantage to see AI usage in Tokenomics and to attribute OpenRouter and bring-your-own-key (BYOK) LLM spend to teams, users, applications, and features.

> [!NOTE]
>
> Contact Sales (or [support@vantage.sh](mailto:support@vantage.sh)/your account team) to enable LLM Enrichment for your account and discuss availability.

[OpenRouter](https://openrouter.ai) gives teams a single API to models from providers like OpenAI, Anthropic, and Google. OpenRouter has added Vantage as an observability destination for its **Broadcast** feature. Once you turn it on, OpenRouter sends a trace for each request to Vantage, with the model, the provider that served the request, token usage and cost, and the metadata your application attaches, such as team, feature, or customer. There are no code changes and no data pipeline to maintain.

You can use the same feed in two ways:

* **[Tokenomics](#use-openrouter-broadcast-with-tokenomics):** See who is using AI, what it's used for, and what it costs, within minutes of each request.
* **[LLM Enrichment](#how-enrichment-works):** Split your billed costs by the same metadata, so you can filter and group that spend in [Cost Reports](https://docs.vantage.sh/cost_reports.md), [Virtual Tags](https://docs.vantage.sh/tagging.md), [Budgets](https://docs.vantage.sh/budgets.md), and [Cost Alerts](https://docs.vantage.sh/cost_alerts.md).

Enrichment works with two kinds of OpenRouter traffic:

* **OpenRouter credits:** Requests that OpenRouter bills against your credit balance. Vantage enriches the costs from your [OpenRouter cost integration](https://docs.vantage.sh/connecting_openrouter.md).
* **Bring your own key (BYOK):** Requests that OpenRouter serves with your own provider API keys. The upstream provider bills you directly, so Vantage enriches the costs from that provider's cost integration: **Anthropic**, **OpenAI**, **Google Cloud** (Vertex AI and Google AI Studio), **AWS Bedrock**, **Azure**, **SpaceXAI**, or **Baseten**.

OpenRouter Broadcast is the source of usage and attribution, not of cost. Your cost integrations remain the financial source of truth: enrichment reattributes the costs they report and never creates, removes, or reprices them.

> [!NOTE]
>
> The OpenRouter Broadcast feed is separate from the [OpenRouter cost integration](https://docs.vantage.sh/connecting_openrouter.md). The cost integration imports your OpenRouter bill with a Management API key. The Broadcast feed receives per-request traces that OpenRouter pushes to Vantage with an ingest token. Vantage does not read from your OpenRouter account to receive traces, and there is no S3 bucket or AWS role to set up.

> [!NOTE]
>
> OpenRouter's Vantage destination is in beta on the OpenRouter side. Its configuration and the attributes it sends may change before it is generally available. See [OpenRouter's Vantage documentation](https://openrouter.ai/docs/guides/features/broadcast/vantage).

## Use OpenRouter Broadcast with Tokenomics

With **AI Reports** turned on for the feed, each OpenRouter request appears in [Vantage Tokenomics](https://docs.vantage.sh/vantage_tokenomics.md) within minutes. Tokenomics Reports show efficiency metrics such as cost per 1M tokens, cache hit rate, and input-to-output ratio, which you can group by model, provider, or tag. For example, break down OpenRouter spend by feature to see what drove a spike in token costs. You don't need a cost integration for Tokenomics.

To set it up, follow [Set Up OpenRouter Broadcast](#set-up-openrouter-broadcast) and select **AI Reports** under **Uses**. [Step 3](#step-3-configure-cost-integrations) is only for enrichment. For the Roster, Classifier, and Tokenomics Reports, see [Vantage Tokenomics](https://docs.vantage.sh/vantage_tokenomics.md).

## How Enrichment Works

OpenRouter sends a trace for each request to `https://ingest.vantage.sh/v1/traces`, authenticated with an ingest token you create in Vantage. Vantage stores the traces, builds a daily usage index for each provider, and joins that usage to your costs during each provider's cost ingestion.

See [How LLM Enrichment works](https://docs.vantage.sh/llm_enrichment.md#how-it-works) for the shared indexing, join, split, and tag pipeline.

### How OpenRouter Usage Is Matched to Your Bill

Vantage reads whether OpenRouter served each request with credits or with your own key, and routes the usage to the matching costs.

* **Credit usage** is matched to your OpenRouter cost rows by day, model, token type, and OpenRouter API key. The API key name on each trace must match the API key on the cost row, so usage from one key never lands on another key's costs. A credit row is enriched only when it has a token type.
* **BYOK usage** is matched to the upstream provider's cost rows by day, model, and token type. OpenRouter doesn't report which upstream account, project, or API key served a BYOK request, so Vantage spreads the usage across the matching cost rows for that provider in proportion to each row's billed token usage.

Vantage only uses BYOK usage when the trace explicitly reports whether the request was BYOK and the provider that served it. Requests without that information are skipped.

A credit row has a token type only when OpenRouter's billed dollars for that day fully cover the spend. That split starts with usage on November 21, 2026. Earlier days, and days OpenRouter could not split, stay one row with no token type and are not enriched. A **Reasoning Tokens** row is enriched as output, because completion tokens on the trace already include reasoning. See [OpenRouter reporting dimensions](https://docs.vantage.sh/connecting_openrouter.md#openrouter-reporting-dimensions).

> [!WARNING]
>
> Bring-your-own-key requests also appear in the **BYOK** category on your [OpenRouter cost integration](https://docs.vantage.sh/connecting_openrouter.md). That category is the inference spend OpenRouter reports for your own keys. Cost Reports can split it into the same token kinds, but enrichment uses the upstream provider's bill. If you also import that provider directly, exclude the overlapping BYOK category when you combine reports.

#### What Each Provider Supports

| Cost integration | OpenRouter traffic | Token types enriched | Not enriched |
| - | - | - | - |
| [OpenRouter](https://docs.vantage.sh/connecting_openrouter.md) | Credits | Input, cache read, cache write, output | BYOK category rows, and credit rows with no token type, including partial coverage and any day before November 21, 2026 |
| [Anthropic](https://docs.vantage.sh/connecting_anthropic.md) | BYOK | Input, cache read, cache write, output | — |
| [OpenAI](https://docs.vantage.sh/connecting_openai.md) | BYOK | Input, cache read, cache write, output | — |
| [Google Cloud](https://docs.vantage.sh/connecting_gcp.md) | BYOK through Google Vertex AI or Google AI Studio | Input, cache read, cache write, output | Claude models on Vertex AI |
| [AWS](https://docs.vantage.sh/connecting_aws.md) (Amazon Bedrock) | BYOK through Amazon Bedrock or Amazon Nova | Input, cache read, cache write, output | Batch inference rows |
| [Azure](https://docs.vantage.sh/connecting_azure.md) | BYOK | Input, cache read, output | Global, regional, and batch deployment rows |
| [SpaceXAI](https://docs.vantage.sh/connecting_spacexai.md) | BYOK | Input, cache read, output | Rows not billed by token, such as search or image generation |
| [Baseten](https://docs.vantage.sh/connecting_baseten.md) | BYOK through Baseten Model APIs | Input, cache read, output | Dedicated Inference rows |

OpenRouter's traces don't report the service tier, batch mode, or deployment type that the upstream provider actually billed. Vantage treats BYOK usage as standard, non-batch usage, so cost rows billed at another tier or as batch keep their costs without enrichment tags.

### How Cost Rows Are Split

Vantage splits each matching provider cost row into enriched rows, allocated proportionally by token share. Splits are additive, so the enriched rows always reconcile to the original total: usage your logs do not cover stays on a **leftover** row, and cost rows with no matching usage, along with tax line items, pass through unsplit. Enabling enrichment never changes your totals.

> [card] [How Cost Splitting Works](https://docs.vantage.sh/llm_enrichment.md#how-cost-rows-are-split)
>
> See the allocation formula, a worked example, and how leftover rows keep totals reconciled.

### Data Freshness and Backfill

Enrichment runs as part of each provider's existing cost ingestion, so it follows that provider's refresh cadence. Recent days are reprocessed within a rolling three-day window so late-arriving traces are picked up. See the [provider data refresh documentation](https://docs.vantage.sh/provider_data_refresh.md) for per-provider timing.

Enrichment begins from when OpenRouter starts sending traces to Vantage. It does not backfill spend from before Broadcast was turned on. Credit costs are enriched only from November 21, 2026, the first day OpenRouter reports billed dollars per token kind. OpenRouter does not backfill earlier days, so those stay one row per category and are not enriched. Re-enrichment reads the already-normalized cost data, so it does not require a full cost re-import.

## Prerequisites

Before you begin, make sure:

* LLM Enrichment is enabled for your Vantage account. OpenRouter Broadcast appears in the console only when it is, even if you use it only for Tokenomics. See the note at the top of this page.
* For Tokenomics, your account also has access to [Vantage Tokenomics](https://docs.vantage.sh/vantage_tokenomics.md). Otherwise, **AI Reports** doesn't appear under **Uses**.
* For enrichment, at least one cost integration exists for the traffic you want to enrich:
  * For credit usage, an [OpenRouter cost integration](https://docs.vantage.sh/connecting_openrouter.md). Connect it with an **Organization** Management API key. Keys created under a **Personal** workspace in OpenRouter fail validation.
  * For BYOK usage, a cost integration for the upstream provider: [Anthropic](https://docs.vantage.sh/connecting_anthropic.md), [OpenAI](https://docs.vantage.sh/connecting_openai.md), [Google Cloud](https://docs.vantage.sh/connecting_gcp.md), [AWS](https://docs.vantage.sh/connecting_aws.md), [Azure](https://docs.vantage.sh/connecting_azure.md), [SpaceXAI](https://docs.vantage.sh/connecting_spacexai.md), or [Baseten](https://docs.vantage.sh/connecting_baseten.md).
* You can edit **Settings** > **Observability** in your OpenRouter account.
* You have a Vantage **Organization Owner** or **Integration Owner** role. See [Role-Based Access Control](https://docs.vantage.sh/rbac.md).

## Set Up OpenRouter Broadcast

Setup has two parts: [create the feed and an ingest token in Vantage](#step-1-create-the-feed-and-an-ingest-token), then [add the token to OpenRouter's Vantage destination](#step-2-add-the-token-to-openrouter). For enrichment, then [choose which cost integrations to enrich](#step-3-configure-cost-integrations).

### Step 1: Create the Feed and an Ingest Token

**1. Open the OpenRouter Broadcast integration**

In Vantage, go to the [Integrations page](https://console.vantage.sh/settings/integrations). Under **LLM Enrichment**, select **OpenRouter Broadcast**.

**2. Connect the source**

On the **OpenRouter Broadcast** page, select **Connect Source**. Vantage creates an OpenRouter Broadcast feed for your account and opens its **Manage** tab.

**3. Choose uses**

Under **Uses**, select **Enrichment**, **AI Reports**, or both, then select **Save Uses**. **AI Reports** sends OpenRouter usage to [Tokenomics](#use-openrouter-broadcast-with-tokenomics). A new feed starts with no uses selected, and Vantage doesn't accept traces for the feed until at least one use is on.

**4. Create an ingest token**

Under **Step 1: Manage Ingest Tokens**, optionally enter a name in **Token name (optional)** (up to 100 characters, for example, `Production OpenRouter`), then select **Create token**.

**5. Copy the token**

Select **Copy** to copy the token, or **Show** to view it. It starts with `vntg_ti_`.

> [!WARNING]
>
> The full token is shown only once, while you are on the page where you created it. After you leave, the tokens table shows only the last four characters and the token cannot be retrieved. If you lose it, create a new token.

Each token is valid for 18 months. The tokens table lists each token's **Name** and the user who created it, the **Token** (last four characters), its **Created** date, and its **Status** (**Active**, **Expired**, **Revoked**, or **Paused** while the feed is paused) with its expiration or revocation date. Creating a new token keeps existing tokens valid, so you can rotate tokens without downtime.

### Step 2: Add the Token to OpenRouter

Add the token to OpenRouter's Vantage destination. For the steps and screenshots, see [OpenRouter's Vantage documentation](https://openrouter.ai/docs/guides/features/broadcast/vantage).

Paste only the token from [Step 1](#step-1-create-the-feed-and-an-ingest-token). OpenRouter adds the `Bearer` prefix when it sends traces. Keep **Cost allocation** turned on. Without it, Vantage receives only each request's total tokens and cost and can't match usage to your bill by token type. Turn on [Privacy Mode](https://openrouter.ai/docs/guides/features/broadcast#privacy-mode) so OpenRouter doesn't send prompt or completion content. Vantage doesn't need it, and usage, cost, cost allocation, and your metadata are still sent.

> [!NOTE]
>
> The Vantage setup page shows the same settings for OpenRouter's **OpenTelemetry Collector** destination. That destination also works: use the endpoint `https://ingest.vantage.sh/v1/traces` and the header `{"Authorization":"Bearer <token>"}`, replacing `<token>` with your ingest token.

> [!NOTE]
>
> The ingest token authorizes trace uploads for your account. Treat it as a secret. Revoke it in Vantage if it's exposed.

### Step 3: Configure Cost Integrations

On the feed's **Manage** tab, select **Configure Providers**. Select the connected cost integrations that should receive enrichment from OpenRouter, then select **Save**:

* Select your **OpenRouter** cost integration to enrich credit usage.
* Select the upstream provider's cost integration to enrich BYOK usage for that provider.

> [!WARNING]
>
> Select **one cost integration per provider**. OpenRouter's traces don't identify the upstream provider account for BYOK requests, so Vantage can't tell apart multiple integrations for the same provider. If more than one is selected, Vantage withholds that provider's usage rather than guess.

Vantage enriches costs for the selected integrations on each provider's next data refresh. Cost integrations you connect later are not enriched automatically; return to **Configure Providers** to add them.

### Step 4: Send a Test Request

Make a request through OpenRouter, with metadata if you want to test tagging (see [Attribute Usage with Request Metadata](#attribute-usage-with-request-metadata)). With **AI Reports** on, the request appears in Tokenomics within minutes. Enriched costs appear after the next data refresh for the provider that billed the request.

> [!TIP]
>
> The feed shows **Stable** on the **OpenRouter Broadcast** page once at least one use is on. With **AI Reports** on, confirm the request appears in [Tokenomics](https://docs.vantage.sh/vantage_tokenomics.md). For enrichment, wait for the next data refresh of a selected provider. On a Cost Report filtered to that provider, group by one of your metadata keys, such as `team`. Enriched costs show its values. If you are not sure which costs were enriched, see [Troubleshooting](#troubleshooting).

## Attribute Usage with Request Metadata

OpenRouter Broadcast Enrichment tags each enriched row with the metadata your application sends on each request. You don't need any configuration in Vantage. Add the fields to the request body you already send to OpenRouter:

* **`trace`:** Each custom key in the `trace` object becomes a tag on the enriched rows for that request's usage, for example `team` or `cost_center`.
* **`user`:** Your end user's ID. It becomes the `vntg:ai:user_id` tag.

```json theme={null}
{
  "model": "openai/gpt-4o",
  "messages": [{ "role": "user", "content": "Summarize this support ticket..." }],
  "user": "user_12345",
  "trace": {
    "trace_name": "Support Triage",
    "generation_name": "Summarize Ticket",
    "team": "support",
    "feature": "ticket-summary",
    "cost_center": "CC-1234"
  }
}
```

This request's usage is tagged `team=support`, `feature=ticket-summary`, `cost_center=CC-1234`, and `vntg:ai:user_id=user_12345`. OpenRouter uses `trace_name`, `generation_name`, `span_name`, `trace_id`, and `parent_span_id` to structure the trace, as described in [OpenRouter's documentation](https://openrouter.ai/docs/guides/features/broadcast/vantage#custom-metadata).

Vantage applies these rules to your metadata:

* **Keys are converted to snake case:** For example, `costCenter` becomes `cost_center`.
* **Values must be short and simple:** Each value must be a string, number, or boolean of up to 256 characters. Keys can be up to 128 characters, and Vantage keeps up to 64 keys per request.
* **Some keys are never tags:** Vantage ignores the keys OpenRouter uses for tracing and identity, such as `trace_id`, `session_id`, `request_id`, and `organization_id`. It also ignores keys that look like they hold content or secrets, such as keys that contain `prompt`, `input`, `output`, `message`, `content`, `key`, `token`, `password`, or `secret`.
* **Keys that match a Vantage-managed name get the `vntg:ai:` prefix:** For example, a `model` key becomes `vntg:ai:model`.

Follow these guidelines for metadata:

* **Keep casing consistent:** Vantage stores tag values exactly as sent, so `Support` and `support` become two different values. Standardize values in your applications, or merge variants afterward with a [Virtual Tag](https://docs.vantage.sh/tagging.md).
* **Use bounded values:** Keys like team, feature, and environment work well. Avoid per-request identifiers such as request IDs or timestamps.
* **Do not send secrets or personal data:** Metadata values become visible tags in Vantage.

### Attribute Credit Usage by API Key

For credit usage, Vantage also tags each enriched row with the OpenRouter API key name as `vntg:ai:api_key_id`. To attribute spend without changing request bodies, create a separate OpenRouter API key for each team or application. BYOK rows don't carry this tag, because an OpenRouter API key doesn't identify the upstream provider key that served the request.

## Manage Your OpenRouter Broadcast Feed

Manage your feed from the [**OpenRouter Broadcast** integration page](https://console.vantage.sh/settings/open_router_enrichment_sources). Each account has one OpenRouter Broadcast feed. The **Connected Feeds** table lists it with its **Feed Token**, **Status**, and **Created On** date. Select the feed token to open the feed's **Manage** tab.

### Choose Which Integrations Are Enriched

On the **Manage** tab, select **Configure Providers** to change which connected cost integrations receive enrichment. You can enrich one cost integration per provider. Disabling an integration stops going-forward enrichment for it but leaves its existing enriched history in place.

### Manage Ingest Tokens

Create additional tokens under **Step 1: Manage Ingest Tokens** on the **Manage** tab, for example to rotate a token before it expires. To rotate a token, create a replacement, update the **API key** on OpenRouter's Vantage destination and select **Test Connection**, then select **Revoke** next to the old token and confirm with **Revoke token** in the **Revoke ingest token?** dialog. Requests that use a revoked token are rejected within about 30 seconds, and other tokens keep working. Revoking cannot be undone.

You can also list, create, and revoke ingest tokens with the Vantage API. See [List ingest tokens](https://docs.vantage.sh/api/ingesttokens/list-ingest-tokens.md), [Create ingest token](https://docs.vantage.sh/api/ingesttokens/create-ingest-token.md), and [Revoke ingest token](https://docs.vantage.sh/api/ingesttokens/revoke-ingest-token.md).

### Pause or Resume a Use

To pause enrichment, open the feed's **Manage** tab and, under **Uses**, select **Pause** next to **Enrichment**. Vantage stops enriching new cost data for the feed, but your existing enriched history is left unchanged. You can pause **AI Reports** the same way. While at least one use is on, the feed's ingest tokens keep working.

To resume, select **Resume** next to the use.

> [!NOTE]
>
> If you pause every use, Vantage stops accepting traces for the feed. Your tokens aren't revoked, and they start working again when you resume a use. To stop OpenRouter from sending traces, turn off the Vantage destination in OpenRouter, and revoke its ingest tokens if you no longer need them.

## View Enriched Costs on Cost Reports

Once enrichment runs, a single provider cost line is split into multiple rows, each carrying enrichment tags. You can filter and group by these tags anywhere tags are supported: [Cost Reports](https://docs.vantage.sh/cost_reports.md), [Virtual Tags](https://docs.vantage.sh/tagging.md), [Budgets](https://docs.vantage.sh/budgets.md), and [Cost Alerts](https://docs.vantage.sh/cost_alerts.md).

Because enrichment splits (allocates) your provider costs, enrichment tags behave like Vantage's [cost allocation tags](https://docs.vantage.sh/tagging.md#cost-allocation-tags): you can build a Virtual Tag on them, but a cost can be allocated only once, so an enrichment tag can belong to only [one allocation chain](https://docs.vantage.sh/tagging.md#virtual-tag-allocation-rules).

### Enrichment Tag Reference

| Tag key | Description | Example value |
| - | - | - |
| *Your metadata keys* | Each custom key in the request's `trace` object becomes a tag on the enriched rows for that request's usage. | `team=support` |
| `vntg:ai:user_id` | The `user` field on the request. | `vntg:ai:user_id=user_12345` |
| `vntg:ai:api_key_id` | The name of the OpenRouter API key the request used. Credit usage only. | `vntg:ai:api_key_id=support-bot` |
| `gateway` | Always `openrouter`, so you can separate OpenRouter traffic from other traffic on the same provider bill. | `gateway=openrouter` |
| `upstream_provider` | The provider that served the request, as reported by OpenRouter. | `upstream_provider=Anthropic` |
| `vntg:ai:model` | The normalized model identifier that generated the cost, derived from the cost row. Vantage adds it to every enriched row. | `vntg:ai:model=claude-sonnet-4-5` |
| `vntg:ai:model_provider` | The provider family inferred from the model (for example, OpenAI, Anthropic, Google), added automatically alongside `vntg:ai:model` when the family is recognized. | `vntg:ai:model_provider=Anthropic` |
| `vntg:ai:token_type` | The token kind the enriched row covers: `input`, `output`, `cache_read`, or `cache_write`. A Reasoning Tokens cost row is tagged `output`. Added automatically to every enriched row. | `vntg:ai:token_type=input` |
| *Provider's existing tags* | Any tags Vantage already puts on the provider's cost rows are preserved on the enriched rows, including [Managed AI Tags](https://docs.vantage.sh/managed_ai_tags.md). If a non-managed provider tag shares a key with a usage tag, the enrichment value wins. | — |

Your metadata keys appear as tags without a provider prefix, so a key like `team` lines up with the same key from other enrichment sources, and you can group your entire AI stack by one tag.

> [!NOTE]
>
> The leftover row (usage not covered by OpenRouter traces) keeps the provider's existing tags and the applicable `vntg:ai:*` tags but carries none of the usage tags. Request identifiers are never turned into tags.

Enrichment tags behave like any other provider tag in the console:

* **To group:** open the **Group By** menu, select **Tag**, and choose the tag key, for example `vntg:ai:model`, or one of your own keys such as `team`.
* **To filter:** open the **Filters** menu, click **New Rule**, select **Tag**, choose the **Tag Key**, then pick an operator and one or more values.

The tag keys appear in the **Tag Key** dropdown once enriched costs exist. If you use a handful of keys often, mark them as [preferred tags](https://docs.vantage.sh/tagging.md#preferred-tags) so they sort to the top of these menus.

## Troubleshooting

> [accordion] Test Connection fails in OpenRouter
>
> * Confirm you pasted the full ingest token, starting with `vntg_ti_`, into **API key** with no `Bearer` prefix.
> * Confirm the token is **Active** (not **Expired** or **Revoked**) under **Step 1: Manage Ingest Tokens** on the feed's **Manage** tab.
> * Confirm at least one use is on under **Uses**. Vantage rejects traces for a feed with no uses turned on.

> [accordion] Enriched costs don't appear
>
> Enrichment runs during each provider's regular cost ingestion, so enriched costs appear only after the next data refresh of a provider the feed enriches. See the [provider data refresh documentation](https://docs.vantage.sh/provider_data_refresh.md) for per-provider timing. If enriched costs still don't appear after that refresh, check the following:
>
> * **Enrichment** is turned on under **Uses** on the feed's **Manage** tab.
> * **Enable Broadcast** is on in OpenRouter, and the Vantage destination is saved with a passing **Test Connection**.
> * Requests are flowing through OpenRouter after you turned on Broadcast.
> * At least one cost integration is selected under **Configure Providers** ([Step 3](#step-3-configure-cost-integrations)).

> [accordion] BYOK usage isn't enriched
>
> * Confirm you selected the upstream provider's cost integration, not only the OpenRouter cost integration, under **Configure Providers**.
> * Confirm the provider is supported. See [What Each Provider Supports](#what-each-provider-supports).
> * Confirm **Cost allocation** is on for the Vantage destination in OpenRouter. Vantage skips BYOK usage when a trace doesn't report whether the request used your own key.
> * Confirm only one cost integration is selected for that provider. Otherwise, Vantage withholds that provider's usage.
> * Cost rows billed at a non-standard service tier, as batch, or for non-token usage keep their costs without enrichment tags.

> [accordion] Credit usage isn't matched to my OpenRouter costs
>
> * Confirm your OpenRouter cost integration is selected under **Configure Providers**.
> * Credit usage is matched by OpenRouter API key. Confirm the requests used an API key from the same OpenRouter organization as the cost integration's Management API key.
> * Credit rows with no token type are not enriched. That includes any day before November 21, 2026, and later days where OpenRouter's billed token-kind dollars do not fully cover the row.
> * Allow a full data refresh for OpenRouter to complete after connecting. Enrichment applies on the next refresh.

> [accordion] I get an authorization error when I connect the OpenRouter cost integration
>
> OpenRouter Management API keys created under a **Personal** workspace can't read your organization's billing analytics. Create the Management API key under your **Organization** in OpenRouter, then connect again. See [OpenRouter](https://docs.vantage.sh/connecting_openrouter.md).

> [accordion] Custom tags from my trace metadata are missing
>
> * Confirm your application sends the keys inside the `trace` object of the request body.
> * Look for the key in snake case. For example, `costCenter` appears as `cost_center`.
> * Rename keys that contain words like `input`, `output`, `prompt`, `content`, `key`, or `token`. Vantage ignores them.
> * Keep values to strings, numbers, or booleans of up to 256 characters.
> * Allow the next data refresh for the provider to complete. If the tags still don't appear, contact [Vantage Support](mailto:support@vantage.sh).

> [accordion] My costs are not being split
>
> Enrichment can only split costs by dimensions present in your usage. Costs pass through without allocation splits when any of the following is true:
>
> * Enrichment is paused, or no usage was received for that billing period.
> * The cost row's model or token type could not be matched to OpenRouter usage for that provider, date, and token kind.
> * The requests carried no metadata or user, so there was nothing to split by. Add [request metadata](#attribute-usage-with-request-metadata).

> [accordion] I lost my ingest token
>
> Tokens are shown only once and cannot be retrieved later. Create a new token under **Step 1: Manage Ingest Tokens**, update the **API key** on OpenRouter's Vantage destination, and select **Test Connection**. Then revoke the old token. If copying fails in your browser, select **Show** and copy the token manually before you leave the page.

> [accordion] I can't tell which costs were enriched
>
> Enrichment tags appear in the console as regular provider tags. On a Cost Report, filter to the provider, then group by one of your own tag keys. Costs from requests that carried that key show its values. The leftover row (the portion of the bill your usage did not cover) and any usage sent without that key appear as **Not tagged with** the key name.

> [accordion] My totals changed after enabling enrichment
>
> Totals should not change. Splits are additive and always sum to the original cost row to the cent, even when multiple sources are connected. If a total appears different, this is not expected behavior; contact [Vantage Support](mailto:support@vantage.sh).

## Use Cases

Each row below shows example attribution to set up in OpenRouter and what it enables in Vantage. The metadata keys are examples; you choose your own.

| Use Case | Set up in OpenRouter | What It Enables |
| - | - | - |
| Chargeback by team | A `team` key in `trace`, or an OpenRouter API key per team | Group a [Cost Report](https://docs.vantage.sh/cost_reports.md) by `team` or `vntg:ai:api_key_id` for per-team LLM chargeback, or roll values into a business hierarchy with a [Virtual Tag](https://docs.vantage.sh/tagging.md). |
| Per-customer cost of goods sold | A `customer` key in `trace` | Attribute model spend to each of your customers to understand AI margins by account. |
| BYOK spend by application | A `feature` or `application` key in `trace` on requests that use your own provider keys | Split your Anthropic, OpenAI, or other provider bill by the applications that sent requests through OpenRouter. |
| Per-user spend | The `user` field | Group costs by `vntg:ai:user_id` to find your heaviest users. |
| Environment separation | An `environment` key in `trace` | Filter non-production inference out of showback reports, or budget each environment separately. |

## Frequently Asked Questions

> [accordion] Which costs can be enriched?
>
> OpenRouter credit usage enriches your [OpenRouter cost integration](https://docs.vantage.sh/connecting_openrouter.md). BYOK usage enriches the upstream provider's cost integration: Anthropic, OpenAI, Google Cloud (Vertex AI and Google AI Studio), AWS Bedrock, Azure, SpaceXAI, or Baseten. See [What Each Provider Supports](#what-each-provider-supports).

> [accordion] Do I need the OpenRouter cost integration?
>
> Only to enrich credit usage. To enrich BYOK usage, you need the upstream provider's cost integration instead. You don't need a cost integration to see OpenRouter usage in Tokenomics.

> [accordion] What permissions does Vantage need in my OpenRouter account?
>
> None for the Broadcast feed. OpenRouter pushes traces to Vantage with the ingest token you create, and Vantage doesn't call OpenRouter to receive them. The separate OpenRouter cost integration uses a read-only Management API key to import your bill.

> [accordion] Do I need to change my application code?
>
> Not to send traces; you turn on Broadcast in OpenRouter. To attribute costs by your own dimensions, add keys to the `trace` object or set `user` on your requests, or use a separate OpenRouter API key per team or application.

> [accordion] Can Vantage enrich costs from before I turned on Broadcast?
>
> No. Enrichment starts from when OpenRouter starts sending traces to Vantage.

> [accordion] Should I also use Custom LLM Enrichment for the same traffic?
>
> No. If the same requests are reported by both OpenRouter Broadcast and [Custom LLM Enrichment](https://docs.vantage.sh/custom_llm_enrichment.md) or another gateway source, your cost isn't double counted, but each source's tags get only part of the matching cost. Send each request's usage through one enrichment source.

> [accordion] What Vantage permissions do I need to enable this?
>
> You need the **Organization Owner** or **Integration Owner** role to connect the source. Viewing the enriched costs does not require a special role; the resulting tags follow the same access rules as other cost data. See [Role-Based Access Control](https://docs.vantage.sh/rbac.md).

> [accordion] Will this change my totals or break existing reports?
>
> No. Splits are additive and always sum to the original cost row. Existing provider-level reports continue to show the same totals; enrichment only makes new dimensions available on the underlying rows.

> [accordion] Does Vantage store my prompt content?
>
> Enrichment uses the model, provider, token counts, costs, and the metadata on each trace. Turn on Privacy Mode for the Vantage destination in OpenRouter, as recommended in [Step 2](#step-2-add-the-token-to-openrouter), so OpenRouter doesn't send prompt or completion content. This data is not used to train any models.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.