LobeChat
Ctrl K
Back to Discovery
OpenRouterOpenRouter
@OpenRouter
16 models
OpenRouter is a service platform providing access to various cutting-edge large model interfaces, supporting OpenAI, Anthropic, LLaMA, and more, suitable for diverse development and application needs. Users can flexibly choose the optimal model and pricing based on their requirements, enhancing the AI experience.

Supported Models

OpenRouter
Maximum Context Length
128K
Maximum Output Length
--
Input Price
--
Output Price
--
Maximum Context Length
200K
Maximum Output Length
4K
Input Price
$0.25
Output Price
$1.25
Maximum Context Length
200K
Maximum Output Length
8K
Input Price
$3.00
Output Price
$15.00
Maximum Context Length
200K
Maximum Output Length
4K
Input Price
$15.00
Output Price
$75.00

在 LobeChat 中使用 OpenRouter

在 LobeChat 中使用 OpenRouter

OpenRouter 是一个提供多种优秀大语言模型 API 的服务,它支持 OpenAI (包括 GPT-3.5/4)、Anthropic (Claude2、Instant)、LLaMA 2 和 PaLM Bison 等众多模型。

本文档将指导你如何在 LobeChat 中使用 OpenRouter:

步骤一:注册 OpenRouter 账号并登录

  • 访问 OpenRouter.ai 并创建一个账号
  • 你可以用 Google 账号或 MetaMask 钱包登录
注册 OpenRouter

步骤二:创建 API 密钥

  • 进入 Keys 菜单或直接访问 OpenRouter Keys
  • 点击 Create Key 开始创建
  • 在弹出对话框中为 API 密钥取一个名字,例如 "LobeChat Key"
  • 留空 Credit limit 表示不设置金额限制
创建 OpenRouter Key
  • 在弹出的对话框中复制 API 密钥,并妥善保存
获取 OpenRouter Key

请安全地存储密钥,因为它只会出现一次。如果您意外丢失它,您将需要创建一个新密钥。

步骤三:充值信用额度

  • 进入 Credit 菜单,或直接访问 OpenRouter Credit
  • 点击 Manage Credits 充值信用额度,在 https://openrouter.ai/models 中可以查看模型价格
  • OpenRouter 提供了一些免费模型,未充值的情况下可以使用
充值 OpenRouter 信用额度

步骤四:在 LobeChat 中配置 OpenRouter

  • 访问 LobeChat 的 设置 界面
  • 语言模型 下找到 OpenRouter 的设置项
  • 打开 OpenRouter 并填入获得的 API 密钥
在 LobeChat 中配置 OpenRouter
  • 为你的助手选择一个 OpenRouter 模型即可开始对话
使用 OpenRouter 模型

在使用过程中你可能需要向 API 服务提供商付费,请参考 OpenRouter 的相关费用政策。

至此你已经可以在 LobeChat 中使用 OpenRouter 提供的模型进行对话了。

Related Providers

LobeHubLobeHub
@LobeHub
12 models
LobeChat Cloud enables the invocation of AI models through officially deployed APIs, using a Credits system to measure the usage of AI models, corresponding to the Tokens used by large models.
OpenAIOpenAI
@OpenAI
22 models
OpenAI is a global leader in artificial intelligence research, with models like the GPT series pushing the frontiers of natural language processing. OpenAI is committed to transforming multiple industries through innovative and efficient AI solutions. Their products demonstrate significant performance and cost-effectiveness, widely used in research, business, and innovative applications.
OllamaOllama
@Ollama
40 models
Ollama provides models that cover a wide range of fields, including code generation, mathematical operations, multilingual processing, and conversational interaction, catering to diverse enterprise-level and localized deployment needs.
Anthropic
ClaudeClaude
@Anthropic
8 models
Anthropic is a company focused on AI research and development, offering a range of advanced language models such as Claude 3.5 Sonnet, Claude 3 Sonnet, Claude 3 Opus, and Claude 3 Haiku. These models achieve an ideal balance between intelligence, speed, and cost, suitable for various applications from enterprise workloads to rapid-response scenarios. Claude 3.5 Sonnet, as their latest model, has excelled in multiple evaluations while maintaining a high cost-performance ratio.
AWS
BedrockBedrock
@Bedrock
14 models
Bedrock is a service provided by Amazon AWS, focusing on delivering advanced AI language and visual models for enterprises. Its model family includes Anthropic's Claude series, Meta's Llama 3.1 series, and more, offering a range of options from lightweight to high-performance, supporting tasks such as text generation, conversation, and image processing for businesses of varying scales and needs.