it's free*.ai

OpenRouter

OpenRouter 是路由器,不是实验室。一个密钥、一个 /api/v1 地址,它把请求转发给真正托管该模型的人。id 以 :free 结尾的都是输入输出 $0;同一模型不带后缀就会计费。openrouter/free 别名会挑一个匹配请求的免费模型。

OpenRouter 是路由器,不是实验室。一个密钥、一个 /api/v1 地址,它把请求转发给真正托管该模型的人。id 以 :free 结尾的都是输入输出 $0;同一模型不带后缀就会计费。openrouter/free 别名会挑一个匹配请求的免费模型。

免费池现有 18 个模型 —— Nemotron 3 Ultra、MiniMax M3、Laguna、GLM 5.2 都在 —— 上下文最高 1M。DeepSeek 和 Qwen 已没有 :free 端点。新账号每分钟 20 次、每天 50 次;充值 $10 可把每日上限提到 1,000。想上公开排行榜就设置 HTTP-Referer 和 X-Title 请求头。

免费模型
18
最大上下文
1M
免费额度
18 个模型零成本
注册要求
只要邮箱,不要卡

端点

接口地址https://openrouter.ai/api/v1
环境变量OPENROUTER_API_KEY
速率限制20 requests/minute, 50 requests/day; a $10 top-up raises the day to 1,000

代码示例

npm install openai
import OpenAI from 'openai'

const client = new OpenAI({
  baseURL: 'https://openrouter.ai/api/v1',
  apiKey: process.env.OPENROUTER_API_KEY
})

const response = await client.chat.completions.create({
  model: 'openrouter/free',
  messages: [{ role: 'user', content: 'Explain closures in one paragraph.' }]
})

console.log(response.choices[0].message.content)

值得注意

你能免费使用的模型19