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

Factory Droid · LLMReleased 2025-08-11

How to Use GLM-4.5V in Factory Droid

GLM-4.5V helps interpret screenshots, charts, documents, and visual problems. Its thinking mode suits tasks that need reasoning, while non-thinking mode suits straightforward reading and extraction.

Prompts to try with GLM-4.5V in Factory Droid

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

Use GLM-4.5V to inspect the reference screenshot and the project's page component. Draft the HTML and CSS needed to reproduce the visible layout, using the existing styles where possible.

GLM-4.5VFactory Droid
Try asking
  • Use GLM-4.5V to read the chart screenshot in the project's assets. Extract its labels, units, and visible values into a data file, marking estimates and unreadable entries.

  • Use GLM-4.5V to interpret the numbered screenshot from our browser test. Given the goal of opening account settings, return the next element label to select and explain the visible evidence.

  • Use GLM-4.5V to inspect the scanned table in the test fixtures. Draft expected rows for an extraction test, preserving headers and footnotes and flagging cells that need manual review.

  • Use GLM-4.5V with thinking enabled to solve the diagram-based example in our documentation. Check the accompanying explanation and suggest corrections, citing the diagram labels used.

How to set up GLM-4.5V in Factory Droid

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

Use Spiral's MCP server

  1. Add the server

    Droid saves it to your user config, ~/.factory/mcp.json, so it works in every project.

    droid mcp add spiral https://api.spiral.ai/mcp --type http
  2. Sign in

    Start droid, type /mcp, select spiral and authenticate it. Sign in to Spiral in the browser and click Authorize. No API key.

  3. Check it

    Spiral shows as connected. needs authentication means the sign-in did not finish: run /mcp again.

    droid mcp list

Use the Spiral skill

  1. Send Factory Droid 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.5V

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

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

GLM-4.5V providers and prices

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

OpenRouterDeprecatedLLM
Z.ai: GLM 4.5V
z-ai/glm-4.5v

Settings you can ask for

Ask Factory Droid 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 16384

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.5V is on its tool page: open its card above.

What can you do with GLM-4.5V in Factory Droid?

Turn visual references into code drafts and screen-based task instructions with GLM-4.5V. Use project screenshots and source files to connect what appears on screen with the implementation you need.

Turn a screenshot into a webpage draft

Ask GLM-4.5V to translate a reference screenshot into HTML and CSS, then review the rendered result against the reference.

Explain a chart

Extract the labels, units, and visible values, then ask which comparisons the chart supports. Keep estimates separate from printed numbers.

Extract a document table

Turn a table shown on a document page into rows for review. Ask it to retain headers, units, and footnotes and mark unreadable cells.

Review a research report

Summarize the report's argument and supporting charts. Request page references for each finding and separate the report's claims from the model's interpretation.

Explain a visual STEM problem

Ask for an explanation of a math or science problem that depends on a diagram. Have it identify the given values before calculating.

Summarize video events

Produce an ordered account of visible events in supplied video content. Ask for evidence for each event and flag uncertain transitions.

Choose the next screen action

Give the task goal and current screenshot, then request the next interaction. Numbered element labels can make the proposed target easier to check.

Locate an object in an image

Describe the target through its appearance and position, then request its bounding box. Review the proposed location against the image.

Questions about GLM-4.5V in Factory Droid

Can Factory Droid use GLM-4.5V?

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

How much does GLM-4.5V cost in Factory Droid?

Up to $0.009613 per run at the default inputs. $0.78 per 1M input tokens, $2.34 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Factory Droid plan is separate.

Do I need an OpenRouter account to use GLM-4.5V in Factory Droid?

No. Spiral runs GLM-4.5V 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.5V in Factory Droid?

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

Does Factory Droid wait while GLM-4.5V runs?

GLM-4.5V runs in the background. Factory Droid starts the run, checks on it and gives you the text, json when it's ready.

What is GLM-4.5V useful for?

Use it for questions that depend on visual evidence: interpreting documents, understanding screenshots, explaining diagrams, and analyzing video events. It also supports coding tasks grounded in visual input.

When should I use thinking mode?

Use thinking mode for tasks such as solving a diagram-based problem or explaining relationships across document content. For simple recognition or extraction, try non-thinking mode first.

How much context and output can GLM-4.5V handle?

GLM-4.5V supports a 64K-token context window. Z.ai documents a maximum output of 16K tokens.

Can GLM-4.5V summarize documents and extract chart data?

Yes. Z.ai lists document summarization, translation, and chart extraction among its uses. Ask for page references and preserve the chart's units so you can check the result.

Where does GLM-4.5V need extra checking?

Check object counts and claims about a person's identity. Z.ai also notes weaknesses in pure text question answering and says the model can overthink or repeat content.

Get started

Start using GLM-4.5V in Factory Droid

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

Paste this into Factory Droid:

Set up Factory Droid

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