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

Grok · LLMReleased 2025-07-25

How to Use GLM 4.5 Air in Grok

GLM 4.5 Air handles coding, tool use, and reasoning tasks. It uses a smaller design than GLM 4.5, with 106 billion total parameters and 12 billion active parameters.

Prompts to try with GLM 4.5 Air in Grok

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

Use GLM 4.5 Air with thinking enabled to check this rollout plan: migrate 12 services in four weeks, with at most three migrations per week and billing last. Identify missing dependencies before proposing a schedule.

GLM 4.5 AirGrok
Try asking
  • Use GLM 4.5 Air to research when a small team should choose PostgreSQL full-text search over a separate search engine. Use official documentation and return a comparison with source links in under 600 words.

  • Use GLM 4.5 Air with thinking enabled to compare retrying a failed payment immediately versus using exponential backoff. Explain duplicate-charge risks and propose testable acceptance criteria.

  • Use GLM 4.5 Air without thinking to classify each message already in this conversation as bug, feature request, or question. Return one label per message and flag ambiguous cases.

  • Use GLM 4.5 Air to extract decisions from this conversation. Return JSON containing the decision, owner, deadline, and supporting sentence; use null wherever information is missing.

How to set up GLM 4.5 Air 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 GLM 4.5 Air

    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": "z-ai/glm-4.5-air",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

Then paste one of the prompts above: Grok finds GLM 4.5 Air on Spiral, shows the price and runs it.

GLM 4.5 Air providers and prices

Spiral runs GLM 4.5 Air through OpenRouter. Open a card for today's price, with every fee included.

OpenRouterLLM
Z.ai: GLM 4.5 Air
z-ai/glm-4.5-air

Settings you can ask for

Ask Grok for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Seeda whole number
Top ka whole number from 0
Top p0 to 1
Max tokens1 to 98304

The most output tokens to generate.

Temperature0 to 2
Presence penalty-2 to 2
Frequency penalty-2 to 2
Repetition penalty0 to 2

Every API field of Z.ai: GLM 4.5 Air is on its tool page: open its card above.

What can you do with GLM 4.5 Air in Grok?

Work through a technical question or a plan with several constraints in conversation. GLM 4.5 Air offers thinking and non-thinking modes so you can match the reasoning to the task.

Fix a reproducible bug

Give GLM 4.5 Air the failure, relevant code, and expected behavior. Ask for a focused patch and a regression check.

Build an interface from a written brief

Ask GLM 4.5 Air to turn requirements into working front-end code, including loading, empty, and error states.

Explain code before changing it

Have GLM 4.5 Air trace a request through the relevant functions and identify where a proposed change belongs.

Research a technical decision

Give GLM 4.5 Air a specific question and access to search tools. Request a comparison supported by primary sources.

Check a plan against constraints

Ask GLM 4.5 Air to evaluate dependencies, capacity, and deadlines, then identify which assumptions could make the plan fail.

Extract consistent records

Give GLM 4.5 Air a target JSON structure and source text. Require evidence for each extracted value and null for missing information.

Questions about GLM 4.5 Air in Grok

Can Grok use GLM 4.5 Air?

Yes. Add Spiral to Grok as an MCP server, and Grok can find and run GLM 4.5 Air like any built-in tool.

How much does GLM 4.5 Air cost in Grok?

Up to $0.005867 per run at the default inputs. $0.26 per 1M input tokens, $1.43 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 GLM 4.5 Air in Grok?

No. Spiral runs GLM 4.5 Air on its own OpenRouter account. You sign in to Spiral once and never paste a key.

How long does it take to set up GLM 4.5 Air 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 GLM 4.5 Air runs?

GLM 4.5 Air runs in the background. Grok starts the run, checks on it and gives you the text, json when it's ready.

What is GLM 4.5 Air good at?

Its documented strengths include software engineering, front-end development, reasoning, and tool use. Try it for debugging, building a working interface from a written brief, or researching a question through an agent's search tools.

How much text can GLM 4.5 Air handle?

Z.ai documents a 128K context window and up to 96K output tokens. Treat these as ceilings; give each task a shorter target, such as a 500-word brief or one patch.

When should I use thinking mode?

Use thinking mode for difficult debugging, reasoning, and tasks involving several tools. Use non-thinking mode for straightforward requests such as labeling a short message or rewriting a sentence.

Can GLM 4.5 Air analyze images or generate video?

Z.ai documents text input and text output. For a visual task, provide a written description or extracted text and ask for code, analysis, or a script.

Which languages should I start with?

The model card lists English and Chinese. Start evaluations in those languages and check terminology against examples from your own work.

Get started

Start using GLM 4.5 Air 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