Zhipu AI (GLM) icon

Zhipu AI (GLM)

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

Actions7

Embedding → Embed

AI-generated

Summary

Generate a vector embedding for each input item’s text using Zhipu’s Embedding-2 or Embedding-3 model. Embedding-3 can return a selected vector size; the node adds the vector and its actual dimension count to the API response data.

Inputs

  • Model — Choose Embedding-2 (fixed at 1024 dimensions) or Embedding-3 (default).
  • Input Text (required) — The text to convert into an embedding vector.
  • Dimensions — For Embedding-3 only, choose 256, 512, 1024 (default), or 2048 output dimensions. The default 1024 value is omitted from the API request.

Output shape

One output item per input item, each containing a JSON object.

Each object includes response with the full API response. When the response contains a first embedding, the object also includes embedding (the vector) and dimensions (its length). If the response has no first embedding, those fields are omitted. Requires Zhipu API credentials.

Links

Discussion