π¦ ClawHub
OATDA Vision Analysis
by @devcsde
Analyze images using vision-capable AI models through OATDA's unified API. Triggers when the user wants to analyze, describe, or understand images; extract t...
π‘ Examples
User: "Describe this image: https://example.com/photo.jpg"
export OATDA_API_KEY="${OATDA_API_KEY:-$(cat ~/.oatda/credentials.json 2>/dev/null | jq -r '.profiles[.defaultProfile].apiKey' 2>/dev/null)}" && \
curl -s -X POST "https://oatda.com/api/v1/llm/image" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OATDA_API_KEY" \
-d '{
"provider": "openai",
"model": "gpt-4o",
"contents": [
{"type": "text", "text": "Describe this image in detail"},
{"type": "image", "image": {"url": "https://example.com/photo.jpg", "detail": "auto"}}
]
}'
π Tips & Best Practices
/api/v1/llm/image β NOT /api/v1/llm/generate-image (that's for generation)contents array format, NOT a simple prompt string"detail": "high"oatda-generate-image for creating imagesoatda-list-models for available vision modelsTERMINAL
clawhub install oatda-vision-analysis