Textby Google

Gemma 2 27B

Gemma 2 27B by Google is an open model built from the same research and technology used to create the Gemini models. Gemma models are well-suited for a variety of...

  • By price it is in the cheaper half of the 345 text models GenMagic runs (126th cheapest).
  • Among the models GenMagic runs, it places in the top 10 on 1 of its 20 benchmarks: 9th of 10 on GSM8K.
  • It was listed on Jul 13, 2024.

Data last changed Nov 13, 2026 · tracked since Oct 29, 2026 · Every model change

Try Gemma 2 27B

Generate with Gemma 2 27B right here. Verify your email to start with free credits.

<$0.01
Try

Specifications

Context window

8K tokens

Max output

2K tokens

Knowledge cutoff

2024-06-30

Input price

$0.97 / 1M tokens

Output price

$0.97 / 1M tokens

Benchmarks

How Gemma 2 27B scores on public benchmarks. Each card links to the benchmark explainer and to the original source.

AIMEMathematics

1.4%± 0.9

source date 2025-03-07
Source: epoch
DTBenchReasoning & Knowledge

48%

Source: epoch
GPQA DiamondReasoning & Knowledge

36.5%± 2.4

source date 2025-01-27
Source: epoch
GSM8KMathematics

81.2%

source date 2026-06-10
Source: helm
LMArena (Coding)Instruction & Preference

1211 Elo

source date 2026-11-11
Source: lmarena
LMArena: Creative WritingInstruction & Preference

1240 Elo

source date 2026-11-11
Source: lmarena
LMArena: Hard PromptsInstruction & Preference

1198 Elo

source date 2026-11-11
Source: lmarena

1230 Elo

source date 2026-11-11
Source: lmarena
LMArena: MathMathematics

1222 Elo

source date 2026-11-11
Source: lmarena
LMArena: Multi-TurnInstruction & Preference

1224 Elo

source date 2026-11-11
Source: lmarena
LMArena (Overall)Instruction & Preference

1231 Elo

source date 2026-11-11
Source: lmarena
LMCAReasoning & Knowledge

7.1

Source: epoch
MATH (Level 5)Mathematics

27.9%± 1.0

source date 2025-01-27
Source: epoch
MedQAReasoning & Knowledge

68.4%

source date 2026-06-10
Source: helm
MMLUReasoning & Knowledge

75.7%

Source: epoch
NarrativeQAReasoning & Knowledge

79

source date 2026-06-10
Source: helm
Natural Questions (closed-book)Reasoning & Knowledge

35.3

source date 2026-06-10
Source: helm
Natural Questions (open-book)Reasoning & Knowledge

73.1

source date 2026-06-10
Source: helm
OpenBookQAReasoning & Knowledge

91.8%

source date 2026-06-10
Source: helm

Compare against every model in the full benchmark matrix.

Capabilities

Structured output

Returns validated JSON that conforms to a schema you define.

Use Gemma 2 27B through the API

The model id is google/gemma-2-27b-it. Requests bill your GenMagic balance at the price above, and each response reports what it cost.

curl
curl https://genmagic.co/api/v1/chat/completions \
  -H "Authorization: Bearer $GENMAGIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemma-2-27b-it",
    "messages": [{ "role": "user", "content": "Explain vector databases in two sentences." }]
  }'
Python (openai SDK)
from openai import OpenAI

client = OpenAI(base_url="https://genmagic.co/api/v1", api_key="YOUR_GENMAGIC_API_KEY")

resp = client.chat.completions.create(
    model="google/gemma-2-27b-it",
    messages=[{"role": "user", "content": "Explain vector databases in two sentences."}],
)
print(resp.choices[0].message.content)

From an AI agent, call generate_text with "model": "google/gemma-2-27b-it" on the GenMagic MCP server. Keys, limits and every endpoint are in the API documentation.

Use Gemma 2 27B in n8n

  1. In n8n, open the nodes panel, search for GenMagic and install it (a verified community node), then add it to your workflow.
  2. Set Resource to Text and Operation to Generate.
  3. In Model Name or ID, pick Google: Gemma 2 27B, or enter google/gemma-2-27b-it as an expression.
  4. Connect your GenMagic API key (get one free). Each run is billed at the price above, and the node returns what it cost.

Ready-to-import workflows that already use the node are on GenMagic for n8n.

Similar-priced text models from other providers

Other text models GenMagic runs at a comparable price, on the same balance and API key.

ModelProviderPriceContext
Google: Gemma 2 27B (this model)Google$0.97 in / $0.97 out per 1M tokens8K
Thinking Machines: Inkling 2 SmallThinkingmachines$0.45 in / $1.50 out per 1M tokens1M
Reflection: Beam 1.0 501B A23BReflection$0.45 in / $1.50 out per 1M tokens1M
Z.ai: GLM 4.5 AirZ.AI$0.30 in / $1.65 out per 1M tokens131K
Qwen: Qwen3 Coder 480B A35BQwen$0.45 in / $1.50 out per 1M tokens262K
Xiaomi: MiMo-V2.6-ProXiaomi$0.65 in / $1.30 out per 1M tokens1.1M

More from Google

All 41 Google models

Price and listing history

Every change GenMagic has recorded for Gemma 2 27B since it began tracking the model on Oct 29, 2026. Prices are GenMagic's, the same the studio and the API charge.

DateChangeBeforeAfter
Nov 1, 2026Price up 36%$0.71 in / $0.71 out per 1M tokens$0.97 in / $0.97 out per 1M tokens

Where these figures come from

  • Price: GenMagic's own price, what the studio and the API charge, recomputed from the provider's price list every few minutes and recorded daily. How pricing works.
  • Specs and description: as Google publishes them (model card on Hugging Face), checked daily.
  • Benchmarks: 20 scores from Epoch AI, Stanford HELM, LMArena, re-read daily. Each score above links to its source.
  • Changes: the data on this page last changed on Nov 13, 2026, tracked since Oct 29, 2026. Every model's new listings, price changes and retirements are in the model changes log, and how every figure on GenMagic is sourced is on our sources page.

Generate with Gemma 2 27B today

One GenMagic plan unlocks Gemma 2 27B and every other model across text, image, audio, and video.