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.

1
Get a free key. Join discord.gg/secrets, run /signup, and complete the modal. Lost it? Use /resetkey.
2
Unlock today. Run /checkin once per UTC day and solve the human challenge. Until then, the API returns 403 daily_checkin_required.
3
Send a request. Install the OpenAI SDK, set base_url to https://api.freetheai.xyz/v1, and pick any alias from the model catalog.
pip install openai

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["FREETHEAI_API_KEY"],
    base_url="https://api.freetheai.xyz/v1",
)

response = client.chat.completions.create(
    model="opc/deepseek-v4-flash-free",
    messages=[{"role": "user", "content": "Reply with OK."}],
)

print(response.choices[0].message.content)
npm install openai

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: "opc/deepseek-v4-flash-free",
    messages: [{ role: "user", content: "Reply with OK." }],
});

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

Where to go next.