Skip to content
项目

关于

FreeTheAI: AI model marketplace with one OpenAI-compatible API. One key for GPT, Claude, Gemini, GLM, Kimi, and more, paid per token at api.freetheai.org/v1.

人工智能与机器学习

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
-1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

FreeTheAI: one OpenAI-compatible API for models from many providers, paid per token

Website OpenAI-compatible Models from many providers MIT license Discord

Docs · Setup guides · Models · Providers · Status · Discord

FreeTheAI

FreeTheAI is an AI model marketplace with one OpenAI-compatible API. One account and one API key reach models from many providers, including GPT, Claude, Gemini, Grok, GLM, Kimi, and MiniMax, paid per token from one wallet at each provider's listed price. Streaming, tool calling, and web search with sourced answers work across them. Also searched as Free The AI, Free The Ai, and FreeTheAi.

[!NOTE] The free tier closed for most accounts on November 10, 2026. Read why it closed. Requests are now paid from your wallet.

[!IMPORTANT] FreeTheAI moved to freetheai.org. The old API at api.freetheai.xyz, its keys, and the old Discord /signup and /checkin commands no longer work. Use the base URL https://api.freetheai.org/v1 with a key from freetheai.org. Old freetheai.xyz links forward to their new pages.

Quick start

  1. Create an account at freetheai.org, confirm your email, and make a key under API keys.
  2. Add funds to your wallet (from $5, crypto or card). Each request bills the tokens it used at the listed price; there is no subscription.
  3. Follow a provider on its page at freetheai.org/providers. A key uses the providers its account follows.
  4. Point your app at the base URL.
Base URL    https://api.freetheai.org/v1
Auth        Authorization: Bearer YOUR_API_KEY
Model IDs   the model name, for example glm-5.3; <provider>/<model> picks one provider
curl https://api.freetheai.org/v1/chat/completions \
  -H "Authorization: Bearer $FREETHEAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "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="glm-5.3",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(reply.choices[0].message.content)

Chat Completions, Responses, and Anthropic Messages are supported, with streaming and tool calls. Claude Code and the Anthropic SDK use the base URL https://api.freetheai.org. 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.

SDKs and examples

Language Package Repository
Python pip install freetheai freetheai-python
JavaScript and TypeScript npm install freetheai freetheai-js
Go go get github.com/Free-The-Ai/freetheai-go freetheai-go
Recipes for all of the above freetheai-cookbook

Code you can copy is in examples/.

Pricing

  • Add funds to one FreeTheAI wallet, from $5, with crypto or a card.
  • Each request bills the tokens it used at the provider's listed price. Prices for every provider are on the models page.
  • No subscription, and no daily limit to wait out.

Models

The live list, with prices, context sizes, and every provider that serves each model, is at freetheai.org/models. A model ID is the model name, for example glm-5.3, and by default the request goes to the cheapest provider you follow. Write <provider>/<model> to pick one provider.

Apps and setup guides

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.

Privacy

Read the Terms and the Privacy Policy for what is collected and who is responsible for it.

For AI agents

SKILL.md teaches coding agents how to set up FreeTheAI in a user's tools without inventing keys, endpoints, or model IDs.

This repository

  • examples/ holds copy-paste code for common SDKs.
  • site/ is the small Astro site that forwards the old freetheai.xyz links to freetheai.org. It deploys to GitHub Pages on every push to master.

Support and credits

FreeTheAI is built by Vibhek Soni (@vibheksoni). A tip on Buy Me a Coffee helps cover the servers. Starring the repo and sharing it helps too.

License

MIT. See LICENSE.

探索相关项目

加载中…