Skip to content

OpenRouter API密钥获取

OpenRouter 是一个AI模型聚合平台,可以通过统一的API访问多个模型。


📝 获取步骤

1. 访问 OpenRouter

打开 OpenRouter

2. 注册账号

  1. 点击 "Sign In"
  2. 使用 Google、Discord 或邮箱注册

3. 获取API Key

  1. 登录后点击右上角用户图标
  2. 选择 "Keys"
  3. 点击 "Create Key"
  4. 复制生成的 API Key

⚙️ 在NativeTavern中配置

  1. 打开NativeTavern,进入API设置
  2. 点击"新建"
  3. 填写配置:
    • 模型平台: OpenRouter
    • API密钥: 粘贴你的密钥
    • 模型: 选择想要使用的模型
  4. 点击保存

🌟 OpenRouter 优势

  • 一个账号多个模型: Claude、GPT、Gemini、LLaMA等
  • 统一计费: 只需给OpenRouter充值
  • 免费模型: 提供一些免费可用的模型
  • 无地区限制: 相对更容易访问

💰 费用说明

OpenRouter 采用按使用量计费,不同模型价格不同。你可以在网站上查看各模型的实时价格。


🎯 热门模型推荐

模型特点
anthropic/claude-3.5-sonnet角色扮演首选
openai/gpt-4o综合能力强
google/gemini-2.0-flash速度快
meta-llama/llama-3.1-70b开源大模型

返回API密钥列表

Released under the MIT License.