AI_GLM_text
Text-only chat against Zhipu's GLM models
- result
- system_prompt
Same vendor and API as AI_GLM_image, stripped of the vision inputs - this one's a pure text-in, text-out chat node against Zhipu AI's (Z.ai) GLM models. Use it for prompt expansion, rewriting a rough idea into a proper generation prompt, summarizing, or any LLM-shaped text task you'd rather hand off inside the graph than do in a separate chat window. Zhipu is worth trusting here: it's the lab behind CogVideoX and most of its line ships genuinely open (MIT/Apache 2.0), and it IPO'd on the Hong Kong exchange in January 2026 as China's first publicly listed frontier AI company - this API sits alongside a real, actively-maintained open catalog, not a side project.
The model_name dropdown carries the same structure as its vision sibling, including the same author-authored dividing line - one of the choices is literally a label meaning "the models below need billing enabled." GLM-4.5-Flash (the default) and glm-4v-flash sit above that line and work on a free account; glm-5, GLM-4.6V, glm-4.7, glm-4.5-air, and glm-4.5 sit below it and need a paid account before they'll return anything. Start with the default flash model to confirm your key works before spending time on the paid tier.
Required fields: model_name, preset (defaults to "None"), custom_system_prompt, and text - your actual prompt. Optional: max_tokens (1–4096, default 1024), seed, api_key_input, and custom_model for a free-text model override outside the dropdown list. It returns result (the response text) and system_prompt (whatever system prompt actually ran, useful for confirming a saved preset loaded correctly).
That preset dropdown only showing "None" is expected on a fresh install, not broken - this pack's AI_PresetSave node writes named prompts into a shared AiPromptPreset.json, and once you've saved one there (and restarted ComfyUI), it appears here as a selectable option instead of retyping the same system prompt into every node by hand.
Installing it: search "ComfyUI-Apt_Preset" in ComfyUI Manager, or clone manually - cd ComfyUI/custom_nodes && git clone https://github.com/cardenluo/ComfyUI-Apt_Preset - then run install.bat and restart. Pure API client, no model files to fetch.
Troubleshooting: a failure on any of the models below the billing-divider line means exactly what it says - go turn on billing for your Zhipu account, don't waste time debugging the node itself. A failure on the free-tier default is almost always the API key: double-check what's in api_key_input for stray whitespace or an expired key. If you set up a preset through AI_PresetSave and it's not showing in the preset dropdown, that's the restart-required quirk - ComfyUI needs to reload the pack before newly saved presets register as choices.
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| model_name | COMBO | GLM-4.5-Flash | 9 options: None, GLM-4.5-Flash, glm-4v-flash, XX----下面的要开通支付-----XX, glm-5, GLM-4.6V, +3 |
| preset | COMBO | None | 1 options: None |
| custom_system_prompt | STRING | — | |
| text | STRING | — | |
| max_tokensopt | INT | 10241–4096 | — |
| seedopt | INT | 00–18446744073709550000 | — |
| api_key_inputopt | STRING | — | |
| custom_modelopt | STRING | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| result | STRING | — |
| system_prompt | STRING | — |