Guides for builders shipping with AI.
Practical, tested write-ups on coding agents, OpenAI-compatible APIs, model selection and keeping token costs down.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.
Try another category or search term.
Release notes, new models and setup guides — straight from our channel. No spam.
