How to Use Gemma 3 27B IT in Claude Code
Gemma 3 27B IT handles document questions, summaries, multilingual writing, and code assistance. Unlike pretrained Gemma 3 27B, it is tuned to follow instructions in conversation.
Prompts to try with Gemma 3 27B IT in Claude Code
Copy an example into Claude Code, or ask in your own words.
Use Gemma 3 27B IT to explain the authentication flow from this project's source files. Cite file paths and function names, and separate observed behavior from assumptions.
Use Gemma 3 27B IT to draft tests for the project's date parser. Read its implementation and existing tests, cover invalid dates and leap years, and explain the expected result of each proposed test.
Use Gemma 3 27B IT to summarize the current diff into release notes under 250 words. Include only changes supported by the diff and identify changes that affect users.
Use Gemma 3 27B IT to turn the project's English onboarding guide into Spanish. Preserve commands, code identifiers, and product names, and flag ambiguous source sentences.
Use Gemma 3 27B IT to extract the requirements from this project's specification into JSON. Give each requirement an ID, source section, expected behavior, and unresolved questions; use null for missing information.
How to set up Gemma 3 27B IT in Claude Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
This adds Spiral to the current project. Add --scope user to use it in every project.
claude mcp add --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start claude, type /mcp, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.
Use the Spiral skill
- Send Claude Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Gemma 3 27B IT
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "openrouter", "model": "google/gemma-3-27b-it", "input": { "messages": [ { "role": "system" } ] } }'
Then paste one of the prompts above: Claude Code finds Gemma 3 27B IT on Spiral, shows the price and runs it.
Gemma 3 27B IT providers and prices
Spiral runs Gemma 3 27B IT through OpenRouter. Open a card for today's price, with every fee included.
Up to $0.069014 per run at the default inputs. $0.104 per 1M input tokens, $0.585 per 1M output tokens.
Settings you can ask for
Ask Claude Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Seed | a whole number | ||
| Min p | 0 to 1 | ||
| Top k | a whole number from 0 | ||
| Top p | 0 to 1 | ||
| Logprobs | on or off | ||
| Max tokens | 1 to 117964 | The most output tokens to generate. | |
| Temperature | 0 to 2 | ||
| Top logprobs | 0 to 20 | ||
| Presence penalty | -2 to 2 | ||
| Frequency penalty | -2 to 2 | ||
| Repetition penalty | 0 to 2 |
Every API field of Google: Gemma 3 27B is on its tool page: open its card above.
What can you do with Gemma 3 27B IT in Claude Code?
Turn project code and documentation into explanations, focused test drafts, and summaries with Gemma 3 27B IT. Give it the relevant files and a specific deliverable, then check proposed changes against the project.
Report summaries with evidence
Turn a supplied report into a short brief covering findings, supporting passages, and unanswered questions.
Questions across long documents
Ask specific questions about supplied manuals or research text. Require a section reference for each answer and flag missing evidence.
Multilingual support drafts
Draft replies in the customer's language from supplied support guidance. Include a glossary for product terms.
Structured text extraction
Extract dates, organizations, and action items from supplied text into JSON, using null when information is absent.
Code explanations and test drafts
Explain a function, suggest a focused change, or draft tests from supplied code and requirements.
Recurring research briefs
Summarize newly supplied research excerpts into a recurring brief with source references and open questions.
Technical explanations for different audiences
Rewrite a supplied technical explanation for customers, new developers, or a Spanish-speaking support team while preserving its stated facts.
More on Gemma 3 27B IT and Claude Code
Overview
Gemma 3 27B IT in other agents
More Claude Code guides
Questions about Gemma 3 27B IT in Claude Code
Can Claude Code use Gemma 3 27B IT?
Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Gemma 3 27B IT like any built-in tool.
How much does Gemma 3 27B IT cost in Claude Code?
Up to $0.001869 per run at the default inputs. $0.104 per 1M input tokens, $0.455 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.
Do I need an OpenRouter account to use Gemma 3 27B IT in Claude Code?
No. Spiral runs Gemma 3 27B IT on its own OpenRouter account. You sign in to Spiral once and never paste a key.
How long does it take to set up Gemma 3 27B IT in Claude Code?
About two minutes: add the hosted server, then sign in.
Does Claude Code wait while Gemma 3 27B IT runs?
Gemma 3 27B IT runs in the background. Claude Code starts the run, checks on it and gives you the text, json when it's ready.
What is Gemma 3 27B IT useful for?
Use it to summarize documents, answer questions about supplied material, draft multilingual text, or help explain code. IT means it is tuned to follow instructions in conversation.
How much text can Gemma 3 27B IT handle?
Google documents a 128K-token input context. Its current documentation describes the output allowance as up to 128K tokens minus the input tokens, so leave room for the answer when preparing long requests.
Which languages does Gemma 3 support?
Google distinguishes out-of-the-box support for over 35 languages from pretrained support for over 140. Test your target language with representative examples before relying on the results.
Can Gemma 3 produce JSON?
Gemma 3 supports structured outputs. Give it the required keys, value types, and a rule for missing information, then validate the result before using it.
Where does Gemma 3 need extra checking?
It can produce incorrect or outdated facts, and open-ended tasks can be difficult. Supply the relevant evidence and check claims against that evidence.
Start using Gemma 3 27B IT in Claude Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Claude Code:
set up https://spiral.ai/SKILL.md


