image input

Sending images to a multimodal model as content blocks, which it reads and bills as tokens set by the image size.

In more detail

Anthropic estimates an image's cost at about its width times height divided by 750 tokens, and downscales large images, so resize before sending. Images can also carry injected instructions, so treat their text as untrusted.

Example

tokens ≈ (width × height) / 750

Related terms

Taught in

References

Certification courses