Nodes/ComfyUI-llama-multimodal/Ollama Generate (with images)
ComfyUI Node

Ollama Generate (with images)

Sends one stateless /api/chat request containing all normalized images. Original image dimensions and list order are preserved.

By craftingmod·Created 2 months ago·Updated 5 days ago· 3
Ollama Generate (with images)
  • options
  • images
  • response
  • thinking
  • raw_json
  • metrics
  • image_manifest_json
◄urlhttp://127.0.0.1:11434►
◄model►
◄system►
◄prompt►
◄options_json►
◄format_json►
◄thinkoff►
◄unload_after_responsefalse►
◄keep_alive5m►
◄timeout_seconds300►
◄debugfalse►
CategoryOllama/images

Inputs (13)

NameTypeDefaultDescription
urlSTRINGhttp://127.0.0.1:11434Ollama base URL. Only HTTP and HTTPS are accepted.
modelSTRINGExact Ollama model name.
systemSTRINGSystem message sent without trimming or rewriting.
promptSTRINGUser message sent without trimming or rewriting.
options_jsonSTRINGAdvanced fallback for a manually written Ollama options JSON object. Ignored when the options dictionary input is connected.
format_jsonSTRINGEmpty, the literal json, or a JSON Schema object.
thinkCOMBOoff6 options: off, on, low, medium, high, max
unload_after_responseBOOLEANfalseUnload the Ollama model immediately after the response is complete. When enabled, this overrides keep_alive with 0.
keep_aliveSTRING5m—
timeout_secondsINT3001–86400—
debugBOOLEANfalseInclude a payload-free request manifest in the manifest output.
optionsoptDICTPreferred Ollama options dictionary. When connected, this takes precedence over options_json, including when the dictionary is empty.
imagesoptIMAGEIMAGE single, batch, list, nested list, or ComfyUI data list.

Outputs (5)

NameTypeDescription
responseSTRING—
thinkingSTRING—
raw_jsonSTRING—
metricsSTRING—
image_manifest_jsonSTRING—