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 Base URL
中国地区优化线路:
https://cn.crazyrouter.com
该优化线路仅用于 API 请求。账号登录、充值和控制台仍使用:
不同客户端应该填写的地址
| 使用方式 | 默认全球线路 | 中国地区优化线路 | 说明 |
|---|
| OpenAI 兼容 SDK / 客户端 | https://crazyrouter.com/v1 | https://cn.crazyrouter.com/v1 | 客户端会在该地址后继续拼接 /chat/completions、/models 等路径 |
| Claude Code / Anthropic 原生客户端 | https://crazyrouter.com | https://cn.crazyrouter.com | 客户端会自己拼接 /v1/messages,不要手动加 /v1 |
| curl / 手写 HTTP 请求 | 使用完整端点,例如 https://crazyrouter.com/v1/chat/completions | 使用完整端点,例如 https://cn.crazyrouter.com/v1/chat/completions | 手写请求时需要把完整 API 路径写出来 |
如果日志中出现 /v1/v1/models、/v1/v1/messages 或 /v1/messages/v1/messages,说明客户端配置里重复拼接了 API 路径。Claude Code / Anthropic 原生客户端请改回根域名;OpenAI 兼容客户端请只保留到 /v1。
主要端点
聊天 API
| 端点 | 方法 | 说明 |
|---|
/v1/chat/completions | POST | OpenAI Chat 格式 |
/v1/messages | POST | Anthropic Claude 格式 |
/v1/responses | POST | OpenAI Responses API |
/v1/completions | POST | Legacy Completions |
Gemini 原生格式
| 端点 | 方法 | 说明 |
|---|
/v1beta/models/{model}:generateContent | POST | 文本生成 |
/v1beta/models/{model}:streamGenerateContent | POST | 流式生成 |
图像 API
| 端点 | 方法 | 说明 |
|---|
/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 图像生成 |
/kling/v1/images/kolors-virtual-try-on | POST | Kling 虚拟试穿 |
视频 API
| 端点 | 方法 | 说明 |
|---|
/v1/video/create | POST | 统一视频创建 |
/v1/video/query | GET | 统一视频查询 |
/kling/v1/videos/text2video | POST | Kling 文生视频 |
/kling/v1/videos/image2video | POST | Kling 图生视频 |
/kling/v1/videos/multi-image2video | POST | Kling 参考图生视频 |
/kling/v1/videos/omni-video | POST | Kling Omni 视频 |
/jimeng/submit/videos | POST | 即梦视频提交 |
/jimeng/fetch/{task_id} | GET | 即梦任务查询 |
/luma/generations | POST | Luma 视频生成 |
/runwayml/v1/tasks | POST | Runway 视频生成 |
音频 API
| 端点 | 方法 | 说明 |
|---|
/v1/audio/speech | POST | 文本转语音 (TTS) |
/v1/audio/transcriptions | POST | 语音转文字 (STT) |
/suno/submit/music | POST | Suno 音乐生成 |
其他 API
| 端点 | 方法 | 说明 |
|---|
/v1/embeddings | POST | 嵌入向量 |
/v1/rerank | POST | 重排序 |
/v1/models | GET | 模型列表 |
所有端点均支持 HTTPS。使用 OpenAI 兼容客户端时,默认将 base_url 设置为 https://crazyrouter.com/v1;中国地区可使用优化线路 https://cn.crazyrouter.com/v1。账号登录、充值和控制台仍使用 https://crazyrouter.com。