经 AI Skill Hub 精选评估,FreeTheAi 获评「强烈推荐」。这款AI工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.0 分,适合有一定技术背景的用户使用。
FreeTheAi 是一款基于 TypeScript 开发的开源工具,专注于 ai-api、api-gateway、astro 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
FreeTheAi 是一款基于 TypeScript 开发的开源工具,专注于 ai-api、api-gateway、astro 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:npm 全局安装 npm install -g free-ai # 方式二:npx 直接运行(无需安装) npx free-ai --help # 方式三:项目依赖安装 npm install free-ai # 方式四:从源码运行 git clone https://github.com/Free-The-Ai/free-ai cd free-ai npm install npm start
# 命令行使用
free-ai --help
# 基本用法
free-ai [options] <input>
# Node.js 代码中使用
const free_ai = require('free-ai');
const result = await free_ai.run(options);
console.log(result);
# free-ai 配置说明 # 查看配置选项 free-ai --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export FREE_AI_CONFIG="/path/to/config.yml"
<p align="center"> <a href="https://freetheai.org"><img src=".github/banner.jpg" alt="FreeTheAI: free OpenAI-compatible AI API" width="100%"></a> </p>
<p align="center"> <a href="https://freetheai.org"><img src="https://img.shields.io/badge/website-freetheai.org-111111" alt="Website"></a> <a href="https://freetheai.org/docs"><img src="https://img.shields.io/badge/API-OpenAI--compatible-111111" alt="OpenAI-compatible"></a> <a href="https://freetheai.org/models"><img src="https://img.shields.io/badge/models-50%2B-111111" alt="50+ models"></a> <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-111111" alt="MIT license"></a> <a href="https://discord.gg/secrets"><img src="https://img.shields.io/badge/Discord-join-5865F2?logo=discord&logoColor=white" alt="Discord"></a> </p>
<p align="center"> <b><a href="https://freetheai.org/docs">Docs</a></b> · <a href="https://freetheai.org/setup">Setup guides</a> · <a href="https://freetheai.org/models">Models</a> · <a href="https://freetheai.org/checkin">Daily check-in</a> · <a href="https://freetheai.org/status">Status</a> · <a href="https://discord.gg/secrets">Discord</a> </p>
Anything that speaks the OpenAI API works with FreeTheAI, including SillyTavern, JanitorAI, Open WebUI, Cline, LibreChat, and more. Step-by-step guides for each app are at freetheai.org/setup.
Base URL https://api.freetheai.org/v1
Auth Authorization: Bearer YOUR_API_KEY
Model IDs fta/<provider>/<model>, for example fta/zai/glm-5.3
curl https://api.freetheai.org/v1/chat/completions \
-H "Authorization: Bearer $FREETHEAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "fta/zai/glm-5.3", "messages": [{"role": "user", "content": "Hello!"}]}'
from openai import OpenAI
client = OpenAI(base_url="https://api.freetheai.org/v1", api_key="YOUR_API_KEY")
reply = client.chat.completions.create(
model="fta/zai/glm-5.3",
messages=[{"role": "user", "content": "Hello!"}],
)
print(reply.choices[0].message.content)
Chat completions support streaming, tool calling, and the usual sampling settings. List the models your key can use with GET /v1/models. Every error carries an error ID (in the body and the X-Error-ID header); quote it when you ask for help.
| Language | Package | Repository |
|---|---|---|
| Python | pip install freetheai | [freetheai-python](https://github.com/Free-The-Ai/freetheai-python) |
| JavaScript and TypeScript | npm install freetheai | [freetheai-js](https://github.com/Free-The-Ai/freetheai-js) |
| Go | go get github.com/Free-The-Ai/freetheai-go | [freetheai-go](https://github.com/Free-The-Ai/freetheai-go) |
| Recipes for all of the above | [freetheai-cookbook](https://github.com/Free-The-Ai/freetheai-cookbook) |
Code you can copy is in examples/.
高质量开源AI工具,兼容OpenAI
该工具未明确声明开源协议,商业使用前请联系原作者确认授权范围,避免侵权风险。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
AI Skill Hub 点评:FreeTheAi 的核心功能完整,质量优秀。对于AI 技术爱好者来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | free-ai |
| 原始描述 | 开源AI工具:FreeTheAi (Free The AI): free OpenAI-compatible AI API with 50+ models, Discord 。⭐678 · TypeScript |
| Topics | ai-apiapi-gatewayastrochat-completionsdeveloper-tools |
| GitHub | https://github.com/Free-The-Ai/free-ai |
| 语言 | TypeScript |
收录时间:2026-06-27 · 更新时间:2026-06-27 · License:未公布 · AI Skill Hub 不对第三方内容的准确性作法律背书。