
Answers a natural-language prompt about each Image using a HuggingFace image-text-to-text model loaded directly in-process with transformers (default Qwen2-VL-2B-Instruct, no vLLM/SGLang/Ollama sidecar) and emits the answer as a String.
Per-frame visual question answering on an HTTP image source, streaming the answer text out as JSON.
Describe each frame of a video file and parse the answer into structured fields downstream.
Image produces exactly one String answer; there is no 1-to-0 drop. A frame that decodes empty yields the empty string, and a generation fault is logged and degraded to the empty string rather than dropping the frame.max_tokens. This is a single in-process model, not a batched server; for high-throughput serving prefer a dedicated vLLM/SGLang backend.model and max_pixels are hot-swappable at runtime and trigger a model + processor reload (and a GPU memory reclaim on CUDA) on the next frame, producing a one-call latency spike. prompt, max_tokens and temperature are re-read every frame with no reload.temperature 0.0 is greedy and deterministic; any positive value enables sampling and diversifies the answer. max_pixels caps the visual-token budget — larger frames are downscaled by the processor to bound memory and latency.device is read once at startup and is not mutable; a value starting with `cuda` silently falls back to CPU when CUDA is unavailable, which is impractical for live generation.model must be a repo loadable by transformers `AutoModelForImageTextToText` + `AutoProcessor`. A gated or private repo requires the hf_token secret; a model whose architecture is not an image-text-to-text class fails to load at startup.Automated release