FT

free-the-ai/free-ai

Developer tools
39 stars Quality 71 Trend 27MIT

Docs · Setup guides · Models · Daily check-in · Status · Discord

Overview

Docs · Setup guides · Models · Daily check-in · Status · Discord

README

Docs · Setup guides · Models · Daily check-in · Status · Discord

FreeTheAI

FreeTheAI is a free, OpenAI-compatible AI API. One key and one base URL give you dozens of chat models with streaming, tool calling, web search with sourced answers, and image and video generation. Also searched as Free The AI, Free The Ai, and FreeTheAi.

[!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. Do the daily check-in once a day to unlock the free models until 00:00 UTC.
  3. Point your app at the base URL.
Base URL    https://api.freetheai.org/v1
Auth        Authorization: Bearer YOUR_API_KEY
Model IDs   fta//, 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.

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/.

Free tier

  • 50 requests a day on the free models. The count resets at 00:00 UTC, and failed requests don’t count.
  • Free models need the daily check-in at freetheai.org/checkin.
  • Paid plans are coming soon.

Models

The live list, with context sizes, is at freetheai.org/models. Model IDs start with a short tag:

Prefix What it holds
fta/zai/* GLM models, including glm-5.3 and glm-5.3-flash
fta/kimi/* Kimi K3
fta/mmx/* MiniMax M3
fta/bbl/*, fta/vbk/*, fta/olm/*, fta/olf/*, fta/kai/*, fta/ocz/* Chat, reasoning, and open-weight models, some with free tiers

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.

View the full README on GitHub

Recommended Tools

Try a different keyword or remove a filter.

Install

npx skillfish add free-the-ai/free-ai
New to MCP? Start with the mcpskill.org guide →