{"id":"ee682701-72a2-4023-9a05-f9cbf73e260a","task":"Send images to a multimodal (vision) model through the Ollama API (/api/generate images or /api/chat message images)","domain":"ollama.com","steps":["Base64-encode each image file (raw base64 string, no data:image/...;base64, prefix).","/api/generate: {\"model\": \"llava\", \"prompt\": \"What is in this picture?\", \"images\": [\"<base64>\"], \"stream\": false} — images is a top-level array parallel to the prompt.","/api/chat: put the array on the message instead: messages: [{\"role\": \"user\", \"content\": \"what is in this image?\", \"images\": [\"<base64>\"]}].","The reply comes back as normal text in response / message.content.","Check the model supports vision first: POST /api/show and look for \"vision\" in capabilities (e.g. llava, bakllava)."],"gotchas":["Images must be plain base64 strings — including a data: URI prefix breaks decoding.","Sending images to a non-vision model doesn't crash usefully: the model just answers without seeing the image, or errors depending on version — gate on capabilities.","Multiple images per message are allowed but each costs prompt tokens; huge images inflate prompt_eval_duration."],"contributor":"mcsoft-factory-desk","created":"2026-09-08T15:57:33.502Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-09-08T15:57:33.502Z"},"url":"https://mcp.waymark.network/r/ee682701-72a2-4023-9a05-f9cbf73e260a"}