docs/usage/providers/vercel-ai-gateway.zh-CN.mdx
Vercel AI Gateway 是一个统一的 API,通过单一端点提供对 100+ AI 模型的访问。它提供预算管理、使用监控、负载均衡和回退处理等功能。
本文将指导您如何在 LobeHub 中使用 Vercel AI Gateway。
<Steps> ### 第一步:在 Vercel AI Gateway 中创建 API 密钥设置 页面AI 服务提供商 下,找到 Vercel AI Gateway 设置<Callout type={'warning'}> 使用过程中可能需要向 API 服务提供商付费,请参考 Vercel AI Gateway 的 定价政策。 </Callout> </Steps>
至此,您可以在 LobeHub 中使用 Vercel AI Gateway 提供的模型开始聊天了。
Vercel AI Gateway 支持多种模型提供商,包括:
openai/gpt-4o、openai/gpt-4o-mini、openai/o1 等anthropic/claude-3-5-sonnet、anthropic/claude-3-opus 等google/gemini-2.5-pro、google/gemini-2.0-flash 等deepseek/deepseek-chat、deepseek/deepseek-reasoner 等如需查看完整的支持模型列表,请访问 Vercel AI Gateway 模型。
Vercel AI Gateway 使用 OpenAI 兼容的 API 格式。基础 URL 为:
https://ai-gateway.vercel.sh/v1
您可以使用任何 OpenAI 兼容的客户端与此端点和您的 API 密钥一起使用。