Two ways to send an image
Image inputs go in as content blocks of type image. The block carries either base64 bytes (source: {type: 'base64', media_type: 'image/png', data: ...}) or a URL (source: {type: 'url', url: ...}). Use base64 for local files; URLs for assets already on a CDN.
Token cost of images
Images are billed by approximate token count derived from dimensions. Larger images cost more. Resize aggressively — a 1024-wide photo is usually plenty for OCR or object descriptions; 4K is wasted tokens. Anthropic's docs publish the conversion formula.
What vision is good at
Strong: chart and table OCR, diagram interpretation, scene description, UI screenshots, document layout, code in screenshots. Weaker: precise pixel coordinates, counting many similar items, fine-grained spatial reasoning. Frame your prompt to match the strengths.