[Integrations](https://spiral.ai/integrations) › [Cursor](https://spiral.ai/integrations/cursor) › [Gemma 3 12B](https://spiral.ai/integrations/cursor/gemma-3-12b)

# How to Use Gemma 3 12B in Cursor

Gemma 3 12B is an instruction-tuned model for document summaries, multilingual drafts, and code explanations. Its 128K-token context supports questions across long source texts.

|  |  |
| --- | --- |
| Model | Gemma 3 12B |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.000803 per run at the default inputs. $0.065 per 1M input tokens, $0.195 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Gemma 3 12B in Cursor

- Use Gemma 3 12B to explain the authentication flow in this project's relevant files. Trace the entry points, checks, and failure paths, cite file paths, and flag any behavior you cannot establish from the code.
- Use Gemma 3 12B to compare the README with the current command-line parser. List documented commands that differ from the implementation and propose corrected wording.
- Use Gemma 3 12B to review the selected function and its tests. Propose five additional test cases with inputs, expected results, and the behavior each case checks.
- Use Gemma 3 12B to draft release notes from this branch's diff. Separate user-visible changes from internal changes and omit benefits the diff does not establish.
- Use Gemma 3 12B to draft Spanish translations for the English interface strings in this project. Preserve interpolation tokens and identifiers, and list phrases that need product context.

## How to set up Gemma 3 12B in Cursor

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**: Use Add to Cursor on the console's Agents & MCP page, or add this to `.cursor/mcp.json` (one project) or `~/.cursor/mcp.json` (every project):

```json
{
  "mcpServers": {
    "spiral": { "url": "https://api.spiral.ai/mcp" }
  }
}
```

2. **Sign in**: Open Cursor Settings › MCP, click Connect next to spiral, sign in to Spiral and click Authorize. No API key. Spiral then shows as connected, with its tools listed.

### Use the Spiral skill

1. **Send Cursor this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Gemma 3 12B**: One request; the result comes back by polling or a webhook.

```bash
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-12b-it",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: Cursor finds Gemma 3 12B on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/cursor

## Gemma 3 12B tools and prices

- [Google: Gemma 3 12B](https://spiral.ai/tools/openrouter/google/gemma-3-12b-it) (OpenRouter): Up to $0.000803 per run at the default inputs. $0.065 per 1M input tokens, $0.195 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — |  |
| stop |  | — |  |
| min_p | 0 to 1 | — |  |
| tools |  | — |  |
| top_k | 0 to … | — |  |
| top_p | 0 to 1 | — |  |

## What can you do with Gemma 3 12B in Cursor?

Turn project code and documentation into explanations, test ideas, and release note drafts with Gemma 3 12B. Give it selected files and a specific question, then check proposed changes against the actual behavior.

### Research brief summaries

Turn supplied research text into a short brief with findings, supporting passages, and unanswered questions.

### Policy comparison

Compare two policy texts and list changed requirements, exceptions, and passages that need clarification.

### Multilingual support drafts

Draft replies in the customer's language using a supplied policy and terminology guide.

### Code explanations

Explain supplied functions, trace their inputs and outputs, and identify assumptions worth testing.

### Structured request extraction

Convert written requests into structured records, using explicit rules for missing information.

### Meeting recaps

Summarize meeting transcripts into decisions, action items, owners, and unresolved questions.

### Writing practice

Review a learner's paragraph, explain corrections, and suggest a short follow-up exercise.

### Release note drafts

Turn supplied change descriptions into reader-facing release notes, keeping confirmed changes separate from open questions.

## Overview

- [OpenRouter](https://spiral.ai/providers/openrouter)
- [All Cursor guides](https://spiral.ai/integrations/cursor)

## Gemma 3 12B in other agents

- [Amp](https://spiral.ai/integrations/amp/gemma-3-12b)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/gemma-3-12b)
- [Claude](https://spiral.ai/integrations/claude-desktop/gemma-3-12b)
- [Claude Code](https://spiral.ai/integrations/claude-code/gemma-3-12b)
- [Cline](https://spiral.ai/integrations/cline/gemma-3-12b)
- [Codex](https://spiral.ai/integrations/codex/gemma-3-12b)
- [Devin](https://spiral.ai/integrations/devin/gemma-3-12b)
- [dots](https://spiral.ai/integrations/dots/gemma-3-12b)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/gemma-3-12b)
- [Gemini](https://spiral.ai/integrations/gemini/gemma-3-12b)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/gemma-3-12b)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/gemma-3-12b)
- [goose](https://spiral.ai/integrations/goose/gemma-3-12b)
- [Grok](https://spiral.ai/integrations/grok/gemma-3-12b)
- [Grok Build](https://spiral.ai/integrations/grok-build/gemma-3-12b)
- [Hermes](https://spiral.ai/integrations/hermes/gemma-3-12b)
- [Instinct](https://spiral.ai/integrations/instinct/gemma-3-12b)
- [Manus](https://spiral.ai/integrations/manus/gemma-3-12b)
- [Muse](https://spiral.ai/integrations/muse/gemma-3-12b)
- [Muse Code](https://spiral.ai/integrations/muse-code/gemma-3-12b)
- [n8n](https://spiral.ai/integrations/n8n/gemma-3-12b)
- [Notion](https://spiral.ai/integrations/notion/gemma-3-12b)
- [OpenClaw](https://spiral.ai/integrations/openclaw/gemma-3-12b)
- [opencode](https://spiral.ai/integrations/opencode/gemma-3-12b)
- [Perplexity](https://spiral.ai/integrations/perplexity/gemma-3-12b)
- [Raycast](https://spiral.ai/integrations/raycast/gemma-3-12b)
- [VS Code](https://spiral.ai/integrations/vscode/gemma-3-12b)
- [Windsurf](https://spiral.ai/integrations/windsurf/gemma-3-12b)
- [Zapier](https://spiral.ai/integrations/zapier/gemma-3-12b)

## More Cursor guides

- [Gemma 2 27B Instruct](https://spiral.ai/integrations/cursor/gemma-2-27b-instruct)
- [Gemma 3 27B IT](https://spiral.ai/integrations/cursor/gemma-3-27b-it)
- [Gemini Pro Latest](https://spiral.ai/integrations/cursor/gemini-pro-latest)
- [Gemma 3 4B](https://spiral.ai/integrations/cursor/gemma-3-4b)
- [Gemini Flash Latest](https://spiral.ai/integrations/cursor/gemini-flash-latest)
- [Gemma 4 26B A4B](https://spiral.ai/integrations/cursor/gemma-4-26b-a4b)

## Questions about Gemma 3 12B in Cursor

**Can Cursor use Gemma 3 12B?**

Yes. Add Spiral to Cursor as an MCP server, and Cursor can find and run Gemma 3 12B like any built-in tool.

**How much does Gemma 3 12B cost in Cursor?**

Up to $0.000803 per run at the default inputs. $0.065 per 1M input tokens, $0.195 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Cursor plan is separate.

**Do I need an OpenRouter account to use Gemma 3 12B in Cursor?**

No. Spiral runs Gemma 3 12B 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 12B in Cursor?**

About two minutes: add the hosted server, then sign in.

**Does Cursor wait while Gemma 3 12B runs?**

Gemma 3 12B runs in the background. Cursor starts the run, checks on it and gives you the text, json when it's ready.

**What is Gemma 3 12B useful for?**

Use it to summarize long text, answer questions about supplied material, explain code, and draft multilingual content. Give each request a clear deliverable, such as a comparison table or a short explanation.

**How much text can Gemma 3 12B work with?**

It supports a 128K-token context. Google's current documentation says input tokens reduce the space available for output, so leave room for the response and request long drafts section by section.

**Does Gemma 3 12B support languages besides English?**

Google reports support for more than 140 languages. Specify the target language, audience, and terms that should stay untranslated.

**Can Gemma 3 12B produce structured text?**

Yes, Google lists structured outputs among its capabilities. Describe the exact structure, include a completed example, and check the result before using it in another process.

**Where does Gemma 3 12B need extra checking?**

It can state incorrect or outdated information, and highly complex or open-ended tasks can be challenging. Supply reference material, ask it to flag missing evidence, and verify factual claims against the source.

