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- OpenAI 相容
- 文字
- 影像
- 音訊
- 視訊
- 語音
- 向量嵌入
- 重排序
- 推理
程式碼範例
npm install openaiimport 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)pip install openaiimport os
from openai import OpenAI
client = OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key=os.environ["OPENROUTER_API_KEY"],
)
response = client.chat.completions.create(
model="openrouter/free",
messages=[{"role": "user", "content": "Explain closures in one paragraph."}],
)
print(response.choices[0].message.content)curl https://openrouter.ai/api/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-d '{
"model": "openrouter/free",
"messages": [{"role": "user", "content": "Explain closures in one paragraph."}]
}'值得注意
- 以 :free 結尾的模型 id 才是零成本;不帶後綴的同一模型會計費。
- 設定 HTTP-Referer 和 X-Title 標頭才能出現在公開排行榜上。
你能免費使用的模型19
- Ling 3.0 Flash Fin
inclusionai/ling-3.0-flash-fin:free - Dots 3 Note Preview
dots-studio/dots-3-note-preview:free - LFM 2.5 2.6B
liquid/lfm-2.5-2.6b:free - Nemotron 3.5 Lightning
nvidia/nemotron-3.5-lightning:free - Inkling Small
thinkingmachines/inkling-small:free - Laguna S 2.1
poolside/laguna-s-2.1:free - Inkling
thinkingmachines/inkling:free - Laguna XS 2.1
poolside/laguna-xs-2.1:free - North Mini Code
cohere/north-mini-code:free - GLM 5.2
z-ai/glm-5.2:free - Nemotron 3.5 Content Safety
nvidia/nemotron-3.5-content-safety:free - Nemotron 3 Ultra
nvidia/nemotron-3-ultra-550b-a55b:free - MiniMax M3
minimax/minimax-m3:free - Nemotron 3 Nano Omni
nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free - Gemma 4 26B A4B
google/gemma-4-26b-a4b-it:free - Gemma 4 31B
google/gemma-4-31b-it:free - MiniMax M2.7
minimax/minimax-m2.7:free - Nemotron 3 Super
nvidia/nemotron-3-super-120b-a12b:free - Free Models Router
openrouter/free