400+ 模型可用

LLM 统一接口

通过单一 API 访问 400+ AI 模型。更优价格,更高可用性,无需订阅。

🟣 Anthropic 🟢 OpenAI 🔵 Google Meta 🟤 Mistral 🔴 Cohere 🟡 Perplexity

构建 AI 应用所需的一切

一个 API,所有模型。企业级基础设施,开发者友好的体验。

🔌

统一 API 接口

通过单一标准化 API 端点访问所有主流 AI 模型。完全兼容 OpenAI SDK — 只需更改基础 URL 即可立即开始使用。

高可用性

基于多提供商分布式基础设施构建。当某个提供商宕机时,我们会自动路由到备份节点 — 确保您的应用拥有 99.9% 的正常在线时间。

💰

成本优化

所有提供商透明按量付费定价。自动路由到满足您性能要求且最具成本效益的模型。

🔒

数据隐私控制

细粒度的数据隐私控制让您准确指定哪些提供商可以接收您的提示。您的数据始终留在您希望的位置。

直接替代 OpenAI SDK

已经在使用 OpenAI?几秒钟内完成切换。只需将基础 URL 更改为 openrouter.ai/api/v1,您的代码即可适用于所有模型。

  • 支持 Python、Node.js 和 REST API
  • 所有模型均支持流式传输
  • 函数调用和工具使用
  • 视觉和多模态能力
📚 阅读文档
Python Node.js cURL
from openai import OpenAI

client = OpenAI(
    base_url="https://openrouter.ai/api/v1",
    api_key="<YOUR_API_KEY>",
)

# Access any of 400+ models
response = client.chat.completions.create(
    model="anthropic/claude-3.5-sonnet",
    messages=[
        {
            "role": "user",
            "content": "Hello, Claude!"
        }
    ]
)

print(response.choices[0].message.content)

精选 AI 模型

平台上当前使用最多的模型。在我们的目录中浏览所有 400+ 模型。

Anthropic
Claude 3.5 Sonnet
🔥 HOT

Most intelligent model with exceptional coding, analysis, and writing capabilities.

📝 200K context Text Vision Code
Input: $3.00/1M Output: $15.00/1M
OpenAI
GPT-4o

Versatile multimodal model with excellent performance across a wide range of tasks.

📝 128K context Text Vision Code
Input: $5.00/1M Output: $15.00/1M
Google
Gemini 1.5 Pro
NEW

Ultra-long context window model from Google with strong reasoning capabilities.

📝 2M context Text Vision Video
Input: $1.25/1M Output: $5.00/1M
Meta
Llama 3.1 405B
FREE

Meta's largest open source model with frontier-level performance.

📝 128K context Text Code
Input: Free Output: Free
Mistral AI
Mistral Large 2

Mistral's flagship model with top-tier reasoning and multilingual capabilities.

📝 128K context Text Code Function Calling
Input: $3.00/1M Output: $9.00/1M
Anthropic
Claude 3 Haiku

Fastest and most compact Claude model for near-instant responsiveness.

📝 200K context Text Vision
Input: $0.25/1M Output: $1.25/1M
查看所有模型 →

几分钟内开始使用

三个简单步骤,访问全球最佳 AI 模型。

1

创建账户

使用您的 Google 或 GitHub 账户注册。只需不到 30 秒,无需信用卡即可开始使用。

2

充值积分

购买适用于平台上任何模型和提供商的 API 积分。按实际使用量付费,透明的按令牌定价。

3

获取您的 API Key

生成您的 API Key 并开始发起请求。完全兼容 OpenAI 的 API 规范 — 无需新的 SDK。

🚀 免费开始构建

准备好构建令人惊叹的产品了吗?

加入数百万开发者和数千家公司,使用我们的平台为您的 AI 应用提供支持。

免费开始 阅读文档