Documentation
Build with FreeModel in minutes.
Guides and API reference for chat completions, streaming, tool calling, vision, reasoning and embeddings — plus setup guides for every major coding agent.
Quickstart
Your first request in three steps
- Create a free account1M tokens every month, 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.
https://freemodel.in/v1
curl https://freemodel.in/v1/chat/completions \
-H "Authorization: Bearer $FREEMODEL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-6-luna",
"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="gpt-6-luna",
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: "gpt-6-luna",
messages: [{ role: "user", content: "Hello!" }],
});
Get started
API reference
Chat Completions
Full reference for /chat/completions, including all supported parameters.
ReadStreaming
Receive tokens as they are generated using server-sent events.
ReadModels
List models, inspect their capabilities, and read their pricing.
ReadEmbeddings
Turn text into vectors for search, RAG, and clustering.
ReadImage Generation
Create and edit images up to 4K with the OpenAI Images API.
Read