OpenRouter

来自牛奶河Wiki
跳到导航 跳到搜索

OpenRouter 是一个统一的 API 服务平台,旨在将各种大型语言模型(LLMs)和服务集成到一个统一的接口中。它允许用户通过简单的配置和调用,访问多个预训练的大模型,而无需自己部署和维护这些模型。

  1. 支持多种预训练模型,如 OpenAI 的 GPT-4、Claude、Gemini 等
  2. 提供部分免费开源模型,如 google/gemini-2.0-pro-exp-02-05:free

支持 Google 帐号验证登录。

OpenRouter

API Key

  1. 点击 Create API Key,创建 API(credit limit 不要填写,表示无限制使用)
  2. 生成 Key,只显示一次,注意保存
  3. Key 可以用在客户端工具中,如:ChatBox

The maximum rate limit for this model is 10.0 queries per minute. This limit differs from the general rate limits published at Together AI rate limits documentation (https://docs.together.ai/docs/rate-limits).

Chat

点击搜索框,在下拉列表中选择 free 模型。如:Google: Gemini Pro 2.0 Experimental (free),在其他工具中使用 API Key 时,输入的名称是第二行内容(如:google/gemini-2.0-pro-exp-02-05:free),第三行是发布时间/内容大小限制及费用(如:Created Feb 5, 2025 - 2,000,000 context - $0/M input tokens - $0/M output tokens)。点击第一行名称后面的 Chat,即可使用。

Tools

ChatBox

ChatBox 开源多平台 AI 客户端,支持 Windows、macOS 和 Linux,以及 IOS、Android。

设置 -> 模型

  1. 添加自定义提供方
  2. OpenAI API 兼容
  3. API 域名:https://openrouter.ai/api/v1/
  4. 路径:/chat/completions
  5. API 密钥:sk-or-v1-db98...
  6. 模型:deepseek/deepseek-r1-distill-llama-70b:free、google/gemini-2.0-pro-exp-02-05:free

目前版本,如:1.9.8 版本,支持每个对话设置“特定模型”,如 A 对话使用 deepseek/deepseek-r1:free,B 对话 使用 gemini。(对话标题名称右侧...配置)

Cherry Studio

Cherry Studio 国产多模型 AI 客户端,支持 Windows、macOS 和 Linux 系统。它集成了多种主流的大型语言模型(LLMs),如 OpenAI、Gemini 等,以及本地模型运行功能,用户可以根据需求自由切换云端和本地模型。

  1. 点击设置按钮,找到 OpenRouter,输入 API 密钥,不用检查
  2. 点击添加模型,deepseek/deepseek-r1-distill-llama-70b:free

Dify

Dify 是一个开源的 LLM 应用开发平台,它通过 HTTP 提供直观的可视化界面,帮助开发者快速构建和部署 AI 应用,支持包括模型管理、知识库、工作流编排等全方位功能。

rate limit

2025/4/8: People wanted more access to free models than the 200 requests per day we allowed, so we now allow you to go higher (1000) if you add credits. Usage won't deplete, though. They are still free. This helps us mitigate abuse.

  1. Free usage limits: If you're using a free model variant (with an ID ending in : free ), you can make up to 20 requests per minute.
  2. If your account has less than 10 credits, you're limited to 50 requests per day.
  3. If you maintain a balance of at least $10, your daily limit increases to 1000 requests per dav.