All models

glm-4.5v API

ZhipuChatVision
Get your API key

GLM-4.5V · Answer questions using images and text

Suitable for describing images, extracting text from screenshots, or answering specific questions using table screenshots. When asking a question, specify the region, field, or content to identify.

STANDARD APIs · QUICK SETUP

Keep your SDK. Connect in minutes.

Point the Base URL to api.acedata.cloud, configure your platform API key and the model ID below, and use your compatible SDK or client.

API host
api.acedata.cloud
model
glm-4.5v
Get your API key
OpenAI Python SDK
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["ACEDATACLOUD_API_KEY"],
    base_url="https://api.acedata.cloud/v1",
)
response = client.chat.completions.create(
    model="glm-4.5v",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)

Choose an available protocol for this model. OpenAI SDK uses a Base URL ending in /v1; Anthropic SDK uses the root URL. See each guide for protocol-specific parameters, tools and response formats.

Model and input/output

Request model
glm-4.5v
Input
Text and images
Output
Text
Typical tasks
Image description, OCR, and chart reading

How to structure input

Place text and image_url content blocks in the same user message. Use an image URL accessible to the service, and describe in text what you want the model to examine.

Make a request

Send model and messages to POST /glm/chat/completions. The text of a non-streaming response is in choices[0].message.content.

GLM Chat Completions Integration Guide · View API

Read the response incrementally

After setting stream: true, concatenate choices[0].delta.content from SSE events in order, and save the complete response after the stream ends.

Usage and pricing

Each million input tokens costs 4.906 Credits, and each million output tokens costs 4.731 Credits. Charges are calculated based on the public model specified in the request. When compatible routing is enabled, the platform may fulfill requests using a compatible model in the same tier.

View model pricing

Frequently asked questions

What should I enter for model?

Enter glm-4.5v.

How do I submit an image with a question?

Place a text object and an image_url object in the content array of the same user message, and put the image URL in image_url.url.

How can I improve recognition quality for table screenshots?

Upload a clear, correctly oriented screenshot and specify the rows and columns to read. Important numbers should be cross-checked against the original image.

How can I limit the response length?

Use max_tokens to set an output limit, and specify the desired format in your question.

How can I check usage for a call?

Read usage in the response and check the usage record for that request in the console.