Files
arcum42-ComfyUI_SageUtils/js/docs/Sage_OllamaLLMPromptVision.md
T
2025-06-20 18:55:19 -07:00

1.4 KiB

Sage_OllamaLLMPromptVision

Ollama LLM Prompt (Vision)

Sends a vision prompt with image input to an Ollama LLM and returns the response.

Inputs

Required

  • prompt (STRING): The text prompt to send to the model (multiline, default: detailed image description prompt)
  • model (STRING): The Ollama vision model to use (from available installed vision models)
  • image (IMAGE): The image to analyze and describe
  • seed (INT): Seed for random number generation (default: 0, range: 0 to 2^32-1)
  • load_for_seconds (FLOAT): Time in seconds to keep model loaded, -1 for indefinitely (default: 0.0, range: -1.0 to 3600.0)

Outputs

  • response (STRING): The LLM's text response describing the image

Usage

Use to generate vision-based completions or responses from an Ollama LLM in your workflow. Ideal for image captioning, analysis, and description tasks.

Notes

  • EXPERIMENTAL: This node is experimental and may change in future versions
  • Requires Ollama to be installed and running
  • Only shows vision-capable models in the dropdown
  • Image input is required for vision models
  • Seed ensures reproducible results when set to same value
  • load_for_seconds controls how long model stays in memory after generation
  • Default prompt is optimized for detailed image descriptions suitable for AI generators
  • Raises error if Ollama is not available, model not found, or no image provided
  • Supports multimodal input (image + text prompt)