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

# API リファレンス

> YouRouter モデル API 連携のリファレンス群です。

アプリを YouRouter API に直接接続するときに使うセクションです。主な呼び出しは OpenAI 互換で、Base URL は `https://api.yourouter.ai/v1` です。

## コアエンドポイント

<Card title="Create Chat Completion" icon="message" href="/ja/api-reference/chat/create">
  `model` と `messages` でテキストや画像入力を送り、返信は `choices[0].message.content` から読み取ります。
</Card>

<Card title="マルチモーダルガイド" icon="image" href="/ja/guides/multimodal">
  画像入力、プロバイダー固有のマルチモーダル、動画タスクの例をまとめています。
</Card>

## プロバイダー互換（ネイティブ）

アプリがすでに特定プロバイダーのリクエスト形に依存している場合に使います。

<CardGroup cols={2}>
  <Card title="Anthropic Messages" icon="message" href="/ja/api-reference/messages/create">
    Anthropic Messages 形式で Claude を呼び出します。
  </Card>

  <Card title="Google Generate Content" icon="sparkles" href="/ja/api-reference/google/generate-content">
    Google の `generateContent` 形式で Gemini を呼び出します。
  </Card>
</CardGroup>

## 検索エンドポイント

Web 検索や Programmable Search Engine のレスポンス形が必要なときに使います。

<Card title="Custom Search" icon="magnifying-glass" href="/ja/api-reference/search/customsearch">
  `GET /customsearch/v1` で Web 全体または特定の Programmable Search Engine を検索します。
</Card>

## 接続に必要な値

| 項目           | 値                                              |
| ------------ | ---------------------------------------------- |
| Base URL     | `https://api.yourouter.ai/v1`                  |
| 認証           | `Authorization: Bearer <YOUROUTER_API_KEY>`    |
| Content-Type | `Content-Type: application/json`               |
| デフォルトルーティング  | `vendor` 省略または `vendor: auto`                  |
| 固定ルーティング     | `openai` / `anthropic` / `google` などの `vendor` |

手順付きの導入は [API クイックスタート](/ja/quickstart) からどうぞ。
