# GLM 5V Turbo

A multimodal coding model that converts screenshots and designs into code, debugs visually, and operates GUIs autonomously at a compact parameter size.

- **Model ID:** `zai/glm-5v-turbo`
- **Type:** chat
- **Providers:** zai
- **Context window:** 200,000
- **Maximum output tokens:** 128,000
- **Pricing:** $1.2/1M input tokens, $4/1M output tokens
- **Canonical page:** https://vercel.com/ai-gateway/models/glm-5v-turbo

## Supported parameters

Detailed capability metadata has not been reported for this model.

## Example

```ts
import { streamText } from 'ai'

const result = streamText({
  model: 'zai/glm-5v-turbo',
  prompt: 'Why is the sky blue?'
})
```

## About

GLM 5V Turbo was released April 1, 2026 as the vision-enabled turbo variant in Z.AI's GLM-5 generation. It combines GLM-5's agentic capabilities with multimodal vision input, purpose-built for workflows where visual understanding drives code generation and UI interaction.

The model focuses on design-to-code generation. Given a screenshot or design mockup, GLM 5V Turbo produces responsive components that match the original layout. It can debug visually by examining screenshots of rendered output and identifying discrepancies, then generating fixes. The model also navigates real GUI environments autonomously, reading screen elements and performing actions without manual scripting.

Despite these multimodal capabilities, GLM 5V Turbo operates at a smaller parameter size than comparable vision-language models. This translates to faster inference and lower cost per request, making high-volume visual coding workflows economically viable. Through AI Gateway, it's accessible via the same unified API with built-in observability and provider routing.

## What to consider

GLM 5V Turbo converts visual designs to code. For best results, provide clean screenshots at sufficient resolution and specify the target framework (React, HTML/CSS, etc.) in your prompt.

You can use GLM 5V Turbo in an iterative loop: render code, screenshot the result, feed it back to the model for corrections. This workflow leverages both vision and coding capabilities.

The compact parameter size means faster inference, but the most complex visual reasoning tasks may benefit from the full GLM-4.6V (106B). Benchmark on your specific use cases.

## When to use

### Best For

- **Design-to-code generation** converting screenshots and mockups into responsive React components, HTML, and CSS
- **Visual debugging** where the model examines rendered output, identifies layout issues, and generates fixes
- **GUI automation** navigating real screen environments autonomously for testing and interaction workflows
- **Agentic visual coding pipelines** combining image understanding with autonomous code planning and iteration
- **High-volume visual processing** where the compact parameter size keeps inference fast and cost-effective

### Consider Alternatives When

- You need maximum visual reasoning depth without speed constraints. GLM-4.6V (106B) provides the largest vision-language model in the lineup
- Text-only tasks without visual input are the primary workload. GLM-5-Turbo offers the same generation's speed without vision overhead
- Your use case is simple image captioning or classification. A lighter vision model may be more cost-effective
- You need the deepest reasoning with multiple thinking modes and don't need vision. The full GLM-5 text-only variant provides multiple thinking modes without vision input

## Best for

- **Design-to-code generation:** Screenshots and mockups convert into responsive React components, HTML, and CSS
- **Visual debugging:** The model examines rendered output, identifies layout issues, and generates fixes
- **GUI automation:** Real screen environments navigated autonomously for testing and interaction workflows
- **Agentic visual coding pipelines:** Image understanding combined with autonomous code planning and iteration
- **High-volume visual processing:** The compact parameter size keeps inference fast and cost-effective

## Consider alternatives

- **Maximum visual reasoning depth:** GLM-4.6V (106B) provides the largest vision-language model in the lineup without speed constraints
- **Text-only workloads:** GLM-5-Turbo offers the same generation's speed without vision overhead
- **Simple captioning or classification:** A lighter vision model may be more cost-effective for basic image tasks
- **Deepest text reasoning:** The full GLM-5 text-only variant provides multiple thinking modes without vision input

## Frequently asked questions

### What can GLM 5V Turbo do with screenshots?

It converts screenshots and design mockups into responsive code, identifies visual bugs in rendered output, and navigates GUI environments by reading screen elements and performing actions.

### How does GLM 5V Turbo compare to GLM-4.6V?

GLM 5V Turbo is a newer, compact vision model focused on coding and GUI tasks. GLM-4.6V is a larger 106B parameter model with broader vision-language capabilities including native multimodal function calling and interleaved image-text generation.

### Does GLM 5V Turbo support design-to-code generation?

Yes. It's specifically built for this workflow. Provide a screenshot or design mockup and specify the target framework. The model generates matching responsive components.

### What is the context window for GLM 5V Turbo?

200K tokens.

### How do I authenticate with GLM 5V Turbo through AI Gateway?

AI Gateway provides a unified API key. No separate Z.AI account is needed. Use the `glm-5v-turbo` model identifier to route requests. BYOK is also supported.

### Can GLM 5V Turbo operate GUIs autonomously?

Yes. It reads screen elements, interprets visual context, and performs navigation actions in real GUI environments. This makes it useful for automated testing and UI interaction workflows.

### What is the pricing for GLM 5V Turbo?

Check the pricing panel on this page for today's numbers. AI Gateway tracks rates across every provider that serves GLM 5V Turbo.

## Links

- [Model page](https://vercel.com/ai-gateway/models/glm-5v-turbo)
- [AI Gateway documentation](https://vercel.com/docs/ai-gateway)
- [Provider model documentation](https://docs.z.ai/guides/vlm/glm-5v-turbo)
- [Provider pricing](https://docs.z.ai/guides/overview/pricing)
