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

Codex · LLMReleased 2026-08-27

How to Use GLM Flash Latest in Codex

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.

Prompts to try with GLM Flash Latest in Codex

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

Use GLM Flash Latest to inspect this project's failing tests, trace one reproducible defect, implement a focused fix, and run the relevant tests.

GLM Flash LatestCodex
Try asking
  • 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 Codex

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

Use Spiral's MCP server

  1. Add the hosted server
    codex mcp add spiral --url https://api.spiral.ai/mcp
  2. Sign in

    Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.

    codex mcp login spiral

Use the Spiral skill

  1. Send Codex 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 Flash Latest

    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-flash-latest",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

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

GLM Flash Latest providers and prices

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

OpenRouterLLM
Z.ai: GLM Flash Latest
~z-ai/glm-flash-latest

Settings you can ask for

Ask Codex 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 131072

The most output tokens to generate. On a reasoning model the reasoning tokens count toward it: a cap too low for the effort can end with no answer (finish_reason length).

Temperature0 to 2
Top logprobs0 to 20
Presence penalty-2 to 2
Reasoning effortlow, high, or maxmax

How much the model reasons.

Frequency penalty-2 to 2
Repetition penalty0 to 2
Parallel tool callson or off

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

What can you do with GLM Flash Latest in Codex?

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.

Questions about GLM Flash Latest in Codex

Can Codex use GLM Flash Latest?

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

How much does GLM Flash Latest cost in Codex?

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

Do I need an OpenRouter account to use GLM Flash Latest in Codex?

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 Codex?

About two minutes: add the hosted server, then sign in.

Does Codex wait while GLM Flash Latest runs?

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

Get started

Start using GLM Flash Latest in Codex

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

Paste this into Codex:

Set up Codex

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