[Integrations](https://spiral.ai/integrations) › [Cursor](https://spiral.ai/integrations/cursor) › [Gemma 4 26B A4B](https://spiral.ai/integrations/cursor/gemma-4-26b-a4b)

# How to Use Gemma 4 26B A4B in Cursor

Gemma 4 26B A4B handles code generation, document summaries, and reasoning across long inputs. Unlike the dense Gemma 4 31B, it uses a mixture of experts with about 4 billion active parameters per token.

|  |  |
| --- | --- |
| Model | Gemma 4 26B A4B |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.001202 per run at the default inputs. $0.08775 per 1M input tokens, $0.2925 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Gemma 4 26B A4B in Cursor

- Use Gemma 4 26B A4B to inspect the failing test and the code it exercises. Propose the smallest fix, explain the cause with file references, and add a regression test.
- Use Gemma 4 26B A4B to compare this branch's diff with the acceptance criteria in the project. List unmet requirements and point to the relevant code before proposing edits.
- Use Gemma 4 26B A4B to review the request validation code. Suggest tests for empty values, boundary values, malformed input, and unexpected types using the project's test framework.
- Use Gemma 4 26B A4B to explain how authentication flows through this repository. Cite the entry points and key functions, then list any behavior you could not confirm.
- Use Gemma 4 26B A4B with thinking enabled to compare two refactoring approaches for the module I selected. Recommend one using the current interfaces and tests, and return a concise implementation plan.

## How to set up Gemma 4 26B A4B 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 4 26B A4B**: 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-4-26b-a4b-it",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

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

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

## Gemma 4 26B A4B tools and prices

- [Google: Gemma 4 26B A4B ](https://spiral.ai/tools/openrouter/google/gemma-4-26b-a4b-it) (OpenRouter): Up to $0.069014 per run at the default inputs. $0.08775 per 1M input tokens, $0.2925 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 4 26B A4B in Cursor?

Turn project code and written requirements into proposed fixes, tests, and explanations with Gemma 4 26B A4B. Give it the relevant files and ask for evidence that connects each change to the reported behavior.

### Trace a software bug

Give Gemma 4 26B A4B the relevant code, error message, and expected behavior. Ask for a proposed fix and a regression test.

### Generate tests from requirements

Turn written acceptance criteria into test cases covering normal behavior, boundaries, and invalid input. Review the proposed assertions before adding them.

### Summarize lengthy reports

Condense supplied reports into decisions, supporting evidence, and unresolved questions. Request section references so a reviewer can check each conclusion.

### Answer questions from a handbook

Provide the relevant handbook text and ask focused questions about its rules. Require a supporting passage and an explicit note when the answer is missing.

### Draft multilingual replies

Prepare customer replies in a specified language using supplied facts and terminology. Ask for a separate list of wording that needs a fluent reviewer.

### Compare proposals against requirements

Supply the proposals and evaluation criteria. Ask for a comparison that links each conclusion to evidence and marks missing information.

### Explain results returned by tools

Use function calling to request relevant records, then have Gemma 4 26B A4B summarize the returned information into a report with record references.

## Overview

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

## Gemma 4 26B A4B in other agents

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

## More Cursor guides

- [Gemma 3 4B](https://spiral.ai/integrations/cursor/gemma-3-4b)
- [Gemma 4 31B](https://spiral.ai/integrations/cursor/gemma-4-31b)
- [Gemma 3 27B IT](https://spiral.ai/integrations/cursor/gemma-3-27b-it)
- [Granite 4.2 8B](https://spiral.ai/integrations/cursor/granite-4-2-8b)
- [Gemma 3 12B](https://spiral.ai/integrations/cursor/gemma-3-12b)
- [Grok 4.20](https://spiral.ai/integrations/cursor/grok-4-20)

## Questions about Gemma 4 26B A4B in Cursor

**Can Cursor use Gemma 4 26B A4B?**

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

**How much does Gemma 4 26B A4B cost in Cursor?**

Up to $0.001202 per run at the default inputs. $0.08775 per 1M input tokens, $0.2925 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 4 26B A4B in Cursor?**

No. Spiral runs Gemma 4 26B A4B 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 4 26B A4B in Cursor?**

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

**Does Cursor wait while Gemma 4 26B A4B runs?**

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

**What is Gemma 4 26B A4B good for?**

Use it to generate or review code, summarize supplied documents, and answer questions about long passages. These are practical starting points for its coding, text generation, and reasoning capabilities.

**How much context can Gemma 4 26B A4B handle?**

Google specifies a 256K-token context window. That describes context capacity; it does not establish a separate maximum answer length.

**Which languages does Gemma 4 support?**

Google lists more than 35 languages supported out of the box, with pretraining across more than 140 languages. Specify the language and audience when asking for a translation or rewrite.

**Does Gemma 4 support thinking?**

Yes. Thinking mode lets it reason before producing its final answer; try it for a debugging problem or a comparison with several constraints.

**Which sampling settings should I start with?**

Google recommends temperature 1.0, top_p 0.95, and top_k 64. Use that combination as a baseline when comparing results on your own tasks.

