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

Grok · LLMReleased 2025-08-05

How to Use gpt-oss-20b in Grok

gpt-oss-20b handles coding, reasoning, and tool-assisted text tasks. OpenAI positions it for lower latency and specialized work, while gpt-oss-120b targets more demanding reasoning.

Prompts to try with gpt-oss-20b in Grok

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

Use gpt-oss-20b with medium reasoning effort to explain the technical passage I paste next. Define unfamiliar terms, give one worked example, and identify assumptions the passage leaves unstated.

gpt-oss-20bGrok
Try asking
  • Use gpt-oss-20b with high reasoning effort to check the math solution I paste next. Check units and assumptions, use a calculation tool if available, and give the corrected result with a brief explanation.

  • Use gpt-oss-20b to turn the support messages I paste next into a JSON array. For each message, include its topic, requested action, and any stated deadline; use null for missing details.

  • Use gpt-oss-20b to answer questions about the policy text I paste next. Support each answer with a short passage from the text and say when the policy does not provide an answer.

  • Use gpt-oss-20b with low reasoning effort to explain the error message and code snippet I paste next. Give the likely cause and one small example of a correction.

How to set up gpt-oss-20b in Grok

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

Use the Grok connector

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

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

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

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run gpt-oss-20b

    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": "openai/gpt-oss-20b",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

Then paste one of the prompts above: Grok finds gpt-oss-20b on Spiral, shows the price and runs it.

gpt-oss-20b providers and prices

Spiral runs gpt-oss-20b through OpenRouter. Open a card for today's price, with every fee included.

OpenRouterLLM
OpenAI: gpt-oss-20b
openai/gpt-oss-20b

Settings you can ask for

Ask Grok 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 117964

The most output tokens to generate.

Temperature0 to 2
Top logprobs0 to 20
Presence penalty-2 to 2
Reasoning effortlow, medium, or highmedium

How much the model reasons.

Frequency penalty-2 to 2
Repetition penalty0 to 2

Every API field of OpenAI: gpt-oss-20b is on its tool page: open its card above.

What can you do with gpt-oss-20b in Grok?

gpt-oss-20b can help explain technical questions and turn supplied text into organized answers. Provide the passage or problem and specify the evidence and detail you want in the response.

Debug a failing test

Give gpt-oss-20b the failure output and relevant code. Ask for a minimal fix and a regression test that reproduces the problem.

Review a code change

Ask gpt-oss-20b to inspect a diff for logic errors, missed edge cases, and assumptions that need tests.

Extract structured records

Turn support messages or intake text into JSON records. Specify the required keys and use null for information the source does not contain.

Explain technical material

Provide a technical passage and ask gpt-oss-20b to explain its assumptions, define unfamiliar terms, and work through a small example.

Check a quantitative argument

Ask gpt-oss-20b to examine units, assumptions, and calculations in a proposed solution. Use an available Python tool to verify the arithmetic.

Draft answers from reference text

Supply policy or product documentation and ask for answers with supporting passages. Require an explicit unknown when the text does not answer the question.

Triage recurring operational reports

Use gpt-oss-20b to classify supplied incident summaries, identify repeated symptoms, and propose the next diagnostic question for each unresolved issue.

Questions about gpt-oss-20b in Grok

Can Grok use gpt-oss-20b?

Yes. Add Spiral to Grok as an MCP server, and Grok can find and run gpt-oss-20b like any built-in tool.

How much does gpt-oss-20b cost in Grok?

Up to $0.000695 per run at the default inputs. $0.039 per 1M input tokens, $0.169 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 gpt-oss-20b in Grok?

No. Spiral runs gpt-oss-20b on its own OpenRouter account. You sign in to Spiral once and never paste a key.

How long does it take to set up gpt-oss-20b 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 gpt-oss-20b runs?

gpt-oss-20b runs in the background. Grok starts the run, checks on it and gives you the text, json when it's ready.

What is gpt-oss-20b good at?

Coding, reasoning, and tasks that combine text with tool calls are its clearest fits. Try focused bug fixes, technical explanations, and extracting structured records from supplied text.

How much text can gpt-oss-20b handle?

OpenAI lists a 131,072-token context window and a maximum output of 131,072 tokens. Treat those as model specifications, rather than a target length for every answer.

Can gpt-oss-20b understand screenshots or recordings?

It processes text only. For a screenshot or recording, provide extracted text or a transcript and ask questions about that text.

Which reasoning level should I choose?

Start with low effort for straightforward dialogue and medium for everyday analysis. Try high effort for difficult debugging or multistep problems, then compare results on representative tasks.

Which languages should I use with gpt-oss-20b?

Its training data was mostly English, with an emphasis on STEM, coding, and general knowledge. For another language, test examples from your actual task before relying on the results.

Get started

Start using gpt-oss-20b in Grok

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

Paste this into Grok:

Set up Grok

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