Build with FreeModel in minutes.
Guides and API reference for chat completions, streaming, tool calling, vision and reasoning — plus setup guides for every major coding agent.
Your first request in three steps
- Create a free account1M tokens every month on 8 fast models after a one-time Telegram verification. No card required.
- Generate an API keyFrom your dashboard → API keys.
- Point your SDK at the base URLEverything else in your code stays the same.
curl https://freemodel.in/v1/chat/completions \
-H "Authorization: Bearer $FREEMODEL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "deepseek-v4.1-flash-1017",
"messages": [{"role": "user", "content": "Hello!"}]}'
from openai import OpenAI
client = OpenAI(base_url="https://freemodel.in/v1", api_key="fm_…")
res = client.chat.completions.create(
model="deepseek-v4.1-flash-1017",
messages=[{"role": "user", "content": "Hello!"}],
)
print(res.choices[0].message.content)
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://freemodel.in/v1", apiKey: process.env.FREEMODEL_API_KEY });
const res = await client.chat.completions.create({
model: "deepseek-v4.1-flash-1017",
messages: [{ role: "user", content: "Hello!" }],
});
Get started
Create an API key and make your first request in under five minutes.
ReadBearer token authentication, key scopes, and rate limits.
ReadStep-by-step setup for Kilo Code, Cline, Cursor, opencode, Claude Code, Continue and Aider with one FreeModel key: base URL, model id and common fixes.
ReadAPI reference
Full reference for /v1/chat/completions on FreeModel: request fields, supported parameters, streaming, tool calls, the response shape and error codes.
ReadReceive tokens as they are generated using server-sent events.
ReadList models, inspect their capabilities, and read their pricing.
ReadCreate and edit images up to 4K with the OpenAI Images API.
ReadTurn a sentence or a photo into a video with sound through the OpenAI Videos API.
ReadCapabilities
Let models call your functions: tool definitions, tool_choice, parallel calls and streamed arguments on FreeModel, the mechanism behind AI coding agents.
ReadSend images alongside text for analysis, OCR, and UI understanding.
ReadHow reasoning models think before answering, where FreeModel returns the reasoning text, and how to budget max_tokens so answers do not come back empty.
Read