Provider

Best free coding model APIs

Coding tools need different models for different jobs. An agent needs tool calling and a long context. Autocomplete needs a fast model. This page lists the free coding models in the FreeLLMAPI catalog today, by job. The tables come from the live catalog, so the limits are current.

What makes a model good for coding work

A coding benchmark score is not sufficient. The model must also work with your tool. Check these four properties before you select a model.

PropertyWhy it is importantMinimum for agent work
Tool callingAgents such as Cline, OpenCode and Claude Code read files and run commands through tool calls. A model without tool calling cannot do these steps.Required
Context windowAn agent sends a system prompt, tool definitions and file contents in each request. This is often 20K to 60K tokens before your question.128K tokens
Tokens per minuteA large prompt on a tier with a low tokens-per-minute limit fails with a 429 error on the first request.More than one full prompt per minute
SpeedAutocomplete must answer in less than one second. A slow model is not usable for ghost text.Fast models for autocomplete

Today the free catalog has 190 models with tool calling and 56 models with a context window of 1M tokens or more. The tables below filter these models by job.

Free models for coding agents

Use these models with agents that edit files: Claude Code, Codex CLI, Cline, Roo Code, Kilo Code, OpenCode and Aider. Each model in the table supports tool calling and has a context window of at least 128K tokens. The order is by measured intelligence.

Free models for coding agents: tool calling and 128K+ context
ModelFree onContextFree limits (best offer)ToolsVision
GLM 5.3UnoRouter1M1 req/min
1 req/min per model
YesNo
GLM 5.3 FlashNVIDIA NIM, UnoRouter1M40 req/min
40 RPM
YesYes
Gemini 3.8 FlashGoogle AI Studio1MRecurring provider quotaYesYes
Qwen3.8 Flash NextAMD Radeon Cloud262KRecurring daily account allowanceYesNo
Qwen3.8 FlashElectronHub1M$0.25/week shared recurring creditYesYes
Gemini 3.7 FlashGoogle AI Studio1M10 req/min
20 req/day
250,000 tokens/min
~3M
YesYes
GPT-5.6 LunaElectronHub1M$0.25/week shared recurring creditYesYes
Dots3 Note PreviewKilo Gateway, OpenRouter512K20 req/min
50 req/day
50 req/day account-wide (1,000 after a $10 purchase)
YesYes
DeepSeek V4 FlashAMD Radeon Cloud, BazaarLink, ElectronHub1M10 req/min
50 req/day
Shared rate limit
YesNo
Qwen3.8 27BElectronHub, Groq, OVH AI Endpoints262K30 req/min
250 req/day
70,000 tokens/min
~6M
YesYes
Gemini 3.6 FlashGoogle AI Studio1M10 req/min
20 req/day
250,000 tokens/min
~3M
YesYes
Qwen 3.8 27BCloudflare Workers AI262KShared 10k neurons/dayYesYes
Gemini 3.5 FlashGoogle AI Studio1M10 req/min
20 req/day
250,000 tokens/min
~3M
YesYes
MiniMax M3ElectronHub1M$0.25/week shared recurring creditYesNo
Typhoon 2.5 30B A3B InstructTyphoon131KOngoing free research API (shared rate limits)YesNo

Showing 15 of 109 matching free models. See all models.

Live data from the FreeLLMAPI catalog (version 2026.11.19, checked 19 November 2026). Free limits change often. The catalog is checked every day.

Look at the limits column. A model with a high rank and a limit of 20 requests per day is good for planning steps. It is not good for a long agent loop. A model with 40 requests per minute is better for many small edit steps.

Free code-specialist models

Some model families are trained for code. These include Qwen3 Coder, Codestral, Devstral and GPT-OSS. GLM models are general models with strong code results, and they show in the agent table above. The table shows the free offers for these families today. Some offers do not support tool calling. Use those offers for chat and autocomplete only.

Free code-specialist models (Qwen Coder, Codestral, Devstral, GPT-OSS)
ModelFree onContextFree limits (best offer)ToolsVision
GPT-OSS 20BApi.Airforce, Cloudflare Workers AI, Groq +4 more131K30 req/min
1,000 req/day
8,000 tokens/min
200,000 tokens/day
~6M
YesNo
GPT-OSS 120BCLōD, Cloudflare Workers AI, ElectronHub +3 more131K30 req/min
1,000 req/day
8,000 tokens/min
200,000 tokens/day
~6M
YesNo
OpenAI: GPT OSS 20BElectronHub128K$0.25/week shared free creditsNoNo
Mistral: Devstral 2512ElectronHub262K$0.25/week shared free creditsNoNo
Qwen3 Coder 480B A35B Instruct (turbo)Inferbase8K5,000 requests/month; 100 requests and $0.50 usage/day sharedNoNo
Qwen3 CoderSeptor Labs128KShared daily allowanceYesNo
GPT-OSS 120B (via Groq)DreamPrompting131K100 req/min
5,000 req/day
500,000 tokens/day
500K tokens/day · 5,000 req/day
NoNo
Qwen3 Coder PlusACLIDE-€20/month shared internal usage credits · no cardYesNo
Qwen3 Coder 30B A3B InstructElectronHub, ModelScope262K200 req/day
Daily login: 200 credits + 50 for linked Alibaba Cloud; 24h expiry; shared; noncommercial experience
YesNo
Devstral 2ACLIDE, xKiro262K500K tokens/day (1M with Telegram)YesNo
GPT-OSS 20B (via Groq)DreamPrompting131K100 req/min
5,000 req/day
500,000 tokens/day
500K tokens/day · 5,000 req/day
NoNo
Qwen2.5 Coder 32BCloudflare Workers AI33K~10-20MYesNo
CodestralDreamPrompting, LLM7, Mistral +1 more256K100 req/min
5,000 req/day
500,000 tokens/day
500K tokens/day · 5,000 req/day
YesNo
Codestral 2508ACLIDE, Api.Airforce, ElectronHub +1 more256K1 req/min
1,000 req/day
1,000 req/day · 1 req/min
YesNo
codestral-latestApi.Airforce32K1 req/min
1,000 req/day
1,000 req/day · 1 req/min
NoNo

Showing 15 of 17 matching free models. See all models.

Live data from the FreeLLMAPI catalog (version 2026.11.19, checked 19 November 2026). Free limits change often. The catalog is checked every day.

Note: a general model with a high rank is often better at agent work than a small code-specialist model. Code-specialist models are most useful for autocomplete and short edits.

Fast free models for autocomplete and small edits

Ghost-text autocomplete sends a request after almost every pause in typing. It needs low latency, not a high rank. FreeLLMAPI serves these clients on /v1/completions, the legacy OpenAI prompt and suffix format. The table shows fast free models with a context window of at least 32K tokens.

Fastest free models with 32K+ context
ModelFree onContextFree limits (best offer)ToolsVision
Qwen3.8 27BBlazeAPI, ElectronHub, Gizmo +3 more262K30 req/min
250 req/day
70,000 tokens/min
~6M
YesYes
GPT-OSS 20BApi.Airforce, Cloudflare Workers AI, Groq +4 more131K30 req/min
1,000 req/day
8,000 tokens/min
200,000 tokens/day
~6M
YesNo
Nemotron 3.5 LightningElectronHub, Gizmo, Kilo Gateway +2 more1M20 req/min
50 req/day
50 req/day account-wide (1,000 after a $10 purchase)
YesNo
GPT-OSS 120BCloudflare Workers AI, ElectronHub, Groq +1 more131K30 req/min
1,000 req/day
8,000 tokens/min
200,000 tokens/day
~6M
YesNo
GPT-OSS 20B (via Groq)DreamPrompting131K100 req/min
5,000 req/day
500,000 tokens/day
500K tokens/day · 5,000 req/day
NoNo
GPT-OSS Safeguard 20BGroq131K30 req/min
1,000 req/day
8,000 tokens/min
200,000 tokens/day
~6M
YesNo
Groq Compound MiniDreamPrompting131K100 req/min
5,000 req/day
500,000 tokens/day
500K tokens/day · 5,000 req/day
NoNo
Gemini 3.5 Flash LiteElectronHub, Google AI Studio1M15 req/min
20 req/day
250,000 tokens/min
~3M
YesYes
Step 3.7 FlashElectronHub256K$0.25/week shared recurring creditYesYes
Gemini 3.1 Flash-LiteDreamPrompting, Google AI Studio1M100 req/min
5,000 req/day
500,000 tokens/day
500K tokens/day · 5,000 req/day
YesYes

Showing 10 of 215 matching free models. See all models.

Live data from the FreeLLMAPI catalog (version 2026.11.19, checked 19 November 2026). Free limits change often. The catalog is checked every day.

Autocomplete uses many requests. Keep it on a model with high per-minute limits. Do not put it on the same small daily quota as your agent. Read Continue with a free API for an autocomplete config.

How to use one key for all coding tools

FreeLLMAPI pools the free tiers of 45 providers behind one key. It speaks the OpenAI, Anthropic, Gemini and Ollama formats. Each coding tool connects to the format it knows.

Install, then connect a tool

curl -fsSL https://freellmapi.co/install.sh | bash
export FREELLMAPI_API_KEY=<unified-key>
npx freellmapi setup-opencode --url http://localhost:3001 --dry-run
npx freellmapi setup-opencode --url http://localhost:3001

Replace setup-opencode with the command for your tool, for example setup-cline, setup-aider or setup-codex. The command reads the live /v1/models catalog, makes a backup of the existing config and merges the new settings.

To steer a request without a change on the dashboard, use a routing model id:

  • auto: follows your active fallback chain.
  • auto:smart: prefers the models with the highest intelligence. Use it for planning and difficult bugs.
  • auto:fast: prefers measured speed. Use it for autocomplete and small edits.
  • auto:<profile-name>: uses a named fallback chain, for example auto:coding. Make the profile on the dashboard first.

FreeLLMAPI also reads the X-FreeLLM-Task-Type: code header. Requests with tools or code markers are treated as code by default. For code, the router moves some weight from speed to intelligence.

Limits and how to stay inside them

Free tiers are small. One agent task can send 20 to 100 requests. A single free key stops a long task fast. FreeLLMAPI counts requests and tokens for each key. When a provider sends a 429 error, the router sends the request to the next model in the chain. The X-Routed-Via header shows which provider answered.

  • Add keys from four or more providers. More providers give more requests per day.
  • Make a coding profile with only tool-calling, long-context models. Use it with auto:coding.
  • Keep sticky sessions on. A conversation stays on one model for 30 minutes, which keeps the agent consistent.
  • Turn on context handoff with FREELLMAPI_CONTEXT_HANDOFF=on_model_switch. The next model then gets a short note that it continues a task.
  • Start a new session between tasks. A smaller context uses fewer tokens per request.
ProblemCauseFix
The agent stops after one tool callThe model has weak tool callingUse a model from the agent table above
429 on the first requestThe prompt is larger than the tier's tokens-per-minute limitUse a model with a larger limit, or let the router fail over
"All models rate-limited after N attempts"Every key in the chain is at its limitAdd keys from more providers, or wait for the cooldowns to end
Edits are slowA large model on a slow free tierUse auto:fast for small edits
Use every one of these through one key. FreeLLMAPI is an open-source, self-hosted router that puts all these free tiers behind a single OpenAI-compatible endpoint and fails over when one is rate-limited. Browse the catalog or go live.

Frequently asked questions

What is the best free coding model API?

For agent work, use a model with tool calling and at least 128K context. The first table on this page shows the strongest free models that meet both rules today. For autocomplete, use a fast model from the speed table.

Is there a free Codestral API?

Yes. Mistral serves Codestral on its free tier, and other providers also list it. The code-specialist table shows the current free offers and their limits.

Is there a free Qwen3 Coder API?

Yes. The FreeLLMAPI catalog lists free Qwen3 Coder offers from several providers today. Some offers do not support tool calling, so check the Tools column before you use one in an agent.

Can a free model run a coding agent like Cline or Claude Code?

Yes, if the model supports tool calling and has a large context window. Free tiers have rate limits, so add keys from several providers and let FreeLLMAPI fail over between them.

Which free model is best for code autocomplete?

Use a fast model with high per-minute limits. Autocomplete sends many short requests, so speed is more important than rank. FreeLLMAPI serves autocomplete clients on /v1/completions.

Sources

All guides · Browse all free models

Keep reading

All posts →
Provider

Free Gemini API

Google AI Studio's permanent free tier — Gemini and Gemma, no credit card.

Provider

Free DeepSeek API

DeepSeek V3, R1 and V4 served free across multiple providers.

Provider

Free Llama API

Meta's Llama models free across 14 providers, behind one key.