Spiral gives your agent every tool with one account. Browse the tools →

Hermes · LLMReleased 2025-03-13

How to Use Gemma 3 4B in Hermes

Gemma 3 4B fits document summaries, multilingual drafts, and small coding tasks. It keeps the 128K context window of Gemma 3 12B and Gemma 3 27B, but scores lower on Google's coding benchmarks.

Prompts to try with Gemma 3 4B in Hermes

Copy an example into Hermes, or ask in your own words.

Every weekday, use Gemma 3 4B to summarize the reports supplied for that run. Return a 200-word digest with findings and source identifiers, and flag claims that lack supporting text.

Gemma 3 4BHermes
Try asking
  • Each morning, use Gemma 3 4B to extract action items from the meeting notes supplied for that run. Return a JSON array with task, owner, deadline, and supporting sentence; use null for missing details.

  • Each week, use Gemma 3 4B to draft an internal update from the supplied progress notes. Keep it under 250 words and separate completed work, stated blockers, and planned work.

  • Each day, use Gemma 3 4B to draft replies to the supplied customer questions using the supplied policy excerpts. Keep each reply under 100 words and flag questions the excerpts do not answer.

  • Every Friday, use Gemma 3 4B to draft French and Spanish versions of the approved weekly announcement supplied for that run. Preserve dates, product names, and policy conditions.

How to set up Gemma 3 4B in Hermes

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

Use the Spiral skill

  1. Send Hermes 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 Spiral's MCP server

  1. Add the server and sign in

    Hermes opens your browser: sign in to Spiral and click Authorize. No API key. When Hermes asks Enable all tools? \[Y/n/select], answer Y: n cancels without saving the server, and select hides the tools you leave out.

    hermes mcp add spiral \
      --url https://api.spiral.ai/mcp \
      --auth oauth \
      --connect-timeout 300
  2. Check it

    In a chat that was already open, run /reload-mcp.

    hermes mcp list
    hermes mcp test spiral

Use the Spiral CLI

  1. 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

  1. Create an API key

    In the console, under API keys.

  2. Run Gemma 3 4B

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

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

Gemma 3 4B providers and prices

Spiral runs Gemma 3 4B through OpenRouter. Open a card for today's price, with every fee included.

OpenRouterLLM
Google: Gemma 3 4B
google/gemma-3-4b-it

Settings you can ask for

Ask Hermes for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Seeda whole number
Min p0 to 1
Top ka whole number from 0
Top p0 to 1
Logprobson or off
Max tokens1 to 16384

The most output tokens to generate.

Temperature0 to 2
Top logprobs0 to 20
Presence penalty-2 to 2
Frequency penalty-2 to 2
Repetition penalty0 to 2

Every API field of Google: Gemma 3 4B is on its tool page: open its card above.

What can you do with Gemma 3 4B in Hermes?

Gemma 3 can turn each scheduled batch of supplied reports, notes, or messages into a consistent digest. Define the evidence to use and the output format so each run produces something you can check.

Report summaries

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

Questions about documentation

Answer a specific question from supplied documentation and include the passage supporting the answer.

Email drafts from notes

Convert meeting notes into a follow-up email that preserves stated decisions, owners, and dates.

Multilingual support drafts

Draft a customer reply in the requested language using supplied policy text and approved terminology.

Small code changes

Draft a focused helper function or explain a short code snippet. Review the result and test its behavior.

Text extraction into JSON

Extract names, dates, and action items from supplied text into a defined JSON structure, leaving missing values empty.

Questions about Gemma 3 4B in Hermes

Can Hermes use Gemma 3 4B?

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

How much does Gemma 3 4B cost in Hermes?

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

Do I need an OpenRouter account to use Gemma 3 4B in Hermes?

No. Spiral runs Gemma 3 4B 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 4B in Hermes?

About two minutes: add the server and sign in, then check it.

Does Hermes wait while Gemma 3 4B runs?

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

What is Gemma 3 4B useful for?

Start with document summaries, questions about supplied material, email drafts, and small coding tasks. Give it a defined task and the source material it needs.

How much context can Gemma 3 4B handle?

Gemma 3 4B supports a 128K-token context window, matching Gemma 3 12B and Gemma 3 27B. Keep the material relevant to the question instead of filling the window by default.

Which languages does Gemma 3 support?

Google reports out-of-the-box support for over 35 languages and pretrained support for over 140. For multilingual drafts, specify the target language, audience, and terms to preserve.

Can Gemma 3 return JSON?

Yes, Google documents structured output support. State the required keys, give an example object, and validate the returned JSON before using it.

Where does Gemma 3 need extra checking?

It can give inaccurate or outdated answers, and highly complex tasks can be challenging. Supply current evidence for factual work and split broad requests into smaller tasks.

Get started

Start using Gemma 3 4B in Hermes

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Hermes:

Set up Hermes

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options