# Set up OpenRouter

Last validated Jun 8, 2026

\[Missing snippet: aperture\_release\_note.mdx]

Configure an OpenRouter provider in Aperture so your team can access models from multiple LLM providers through a single API. OpenRouter aggregates models from providers like Google, Meta, and others, including open-source models.

\[Missing snippet: aperture\_any\_provider.mdx]

## Prerequisites

Before you begin, you need:

* An Aperture instance accessible from your device. Refer to [get started with Aperture][kb-aperture-get-started] if you have not set this up.
* An [OpenRouter API key][xt-openrouter-keys].

## Configure the provider

Add OpenRouter as a provider in your [Aperture configuration][kb-aperture-configuration]:

```json
{
  "providers": {
    "openrouter": {
      "baseurl": "https://openrouter.ai/api/",
      "apikey": "<your-openrouter-key>",
      "models": [
        "qwen/qwen3-235b-a22b-2507",
        "google/gemini-2.5-pro-preview",
        "x-ai/grok-code-fast-1"
      ]
    }
  }
}
```

OpenRouter uses OpenAI-compatible defaults (`bearer` authorization, `openai_chat`), so no compatibility flags or authorization overrides are needed. OpenRouter does not support the Responses API (`openai_responses`), only the chat completions API. This makes OpenRouter useful if you want to access models from multiple providers without configuring each one separately in Aperture.

Model names on OpenRouter use a `provider/model` prefix format. Browse the [OpenRouter model directory][xt-openrouter-models] to find available model names. Refer to the [provider compatibility reference][kb-provider-compatibility] for the full list of flags.

## Verify the provider

\[Missing snippet: aperture\_verify\_provider.mdx]

\[Missing snippet: aperture\_provider\_next\_steps.mdx]

[kb-aperture-configuration]: /docs/aperture/configuration

[kb-aperture-get-started]: /docs/aperture/get-started

[kb-provider-compatibility]: /docs/aperture/provider-compatibility

[xt-openrouter-keys]: https://openrouter.ai/settings/keys

[xt-openrouter-models]: https://openrouter.ai/models
