[Integrations](https://spiral.ai/integrations) › [Grok](https://spiral.ai/integrations/grok) › [GLM-4.6V](https://spiral.ai/integrations/grok/glm-4-6v)

# How to Use GLM-4.6V in Grok

GLM-4.6V reads complex documents, turns UI screenshots into code, and reasons over visual tool results. Its 106B parameters distinguish it from the 9B GLM-4.6V-Flash, which targets local deployment and low latency.

|  |  |
| --- | --- |
| Model | GLM-4.6V |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.004807 per run at the default inputs. $0.39 per 1M input tokens, $1.17 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with GLM-4.6V in Grok

- Use GLM-4.6V to explain this chart. Read the axes, units, and legend first, then give three observations supported by the plotted data and flag any values you can only estimate.
- Use GLM-4.6V to compare these two reports. Make a table of the requested metrics with reporting periods, units, and page references; leave missing values blank.
- Use GLM-4.6V to turn this 20-slide presentation into a one-page briefing. Explain the main argument, cite the slides that support it, and identify claims the charts do not establish.
- Use GLM-4.6V to compare the figures in these two research papers. Explain what each measures, how the methods differ, and which conclusions are supported by the displayed results.
- Use GLM-4.6V to summarize this 10-minute product demonstration. Give a short overview and a timestamped list of the main actions shown, without inferring steps that are off-screen.

## How to set up GLM-4.6V 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-4.6V**: 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-4.6v",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

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

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

## GLM-4.6V tools and prices

- [Z.ai: GLM 4.6V](https://spiral.ai/tools/openrouter/z-ai/glm-4.6v) (OpenRouter): Up to $0.004807 per run at the default inputs. $0.39 per 1M input tokens, $1.17 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — |  |
| stop |  | — |  |
| tools |  | — |  |
| top_k | 0 to … | — |  |
| top_p | 0 to 1 | — |  |
| reasoning |  | — | Reasoning effort; reasoning tokens count toward max_tokens. |

## What can you do with GLM-4.6V in Grok?

Read charts, slides, and visually complex reports with GLM-4.6V to get answers tied to the supplied evidence. Ask for page references and explicit uncertainty so you can check the interpretation.

### Build a frontend from a screenshot

Turn a reference UI into HTML/CSS, with explicit instructions for layout, spacing, colors, and components.

### Review a visual frontend change

Compare a rendered page with its reference screenshot and request corrections to specific visible differences.

### Extract information from complex reports

Read text alongside tables and figures, then organize the requested information with page references.

### Compare reports across organizations

Build a comparison table from several reports, preserving units, reporting periods, and the source page for each value.

### Explain a chart

Describe axes, units, visible trends, and supporting labels, while separating plotted values from estimates.

### Turn slides into a briefing

Summarize a presentation's argument using evidence from its diagrams, charts, and slide text.

### Compare research figures

Read figures and tables from multiple papers to explain where their methods, measurements, and conclusions differ.

### Summarize a recorded demonstration

Review a video for the main events and request timestamps for the moments that support the summary.

## Overview

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

## GLM-4.6V in other agents

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

## More Grok guides

- [GLM-4.6](https://spiral.ai/integrations/grok/glm-4-6)
- [GLM-4.7](https://spiral.ai/integrations/grok/glm-4-7)
- [GLM-4.5V](https://spiral.ai/integrations/grok/glm-4-5v)
- [GLM-5](https://spiral.ai/integrations/grok/glm-5)
- [GLM-4.5](https://spiral.ai/integrations/grok/glm-4-5)
- [GLM-5 Turbo](https://spiral.ai/integrations/grok/glm-5-turbo)

## Questions about GLM-4.6V in Grok

**Can Grok use GLM-4.6V?**

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

**How much does GLM-4.6V cost in Grok?**

Up to $0.004807 per run at the default inputs. $0.39 per 1M input tokens, $1.17 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.6V in Grok?**

No. Spiral runs GLM-4.6V 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.6V 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.6V runs?**

GLM-4.6V 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.6V useful for?**

Use it to analyze documents where layout, charts, tables, and figures matter, or to turn UI screenshots into frontend code. It also supports visual tool use.

**How much material can GLM-4.6V handle at once?**

Its context window is 128K tokens. Z.ai gives approximate examples of 150 complex document pages, 200 slides, or a one-hour video; treat these as capacity examples rather than guaranteed limits for every input.

**Can GLM-4.6V help reproduce or fix a webpage?**

Yes. It can generate HTML/CSS from a UI screenshot and accept visual editing instructions. For a focused revision, mark the area and describe the change you want.

**Is GLM-4.6V a good default for text-only questions?**

Its documented focus is visual work, and Z.ai says pure text question answering still needs improvement. Choose it when the answer depends on what a document, chart, or screenshot shows.

**Which generation settings are a useful starting point?**

The released configuration uses temperature 0.8, top-p 0.6, and top-k 2. Use those as a baseline when comparing results on your own visual tasks.

