Quickstart

Free AI API, ready in minutes.

Sign up in Discord, unlock your key with /checkin, point the OpenAI SDK at FreeTheAi, send a chat completion. No credit card. No waiting list.

1

Get a free API key

Join the FreeTheAi Discord, run /signup, and complete the modal. You get an active key immediately.

  • Join discord.gg/secrets
  • Run /signup and answer the use-case + bot-disclosure + human challenge in the modal
  • Lost your key later? Use /resetkey to rotate it
2

Unlock today with /checkin

FreeTheAi uses a daily /checkin in Discord to keep automated bots and abuse off the free pool. You run it once per UTC day with your existing key, solve a tiny human challenge, and your key is unlocked for the next 24 hours.

  • Run /checkin in Discord and paste your existing API key in the modal
  • Solve the randomized challenge - it's the same idea as a captcha, just lighter
  • Until you check in, requests return 403 daily_checkin_required. After check-in your key works normally for the rest of the UTC day.
3

Install the OpenAI SDK

FreeTheAi is OpenAI-compatible, so you can keep using the official SDK you already have.

Python
pip install openai
Node.js
npm install openai
4

Point base URL at FreeTheAi

Set base_url (or baseURL) to https://api.freetheai.xyz/v1 and pass your FreeTheAi key as the API key.

5

Send your first request

Pick any alias from the model catalog. Pricing on the free tier stays $0.

Python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_FREETHEAI_KEY",
    base_url="https://api.freetheai.xyz/v1",
)

response = client.chat.completions.create(
    model="bbg/deepseek-ai/DeepSeek-V3.2",
    messages=[{"role": "user", "content": "Reply with OK."}],
)

print(response.choices[0].message.content)
JavaScript / TypeScript
import OpenAI from "openai";

const client = new OpenAI({
    apiKey: process.env.FREETHEAI_API_KEY,
    baseURL: "https://api.freetheai.xyz/v1",
});

const response = await client.chat.completions.create({
    model: "bbg/deepseek-ai/DeepSeek-V3.2",
    messages: [{ role: "user", content: "Reply with OK." }],
});

console.log(response.choices[0].message.content);
curl
curl https://api.freetheai.xyz/v1/chat/completions \
  -H "Authorization: Bearer $FREETHEAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "bbg/deepseek-ai/DeepSeek-V3.2",
    "messages": [{"role": "user", "content": "Reply with OK."}]
  }'
Next stops

Where to go next.