Free Reasoning Model APIs: Thinking Models for Free
Call a thinking model for free: Gemini 3.8 Flash, Groq’s GPT-OSS and Qwen 3.8, OpenRouter :free models. Limits, thinking on/off and token cost.
- Time
- 10 minutes
- You need
- A Google, GroqCloud or OpenRouter account · Python 3 for the code examples (or curl)
- Last checked
A reasoning (or "thinking") model writes out intermediate steps before it answers. That helps on maths, logic, planning and code, and wastes time and tokens on simple lookups. Why does it "think" before answering? shows when it pays off. Three providers say on their own pages that you can call a thinking model for free. Everything below was checked on the vendors' pages on 2026-10-21; where a rule differs by model, the model is named.
What you get
Gemini API free tier (Gemini Developer API free tier)
- Google's pricing page lists "Output price (including thinking tokens)" as "Free of charge" on the free tier, for example for Gemini 3.8 Flash and Gemini 2.5 Flash-Lite (page updated 2026-10-19).
- Thinking per model (thinking docs, updated 2026-10-14):
gemini-3.8-flashthinks by default at "medium" and acceptslow,mediumandhigh;gemini-3.6-flashalso acceptsminimal;gemini-2.5-flash-litehas thinking off by default and acceptslow,mediumandhigh. - Thinking tokens count: "response pricing is the sum of output tokens and thinking tokens", reported in
usage.total_thought_tokens. On the free tier the price is zero, but the tokens are still generated. - Google does not publish a fixed free-tier rate table; your limits are shown in AI Studio. Free-tier content is "used to improve our products".
Groq Free plan (Groq free tier)
- Groq's reasoning models
openai/gpt-oss-120b,openai/gpt-oss-20bandqwen/qwen3.8-27bare all in its Free plan limits table: 30 requests per minute, 1,000 per day, 8,000 tokens per minute and 200,000 tokens per day each. - Thinking per model: on GPT-OSS 20B and 120B,
reasoning_effortislow,mediumorhigh, with no off setting. On Qwen 3.8 27B,reasoning_effort: "none"disables reasoning ("will not use any reasoning tokens"),defaultreturns no reasoning tokens on Groq, andlow,medium,highturn it on. reasoning_formatchooses how you see it:parsed(a separatemessage.reasoningfield),raw(inside<think>tags) orhidden(final answer only). Groq's docs describe reasoning as "part of the token output"; they do not say separately how it counts against the free plan's token limits.
OpenRouter :free models (OpenRouter free models)
- On 2026-10-21, 17 free model variants supported the
reasoningparameter, for examplenvidia/nemotron-3-ultra-550b-a55b:free("an open frontier-reasoning and orchestration model", "Price Free") andgoogle/gemma-4-31b-it:free. - One
reasoningparameter for all models:"effort"("none""disables reasoning entirely";"high"allocates about 80% ofmax_tokens), or"max_tokens"for a reasoning budget, plus"exclude": trueto hide the reasoning from the response. Seteffortormax_tokens, not both. - "Reasoning tokens are considered output tokens and charged accordingly" (free variants cost nothing). Free variants allow 20 requests per minute and 50 per day, or 1,000 per day once you have bought at least 10 credits.
Steps
Gemini (Python, from Google's thinking docs)
- Create a free key in Google AI Studio (see the Gemini API key guide) and set
GEMINI_API_KEY. pip install google-genai, then set the thinking level:
from google import genai
client = genai.Client()
interaction = client.interactions.create(
model="gemini-3.8-flash",
input="Provide a list of 3 famous physicists and their key contributions",
generation_config={
"thinking_level": "low"
}
)
print(interaction.output_text)- To see what the thinking cost, print the usage fields (same docs):
print("Thoughts tokens:", interaction.usage.total_thought_tokens)
print("Output tokens:", interaction.usage.total_output_tokens)Groq (Python, from Groq's reasoning docs)
- Create a key in the GroqCloud console (see the Groq API key guide) and set
GROQ_API_KEY. pip install groq, then pick the effort and format:
from groq import Groq
client = Groq()
chat_completion = client.chat.completions.create(
messages=[
{
"role": "user",
"content": "How do airplanes fly? Be concise."
}
],
model="qwen/qwen3.8-27b",
stream=False,
reasoning_format="raw",
reasoning_effort="medium"
)
print(chat_completion.choices[0].message)Use reasoning_effort="none" on this model for a quick answer without thinking.
OpenRouter: send an OpenAI-style chat request to https://openrouter.ai/api/v1 with a free model ID and add "reasoning": { "effort": "high" } (from OpenRouter's reasoning tokens guide), or "effort": "none" to turn it off. See the OpenRouter free models guide.
When to turn thinking down
- Lookups and short rewrites: turn it off or to the lowest level (
reasoning_effort: "none"on Qwen 3.8 27B,"effort": "none"on OpenRouter,lowon Gemini 3.8 Flash, which cannot turn it off). Thinking adds tokens and seconds without a better answer. - Multi-step maths, logic and code: use
mediumorhigh. This is where thinking earns its tokens. - Free-tier budgets: on Groq, thinking tokens are output, so long thoughts use up 8,000 tokens a minute faster; set
max_completion_tokensand a lower effort for high-volume jobs. On Gemini, a smallmax_output_tokenscan stop the model mid-thought with an empty answer; lowerthinking_levelinstead, as Google's docs advise.
Limits and the catch
- Thinking costs time. A high-effort answer can take many seconds; stream it if a person is waiting.
- The thoughts are not always shown. Gemini returns thought summaries, not the full chain; Groq's
hiddenformat and OpenRouter'sexcludereturn only the answer. - Your data may be used. Google marks free-tier content as "used to improve our products". Do not send private data to a free tier.
- Free lineups change. Check Groq's Free plan table and OpenRouter's
:freelist before you build on a model.
If it doesn't work
- Gemini returns an empty or "incomplete" answer: the output limit ran out while thinking; raise
max_output_tokensor lowerthinking_level. - Groq returns 400 with
rawformat: JSON mode and tool use do not supportraw; useparsedorhidden. - Groq ignores
reasoning_effort: "none": only Qwen 3.8 27B hasnone; GPT-OSS takeslow,mediumorhigh. - OpenRouter returns 429: you hit 20 requests per minute or the daily cap for free variants (50, or 1,000 after buying 10 credits).
Offers in this guide
- Google Gemini Developer API Free Tier · Free tier · no card
Free Gemini API tier with rate-limited access to Flash models and Gemini 2.5 Pro
- Groq Free Tier · Free tier · no card
Free rate-limited Groq API access to hosted open models, no card
- OpenRouter Free AI Models · 50 requests/day · no card
Free :free chat, embedding and rerank models at $0 through OpenRouter's API
Understand it
A few minutes of play-along, no sign-up.
- Why does it ‘think’ before answering? · Reasoning (thinking) models · 5 min
- Why does it miscount the r’s in "strawberry"? · Tokens · 3 min
Frequently asked questions
- Is there a free reasoning model API?
- Yes. The Gemini API free tier lists output including thinking tokens as free of charge (for example Gemini 3.8 Flash), Groq’s Free plan includes GPT-OSS 120B, GPT-OSS 20B and Qwen 3.8 27B, and OpenRouter has free reasoning variants. All are rate-limited.
- Do thinking tokens count?
- Yes. Google prices a response as output plus thinking tokens (free on the free tier) and reports them in total_thought_tokens. OpenRouter counts reasoning tokens as output tokens. Groq describes reasoning as part of the token output.
- How do I turn thinking off?
- On Groq’s Qwen 3.8 27B, reasoning_effort "none"; on OpenRouter, "reasoning": {"effort": "none"}. Gemini 3.8 Flash and Groq’s GPT-OSS models cannot turn it off; use the lowest level (low) instead. Gemini 2.5 Flash-Lite thinks only if you turn it on.
- When is a reasoning model worth it?
- For multi-step maths, logic, planning and code. For simple lookups and rewrites it spends tokens and time without improving the answer.
Sources
Steps and limits were checked against these official pages.
- ai.google.dev/gemini-api/docs/pricing
- ai.google.dev/gemini-api/docs/thinking
- console.groq.com/docs/reasoning
- console.groq.com/docs/rate-limits
- openrouter.ai/docs/guides/best-practices/reasoning-tokens
- openrouter.ai/docs/api/reference/limits
- openrouter.ai/nvidia/nemotron-3-ultra-550b-a55b:free
- openrouter.ai/api/v1/models
More guides
- How to Get a Free Gemini API Key
- How Students Can Get ChatGPT Plus Free
- How Students Can Get Google Gemini (AI Pro) Free
- How to Use an AI Coding Agent for Free
- How to Get a Free GPU for AI
- How to Apply for AI Startup Credits
- How to Get Free Claude API Credits
- How to Get a Free Groq API Key
- Free AI Image Generation: In the Browser and by API
- Free OpenAI API Access in 2026: What's Actually Free
- Free Embeddings and Reranking APIs in 2026
- Free Text-to-Speech APIs in 2026
- Free Speech-to-Text APIs in 2026
- Free AI Video Generators in 2026
- Free Image Generation APIs in 2026
- Free Web Search APIs for LLM Agents in 2026
- Free Vector Databases for RAG in 2026
- Free DeepSeek API in 2026: What Is Actually Free
- OpenRouter Free Models: Limits, Credits and API Setup
- Free Hugging Face Inference: Credits, ZeroGPU and Spaces
- Free AI APIs With No Credit Card in 2026
- Track Free-Tier Changes Automatically
- How to Run AI Locally for Free
- Free Vision APIs: Read Images and Screenshots for Free
- Free AI courses