Vercel AI Gateway
Vercel AI Gateway 是一个 OpenAI 兼容地址,背后是数百个模型,按供应商牌价计费、不加价。每个团队每月有 $5 赠款,可用于 Free Tier 子集 —— GPT-OSS 120B、GPT-5.4 Mini、Gemma 4 31B、Gemini 2.5 Flash、Qwen 3.8 Flash Next、GLM 5.3 Flash、Kimi K2.7 Code、MiniMax M3、Nemotron 3 Super、Llama 4 Maverick、Grok 4.6、DeepSeek V3.2 Thinking。只要邮箱,不要卡。接口地址 https://ai-gateway.vercel.sh/v1,环境变量 AI_GATEWAY_API_KEY。
Vercel AI Gateway 是一个 OpenAI 兼容地址,背后是数百个模型,按供应商牌价计费、不加价。每个团队每月有 $5 赠款,可用于 Free Tier 子集 —— GPT-OSS 120B、GPT-5.4 Mini、Gemma 4 31B、Gemini 2.5 Flash、Qwen 3.8 Flash Next、GLM 5.3 Flash、Kimi K2.7 Code、MiniMax M3、Nemotron 3 Super、Llama 4 Maverick、Grok 4.6、DeepSeek V3.2 Thinking。只要邮箱,不要卡。接口地址 https://ai-gateway.vercel.sh/v1,环境变量 AI_GATEWAY_API_KEY。
赠款从第一次请求起算,每月刷新。购买额外赠金后,每月 $5 会停止 —— 你就到了付费档。免费档请求按模型限速(突发会 429)。Claude Opus/Sonnet 5、Gemini 3.7 和 GPT-5.6 不在该子集中。实时过滤见 vercel.com/ai-gateway/models?freeTier=true。
- 免费模型
- 12
- 最大上下文
- 1M
- 免费额度
- 每月 $5 赠款
- 注册要求
- 只要邮箱,不要卡
端点
https://ai-gateway.vercel.sh/v1AI_GATEWAY_API_KEYPer-model caps on the free tier; 429 if you burst- OpenAI 兼容
- 文本
- 图像
- 推理
代码示例
npm install openaiimport OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://ai-gateway.vercel.sh/v1',
apiKey: process.env.AI_GATEWAY_API_KEY
})
const response = await client.chat.completions.create({
model: 'openai/gpt-oss-120b',
messages: [{ role: 'user', content: 'Explain closures in one paragraph.' }]
})
console.log(response.choices[0].message.content)pip install openaiimport os
from openai import OpenAI
client = OpenAI(
base_url="https://ai-gateway.vercel.sh/v1",
api_key=os.environ["AI_GATEWAY_API_KEY"],
)
response = client.chat.completions.create(
model="openai/gpt-oss-120b",
messages=[{"role": "user", "content": "Explain closures in one paragraph."}],
)
print(response.choices[0].message.content)curl https://ai-gateway.vercel.sh/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $AI_GATEWAY_API_KEY" \
-d '{
"model": "openai/gpt-oss-120b",
"messages": [{"role": "user", "content": "Explain closures in one paragraph."}]
}'值得注意
- 每月 $5 赠款只能花在 Free Tier 子集上。Claude Opus/Sonnet 5、Gemini 3.7 和 GPT-5.6 是付费的。
- 购买 AI Gateway Credits 会把团队转到付费档,每月 $5 随即停止。
- 完整子集见 vercel.com/ai-gateway/models?freeTier=true —— 我们列出的是当前亮点,不是全部 id。
你能免费使用的模型12
- GPT-OSS 120B
openai/gpt-oss-120b - GPT 5.4 Mini
openai/gpt-5.4-mini - Gemma 4 31B
google/gemma-4-31b-it - Gemini 2.5 Flash
google/gemini-2.5-flash - Qwen 3.8 Flash Next
alibaba/qwen3.8-flash-next - GLM 5.3 Flash
zai/glm-5.3-flash - Kimi K2.7 Code
moonshotai/kimi-k2.7-code - MiniMax M3
minimax/minimax-m3 - Nemotron 3 Super
nvidia/nemotron-3-super-120b-a12b - Llama 4 Maverick
meta/llama-4-maverick - Grok 4.6
spacexai/grok-4.6 - DeepSeek V3.2 Thinking
deepseek/deepseek-v3.2-thinking