[Integrations](https://spiral.ai/integrations) › [Grok](https://spiral.ai/integrations/grok) › [GLM Flash Latest](https://spiral.ai/integrations/grok/glm-flash-latest)

# How to Use GLM Flash Latest in Grok

Use GLM Flash Latest for coding, document analysis, and structured extraction. It currently points to GLM 5.3 Flash and follows future Flash releases, so its behavior can change over time.

|  |  |
| --- | --- |
| Model | GLM Flash Latest |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.00042 per run at the default inputs. $0.05187 per 1M input tokens, $0.10192 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with GLM Flash Latest in Grok

- Use GLM Flash Latest to turn the business notes below into a 500-word management report. Separate conclusions, supporting evidence, and unanswered questions.
- Use GLM Flash Latest to extract contact details from the text below as JSON. Include names, emails, and companies; use null for missing details.
- Use GLM Flash Latest to explain the bug in the code pasted below. Give a minimal correction and three test cases.
- Use GLM Flash Latest to compare the two earnings summaries below. Identify changes in revenue, profit, and cash flow, citing the supplied passages.
- Use GLM Flash Latest to draft a browser game's code from these rules: collect ten coins, avoid obstacles, and show a restart button after losing.

## How to set up GLM Flash Latest 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.

```text
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.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run GLM Flash Latest**: 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": "~z-ai/glm-flash-latest",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

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

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

## GLM Flash Latest tools and prices

- [Z.ai: GLM Flash Latest](https://spiral.ai/tools/openrouter/~z-ai/glm-flash-latest) (OpenRouter): Up to $0.00042 per run at the default inputs. $0.05187 per 1M input tokens, $0.10192 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 GLM Flash Latest in Grok?

Turn supplied text into structured records, code drafts, and evidence-based reports with GLM Flash Latest. State the intended audience and output format so the response addresses a concrete task.

### Investigate a code defect

Use GLM Flash Latest to trace a reported failure, propose a focused patch, and check it against a reproducible test.

### Build an interface from a written brief

Turn page requirements into frontend code, then inspect the rendered pages and test the requested interactions.

### Prototype a playable game

Start with written gameplay rules and a small scope. Ask for movement, scoring, and win or loss conditions, followed by a complete playthrough.

### Prepare a management report

Organize supplied business material into conclusions, supporting evidence, and unresolved questions for a named audience.

### Extract records from text

Convert contact details, product descriptions, or event announcements into structured JSON with explicit missing-value rules.

### Compare financial disclosures

Analyze supplied earnings material, distinguish disclosed figures from assumptions, and trace conclusions back to their sources.

## Overview

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

## GLM Flash Latest in other agents

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

## More Grok guides

- [GLM 5.3 Prime](https://spiral.ai/integrations/grok/glm-5-3-prime)
- [GLM Latest](https://spiral.ai/integrations/grok/glm-latest)
- [GLM 5.3 FlashX Legal](https://spiral.ai/integrations/grok/glm-5-3-flashx-legal)
- [GLM-4.5](https://spiral.ai/integrations/grok/glm-4-5)
- [GLM 5.3 FlashX](https://spiral.ai/integrations/grok/glm-5-3-flashx)
- [GLM-4.5V](https://spiral.ai/integrations/grok/glm-4-5v)

## Questions about GLM Flash Latest in Grok

**Can Grok use GLM Flash Latest?**

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

**How much does GLM Flash Latest cost in Grok?**

Up to $0.00042 per run at the default inputs. $0.05187 per 1M input tokens, $0.10192 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 Flash Latest in Grok?**

No. Spiral runs GLM Flash Latest 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 Flash Latest 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 Flash Latest runs?**

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

**Is GLM Flash Latest a fixed model?**

No. It currently points to GLM 5.3 Flash and follows future GLM Flash releases. Recheck important workflows when that target changes.

**What is GLM Flash good at?**

The current GLM 5.3 Flash target is designed for coding and agent tasks. Z.ai also documents document processing, Office work, and financial research.

**How much text can GLM Flash handle?**

The current GLM 5.3 Flash target has a 1,048,576-token context window and supports up to 131,072 completion tokens. These limits can change when GLM Flash Latest moves to another release.

**Can I turn off GLM Flash's thinking?**

Thinking cannot be disabled in the current GLM 5.3 Flash target. It offers low, high, and max reasoning effort, with max as the default.

**Can GLM Flash return structured JSON?**

Yes, the current GLM 5.3 Flash target supports structured output using a JSON schema. Define the expected fields, types, and rules, then validate the result before using it.

