OpenAI-compatible

Drop-in OpenAI-compatible API access.

If your app, SDK, or AI client lets you set an OpenAI-compatible base URL, it can usually talk to FreeTheAi. Change the base URL, use your FreeTheAi key, and pick an exact model alias from the catalog.

Copy-paste basics

Use the same FreeTheAi gateway everywhere.

Developers, students, hobby projects, Discord bots, AI clients, and agent frameworks.

Base URL https://api.freetheai.xyz/v1
Auth header Authorization: Bearer YOUR_FREETHEAI_KEY
Model source GET /v1/models or https://freetheai.xyz/models
Why it works

Built for real clients, not just docs.

Drop-in SDK support

Use standard OpenAI SDK configuration with a custom base URL and your FreeTheAi key.

Multiple compatibility routes

Chat Completions, Messages, Responses, image generation, and image editing share one public gateway.

No card to start

The free tier starts from Discord signup and daily check-in. Optional paid slots are separate.

Routes

Pick the route your client expects.

POST /v1/chat/completions

OpenAI-compatible chat endpoint with streaming and tool calling where supported by the selected model.

POST /v1/messages

Anthropic-style Messages route for Claude-style clients and frameworks.

POST /v1/responses

Responses-compatible route for newer OpenAI-style integrations.

Exact setup

Start with one of these guides.

Each guide includes the right URL format, model field, and common client-specific gotchas.

FAQ

Fast answers.

Is FreeTheAi OpenAI-compatible?

Yes. Use https://api.freetheai.xyz/v1 as the base URL with your FreeTheAi API key and exact model aliases from the catalog.

Does the free API require a credit card?

No. Users get a free key in Discord with /signup and unlock it daily with /checkin.

Which endpoint should I use first?

Use POST /v1/chat/completions first. Use /v1/messages or /v1/responses only when your client expects those protocols.