How to Use Granite 4.2 8B in Grok
Granite 4.2 8B handles coding, tool use, and multi-step reasoning. Unlike Granite 4.2 3B, it received additional agent training for software engineering, terminal tasks, and search.
Prompts to try with Granite 4.2 8B in Grok
Copy an example into Grok, or ask in your own words.
Use Granite 4.2 8B to compare the policy passages in this conversation. List conflicting rules, quote the passages behind each conflict, and identify questions the text does not answer.
Use Granite 4.2 8B to draft a Spanish reply to the customer message above. Follow the approved policy and Spanish examples in this conversation, preserve product names, and keep the reply under 150 words.
Use Granite 4.2 8B with full thinking to check the proposed rollout plan above. Identify dependencies, contradictions, and missing decisions. Return a revised sequence with a verification check after each step.
Use Granite 4.2 8B to investigate the question above with available search tools. Compare the evidence across sources, cite the pages supporting your answer, and state where the sources disagree.
Use Granite 4.2 8B to explain the code pasted above. Describe its inputs, outputs, and failure cases, then walk through one normal example and one edge case.
How to set up Granite 4.2 8B in Grok
Pick the way that suits you. Each takes about two minutes.
Use the Grok connector
- Add a custom connector
In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.
https://api.spiral.ai/mcp
- Sign in to Spiral and approve
Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.
- Check that it is connected
Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.
Use the Spiral skill
- Send Grok 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 Granite 4.2 8B
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": "ibm-granite/granite-4.2-8b", "input": { "messages": [ { "role": "system" } ] } }'
Then paste one of the prompts above: Grok finds Granite 4.2 8B on Spiral, shows the price and runs it.
Granite 4.2 8B providers and prices
Spiral runs Granite 4.2 8B through OpenRouter. Open a card for today's price, with every fee included.
Up to $0.000803 per run at the default inputs. $0.078 per 1M input tokens, $0.195 per 1M output tokens.
Settings you can ask for
Ask Grok 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 | ||
| Reasoning effort | none, low, or high | high | How much the model reasons. |
| Frequency penalty | -2 to 2 | ||
| Repetition penalty | 0 to 2 |
Every API field of IBM: Granite 4.2 8B is on its tool page: open its card above.
What can you do with Granite 4.2 8B in Grok?
Work through a technical question or draft a multilingual reply with Granite 4.2 8B. Supply the relevant text and request supporting excerpts, explicit assumptions, and a specific output format.
Fix a reproducible software bug
Ask Granite 4.2 8B to trace a failing test, propose a focused patch, and check the result against that test.
Diagnose a terminal failure
Give Granite 4.2 8B command output and the expected result. Request the next diagnostic command and an explanation of what its result would establish.
Research a question across sources
Have Granite 4.2 8B use available search tools to collect evidence, compare conflicting claims, and draft an answer with citations.
Answer questions about policy text
Supply relevant policy passages to Granite 4.2 8B and request an answer with supporting excerpts and unresolved questions.
Draft multilingual support replies
Give Granite 4.2 8B an approved policy, a customer message, and examples in a supported language. Request a reply that preserves product names and policy terms.
Investigate a service incident
Ask Granite 4.2 8B to compare incident reports with available status-tool results, separate observations from hypotheses, and identify the next check.
Plan a multi-step tool task
Give Granite 4.2 8B a goal and clearly described tools. Ask it to identify dependencies, request missing information, and verify tool results before continuing.
More on Granite 4.2 8B and Grok
Overview
Granite 4.2 8B in other agents
Questions about Granite 4.2 8B in Grok
Can Grok use Granite 4.2 8B?
Yes. Add Spiral to Grok as an MCP server, and Grok can find and run Granite 4.2 8B like any built-in tool.
How much does Granite 4.2 8B cost in Grok?
Up to $0.000803 per run at the default inputs. $0.078 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 Grok plan is separate.
Do I need an OpenRouter account to use Granite 4.2 8B in Grok?
No. Spiral runs Granite 4.2 8B on its own OpenRouter account. You sign in to Spiral once and never paste a key.
How long does it take to set up Granite 4.2 8B in Grok?
About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.
Does Grok wait while Granite 4.2 8B runs?
Granite 4.2 8B runs in the background. Grok starts the run, checks on it and gives you the text, json when it's ready.
What is Granite 4.2 8B useful for?
Use it for coding tasks, tool-assisted work, and problems that require several decisions. IBM specifically trained it on software engineering, terminal coding, and search workflows.
How much context can Granite 4.2 8B handle?
IBM documents a native 128K-token context window. For long-document work, ask a focused question and request supporting passages so you can check the answer.
Does Granite 4.2 always need to think before answering?
It supports thinking, non-thinking, and low-effort thinking modes. Use full thinking for multi-step problems, brief thinking for simpler decisions, and direct answers for straightforward requests.
Which languages does Granite 4.2 support?
IBM lists English, German, Spanish, French, Japanese, Portuguese, Arabic, Czech, Italian, Korean, Dutch, and Chinese. Performance can differ from English, so include examples of the wording and format you want.
Which sampling settings should I start with?
IBM recommends temperature 1.0 and top-p 0.95 for chat, reasoning, and tool calling. Start there before experimenting with other values.
Start using Granite 4.2 8B in Grok
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Grok:
set up https://spiral.ai/SKILL.md


