# LLMsRelay — AI 系统完整参考 > LLMsRelay 是面向开发者的独立 Claude API gateway,支持 Anthropic Messages API、OpenAI 兼容端点、API Key、usage 计费和 IDE 集成。 Updated: 2026-08-14 ## Overview 注册即时完成,不需要 Anthropic 账号。模型访问权限由 API Key、Key 分组和允许模型设置决定。 ## API 接口 - Anthropic 兼容 base URL:`https://api.llmsrelay.com` - Messages API:`POST /v1/messages` - OpenAI 兼容 base URL:`https://api.llmsrelay.com/v1` - Chat Completions:`POST /v1/chat/completions` - 模型列表:`GET /v1/models` - 健康检查:`GET /healthz` - Anthropic 鉴权:`x-api-key: YOUR_API_KEY` - OpenAI 兼容鉴权:`Authorization: Bearer YOUR_API_KEY` - 文档 Markdown 镜像:在 `llmsrelay.com` 文档 URL 后添加 `.md` 或 `.tldr.md`。 ## 当前公开模型目录 当前 Claude 模型目录通过 GET /v1/models 返回,并会根据 API Key 分组和允许模型设置进行过滤。 | 模型 | Model ID | 上下文 | Thinking | Key 访问 | | --- | --- | --- | --- | --- | | Claude Opus 5 | `claude-opus-5` | 1M | Yes | Basic, Pro | | Claude Fable 5 | `claude-fable-5` | 1M | Yes | Basic, Pro | | Claude Opus 4.8 | `claude-opus-4.8` | 1M | Yes | Claude key groups | | Claude Opus 4.7 | `claude-opus-4.7` | 1M | Yes | Claude key groups | | Claude Opus 4.6 | `claude-opus-4.6` | 1M | Yes | Claude key groups | | Claude Sonnet 5 | `claude-sonnet-5` | 1M | Yes | Claude key groups | | Claude Sonnet 4.6 | `claude-sonnet-4.6` | 1M | Yes | Claude key groups | | Claude Haiku 4.5 | `claude-haiku-4.5` | 200K | Yes | Claude key groups | ### 短别名 | 别名 | 解析到 | | --- | --- | | `opus` | `claude-opus-4.8` | | `sonnet` | `claude-sonnet-4.6` | | `haiku` | `claude-haiku-4.5` | Basic 和 Pro Claude Key 包含标注为 Basic/Pro 的两款新模型。具体 Key 的最终来源始终是 GET /v1/models。 ## 套餐与 usage LLMsRelay 提供无自动续费的一次性用量包:$45 获得 $500 用量,$90 获得 $1,000,$450 获得含固定 20% 奖励的 $6,000,$900 获得含固定 30% 奖励的 $13,000。 | 产品 | 价格 | 用量 | | --- | --- | --- | | $500 usage pack | $45 one time | $500 usage | | $1,000 usage pack | $90 one time | $1,000 usage | | $5,000 + 20% pack | $450 one time | $6,000 total usage | | $10,000 + 30% pack | $900 one time | $13,000 total usage | 可用付款方式和地区限制会在 checkout 页面显示。平台在支持的地区提供银行卡和加密货币付款流程。 ## FAQ **LLMsRelay 是什么?** 独立的 Claude API gateway,同时提供 Anthropic 兼容和 OpenAI 兼容 API 接口。 **应该使用哪些模型 ID?** 使用 GET /v1/models 返回的精确 ID。生产客户端不要硬编码模型列表。 **需要 Anthropic 账号吗?** 不需要。LLMsRelay 的注册和 API Key 管理独立于 Anthropic Console。 **如何计费?** 用量按 Anthropic-equivalent usage 计算,并从 API Key 关联的余额中扣除。 **有哪些用量包?** 共有四个一次性用量包:$45 → $500,$90 → $1,000,$450 → $6,000(含 20%),$900 → $13,000(含 30%)。 **可以连接 IDE 吗?** 可以。Claude Code 和 Anthropic SDK 使用 Anthropic base URL;兼容客户端使用带 /v1 的 OpenAI-compatible base URL。 ## Documentation index ### 文档中心 - [LLMsRelay 中文文档](https://llmsrelay.com/zh/docs/) ### Getting started - [LLMsRelay API 快速入门](https://llmsrelay.com/zh/docs/getting-started/) - [身份认证 — Claude API Key 配置](https://llmsrelay.com/zh/docs/getting-started/authentication/) - [Claude 模型介绍 — Opus 5、Fable 5、Sonnet 5 与 Haiku](https://llmsrelay.com/zh/docs/getting-started/models/) - [Claude API 快速入门 — 2 分钟发送第一个请求](https://llmsrelay.com/zh/docs/getting-started/quickstart/) ### API reference - [LLMsRelay API 参考](https://llmsrelay.com/zh/docs/api-reference/) - [OpenAI 与 Codex 端点 — API 参考](https://llmsrelay.com/zh/docs/api-reference/codex/) - [错误处理 — HTTP 状态码与重试策略](https://llmsrelay.com/zh/docs/api-reference/errors/) - [Claude Messages API — POST /v1/messages 完整参考](https://llmsrelay.com/zh/docs/api-reference/messages/) - [Claude API Models 端点 — 可用模型列表](https://llmsrelay.com/zh/docs/api-reference/models/) - [Claude OpenAI 兼容 API — 用 OpenAI SDK 调用 Claude](https://llmsrelay.com/zh/docs/api-reference/openai/) - [Claude API 概览 — 端点、格式与限制](https://llmsrelay.com/zh/docs/api-reference/overview/) - [Claude API 流式输出 — Server-Sent Events 实现指南](https://llmsrelay.com/zh/docs/api-reference/streaming/) ### Guides - [LLMsRelay 集成指南](https://llmsrelay.com/zh/docs/guides/) - [Claude API Key 配置指南 — 创建、限额、安全管理](https://llmsrelay.com/zh/docs/guides/api-key-configuration/) - [Claude API 最佳实践 — 安全 / 性能 / 成本优化](https://llmsrelay.com/zh/docs/guides/best-practices/) - [Claude Code CLI — 中国大陆配置指南](https://llmsrelay.com/zh/docs/guides/claude-code/) - [Codex CLI 与扩展:配置 OpenAI API](https://llmsrelay.com/zh/docs/guides/codex-cli/) - [Cursor IDE 配置 Claude API — 中国直连指南](https://llmsrelay.com/zh/docs/guides/cursor/) - [Claude Code、Cursor、Cline、Kilo、Continue、OpenCode 一键配置 Prompt](https://llmsrelay.com/zh/docs/guides/one-prompt-setup/) - [OpenAI 兼容 IDE(Cline、Roo、Continue)](https://llmsrelay.com/zh/docs/guides/openai-ides/) - [OpenClaw 配置指南](https://llmsrelay.com/zh/docs/guides/openclaw/) - [OpenCode + LLMsRelay — 开源 AI 编程 CLI 配置](https://llmsrelay.com/zh/docs/guides/opencode/) - [Claude API 速率限制 — 429、Retry-After 与吞吐建议](https://llmsrelay.com/zh/docs/guides/rate-limits/) - [通过 Claude API 推荐赚取 Solana USDT — 10% 可领取奖励](https://llmsrelay.com/zh/docs/guides/referral-program/) - [VS Code 扩展配置 — Cline / Roo Code / Continue](https://llmsrelay.com/zh/docs/guides/vscode/) ### SDKs - [LLMsRelay SDK 与客户端选择](https://llmsrelay.com/zh/docs/sdks/) - [Claude API cURL — 命令行调用完整指南](https://llmsrelay.com/zh/docs/sdks/curl/) - [Claude API Python SDK — Anthropic / OpenAI 兼容用法](https://llmsrelay.com/zh/docs/sdks/python/) - [Claude API TypeScript / Node.js SDK](https://llmsrelay.com/zh/docs/sdks/typescript/) ### Billing - [LLMsRelay 价格与积分](https://llmsrelay.com/zh/docs/billing/) - [Claude API 积分系统 — 计费规则与余额管理](https://llmsrelay.com/zh/docs/billing/credits/) - [Claude API 一次性用量包对比](https://llmsrelay.com/zh/docs/billing/plans/) - [Claude API 价格 — Token 费率与 Anthropic 等量套餐](https://llmsrelay.com/zh/docs/billing/pricing/) ### Learn - [Claude API 激活时间 — 付款到调用 2 分钟内](https://llmsrelay.com/zh/docs/learn/activation-time/) - [如何通过 AI API 获利:经销商完整指南](https://llmsrelay.com/zh/docs/learn/ai-api-reseller/) - [最便宜的 Claude API 接入 — 中国市场的低门槛验证路径](https://llmsrelay.com/zh/docs/learn/cheapest-claude-api/) - [最便宜的 OpenAI API —— 按量付费,无订阅](https://llmsrelay.com/zh/docs/learn/cheapest-openai-api/) - [Claude 3.5 vs 4.6 — 完整基准对比与迁移指南](https://llmsrelay.com/zh/docs/learn/claude-3-5-vs-4-6/) - [Claude API 网关 — LLMsRelay 架构与优势](https://llmsrelay.com/zh/docs/learn/claude-api-gateway/) - [LLMsRelay vs Anthropic 直连 — 完整对比](https://llmsrelay.com/zh/docs/learn/claude-api-vs-direct/) - [Claude Haiku 4.5 — 最便宜最快的 Claude 模型](https://llmsrelay.com/zh/docs/learn/claude-haiku/) - [Claude Opus 4.7 — Anthropic 旗舰模型介绍](https://llmsrelay.com/zh/docs/learn/claude-opus/) - [Claude Sonnet 4.6 — 性价比之王介绍](https://llmsrelay.com/zh/docs/learn/claude-sonnet/) - [Claude vs OpenAI GPT — 详细对比](https://llmsrelay.com/zh/docs/learn/claude-vs-openai/) - [Claude X20 Max 订阅 — Max 20x 价格、限制与 API 替代方案](https://llmsrelay.com/zh/docs/learn/claude-x20-max-subscription/) - [Codex CLI API —— 在 OpenAI Codex CLI 中运行 OpenAI API](https://llmsrelay.com/zh/docs/learn/codex-cli-api/) - [USDT / 加密货币付款指南 — Claude API 充值](https://llmsrelay.com/zh/docs/learn/crypto-payment/) - [Cursor 无 Anthropic 账号使用 Claude — Custom Endpoint 配置](https://llmsrelay.com/zh/docs/learn/cursor-without-anthropic/) - [免费 Claude API Key — 4 小时试用,全模型解锁](https://llmsrelay.com/zh/docs/learn/free-api-key/) - [LLMsRelay 计费规则 — Anthropic 等量用量、Cache 与余额](https://llmsrelay.com/zh/docs/learn/how-billing-works/) - [如何购买 Claude API Key — 中国大陆 2 分钟指南](https://llmsrelay.com/zh/docs/learn/how-to-buy/) - [OpenAI API 接入 —— 无需 OpenAI 账户,按量付费](https://llmsrelay.com/zh/docs/learn/openai-api/) - [OpenAI 兼容 API —— 通过 /v1/chat/completions 使用 OpenAI 模型](https://llmsrelay.com/zh/docs/learn/openai-compatible-api/) - [Claude API 计费详解 — Token、Cache 与 Anthropic 等量用量](https://llmsrelay.com/zh/docs/learn/pricing-explained/) - [Claude API 退款政策 — 未使用积分全额退还](https://llmsrelay.com/zh/docs/learn/refund-policy/) - [如何节省 Claude API 的 Token — 实用省钱技巧](https://llmsrelay.com/zh/docs/learn/save-tokens-claude-api/) - [LLMsRelay 支持的国家 — 全球无地理限制](https://llmsrelay.com/zh/docs/learn/supported-countries/) - [为何选择 LLMsRelay](https://llmsrelay.com/zh/docs/learn/why-llmsrelay/) ## Machine-readable resources - llms-zh.txt: https://llmsrelay.com/llms-zh.txt - llms-zh-full.txt: https://llmsrelay.com/llms-zh-full.txt - OpenAPI description: https://llmsrelay.com/openapi.json - API catalog: https://llmsrelay.com/.well-known/api-catalog - Sitemap: https://llmsrelay.com/sitemap.xml - 知识图谱: https://llmsrelay.com/knowledge-graph.jsonld ## Contact - Telegram: https://telegram.me/claudestorestore - 网站: https://llmsrelay.com/zh/