Zhipu AI (GLM) icon

Zhipu AI (GLM)

Interact with Zhipu AI (BigModel) API — Chat, Vision, Audio, Embedding, Image & Video

Actions7

Image Generation → Generate

AI-generated

Summary

Generate an image from a required text prompt using a selected Zhipu image model. The node sends the request to Zhipu’s image generations endpoint and returns the API response with the first generated image URL when available.

Inputs

  • Model — Image model to use; defaults to GLM-Image (Newest). Options include CogView-3, CogView-3-Flash, CogView-3-Plus, CogView-4, and CogView-4-250304.
  • Prompt (required) — Text description of the image to generate.
  • Quality — Optional image quality setting: HD (default) or Standard.
  • Size — Optional output dimensions; defaults to 1280×1280. Available sizes include square, portrait, landscape, wide, and tall formats.
  • User ID — Optional unique identifier for the end user, included in the request when provided.

Output shape

One n8n item per input item, with a JSON object containing the full API response under response and, when present, the first generated image URL under url.

The URL is omitted if the response has no URL at data[0].url. Errors stop execution unless Continue On Fail is enabled, in which case that item contains an error field.

Links

Discussion