[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [GLM Flash Latest](https://spiral.ai/integrations/muse-code/glm-flash-latest)

# How to Use GLM Flash Latest in Muse Code

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 Muse Code

- Use GLM Flash Latest to inspect this project's failing tests, trace one reproducible defect, implement a focused fix, and run the relevant tests.
- Use GLM Flash Latest to build the settings page described in the project brief. Follow existing components, render the page, and test saving and validation.
- Use GLM Flash Latest to implement a small Godot game from the gameplay specification. Verify movement, scoring, and a complete win or loss sequence.
- Use GLM Flash Latest to add a contact-extraction function to this project. Return typed JSON, handle missing details explicitly, and test malformed input.
- Use GLM Flash Latest to review the report-generation code. Trace source data into the output, check calculations, and identify unsupported conclusions.

## How to set up GLM Flash Latest in Muse Code

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

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

1. **Send Muse Code 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: Muse Code finds GLM Flash Latest on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## 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 Muse Code?

Build and revise working software with GLM Flash Latest using the project's code and test results. For interfaces and games, include rendering and interaction checks before accepting the result.

### 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 Muse Code guides](https://spiral.ai/integrations/muse-code)

## 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](https://spiral.ai/integrations/grok/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)
- [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 Muse Code guides

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

## Questions about GLM Flash Latest in Muse Code

**Can Muse Code use GLM Flash Latest?**

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

**How much does GLM Flash Latest cost in Muse Code?**

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 Muse Code plan is separate.

**Do I need an OpenRouter account to use GLM Flash Latest in Muse Code?**

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 Muse Code?**

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while GLM Flash Latest runs?**

GLM Flash Latest runs in the background. Muse Code 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.

