Skip to content

Instantly share code, notes, and snippets.

@surfiend
surfiend / gist:70217e4835355045c31e492f084e1387
Created June 3, 2025 17:19
Ollama Vision API: Clean curl Example for Image Analysis
IMAGE_BASE64=$(base64 -w 0 'path/to/the/image')
curl -X POST "http://localhost:11434/api/chat" -d @- << EOF
{
"model": "qwen3",
"messages": [
{
"role": "user",
"content": "Describe this image.",
"images": ["$IMAGE_BASE64"]