Reference · How-to · ~6 min

How to call a vision API

Last updated

Image + question in one chat request.

Image + question in one chat request.

Steps

1. Resize image; strip sensitive EXIF

2. Base64-encode or host at signed URL

3. Build user message with text + image_url parts

4. Use vision-capable model ID

5. Parse text — verify before actions

**Try the lesson:** `multimodal-api-lab` in Lane D