Models → Pricing → Docs → Blog → Changelog → Contact → Status →
Get started freeLog in
Blog

Guides for builders shipping with AI.

Practical, tested write-ups on coding agents, OpenAI-compatible APIs, model selection and keeping token costs down.

GuidesNovember 25, 2026·6 min read

Build an AI Telegram Bot with the OpenAI SDK

A complete Python Telegram bot that answers with gpt-6-luna through the OpenAI SDK: Bot API long polling, chat memory, error handling and what it costs to run.

GuidesNovember 25, 2026·5 min read

AI API Access from Nigeria: Payment and Setup

Using an AI API from Nigeria without a dollar card: the FreeModel free plan, paying in USDT on BEP-20, picking a plan size, and fixing the usual first errors.

GuidesNovember 25, 2026·5 min read

Using an AI API from Pakistan: USDT and Free Plan

How to use an AI API from Pakistan without a card: start on the FreeModel free plan, then pay with USDT on BEP-20. Setup, a Python example and payment tips.

AI Coding ToolsNovember 25, 2026·5 min read

Aider Setup Guide: Custom OpenAI-Compatible Endpoint

Run Aider on FreeModel: OPENAI_API_BASE or --openai-api-base, the openai/ model prefix, config files, model metadata warnings and fixes for common errors.

ModelsNovember 25, 2026·5 min read

The Free AI Models on FreeModel and How to Use Them

The 8 models on the FreeModel free plan: what each lists, how the 1M monthly tokens work, the limits, and code to make your first free API call.

ModelsNovember 25, 2026·5 min read

The Cheapest Way to Run Claude Code

Run Claude Code free with Claude Haiku 5.5; Opus and Sonnet need a paid plan. Plan size, the 3x Claude rate, the setup, and seven habits that make a plan last.

AI Coding ToolsNovember 25, 2026·5 min read

Claude Desktop with a Custom API: What to Enter

Connect Claude Desktop to FreeModel: the Anthropic-format base URL, your fm_ key, Claude model ids, what the connection test checks, and how to fix each error.

AI Coding ToolsNovember 25, 2026·5 min read

Codex CLI with a Custom Provider (config.toml)

Run OpenAI Codex CLI on FreeModel: a model_providers block in config.toml, wire_api set to responses, the key in an env var, profiles, and common errors.

AI Coding ToolsNovember 25, 2026·5 min read

Continue Setup: Any Model in VS Code and JetBrains

Connect Continue in VS Code or JetBrains to FreeModel: the config.yaml model entry, apiBase, roles, tool use, the older config.json format and common errors.

EngineeringNovember 25, 2026·5 min read

How to Estimate Tokens Before You Send a Request

Estimate LLM tokens before you send: rules of thumb, tiktoken for rough counts, count_tokens for Claude, model multipliers and keeping prompts small.

ProductNovember 25, 2026·6 min read

The Free Plan, Explained: Tokens, Models, Limits

What the FreeModel free plan includes: 1M tokens a month, one-time Telegram verification, the free models, the speed limits, and when you need a paid plan.

PricingNovember 25, 2026·5 min read

Free vs Paid Plan: Which One Should You Choose?

A decision guide for FreeModel plans: what the free plan covers, when a paid plan is worth it, how to pick between Starter, Basic, Pro, Scale and Ultra.

EngineeringNovember 25, 2026·6 min read

Build a Function-Calling Agent in Python

Build a small tool-using agent in Python with the OpenAI SDK: define tools, run the loop, handle tool errors, cap steps and track tokens. Runs on a free model.

GuidesNovember 25, 2026·6 min read

Handling 402, 403 and 429 API Errors

What FreeModel API errors 402, 403 and 429 mean, the error codes behind each one, how to read them in Python and Node, and what fixes each of them.

PricingNovember 25, 2026·5 min read

How Plan Tokens and Model Multipliers Work

Each model uses plan tokens at its own rate. The formula, the current multipliers and four worked examples that show how far a FreeModel plan really goes.

GuidesNovember 25, 2026·5 min read

Image Generation API Guide: Studio and Code

Create images with FreeModel two ways: Image Studio in the dashboard, or /v1/images/generations from code. Request shape, sizes, per-image billing and errors.

EngineeringNovember 25, 2026·5 min read

LangChain with FreeModel: ChatOpenAI and Tool Calling

Use FreeModel from LangChain in Python: ChatOpenAI with base_url, streaming, a full tool-calling round trip, ChatAnthropic for Claude, and error handling.

AI Coding ToolsNovember 25, 2026·5 min read

LibreChat Custom Endpoint Setup (librechat.yaml)

Add FreeModel to LibreChat as a custom endpoint: the librechat.yaml block, every field explained, the key in .env, Docker mounting, title model and errors.

EngineeringNovember 25, 2026·5 min read

LlamaIndex with an OpenAI-Compatible API (OpenAILike)

Connect LlamaIndex to FreeModel with OpenAILike: which class to choose, the flags that matter, chat and streaming, a FunctionAgent, and the embeddings trap.

EngineeringNovember 25, 2026·5 min read

Long Context Done Right: What to Send and What to Cut

Practical rules for long LLM contexts: what belongs in the prompt, trimming chat history, summarising old turns, and what big contexts cost in plan tokens.

GuidesNovember 25, 2026·5 min read

Migrate from the Anthropic SDK to Our API

Point the Anthropic SDK and Claude Code at FreeModel: base URL without /v1, fm_ key auth, Claude model ids and multipliers, paid plan, and what differs.

GuidesNovember 25, 2026·5 min read

Migrate from the OpenAI SDK to Our API

Move an OpenAI SDK app to FreeModel with a two-line change: base URL and key, choosing model ids, what stays the same, what differs and which errors to handle.

AI Coding ToolsNovember 25, 2026·5 min read

Build an n8n AI Agent with Our API

Use FreeModel in n8n: an OpenAI credential with a custom Base URL, an AI Agent with chat model, memory and a tool, plus a plain HTTP Request fallback.

AI Coding ToolsNovember 25, 2026·5 min read

Open WebUI Setup with an OpenAI-Compatible API

Connect Open WebUI to FreeModel two ways: an OpenAI API connection in the admin settings, or Docker environment variables. Model list, costs and error fixes.

ComparisonsNovember 25, 2026·5 min read

OpenRouter vs Our API: A Fair Comparison

OpenRouter sells pay-per-token credits across many providers. FreeModel sells prepaid plans with model rates, UPI and USDT. How they differ and when each fits.

PricingNovember 25, 2026·5 min read

How to Pay for an AI API with UPI, Step by Step

Pay for a FreeModel AI API plan with GPay, PhonePe, Paytm or any UPI app: add balance, pay the exact amount, automatic matching, and what to do if it fails.

PricingNovember 25, 2026·5 min read

Paying for an AI API with USDT on BEP-20

Pay for FreeModel with USDT on BNB Smart Chain: send the exact amount, automatic on-chain matching, sending from an exchange, and the mistakes that lose money.

ModelsNovember 25, 2026·5 min read

How Plan Tokens Decide Which Plan You Need

Each model on FreeModel uses plan tokens at its own rate, from 1x to 4x. The formula, the rate groups, and five worked examples from Starter to Ultra.

EngineeringNovember 25, 2026·5 min read

Prompt Caching and Token Costs: What Actually Saves

How prompt caching works at model providers, how to structure prompts for it, how FreeModel counts cached input tokens today, and what really cuts token use.

GuidesNovember 25, 2026·5 min read

Rate Limits Explained: Requests per Minute by Plan

How FreeModel rate limits work: requests per minute per plan, counted across all keys, the X-RateLimit headers, 429 with Retry-After, and a client throttle.

PricingNovember 25, 2026·4 min read

Refund Policy Explained, With Worked Examples

FreeModel refunds unused tokens at any time: what you paid times the unused share. Worked examples, what is not refunded, and how UPI and USDT refunds are paid.

EngineeringNovember 25, 2026·7 min read

Retries and Backoff for LLM APIs: What to Retry

Which LLM API errors to retry and which to stop on: 429 and 503 yes, 402, 403 and 404 no. Backoff with jitter and Retry-After in Python and Node.

AI Coding ToolsNovember 25, 2026·5 min read

Roo Code Setup: Connect an OpenAI-Compatible API

A checklist for running Roo Code on FreeModel: OpenAI Compatible provider, base URL, key, model id, tool-capable models, profiles per mode, and error fixes.

EngineeringNovember 25, 2026·6 min read

Streaming Chat in Next.js with an OpenAI-Style API

Stream chat completions to a React UI in Next.js: an App Router route handler, a ReadableStream, a client-side reader, a Stop button and error handling.

EngineeringNovember 25, 2026·6 min read

Structured JSON Output from LLMs: A Practical Guide

Get reliable JSON from LLM APIs: response_format json_object and json_schema, Pydantic and Zod validation, a repair retry and a safe fallback.

ProductNovember 25, 2026·5 min read

How to Track API Usage and Costs in the Dashboard

A tour of the FreeModel usage page: billed tokens, cost at model price, filters by key and model, request logs, CSV export and how to spot what eats your plan.

AI Coding ToolsNovember 25, 2026·5 min read

Vercel AI SDK Setup: OpenAI and Anthropic

Use FreeModel in the Vercel AI SDK: createOpenAI, createOpenAICompatible or createAnthropic with a custom baseURL, plus streaming, tools and a Next.js route.

AI Coding ToolsNovember 25, 2026·5 min read

Zed Editor: Add a Custom OpenAI-Compatible Provider

Add FreeModel to Zed as an OpenAI-compatible provider: the settings.json block, model capabilities, where the API key goes, and fixes for the usual errors.

GuidesNovember 21, 2026·4 min read

AI Video Generation API — Text and Photo to Video with Sound

Video Studio is live: turn a sentence or a photo into a video with sound. Veo 3.1 for $0.26, Veo 3.1 Lite for $0.09 and Grok Imagine Video for $0.085, all HD — pay only for finished videos.

PricingOctober 12, 2026·5 min read

How to Pay for AI APIs from Bangladesh (USDT, No Card)

Many AI APIs only take card payments. Here is how to pay with USDT (BEP-20) instead — and what the process actually looks like.

GuidesOctober 2, 2026·6 min read

API Keys — Scopes, Rotation, and Not Leaking Them

How API key authentication works, why keys are hashed, when to scope them, how to rotate them, and what to do in the first minutes after one leaks.

ComparisonsOctober 2, 2026·6 min read

AI Coding Tools in 2026 That Work with Your Own API

Kilo Code, Cline, Cursor, opencode, Claude Code, Continue, Aider, and OpenClaw compared on real criteria — plus how to run any of them on one API key.

GuidesOctober 2, 2026·8 min read

Building Your First AI Feature — From API Key to Production

A complete walkthrough of shipping an AI feature: streaming, error handling, cost control, rate limits, and the things that break in production.

GuidesOctober 2, 2026·6 min read

How to Choose an AI Model for Coding (2026 Decision Guide)

Reasoning vs non-reasoning, context window, tool calling, and cost. A practical framework for picking the right model per task instead of guessing.

AI Coding ToolsOctober 2, 2026·6 min read

Using Claude Code with a Custom API Endpoint

Point Claude Code at any Anthropic-compatible API using environment variables. No proxy required, plus model selection and troubleshooting.

AI Coding ToolsOctober 2, 2026·5 min read

How to Connect Cline to Any AI Model (2026 Guide)

Set up Cline in VS Code with a custom OpenAI-compatible endpoint. Model selection, approval workflow, cost control, and every error explained.

AI Coding ToolsOctober 2, 2026·6 min read

How to Use a Custom AI API with Cursor (Step-by-Step)

Override Cursor's OpenAI base URL to use any model provider. Full setup, what works and what does not, and how to keep costs predictable.

AI Coding ToolsOctober 2, 2026·6 min read

Free Vibe Coding Tools — Build Without Paying for a Subscription

Every genuinely free AI coding tool worth using in 2026, what "free" really covers, and how to run all of them on 1M free tokens a month.

AI Coding ToolsOctober 2, 2026·6 min read

How to Use FreeModel with Kilo Code (Complete 2026 Setup Guide)

Connect Kilo Code to 40 AI models with one API key. Full setup, model selection for agentic work, vision support, and fixes for every common error.

AnnouncementsOctober 2, 2026·6 min read

Introducing FreeModel — One Endpoint for Every AI Model

One OpenAI-compatible API for 40 models, from 1M free tokens a month on 8 fast models to every model on paid plans. Streaming and tool calling on every plan.

GuidesOctober 2, 2026·6 min read

OpenAI-Compatible APIs — Why They Matter and How to Switch

One API shape, many providers. What OpenAI compatibility actually guarantees, where it breaks, and how to migrate an existing integration in two lines.

AI Coding ToolsOctober 2, 2026·6 min read

opencode Setup Guide — Terminal AI Agent with Any Model

Configure opencode to use a custom OpenAI-compatible provider. Full JSON config, model selection, remote and container workflows, and troubleshooting.

PricingOctober 2, 2026·7 min read

How to Reduce AI API Costs — 12 Techniques That Actually Work

Practical ways to cut token spend without losing quality, ranked by impact. Measured against real usage data, not guesswork.

EngineeringOctober 2, 2026·7 min read

Streaming AI Responses with Server-Sent Events (Complete Guide)

How SSE streaming works, why connections drop, and how to handle chunks, tool call deltas, usage, and errors correctly in Python and JavaScript.

EngineeringOctober 2, 2026·8 min read

Tool Calling Explained — How AI Agents Actually Edit Your Code

How AI coding agents call tools, with working code: full round trips, parallel calls, streamed argument deltas — and the empty-schema bug that breaks agents.

PricingOctober 2, 2026·6 min read

Understanding Token Pricing — What You Actually Pay For

Tokens, context windows, reasoning overhead, and why an agent costs more than a chatbot. A practical guide to estimating and controlling AI API spend.

EngineeringOctober 2, 2026·6 min read

Vision AI — Sending Screenshots and Images to a Model

How image input works, base64 vs URLs, what it costs, and why a tool sometimes refuses to attach a screenshot even when the model supports it.

GuidesOctober 2, 2026·6 min read

What Are Reasoning Models? And When They Are Worth the Cost

Reasoning models think before answering, which helps on hard problems and wastes money on easy ones. How they work, how they bill, and how to use them well.

AI Coding ToolsOctober 2, 2026·5 min read

What Is OpenClaw? The Browser-Based AI Agent Explained

OpenClaw runs an AI coding agent entirely in your browser — no install, no local runtime. How it works, what it is good at, and how to connect any model to it.

Get new guides in Telegram

Release notes, new models and setup guides — straight from our channel. No spam.

Join the channel