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

# API エンドポイント

> Crazyrouter の主要 API エンドポイント一覧

> 更新日: 2026-06-16

## API Base URL

```text theme={null}
https://api.crazyrouter.com
```

`https://api.crazyrouter.com` はデフォルトの国際 API 接続入口として有効です。アカウントログイン、課金、ダッシュボードは引き続き次のドメインを使用します。

```text theme={null}
https://crazyrouter.com
```

東アジア地域では、次の API 接続先を優先してください。

```text theme={null}
https://cn.crazyrouter.com
```

SDK、IDE、エージェント、サードパーティクライアントを設定する前に、そのツールがルートドメインを要求するのか `/v1` 付きの Base URL を要求するのかを確認してください。

## クライアント別の Base URL

| 用途                                  | デフォルト国際入口                                                       | 東アジア地域の優先入口                                                    | 補足                                                     |
| ----------------------------------- | --------------------------------------------------------------- | -------------------------------------------------------------- | ------------------------------------------------------ |
| OpenAI 互換 SDK / クライアント              | `https://api.crazyrouter.com/v1`                                | `https://cn.crazyrouter.com/v1`                                | クライアントが `/chat/completions` や `/models` などを追加します       |
| Claude Code / Anthropic ネイティブクライアント | `https://api.crazyrouter.com`                                   | `https://cn.crazyrouter.com`                                   | クライアントが `/v1/messages` を自動で追加するため、`/v1` を手動で追加しないでください |
| curl / 手書き HTTP リクエスト               | 完全なエンドポイント、例: `https://api.crazyrouter.com/v1/chat/completions` | 完全なエンドポイント、例: `https://cn.crazyrouter.com/v1/chat/completions` | 手書きリクエストでは API パス全体が必要です                               |

<Warning>
  ログに `/v1/v1/models`、`/v1/v1/messages`、`/v1/messages/v1/messages` が出る場合、API パスが重複しています。Claude Code / Anthropic ネイティブクライアントはルートドメインに戻し、OpenAI 互換クライアントは `/v1` までの Base URL にしてください。
</Warning>

## 主なエンドポイント

### Chat API

| Endpoint               | Method | 説明                   |
| ---------------------- | ------ | -------------------- |
| `/v1/chat/completions` | POST   | OpenAI Chat 互換形式     |
| `/v1/messages`         | POST   | Anthropic Claude 形式  |
| `/v1/responses`        | POST   | OpenAI Responses API |
| `/v1/completions`      | POST   | レガシー Completions     |

### Gemini ネイティブ形式

| Endpoint                                       | Method | 説明        |
| ---------------------------------------------- | ------ | --------- |
| `/v1beta/models/{model}:generateContent`       | POST   | コンテンツ生成   |
| `/v1beta/models/{model}:streamGenerateContent` | POST   | ストリーミング生成 |

### 画像 API

| Endpoint                            | Method | 説明              |
| ----------------------------------- | ------ | --------------- |
| `/v1/images/generations`            | POST   | OpenAI 互換の画像生成  |
| `/v1/images/edits`                  | POST   | 画像編集            |
| `/mj/submit/imagine`                | POST   | Midjourney 画像生成 |
| `/ideogram/v1/ideogram-v3/generate` | POST   | Ideogram V3     |
| `/kling/v1/images/generations`      | POST   | Kling 画像生成      |

### 動画 API

| Endpoint                       | Method | 説明             |
| ------------------------------ | ------ | -------------- |
| `/v1/video/create`             | POST   | 統一動画作成         |
| `/v1/video/query`              | GET    | 統一動画照会         |
| `/kling/v1/videos/text2video`  | POST   | Kling テキストから動画 |
| `/kling/v1/videos/image2video` | POST   | Kling 画像から動画   |
| `/jimeng/submit/videos`        | POST   | Jimeng 動画送信    |
| `/luma/generations`            | POST   | Luma 動画生成      |
| `/runwayml/v1/tasks`           | POST   | Runway 動画生成    |

### 音声 API

| Endpoint                   | Method | 説明             |
| -------------------------- | ------ | -------------- |
| `/v1/audio/speech`         | POST   | Text-to-Speech |
| `/v1/audio/transcriptions` | POST   | Speech-to-Text |
| `/suno/submit/music`       | POST   | Suno 音楽生成      |

### その他

| Endpoint         | Method | 説明     |
| ---------------- | ------ | ------ |
| `/v1/embeddings` | POST   | 埋め込み   |
| `/v1/rerank`     | POST   | リランキング |
| `/v1/models`     | GET    | モデル一覧  |

<Note>
  すべてのエンドポイントは HTTPS に対応しています。デフォルトの国際 API 入口は `https://api.crazyrouter.com` です。東アジア地域では `https://cn.crazyrouter.com` を優先してください。アカウントログイン、課金、ダッシュボードは引き続き `https://crazyrouter.com` を使用します。
</Note>
