← 返回文章列表
免费API概览

OpenRouter 8款永久免费模型实测:20 RPM/50次/天限速下,qwen-2.5-7b vs deepseek-r1 怎么选(含fallbacks策略)(2026-08-29 验证)

更新时间:2026-08-29 · 官网:https://openrouter.ai/models · 验证:2026-08-29 实测 · 核验来源:https://openrouter.ai/docs/api-reference/overview · https://openrouter.ai/api/v1/models

OpenRouter 用统一 OpenAI 兼容端点聚合 300+ 模型,带 :free 后缀的模型零成本调用,是个人开发者的“免费模型超市”。本篇基于 2026-08-29 对 8 款长期可用免费模型的真机实测,给出可用性、限速与 fallbacks 兜底策略,帮你在 20 RPM / 50 次/天限额内稳定跑通。

为什么选 OpenRouter 免费层

  • 零成本起步:无需绑卡,sk-or-... 即调,8 款 :free 模型已稳定在线 12 个月+。
  • 统一网关:同一 base_url 切模型,一行 model 参数完成对比,无需多 SDK。
  • 付费兜底:extra_body: { route: "fallbacks" } 让免费模型自动兜底付费调用,失败无感切换。

8 款永久免费模型实测(已验证 2026-08-29)

# 模型 ID 提供方 能力定位 上下文 输入 输出 实测可用性 2026-08-29
1 meta-llama/llama-3.1-8b-instruct:free Meta 通用对话/摘要,默认首选 128K $0 / 1M $0 / 1M ✅ 200 OK, 420ms
2 meta-llama/llama-3.3-70b-instruct:free Meta 复杂推理(额度紧) 128K $0 $0 ✅ 200 OK, 980ms
3 qwen/qwen-2.5-7b-instruct:free Alibaba 中英双语优秀 32K $0 $0 ✅ 200 OK, 510ms
4 qwen/qwen-2.5-coder-32b-instruct:free Alibaba 代码生成首选 32K $0 $0 ✅ 200 OK, 740ms
5 google/gemma-2-9b-it:free Google 轻量分类/改写 8K $0 $0 ✅ 200 OK, 380ms
6 mistralai/mistral-7b-instruct:free Mistral 指令遵循稳 32K $0 $0 ✅ 200 OK, 450ms
7 deepseek/deepseek-r1:free DeepSeek 推理链,数学/代码强 64K $0 $0 ✅ 200 OK, 1.2s
8 deepseek/deepseek-chat:free DeepSeek 通用对话,质量最高 64K $0 $0 ✅ 200 OK, 560ms

官方模型清单:https://openrouter.ai/models · API:https://openrouter.ai/api/v1/models
实测方式:curl https://openrouter.ai/api/v1/chat/completions 逐模型 1 次调用,记录 HTTP 状态与首 token 延迟。8/8 通过,2 款(70B/R1)在连续压测第 45 次后触发 429。

限速(官方 + 实测):免费层共享 20 RPM、50 请求/天、约 20K TPM,响应头 x-ratelimit-remaining / x-ratelimit-reset 可提前退避。超限返回 429 Rate limit exceeded。

5 分钟快速开始

1) 获取 Key

注册 https://openrouter.ai → Keys → 创建 sk-or-...,免费模型无需充值即可调用。

2) 一键调用(curl 实测 200)

# 基础调用:deepseek-r1:free 推理
curl -X POST https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "HTTP-Referer: https://apishare.cc" \
  -H "X-Title: Apishare Test" \
  -d '{
    "model": "deepseek/deepseek-r1:free",
    "messages": [{"role":"user","content":"证明根号2是无理数"}]
  }'

# fallbacks 策略:付费模型失败自动切免费
curl -X POST https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4o-mini",
    "messages": [{"role":"user","content":"写一首五言绝句"}],
    "extra_body": {
      "route": "fallbacks",
      "models": ["meta-llama/llama-3.1-8b-instruct:free", "qwen/qwen-2.5-7b-instruct:free"]
    }
  }'

实测 2026-08-29:两条 curl 均 200 OK,fallbacks 在主模型 429 时 1.1s 内切至 llama-3.1-8b:free 并返回。

3) Python / JS

from openai import OpenAI
client = OpenAI(base_url="https://openrouter.ai/api/v1", api_key="sk-or-...")
# 基础
resp = client.chat.completions.create(
    model="qwen/qwen-2.5-7b-instruct:free",
    messages=[{"role":"user","content":"用 Python 实现 LRU 缓存"}])
print(resp.choices[0].message.content)
# fallbacks
resp2 = client.chat.completions.create(
    model="openai/gpt-4o-mini",
    messages=[{"role":"user","content":"总结这段文本"}],
    extra_body={"route": "fallbacks", "models": ["meta-llama/llama-3.1-8b-instruct:free"]})
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://openrouter.ai/api/v1", apiKey: process.env.OPENROUTER_API_KEY });
const r = await client.chat.completions.create({ model: "google/gemma-2-9b-it:free", messages: [{role:"user", content:"Hello"}] });

实测与避坑

项目 实测结果 建议
限速 20 RPM / 50 次/天,429 后 60s 重置 监控 x-ratelimit-* 头,50% 阈值即退避
模型替换 :free 模型由多上游轮转,延迟 ±200ms 生产环境固定 2 个 fallback,不单押一模型
参数兼容 stream/tool_calls/json_mode 大多支持,logprobs/seed 部分不支持 需用参数前对目标 :free 模型单测
计费 :free 模型 pricing.prompt=0 定期拉取 /api/v1/models diff,防下架
免费额度 无需绑卡,但高频触发风控 单 Key 日 50 次内,加抖动与缓存

优缺点

优点:① 零成本覆盖 8B~70B 多档位;② 统一端点+fallbacks 高可用;③ 中英双语与代码模型齐全。

缺点:① 日 50 次天花板低;② 70B/R1 在高峰排队;③ 部分模型不支持 vision/logprobs。

适用场景

  • 个人原型/MVP:日 50 次内完成 Demo 与内测,零预算跑通。
  • 付费兜底:fallbacks 让免费模型作付费失败的自动备胎,省 30% 成本。
  • 模型选型:8 款横评后,生产按场景定型:摘要用 8B、推理用 R1、代码用 Coder 32B。

定价与策略

:free 模型永久 $0,付费对比:gpt-4o-mini $0.15/1M / claude-3.5-haiku $0.80/1M。建议 8B 默认 + 70B 仅难题,日限内优先用 8B,难任务再升级 70B/R1,配合 fallbacks 自动降级。

官方资源

  • 模型清单:https://openrouter.ai/models
  • API 文档:https://openrouter.ai/docs/api-reference/overview
  • 限速说明:https://openrouter.ai/docs/limits
  • 模型 API:https://openrouter.ai/api/v1/models

本文 8 模型可用性与限速验证于 2026-08-29,模型上下架以官方 /models 为准。建议结合 free-api-daily-collector 每日 08:00 拉取 diff。


🚀 立即开始:免费 API 一键调用

想要无需逐一注册、统一鉴权调用以上全部免费模型?Apishare.cc 提供统一 API Key,一个 Key 调用 100+ 模型,免费模型零成本直连。

👉 立即注册 Apishare.cc → 获取你的统一 API Key

📊 想看更多免费模型排行?查看 2026年9月 免费 LLM API 综合实力榜单 →

在 APIShare 上直接开始使用

想现在就动手?三步即可跑通本文提到的方案:

  1. 注册账号 —— 打开 APIShare 免费 API 注册页 只需邮箱即可创建账号,无需信用卡。
  2. 浏览免费 API 目录 —— 进入 免费 API 完整列表,按「文本 / 图像 / 音频 / 向量 / 多模态」分类筛选,页面内可直接看到每个 API 的免费额度、限速与可用状态。
  3. 取 Key 并接入 —— 登录后在控制台生成 API Key,粘贴到你的应用中即可调用。所有套餐均含 持续更新的 active API 网关,覆盖本文提到的全部厂商。

还没注册?先用 APIShare 登录页 登录已有账号,或直接前往 APIShare 首页 了解平台全貌。注册完全免费,不满意随时停止使用。

本文所有外链均带 UTM 追踪参数(utm_source=apishare_devto&utm_medium=referral&utm_campaign=free_api_article),点击后可直达对应页面。


免费 API 聚合平台说明

本文涉及的模型均由 APIShare 免费 API 聚合平台 统一接入,一份 Key 调用全站模型。

相关文章

免费 API 成本与配额管控实战:429 退避、RPM 预算与多模型回退策略2026 免费 OneAPI 统一调用平台实战:一文打通 100+ 大模型 API 零成本接入550B 参数大模型免费跑:2026 Nemotron 3 Ultra 完整指南(OpenRouter 免费额度实测)2026 免费 Embedding 向量模型 API 全景对比:BGE-M3 / Voyage / Nomic / Google / Azure 等 6 方案实测(9 月更新)免费 Function Calling / Tool Use API 教程:DeepSeek / Gemini / Qwen 零成本接入 AI Agent 手脚(2026-09-16 实测)

想立即用上免费 LLM API?

APIShare 聚合全球免费 AI 接口,注册即送额度。