Which image formats does Claude's vision API support for base64-encoded image input?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Claude's vision API accepts the four web-standard image formats: JPEG, PNG, GIF, and WebP. Not raw camera files or uncommon formats.
Full explanation below image
Full Explanation
The Anthropic API supports base64-encoded images in four formats: image/jpeg, image/png, image/gif, and image/webp. These cover the most common web and application image formats. For formats not in this list (TIFF, BMP, RAW, etc.), developers must convert to a supported format before sending. Option A is too restrictive — multiple formats are supported. Option C is wrong — RAW, TIFF, and BMP are not supported. Option D is wrong — no automatic conversion happens; unsupported formats result in an error.