Google, released Jul 13, 2024

Gemma 2 27B

Gemma 2 27B is an open-weights text model Google released in July 2024, drawn from the same underlying work as the Gemini family. In Google's lineup it sits at the budget end, well below the newer Gemini 3.7 Flash and Gemini 3.8 Flash models and the much pricier Gemini 4 series (Argon, Carbon, Hydrogen, Neon), with a small context window and short replies to match. It's built for straightforward text work and structured outputs where keeping costs low matters more than running the latest generation.

Already paying for Gemini?

Gemma 2 27B costs $0.65 per 1M output tokens. Use Gemini 4 Argon through your Gemini plan instead, $0 per token.

Get your API key Free plan, no card needed

Updated

Gemma 2 27B pricing and specs

Input
$0.65per 1M tokens
Output
$0.65per 1M tokens
Context window
8K8,192 tokens
Max output
2K2,048 tokens
Released
Jul 13, 2024
Knowledge cutoff
Jun 2024
Accepts
Text
Features
Structured outputsOpen weights

What Gemma 2 27B is good at

  • Pulling structured fields out of short text snippets, since it supports structured JSON output and stays cheap even when you're generating heavy output volume (output costs the same as input here, unlike the Gemini models where output runs much higher).
  • Prototyping a workflow you might self-host later. Because the weights are open under google/gemma-2-27b-it, you aren't stuck on an API if you eventually want to run it yourself.
  • Quick, contained text jobs like classification, short rewrites or simple Q&A that don't need a big prompt.
  • High-volume batch runs where paying for Gemini 3.7 Flash or a Gemini 4 model is overkill.

Good to know

  • The context window is tight and replies cap out early, so don't pick this for long documents, big chat histories or anything that needs multi-page output. You'll hit the wall fast.
  • Text only. If you need images or audio, you'll have to look elsewhere.
  • Its knowledge stops at June 2024, and the model itself is from July 2024 - compared to Google's 2026 releases like Gemini 3.8 Flash or the Gemini 4 lineup, it's an older generation. So if your app depends on recent facts, you'll need to pass them in yourself, and you don't have much prompt space to do it.

Gemma 2 27B vs similar models

API price per 1M tokens
ModelInputOutputPlan2APIContext
Gemma 2 27B$0.65$0.65Not available8K
Gemini 4 Neon$3$15Not available1M
Gemini 4 Hydrogen$1.50$7.50Not available1M
Gemini 4 Carbon$4$20Not available1M
Gemini 4 Argon$4$20$0 on Gemini1M
DeepSeek V4 Flash Vision Exp$0.216$0.647Not available1M

Gemma 2 27B cost per month

Tokens a month at $0.65 input and $0.65 output per 1M
WorkloadAPI price
Side project2M in, 500K out$1.63
Production app25M in, 5M out$19.50
Agents at scale250M in, 50M out$195

FAQ

How much does the Gemma 2 27B API cost?

Gemma 2 27B costs $0.65 per 1M input tokens and $0.65 per 1M output tokens.

What is the Gemma 2 27B context window?

Gemma 2 27B takes 8,192 tokens of context, with up to 2,048 output tokens per request.

When was Gemma 2 27B released?

Google released Gemma 2 27B on Jul 13, 2024.

Can I use Gemma 2 27B with my subscription?

Plan2API turns Claude, ChatGPT, Gemini and Kimi subscriptions into one OpenAI-compatible API. Gemini 4 Argon runs through your Gemini plan at $0 per token instead.

Can I move off the API and host Gemma 2 27B myself?

Yes. Google published the weights openly as google/gemma-2-27b-it, so you can test it over an API now and move the exact same model onto your own hardware later.

Does it support structured JSON output?

It does. Just keep the responses compact, since the per-reply output cap isn't very generous.

More Google models

All 22 Google models

Already paying for Gemini? Use Gemini 4 Argon through your plan, $0 per token.

  • Free: 1 subscription, no daily cap, no card
  • Pro: $12 a month

Gemini 4 Argon at $0 per tokenFree plan, no card needed

Get your API key

Guides

80