> For the complete documentation index, see [llms.txt](https://i.pixcat.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://i.pixcat.cn/da-yu-yan-mo-xing-llms-api.md).

# 大语言模型(LLMs) API

国内外免费额度与中转服务的收录整理

### 相关

> 本页面的内容并非实时信息，因此可能存在信息滞后的情况。如果你对「最新的大模型免费 API」「性价比较高的 API 中转站」「官方 API 的最新价格对照」等有需求，可以通过以下渠道获得：

* [awesome-free-llm-apis](https://github.com/open-free-llm-api/awesome-freellm-apis/blob/main/README.zh-CN.md)：每日更新的免费大模型 API 目录，一站式发现、对比、配置免费模型。
* [Free LLM Intel](https://github.com/rockbenben/free-llm-intel)：国内外 LLM 厂商的免费 API 额度、永久免费模型与限时活动情报，每天由脚本对照官方页面自动更新。
* [it's free\*](https://itsfree.ai/)：横向整理各厂商免费 API 的限额、上下文窗口、Base URL。
* [《免费 AI API 共计 33 个，均可用于 Cherry Studio》](https://www.138vps.com/freeot/3403.html)：由 138VPS 整理的免费大模型 API 列表。
* [API 中转站价格榜](https://priceai.cc/api-transit) · [AI 订阅价格榜](https://priceai.cc/official-api) · [卡网订阅比价](https://priceai.cc/channels)：由 PriceAIAI 提供的低价卡网订阅与中转 API 比价雷达。
* [TokenKoi 降价榜](https://tokenkoi.4tmr.com/drops)：大模型 API 近 30 天的价格变动榜，只统计原币报价的变化，按模型列出各平台最低价与相对官方的折扣。
* [Models.dev](https://models.dev/)：不同提供商的模型价格、多模态支持、上下文窗口等信息查询。

### 一、提供免费额度的模型供应商

> 以下提供商均提供永久或长期免费层级，暴露 OpenAI 兼容接口。按获取免费额度的门槛由低到高排列。

#### 1.1 无需信用卡

| 提供商                       | 免费模型数 | 最大上下文 | 能力                       | 获取密钥                                                                              |
| ------------------------- | ----- | ----- | ------------------------ | --------------------------------------------------------------------------------- |
| **Cloudflare Workers AI** | 41    | 262K  | 代码、图像、推理、文本、视频           | [dash.cloudflare.com](https://dash.cloudflare.com/profile/api-tokens)             |
| **Kilo Code**             | 16    | 1M    | 音频、代码、图像、推理、文本、视频        | [app.kilo.ai](https://app.kilo.ai/profile)                                        |
| **LLM7.io**               | 11    | 1M    | 音频、代码、图像、PDF、推理、文本、视频、视觉 | [token.llm7.io](https://token.llm7.io)                                            |
| **Google Gemini**         | 12    | 1M    | 音频、图像、PDF、推理、文本、视频、视觉    | [aistudio.google.com](https://aistudio.google.com/app/apikey)                     |
| **Mistral AI**            | 10    | 256K  | 代码、图像、PDF、推理、文本          | [console.mistral.ai](https://console.mistral.ai/api-keys/)                        |
| **Groq**                  | 9     | 131K  | 图像、推理、文本、视频              | [console.groq.com](https://console.groq.com/keys)                                 |
| **Cohere**                | 10    | 256K  | 图像、文本                    | [dashboard.cohere.com](https://dashboard.cohere.com/api-keys)                     |
| **OVHcloud AI Endpoints** | 8     | 262K  | 代码、图像、推理、文本、视频           | [ovhcloud.com](https://www.ovhcloud.com/en/public-cloud/ai-endpoints/catalog/)    |
| **Ollama Cloud**          | 8     | 1M    | 代码、图像、推理、文本、视频、视觉        | [ollama.com](https://ollama.com/settings/keys)                                    |
| **Agnes AI**              | 6     | 256K  | 图像、推理、文本、视频、视觉           | [platform.agnes-ai.com](https://platform.agnes-ai.com/settings/apiKeys)           |
| **Aion Labs**             | 4     | 128K  | 推理、文本                    | [aionlabs.ai](https://www.aionlabs.ai/app/api-keys/)                              |
| **Gonka Broker**          | 4     | 400K  | 图像、PDF、推理、文本、视频          | [app.gonkabroker.com](https://app.gonkabroker.com/signup)                         |
| **Z AI（智谱 AI）**           | 4     | 200K  | 图像、推理、文本、视频              | [open.bigmodel.cn](https://open.bigmodel.cn/usercenter/apikeys)                   |
| **Chutes.ai**             | 2     | 131K  | 推理、文本                    | [chutes.ai](https://chutes.ai/)                                                   |
| **Glhf.chat**             | 2     | 131K  | 文本                       | [glhf.chat](https://glhf.chat/)                                                   |
| **SiliconFlow（硅基流动）**     | 2     | —     | 文本                       | [cloud.siliconflow.cn](https://cloud.siliconflow.cn/account/ak)                   |
| **AMD Radeon Cloud**      | 5     | 1M    | 图像、推理、文本、视觉              | [developer.amd.com.cn](https://developer.amd.com.cn/radeon/tokenfactory)          |
| **InceptionLabs**         | —     | —     | 文本                       | [platform.inceptionlabs.ai](https://platform.inceptionlabs.ai/dashboard/api-keys) |
| **Novita AI**             | 1     | 256K  | 文本                       | [novita.ai](https://novita.ai/settings/key-management)                            |

**亮点说明：**

* **Google Gemini** — 免费层级最强，Gemini 3.8 Flash、3.6 Flash、3.5 Flash Lite 支持 1M 上下文与全模态，免绑卡、每日滚动重置，海外平台首选
* **Cloudflare Workers AI** — 模型数量较多（41 个），所有模型共享每日 1 万 Neurons 额度
* **Kilo Code** — 提供 16 个免费模型，含 `nvidia/nemotron-3-ultra-550b-a55b:free` 等大参数模型，限速 200 次/小时
* **Groq** — 美国 AI 芯片独角兽，推理速度极快，gpt-oss 系列免费层 30 RPM / 1,000 次每天
* **Cohere** — Trial Key 每月 1,000 次调用，**仅限非商业用途**，商用需升级付费
* **Z AI（智谱 AI）** — 4.x 代 Flash 系列长期免费，glm-4.7-flash 等，免费模型限 1 并发；新旗舰 5.x 不在免费层
* **SiliconFlow** — 9B 以下模型永久免费，另有免费的向量、OCR、图像与语音模型
* **Mistral AI** — 免费的是端点而非额度，Labs 实验模型与 Moderation 端点免费，商业模型均需付费，无新用户赠金
* **Glhf.chat** — 免费模型不限量，Llama 3.1 70B 与 Mixtral 8x7B 均可调用
* **InceptionLabs** — 新账号送免费额度，免信用卡，对应 Mercury 系列模型
* **Novita AI** — Apodex 1.1 Mini 输入与输出均免费，上下文 256K，免费只覆盖这一个模型

***

#### 1.2 需注册（无需信用卡）

| 提供商                  | 免费模型数 | 最大上下文 | 能力             | 获取密钥                                                                       |
| -------------------- | ----- | ----- | -------------- | -------------------------------------------------------------------------- |
| **ModelScope（魔搭社区）** | 33    | 1M    | 图像、推理、文本、视频、视觉 | [modelscope.cn](https://modelscope.cn/my/myaccesstoken)                    |
| **OpenCode Zen**     | 22    | 1M    | 音频、推理、视觉       | [opencode.ai](https://opencode.ai/auth)                                    |
| **Cline**            | 3     | —     | 文本、视觉          | —                                                                          |
| **Grok（xAI）**        | 2     | 131K  | 文本             | [console.x.ai](https://console.x.ai)                                       |
| **阿里云百炼**            | —     | 1M    | 代码、图像、文本       | [bailian.console.aliyun.com](https://bailian.console.aliyun.com/?apiKey=1) |
| **SambaNova**        | 7     | 1M    | 图像、推理、文本       | [cloud.sambanova.ai](https://cloud.sambanova.ai/apis)                      |
| **AI21 Labs**        | 2     | 256K  | 文本             | [studio.ai21.com](https://studio.ai21.com/account/api-key)                 |
| **DeepSeek**         | 3     | 1M    | 文本             | [platform.deepseek.com](https://platform.deepseek.com/api_keys)            |
| **Nscale**           | 2     | 128K  | 文本             | [nscale.com](https://nscale.com/)                                          |

**亮点说明：**

* **ModelScope（魔搭社区）** — 阿里云旗下，魔粒制：每日登录得魔粒（当日有效），绑定阿里云账号额外得魔粒，模型调用一次扣少量魔粒；必须绑定阿里云账号并实名，否则返回 401
* **OpenCode Zen** — 22 个免费模型，含 `deepseek-v4-flash`、`nemotron-3.5-lightning-free`，上下文 1M，适合当兜底
* **阿里云百炼** — 大部分模型各 100 万 Token / 90 天，额度按模型独立计算、不可跨模型转移，仅抵扣实时推理；需在权益页手动开启「免费额度用尽即停」
* **Cline** — 除 API 外还有 VS Code 插件与桌面端，桌面端约一天一千万 token
* **SambaNova** — 美国 AI 芯片公司，限速 2 次/分钟、20 万 token 每天
* **DeepSeek** — 注册赠送免费额度，含 DeepSeek V4 Flash、V4 Pro
* **AI21 Labs** — Jamba Mini 2、Jamba Large 1.6，3 个月试用额度

***

#### 1.3 需手机验证

| 提供商            | 免费模型数 | 最大上下文 | 能力                           | 获取密钥                                                           |
| -------------- | ----- | ----- | ---------------------------- | -------------------------------------------------------------- |
| **NVIDIA NIM** | 82    | 1M    | 音频、嵌入、图像、PDF、推理、重排序、文本、视频、视觉 | [build.nvidia.com](https://build.nvidia.com/settings/api-keys) |

**亮点说明：**

* **NVIDIA NIM** — 模型数量最多（82 个），涵盖全模态能力，含 z-ai/glm-5.3-flash、moonshotai/kimi-k2.6 等。需手机验证但无需信用卡，免费推理约 40 RPM 且不按 token 计费。**仅供开发评估，不可用于生产环境**。热门模型限速较严，冷门模型约 40 RPM

***

#### 1.4 付费后享有免费层

| 提供商            | 免费模型数 | 说明                             | 获取密钥                                                           |
| -------------- | ----- | ------------------------------ | -------------------------------------------------------------- |
| **OpenRouter** | 13    | 免费层，充值后可提高每日限额                 | [openrouter.ai](https://openrouter.ai/workspaces/default/keys) |
| **Cerebras**   | 2     | 一次性 $5 推广额度，需绑定支付方式，激活后 30 天过期 | [cloud.cerebras.ai](https://cloud.cerebras.ai/)                |

**亮点说明：**

* **OpenRouter** — 国际最大的模型统一网关之一，13 个带 `:free` 后缀的模型免费。**只有带 `:free` 的免费，同名付费模型会按量扣费**。免费层 20 RPM / 50 次每天，充值后可升到 1,000 次每天
* **Cerebras** — 开源模型为主，美国 AI 芯片公司，推理速度极快，绑定支付方式可得一次性 $5 推广额度，激活后 30 天过期，不会自动扣费；含 GPT-OSS 120B、Gemma 4 31B

***

#### 1.5 各提供商最佳免费模型推荐

| 提供商           | 推荐模型                        | 模型 ID                                    | 最大上下文 | 限流                   |
| ------------- | --------------------------- | ---------------------------------------- | ----- | -------------------- |
| NVIDIA NIM    | z-ai/glm-5.3-flash          | `z-ai/glm-5.3-flash`                     | 1M    | 最高 40 RPM            |
| ModelScope    | MiniMax-M1-80k              | `MiniMax/MiniMax-M1-80k`                 | —     | 见官方说明                |
| OpenCode Zen  | deepseek-v4-flash           | `deepseek-v4-flash`                      | 1M    | 见官方说明                |
| Kilo Code     | NVIDIA Nemotron 3 Ultra（免费） | `nvidia/nemotron-3-ultra-550b-a55b:free` | 1M    | 200 次/小时             |
| Google Gemini | Gemini 3.8 Flash            | `gemini-3.8-flash`                       | 1M    | 每日重置                 |
| Google Gemini | Gemini 3.6 Flash            | `gemini-3.6-flash`                       | 1M    | 15 RPM，1,500 次每天     |
| OpenRouter    | NVIDIA Nemotron 3 Ultra（免费） | `nvidia/nemotron-3-ultra-550b-a55b:free` | 1M    | 见官方说明                |
| Ollama Cloud  | gpt-oss:120b                | `gpt-oss:120b`                           | 128K  | 1 并发                 |
| Mistral AI    | Mistral Medium 3.5（128B）    | `mistral-medium-3-5-128b`                | 256K  | 约 1 RPS，500K TPM     |
| Groq          | Qwen3.8-27B                 | `qwen/qwen3.8-27b`                       | 131K  | 30 RPM，1,000 次每天     |
| LLM7.io       | gpt-oss:20b                 | `gpt-oss-20b`                            | 128K  | 60 RPM，250 次/小时      |
| Cohere        | Command A（111B）             | `command-a-111b`                         | 256K  | 20 RPM               |
| Aion Labs     | aion-labs/aion-2.0          | `aion-labs-aion-2-0`                     | 128K  | 15 RPM，20K tokens/天  |
| Z AI（智谱 AI）   | GLM-4.7-Flash               | `glm-4.7-flash`                          | 200K  | 1 并发                 |
| Agnes AI      | agnes-2.5-flash             | `agnes-2.5-flash`                        | 256K  | 30 RPM               |
| 阿里云百炼         | Qwen3-Plus                  | `qwen3-plus`                             | 1M    | 按地域分级                |
| Gonka Broker  | DeepSeek-V4-Flash-0731      | `deepseek-ai-deepseek-v4-flash-0731`     | 400K  | 约 100 万 tokens/月     |
| SambaNova     | DeepSeek-V3.1               | `deepseek-v3-1`                          | 128K  | 2 次/分钟，20 万 tokens/天 |
| Grok（xAI）     | grok-2                      | `grok-2`                                 | 131K  | 每月免费额度               |
| Chutes.ai     | DeepSeek-R1                 | `deepseek-ai/DeepSeek-R1`                | 131K  | 社区算力供给               |
| AI21 Labs     | Jamba Large 1.6             | `jamba-large-1-6`                        | 256K  | 试用额度                 |
| DeepSeek      | deepseek-v4-flash           | `deepseek-v4-flash`                      | 1M    | 见官方说明                |

***

#### 1.6 当前最热门的免费模型

按周使用量排列，可作为选型参考：

| 模型                                | 提供商        | 上下文 | 周使用量          |
| --------------------------------- | ---------- | --- | ------------- |
| Crouton Alpha                     | OpenRouter | 1M  | 4,265B tokens |
| NVIDIA Nemotron 3 Ultra（免费）       | OpenRouter | 1M  | 3,205B tokens |
| NVIDIA Nemotron 3.5 Super VL（免费）  | OpenRouter | 1M  | 2,924B tokens |
| NVIDIA Nemotron 3.5 Lightning（免费） | OpenRouter | 1M  | 1,114B tokens |
| Baidu ERNIE-5.5-Flash-Preview（免费） | OpenRouter | 1M  | 920B tokens   |

***

### 二、API 中转站

> 中转站适合需要统一入口、灵活计费或官方渠道受限的场景。以下按服务区域和用途分类。

#### 2.1 国内中转站

| 名称             | 网址                                       | 说明                                                                                   |
| -------------- | ---------------------------------------- | ------------------------------------------------------------------------------------ |
| **七牛云**        | [qiniu.com](https://www.qiniu.com)       | 主要提供国内开源模型，也有国外部分模型。新用户调用即送 300 万全模型免费额度；1024 活动期内认证用户每日 1 亿 Token（10.24–11.30，需实名）。 |
| **packyapi**   | [packyapi.com](https://www.packyapi.com) | 一站式接入 Claude、Claude Code、GPT、CodeX、Gemini、Azure OpenAI。                              |
| **FishXCode**  | [fishxcode.com](https://fishxcode.com)   | 企业级 Claude API 官方通道中转，稳定接入 Claude、CodeX、GPT、Gemini 等常用模型。                            |
| **OAIPro**     | [oaipro.com](https://api.oaipro.com)     | 统一 OpenAI / Anthropic API 中转网关，零留存、不注入、原生协议、多通道容灾。                                   |
| **Right Code** | [rightapi.io](https://rightapi.io/)      | 统一接入 Claude Code、CodeX、Gemini CLI，一个 API Key 接入所有编程 Agent。                           |

#### 2.2 国际中转站

| 名称                   | 网址                                                                 | 说明                                                             |
| -------------------- | ------------------------------------------------------------------ | -------------------------------------------------------------- |
| **OpenRouter**       | [openrouter.ai](https://openrouter.ai)                             | 国际最大中转站之一，13 个带 `:free` 后缀的模型免费。                               |
| **Nebius AI Studio** | [studio.nebius.com](https://studio.nebius.com)                     | 开源模型为主，国际站。首次付款最低 $25，绑卡扣款转为余额，并非赠金。                           |
| **SiliconFlow**      | [siliconflow.com](https://www.siliconflow.com)                     | 硅基流动国际站，比国内站多些国外模型，注册送 $1 免费额度。                                |
| **Cerebras**         | [cerebras.ai](https://www.cerebras.ai)                             | 开源模型为主，美国 AI 芯片公司，推理速度极快。绑定支付方式可得一次性 $5 推广额度，激活后 30 天过期。       |
| **Groq**             | [groq.com](https://groq.com)                                       | 开源模型为主，美国 AI 芯片公司，推理速度极快。                                      |
| **SambaNova**        | [sambanova.ai](https://sambanova.ai)                               | 开源模型为主，美国 AI 芯片公司，推理速度极快。                                      |
| **DigitalOcean**     | [digitalocean.com](https://www.digitalocean.com/products/gradient) | 主要做 VPS 业务，兼营 AI 推理。试用金 $5，90 天有效，创建资源前需添加支付方式。                |
| **MegaLLM**          | [megallm.io](https://megallm.io)                                   | 单 API 访问 Claude、GPT-5、Gemini、Llama 等 70+ 模型。暂不支持邮箱注册，需第三方账号登录。 |

#### 2.3 社区聚合与自助中转

> 这类平台门槛更低、模型更新更快，但非官方渠道，存在跑路风险。建议只放低敏感度的测试流量，不要充大额余额。

| 名称                | 网址                                                                               | 说明                                                  |
| ----------------- | -------------------------------------------------------------------------------- | --------------------------------------------------- |
| **apinex**        | [apinex.bond](https://apinex.bond/overview)                                      | 每天签到给 token，连签越久越多，每天最多 20M。                        |
| **aihubmix**      | [console.aihubmix.com](https://console.aihubmix.com/token)                       | 一天只能调用十次，含 `coding-glm-5.2-free` 等免费模型。             |
| **ZenMux**        | [zenmux.ai](https://zenmux.ai/api/v1)                                            | 带免费标志的模型均可调用。                                       |
| **ofox**          | [app.ofox.ai](https://app.ofox.ai/manage/api-keys)                               | 提供 `z-ai/glm-4.7-flash:free` 等免费模型。                 |
| **aiapi-pro**     | [aiapi-pro.com](https://aiapi-pro.com/dashboard)                                 | 图片与视频有免费额度。                                         |
| **requesty**      | [app.requesty.ai](https://app.requesty.ai/)                                      | 按价格排序可看到免费模型，每天限 200 次。                             |
| **dahl**          | [inference.dahl.global](https://inference.dahl.global/v1)                        | 每个账号一亿 Token，连邮箱都不用，可匿名申请 Token。                    |
| **书生科研海外**        | [api.atria-asi.ai](https://api.atria-asi.ai)                                     | 海外注册送一亿 Token。                                      |
| **书生科研国内**        | [discovery.intern-ai.org.cn](https://discovery.intern-ai.org.cn/token-plan/home) | 每月 10 个墨点，国内开源模型多，部分模型不扣墨点。                         |
| **无问 AI**         | [wwlib.cn](https://www.wwlib.cn/index.php/develement)                            | 每天自动送 Token，一天 3,500 万。                             |
| **DMXAPI**        | [dmxapi.cn](https://www.dmxapi.cn/)                                              | 大模型聚合转发，含免费专区。                                      |
| **数眼智能（数言 AI）**   | [shuyanai.com](https://www.shuyanai.com/)                                        | 注册送 50 万 tokens，第三方中转，注意风险。                         |
| **top-tools-ai**  | [top-tools-ai.com](https://top-tools-ai.com/dashboard)                           | 注册送 1000 万 Token，每天登录送 1000 万 Token。                |
| **moonmath**      | [zro.moonmath.ai](https://zro.moonmath.ai/overview)                              | 每天 300 万 Token 免费档，目前只能用 DeepSeek 与 GLM 的 Flash 模型。 |
| **ifm**           | [platform.ifm.ai](https://platform.ifm.ai/dashboard)                             | 每天 3000 万 Token，阿联酋出品。                              |
| **iteracompute**  | [platform.iteracompute.com](https://platform.iteracompute.com/models/free)       | 每月 3000 万 Token，免费模型不定期更换。                          |
| **moss（复旦 MOSS）** | [platform.moss.cn](https://platform.moss.cn/app/api-keys)                        | 每天登录送 50 积分，nex-n2.6 模型不扣积分，可生成语音、图片与视频。            |
| **四川麦块**          | [minekuai.cn](https://minekuai.cn/overview)                                      | 每天登录送 10 鱼币，可兑换 5000 万 Token，仅限国内使用。                |

***

#### 2.4 Claude Code / CodeX 专用中转站

> 以下中转站 API 仅限在 Claude Code、CodeX 或 Gemini CLI 中使用。

**有免费额度**

| 名称            | 网址                                     | 说明                      |
| ------------- | -------------------------------------- | ----------------------- |
| **FreeModel** | [freemodel.dev](https://freemodel.dev) | 注册验证后即得免费 API 额度，无需信用卡。 |

**收费中转站**

| 名称             | 网址                                         | 说明                                                              |
| -------------- | ------------------------------------------ | --------------------------------------------------------------- |
| **RawChat**    | [rawchat.cn](https://rawchat.cn)           | 付费站点，含 GPT、Claude、Gemini、Grok、CodeX、Claude Code 等产品，仅限 QQ 邮箱注册。 |
| **Right Code** | [rightapi.io](https://rightapi.io/)        | 统一接入 Claude Code、CodeX、Gemini CLI，一个 API Key 接入所有编程 Agent。      |
| **FoxCode**    | [foxcode.rjj.cc](https://foxcode.rjj.cc)   | 免费试用额度，无需绑定银行卡，注册即刻开始。                                          |
| **SSSAiCode**  | [sssaicode.com](https://www.sssaicode.com) | 企业级 AI 网关，注册并购买套餐后获取密钥。                                         |
| **Augmunt**    | [augmunt.com](https://www.augmunt.com)     | 现为 AgentDesk 桌面客户端与专属订阅服务，一键接入 Claude Code、CodeX、Gemini 官方 CLI。 |
| **BestModel**  | [bestmodel.dev](https://bestmodel.dev)     | 注册送 $5 体验额度，免费档无需绑卡。                                            |

***

### 三、模型供应商官方开放平台

> 以下为各 AI 厂商官方直接提供的 API 平台，适合生产环境接入。免费额度一栏综合了官方定价页与实时巡检结果，注册前请再核对官方公告。

#### 3.1 国外平台

| 平台                         | 官网                                                                                           | API URL                                        | 主要模型                           | 网页体验                                           |
| -------------------------- | -------------------------------------------------------------------------------------------- | ---------------------------------------------- | ------------------------------ | ---------------------------------------------- |
| **OpenAI**                 | [openai.com/api](https://openai.com/api)                                                     | `https://api.openai.com/v1`                    | GPT-5、GPT-4.1、GPT-4o 等         | [chatgpt.com](https://chatgpt.com)             |
| **Google Gemini**          | [ai.google.dev](https://ai.google.dev)                                                       | `https://generativelanguage.googleapis.com/v1` | Gemini Pro、Gemini Flash 等      | [gemini.google.com](https://gemini.google.com) |
| **Anthropic Claude**       | [anthropic.com/api](https://www.anthropic.com/api)                                           | `https://api.anthropic.com/v1`                 | Claude Sonnet、Claude Haiku 等   | [claude.ai](https://claude.ai)                 |
| **Microsoft Azure OpenAI** | [azure.microsoft.com](https://azure.microsoft.com/en-us/products/ai-services/openai-service) | `https://<resource>.openai.azure.com/`         | GPT 系列（Azure 版本）               | —                                              |
| **Meta Llama**             | [llama.com](https://www.llama.com/products/llama-api/)                                       | `https://api.llama.com/v1`                     | Llama 4、Llama 3.3 等            | —                                              |
| **xAI Grok**               | [x.ai/api](https://x.ai/api)                                                                 | `https://api.x.ai/v1`                          | Grok 4、Grok 3 等                | [grok.com](https://grok.com)                   |
| **Mistral AI**             | [mistral.ai](https://mistral.ai/products/la-plateforme)                                      | `https://api.mistral.ai/v1`                    | Mistral Large、Mistral Medium 等 | —                                              |
| **Cohere AI**              | [cohere.com](https://cohere.com)                                                             | `https://api.cohere.com/v1`                    | Command A、Command R 等          | —                                              |
| **Stability AI**           | [platform.stability.ai](https://platform.stability.ai)                                       | `https://api.stability.ai/v1`                  | Stable Diffusion 3、SDXL 等      | —                                              |
| **Groq**                   | [groq.com](https://groq.com)                                                                 | `https://api.groq.com/openai/v1`               | Llama、Mixtral 等                | —                                              |
| **Fireworks AI**           | [fireworks.ai](https://fireworks.ai)                                                         | `https://api.fireworks.ai/inference/v1`        | 各种开源 LLM 和图像模型                 | —                                              |
| **Cerebras**               | [cerebras.ai](https://www.cerebras.ai)                                                       | `https://api.cerebras.ai/v1`                   | 开源模型为主                         | —                                              |
| **StreamLake**             | [streamlake.ai](https://www.streamlake.ai)                                                   | —                                              | 快手开放平台国际站                      | —                                              |

***

#### 3.2 国内平台

| 平台                    | 官网                                                                      | API URL                                                                       | 主要模型                 | 免费额度                                                                |
| --------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -------------------- | ------------------------------------------------------------------- |
| **智谱 AI（Z AI）**       | [bigmodel.cn](https://open.bigmodel.cn/usercenter/apikeys)              | `https://open.bigmodel.cn/api/paas/v4`                                        | GLM-4 / GLM-5 系列     | 4.x 代 Flash 长期免费，免费模型限 1 并发                                         |
| **阿里云百炼**             | [aliyun.com](https://bailian.console.aliyun.com/?apiKey=1)              | `https://dashscope.aliyuncs.com/compatible-mode/v1`                           | 通义千问（Qwen）系列         | 大部分模型各 100 万 Token / 90 天，额度按模型独立计算，仅抵扣实时推理                         |
| **百度千帆（文心）**          | [cloud.baidu.com](https://console.bce.baidu.com/qianfan/overview)       | `https://qianfan.baidubce.com/v2`                                             | 文心（ERNIE）系列          | 17 个指定模型各 100 万 Token / 3 个月，旧永久免费模型已下架                             |
| **腾讯云混元**             | [cloud.tencent.com](https://cloud.tencent.com/product/hunyuan)          | `https://api.hunyuan.cloud.tencent.com/v1/chat/completions`                   | 混元（Hunyuan）系列        | 首次开通 8 款模型共享 100 万 Token，Embedding 独立 100 万 Token，有效期 1 年，耗尽不自动转后付费 |
| **火山引擎（豆包）**          | [volcengine.com](https://www.volcengine.com/product/ark)                | `https://ark.cn-beijing.volces.com/api/v3/chat/completions`                   | 豆包系列                 | 豆包系列模型各 50 万 Token 免费推理额度                                           |
| **月之暗面（Moonshot AI）** | [moonshot.cn](https://platform.kimi.com/console/api-keys)               | `https://api.moonshot.cn/v1/chat/completions`                                 | Kimi 系列              | 无免费模型层，实名送代金券，可抵 K3 / K3.1 Pro，不可用于高速版                              |
| **MiniMax**           | [minimaxi.com](https://platform.minimax.cn/console/access?tab=api-keys) | `https://api.minimax.chat/v1`                                                 | MiniMax-M3 系列        | 需订阅或积分包接入                                                           |
| **小米 MiMo**           | [xiaomimimo.com](https://platform.xiaomimimo.com/#/console/api-keys)    | `https://api.xiaomimimo.com/v1/chat/completions`                              | MiMo V2.5 / V2.6 系列  | TTS 系列限时免费，新用户赠金 40 天                                               |
| **美团 LongCat**        | [longcat.chat](https://longcat.chat/platform)                           | `https://api.longcat.chat/openai/`                                            | LongCat 大模型          | LongCat-2.0 资源包，1M 上下文，30 天有效                                       |
| **商汤日日新**             | [sensenova.cn](https://platform.sensenova.cn/console/keys)              | —                                                                             | 日日新（SenseNova）系列     | Token Plan 公测期免费，通用积分池 5 小时 12 万 + 每周 120 万积分                       |
| **科大讯飞星火**            | [xfyun.cn](https://xinghuo.xfyun.cn/sparkapi)                           | `https://spark-api-open.xf-yun.com/v2/chat/completions`                       | 讯飞星火                 | Spark-X2.5-1.7B 免费，Spark-X2.5-4B 限时免费，Spark Lite 免费领取，需在产品页点击「免费领取」 |
| **硅基流动**              | [siliconflow.cn](https://cloud.siliconflow.cn/account/ak)               | `https://api.siliconflow.cn/v1`                                               | 开源模型为主               | 9B 以下模型永久免费，另有免费的向量、OCR、图像与语音模型                                     |
| **DeepSeek**          | [deepseek.com](https://platform.deepseek.com/api_keys)                  | `https://api.deepseek.com/v1/chat/completions`                                | DeepSeek 系列          | 注册赠送免费额度                                                            |
| **百川智能**              | [baichuan-ai.com](https://platform.baichuan-ai.com)                     | `https://api.baichuan-ai.com/v1/chat/completions`                             | Baichuan 系列          | —                                                                   |
| **零一万物**              | [lingyiwanwu.com](https://platform.lingyiwanwu.com)                     | `https://api.lingyiwanwu.com/v1/chat/completions`                             | Yi 系列                | —                                                                   |
| **无问芯穹 Infini AI**    | [infini-ai.com](https://www.infini-ai.com/)                             | `https://api.infini-ai.com/infini-megrez/v1`                                  | 开源模型                 | 嵌入 / 重排接口长期免费，网页 Playground 全模型免费体验                                 |
| **摩尔线程 MUSA**         | [mthread.cn](https://www.mthread.cn/)                                   | —                                                                             | MUSA 架构模型            | 30 天免费试用，每日限量 100 名                                                 |
| **云知声 Token Hub**     | [zhicloud.com](https://www.zhicloud.com/)                               | —                                                                             | U2 / U1-OCR / TTS 系列 | U Plan Free 档免费领，含 U2-Flash、U2-Med 及 ASR、TTS、OCR 权益，需用套餐专属 Key      |
| **PPIO 派欧云**          | [ppio.com](https://ppio.com/)                                           | `https://api.ppinfra.com/v3/openai`                                           | 分布式算力平台              | 未实名认证有频率限制                                                          |
| **蚂蚁百灵**              | [ant-ling.com](https://chat.ant-ling.com/open)                          | `https://api.ant-ling.com/v1`                                                 | Ling / Ring 系列       | 每月有免费额度                                                             |
| **StreamLake（快手万擎）**  | [streamlake.com](https://streamlake.com)                                | `https://wanqing.streamlakeapi.com/api/gateway/v1/endpoints/chat/completions` | KAT-Coder 等          | 注册后分批送免费调用次数，仅限基础模型推理                                               |
| **上海书生 InternLM**     | [intern-ai.org.cn](https://internlm.intern-ai.org.cn/api/tokens)        | `https://chat.intern-ai.org.cn/api/v1`                                        | InternLM 系列          | 每月 9000 万 Token                                                     |
| **小红书 dots.ai**       | [dots.ai](https://dots.ai/platform/apikeys)                             | `https://note3-prev-api.askdiandian.com/v1`                                   | dots 系列              | 免费，限制未知                                                             |

***

### 四、快速配置参考

#### 4.1 Base URL 速查

| 提供商                   | Base URL                                                            |
| --------------------- | ------------------------------------------------------------------- |
| NVIDIA NIM            | `https://integrate.api.nvidia.com/v1`                               |
| ModelScope            | `https://api-inference.modelscope.cn/v1`                            |
| Cloudflare Workers AI | `https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/run` |
| OpenRouter            | `https://openrouter.ai/api/v1`                                      |
| Google Gemini         | `https://generativelanguage.googleapis.com/v1beta`                  |
| Ollama Cloud          | `https://ollama.com/v1`                                             |
| OVHcloud AI Endpoints | `https://oai.endpoints.kepler.ai.cloud.ovh.net/v1`                  |
| LLM7.io               | `https://api.llm7.io/v1`                                            |
| Groq                  | `https://api.groq.com/openai/v1`                                    |
| Mistral AI            | `https://api.mistral.ai/v1`                                         |
| Cohere                | `https://api.cohere.com/v2`                                         |
| Kilo Code             | `https://api.kilo.ai/api/gateway`                                   |
| Cerebras              | `https://api.cerebras.ai/v1`                                        |
| OpenCode Zen          | `https://opencode.ai/zen/v1`                                        |
| Aion Labs             | `https://api.aionlabs.ai/v1`                                        |
| Agnes AI              | `https://apihub.agnes-ai.com/v1`                                    |
| 阿里云百炼                 | `https://dashscope-intl.aliyuncs.com/compatible-mode/v1`            |
| Z AI（智谱 AI）           | `https://open.bigmodel.cn/api/paas/v4`                              |
| SambaNova             | `https://api.sambanova.ai/v1`                                       |
| SiliconFlow           | `https://api.siliconflow.cn/v1`                                     |
| xAI                   | `https://api.x.ai/v1`                                               |
| Chutes.ai             | `https://api.chutes.ai/v1`                                          |
| AI21 Labs             | `https://api.ai21.com/studio/v1`                                    |
| DeepSeek              | `https://api.deepseek.com/v1`                                       |
| Nscale                | `https://inference.api.nscale.com/v1`                               |
| Nebius                | `https://api.studio.nebius.com/v1`                                  |
| Gonka Broker          | `https://proxy.gonkabroker.com/v1`                                  |
| Glhf.chat             | `https://glhf.chat/api/openai/v1`                                   |
| AMD Radeon Cloud      | `https://developer.amd.com.cn/radeon/api/v1`                        |
| InceptionLabs         | `https://api.inceptionlabs.ai/v1`                                   |
| Novita AI             | `https://api.novita.ai/openai/v1`                                   |

***

#### 4.2 工具配置速查

| 工具                 | 环境变量 / 配置方式                                   |
| ------------------ | --------------------------------------------- |
| **Codex CLI**      | `OPENAI_BASE_URL` + `OPENAI_API_KEY`          |
| **Cursor**         | Settings → Models → Add Model                 |
| **Claude Code**    | `ANTHROPIC_BASE_URL` + `ANTHROPIC_AUTH_TOKEN` |
| **Aider 编辑器**      | `.aider.conf.yml`                             |
| **Cline（VS Code）** | API provider 设置                               |

> 更多工具即用配置：[freellm.net/config](https://freellm.net/config)

***

#### 4.3 Python 快速示例

```python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.groq.com/openai/v1",
    api_key="你的GROQ_API_KEY",  # 获取: console.groq.com/keys
)

response = client.chat.completions.create(
    model="qwen/qwen3.8-27b",
    messages=[{"role": "user", "content": "你好！"}],
)
print(response.choices[0].message.content)
```

***

### 附录：快速选择指南

| 场景                   | 推荐方案                           |
| -------------------- | ------------------------------ |
| **零基础快速上手**          | Groq（无需信用卡，30 次/分钟）            |
| **最强免费多模态**          | Google Gemini（1M 上下文，音频/图像/视频） |
| **最多免费模型**           | NVIDIA NIM（82 个模型，需手机验证）       |
| **最多开源模型**           | ModelScope（33 个模型，绑定阿里云）       |
| **最快推理速度**           | Groq / Cerebras / SambaNova    |
| **Claude Code 免费使用** | FreeModel                      |
| **统一入口管理多模型**        | OpenRouter                     |
| **国内开发者首选**          | 智谱 AI / 阿里云百炼 / DeepSeek       |
| **国内长文档与 RAG**       | GLM-4.7-Flash（智谱，200K 上下文，免费）  |
| **国内多模态与视频**         | 硅基流动（Qwen-Image）+ DMXAPI（视频）   |
| **生产环境官方接入**         | 对应厂商官方平台（第三章）                  |

***

> **提示**：免费额度和政策可能随时调整，建议注册后查看各平台最新公告。部分国际平台在中国 IP 下可能受限，可配合代理或选择国内中转站使用。

### 防扣费清单

白嫖最容易翻车的地方，注册前先看一遍：

1. **通义千问** — 已认证用户需在权益页面手动开启「免费额度用尽即停」；仅抵扣实时推理，批量及联网工具会扣费。
2. **智谱 GLM** — 免费只限 4.x 代，GLM-5.3 与 5.3-Flash 需付费；免费模型会换代，限速数值只在控制台显示。
3. **火山引擎** — 在控制台开启「安心体验模式」，超限即停，避免自动扣费。
4. **小米 MiMo** — 语言模型按量计费，免费只覆盖 TTS 与缓存写入且官方标注「限时」；注册赠金 40 天过期。
5. **腾讯云混元** — 默认耗尽不自动转后付费，如需后付费需手动在控制台开启。
6. **科大讯飞星火** — Spark-X2.5-4B 为限时免费，调用前确认免费额度状态。
7. **StreamLake** — 免费额度分批发放，仅限基础模型推理，不可抵扣 Batch 批量推理。
8. **Mistral AI** — 免费的是端点而非额度，无新用户赠金；商业模型（Medium 3.5、Large 3 等）均按量付费。
9. **Groq** — 旧 Llama-3.1-8b、3.3-70b 已转 Enterprise 付费，勿按旧清单调用。
10. **Hugging Face** — 免费账号已无免费调用额度，需购买 Credits 或升级 PRO。
11. **OpenRouter** — 只有带 `:free` 后缀的模型免费；同名付费模型会按量扣费。
12. **Cloudflare Workers AI** — 超量会按量计费。
13. **Cohere** — Trial Key 明确仅限非商业用途。
14. **NVIDIA NIM** — 免费接口面向开发评估，不可用于生产环境。
15. **无问芯穹** — 免费的是嵌入 / 重排接口与网页体验，API 推理按量付费。
16. **所有绑卡平台** — 注册后立刻设置预算告警，记下赠金到期日，到期前关停资源、删除计费实例。
17. **第三方聚合中转** — 存在跑路风险，只放低敏测试流量，不要充大额余额。
18. **七牛云** — 2026-11-30 前注册的 1 亿 Token 活动有截止日，活动结束后恢复常规额度。
19. **限时免费** — 复旦 MOSS、商汤公测、Mistral Leanstral 等限时免费无公开截止日，随时可能恢复计费；阶跃 StepAudio 3 限免至 2026-11-23，接入前先核对官方页。
20. **ModelScope** — 必须绑定阿里云账号并实名，否则返回 401；魔粒当日有效，不结转。

### 三步获取免费 API 并开始使用

1. **选择提供商** — 推荐从 Groq 开始（无需信用卡，免费额度 30 次/分钟）。
2. **获取 API Key** — 点击对应提供商的「获取密钥」链接注册账号（大多只需邮箱），复制密钥。
3. **填入代码** — 将 Base URL 和 API Key 粘贴到 4.3 的示例中。
