Asking About Images: How to Describe Picture Tasks for GLM

2026-11-18 · Prompt Optimization

Tossing an image at GLM with just "what is this?" usually gets you a generic description. That's not the model failing—it's the task being underspecified. GLM's multimodal capabilities (the GLM-4 multimodal family and the GLM-5 flagship series' image understanding) are solid at both recognition and reasoning, but they need you to be clear about three things: what the image is, what you want done, and who the output is for. Here are copy-ready prompt templates that work whether you're in the web playground or calling the BigModel API.

1. Always state what the image is

The model can't see the context around your image. The same screenshot analyzed as "a chat log" versus "a system error message" leads to completely different answers. Start your prompt with the image's source and background:

  • "This is a product detail page screenshot from an e-commerce site"
  • "This is a photo I took of an English menu in dim lighting"

Mentioning shooting conditions (lighting, angle, sharpness) also helps—the model can adjust its confidence accordingly instead of guessing blindly.

2. Replace "take a look" with a concrete action

"Look at this image" invites small talk; "count the chairs in the image and note their positions" is a task. GLM responds better to explicit action verbs: identify, extract, compare, count, translate, spot errors, evaluate. Assign one main task per prompt—asking the model to "describe + translate + score" all at once dilutes everything.

For recognition tasks, use this template:

You are an image analysis assistant.
Image content: [one sentence describing the image, e.g., a photo of warehouse shelves]
Complete the following tasks:
1. List all visible major objects in the image, ordered left-to-right, top-to-bottom;
2. For each object, note its approximate position (e.g., top-left, center-right);
3. If there is any text, transcribe it verbatim without translating;
4. For objects you're unsure about, mark "uncertain" instead of guessing.
Output format: numbered list.

3. Lock down the output format and language

For the same image, asking for a table, a list, or JSON makes a huge difference in usability. Specify the format directly in the prompt—especially when you're doing structured parsing via the API, this step is non-negotiable. For bilingual scenarios with GLM (say, reading an English poster and outputting a Chinese summary), state the output language explicitly:

The image is an [English product poster].
Extract the following information and output as JSON.
Field names in English, values in Chinese:
{
  "product_name": "",
  "key_selling_points": ["max 5 items"],
  "price_info": "fill only if present in the image, otherwise null",
  "contact_info": ""
}
Requirements: output JSON only, no extra explanation;
if something is unreadable or absent, fill null—do not fabricate.

That last line—"fill null if unreadable, don't fabricate"—is the key. It noticeably cuts down on the model forcing an answer where there isn't one.

4. Give reference criteria for descriptive tasks

For image quality reviews or design audits, "does it look good?" has no anchor, so the model falls back on boilerplate. Give it scoring dimensions or reference standards and the output instantly becomes professional:

The image is an [app interface design mockup].
Evaluate it dimension by dimension, scoring each 1-5 with reasons:
1. Information hierarchy: is the primary action recognizable at a glance;
2. Text readability: are font sizes and contrast sufficient;
3. Layout consistency: are spacing and alignment uniform;
4. Visual style: is the color scheme coherent.
Finally, give prioritized revision suggestions in 3 sentences, ordered by importance.

5. Making the most of multi-image and follow-ups

GLM supports combining multiple images with conversational follow-ups in a single chat (check the official pages for the exact per-request image limit). Two patterns work especially well: "compare" and "iterate." Upload an old design mockup first, then upload the new one and ask "what changed compared to the previous image?" Or upload two invoices and require an item-by-item diff. When following up, no need to re-describe the image—just say "the price section in the second image" and the model keeps the context.

One more habit worth building: for text-dense images (contract screenshots, code screenshots), have it transcribe the text verbatim first, confirm the transcription is accurate, then move to analysis. This significantly reduces the risk of later analysis being built on a misreading.

---

Asking about images comes down to three things: provide context, assign a concrete action, constrain the output format. Save these templates, swap in your own content between the brackets, and they're ready to go. GLM's image understanding is already good enough—the remaining headroom lives in the few lines you type.

本文为使用方法整理,内容选自网上公开资料,供参考;本站为非官方资讯站,产品能力以官方页面为准。