Skip to content

OpenRouter

OpenRouter offers models from many providers through one unified API, which makes it easy to switch between and compare models.

Website: openrouter.ai

  1. Go to OpenRouter and sign in with your Google or GitHub account.

  2. Open the Keys page and copy an existing key or create a new one.

You can also click Get OpenRouter API Key in Dline settings. After you authorize in the browser, Dline receives the key automatically.

See Model configuration for the general flow.

  1. Click the Settings button in the Dline panel title bar.

  2. Set Provider to OpenRouter.

  3. Paste the key into the OpenRouter API Key field. Once it is filled in, your account balance appears next to the field.

  4. Search for and select a model under Model.

The key is stored locally and only used to make API requests from this extension.

  • Pricing: OpenRouter bills at the underlying model’s price. See OpenRouter Models for details.
  • Prompt caching: OpenRouter forwards caching requests to underlying models that support caching. See OpenRouter Models for which models offer it.
  • Routing: The model information area offers provider sorting options that control which underlying providers OpenRouter routes requests to.