> For the complete documentation index, see [llms.txt](https://docs.cherryai.com.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cherryai.com.cn/docs/jp/pre-basic/providers/openrouter.md).

# OpenRouter

OpenRouter は一つの**統一ゲートウェイ**、1つの key で200社以上の各社の会話モデル（GPT、Claude、Gemini、Llama、DeepSeek など）に接続し、トークン単位で従量課金。複数モデルの比較や、各社アカウントを一つひとつ登録できないユーザーに適しています。

## API Key を取得

* へ [OpenRouter](https://openrouter.ai/) アカウント登録
* `Settings → Keys` をクリック → `キーを作成`、コピー `sk-or-...` キー
* 任意の金額をチャージ（最低 $1）

## Cherry Studio で設定

* 開く `設定 → モデルサービス`で **OpenRouter** Provider に入り詳細ページへ
* **API キー** を入力 `sk-or-...`
* **API アドレス** デフォルト `https://openrouter.ai/api`、変更不要
* クリック **モデル一覧を取得**、OpenRouter は数百の利用可能なモデルを返します

## 推奨する使い方

OpenRouter のモデル ID は次のような形式です `<vendor>/<model>`に由来する：

| モデル ID の例                           | 実際には誰か                    |
| ----------------------------------- | ------------------------- |
| `openai/gpt-4o`                     | OpenAI GPT-4o             |
| `anthropic/claude-sonnet-4`         | Anthropic Claude Sonnet 4 |
| `google/gemini-2.0-flash`           | Google Gemini Flash       |
| `meta-llama/llama-3.3-70b-instruct` | Meta Llama 3.3 70B        |
| `deepseek/deepseek-chat`            | DeepSeek V3               |
| `x-ai/grok-4`                       | xAI Grok                  |

## 適用シーン

* **多モデル A/B 比較**：同じ Cherry Studio Provider の下で自由にモデルを切り替え、Provider を切り替える必要はありません
* **個別登録を避ける**：1つの key と1枚の請求書で200以上のモデルが使えます
* **ニッチモデル**：多くの小規模ベンダーは OpenRouter 上でのみ提供しています（Cohere、Reka など）

## Anthropic プロトコルとの関係

OpenRouter はデフォルトで OpenAI プロトコル形式を使ってすべての上流モデルをラップします。これはつまり：

* ✅ 通常の会話、ナレッジベース、ショートカットアシスタントはすべて利用可能
* ⚠️ [Cherry Agent](/docs/jp/cherry-studio/preview/agent.md) **直接使うことを推奨** Anthropic / CherryIN を直接使い、OpenRouter は使わないでください（Agent には Anthropic のネイティブプロトコルが必要です）

{% hint style="info" %}

* OpenRouter は元の提供元価格に少し上乗せされます（通常 5-10%）。その代わり「1つのアカウントで共通利用」できます
* 一部のモデルは「free」版（無料・速度制限あり）を利用できます。絞り込み時は `(free)` というサフィックス付きの項目
* 詳細な料金表は [OpenRouter Models](https://openrouter.ai/models)
  {% endhint %}

***

### 💡 ヘルプの取得とフィードバックの送信

設定や使用の過程で疑問、Bug、機能改善の提案がある場合は、 [フィードバックと提案](/docs/jp/question-contact/suggestions.md) に記載の公式チャネルをご参照ください。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cherryai.com.cn/docs/jp/pre-basic/providers/openrouter.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
