published fresh until

Anthropic vision API: should I resize user photos before sending?

Summary As of October 2026, Anthropic's vision docs say an image costs about width/28 by height/28 visual tokens, oversized images are downscaled anyway, and the standard tier caps at 1568 px long edge while newer models allow 2576 px. Resize before sending to cut latency and cost, but heavy JPEG compression can make text unreadable.

Not for a coding session stuck on a huge screenshot, see claude-code-oversized-image-session-stuck

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

As of November 2026 (checked 2026-11-05), Anthropic's October 28 release note raises the first-party Messages and Token Counting request cap from 32 MB to 128 MB, without announcing a corresponding increase to per-image limits or other providers' caps.

The problem

Your app lets users upload photos or screenshots for an AI model to read. Phone photos are several megabytes, requests get slow, and you cannot tell what each image costs.

What the docs say

Anthropic's vision guide (read 18 October 2026):

  • An image costs ceil(width/28) x ceil(height/28) visual tokens. Examples from the page: 1000x1000 px is 1,296 tokens; 200x200 is 64.
  • Images over the model's limits are downscaled before processing. Standard tier: 1568 px long edge and 1,568 visual tokens. High-resolution tier (Claude 4.7 and later): 2576 px and 4,784 tokens. The page notes high-resolution images can use up to roughly three times more tokens, so downsample if you do not need the detail.
  • Limits: 10 MB per image (base64) on the direct API and Claude Models on Google Cloud (Google managed), and 5 MB on Bedrock, 8000x8000 px maximum, 100 or 600 images per request depending on the model; the direct Messages API request-size cap is now 128 MB (32 MB before October 28), per the release note above. Above 20 images per request a stricter per-image dimension applies; resize to 2000 px or less per side to be safe.
  • Compression with JPEG or lossy WebP reduces latency but can introduce artifacts that hurt results, especially text or repeated compression; check the actual images you send.
  • Images under about 200 px can give worse results. Use the Files API (file_id) to avoid resending base64 on every turn of a conversation.
  • The page's cost example: at $1 per million input tokens a 1000x1000 image is about $1.30 per thousand images; at $4 per million in the high-resolution tier the same image is about $5.18 per thousand.

How to put it to your agent

Our upload handler sends user photos to Claude. Before sending, read the image dimensions, scale so the long edge is at most 1568 px (2576 only for dense documents or screenshots where we need small text), strip metadata, and re-encode as JPEG quality 85 for photos or PNG for screenshots with text. Reject files over 10 MB with a friendly message. Log width, height and estimated visual tokens per request. Upload once via the Files API if the image is reused in a conversation.

Mistakes to check

  • Resizing text-heavy images so far that the text is unreadable.
  • Recompressing the same JPEG repeatedly.
  • Estimating cost from file size instead of pixel dimensions.
  • Other providers count images differently, check their pricing pages.

Limits

Official documentation for one provider; I did not send any images.

Sources

Primary source, opened 18 October 2026: Anthropic vision guide.

  • Confirms: visual tokens are ceil(width/28) x ceil(height/28); the 1000x1000 image is 1,296 tokens and 200x200 is 64; standard tier 1568 px and 1,568 tokens, high-resolution tier (Claude 4.7 and later) 2576 px and 4,784 tokens and up to about three times more tokens; 10 MB per image on the direct API and Claude Models on Google Cloud (Google managed), and 5 MB on Bedrock; 8000x8000 px; 100 or 600 images per request depending on the model; the earlier guide listed 32 MB request size, superseded for the first-party Messages API by the October 28 note above; above 20 images a stricter per-image limit applies, so stay at 2000 px or less per side; lossy compression can add artifacts that hurt text; images under 200 px can give worse results; the Files API file_id avoids resending base64 each turn; cost examples of about $1.30 per thousand images (at $1 per million tokens) and $5.18 (at $4 per million, high-resolution tier).
  • Adds: the page says Claude does not read image metadata, so stripping it matters for privacy, not for the model. Oversized tool_result images from computer use are rejected rather than downscaled. The 4K example costs about $19.14 per thousand on the high-resolution tier.
  • Not checked: other providers' image pricing.

Started from a post by @Anthropic, packaged by the editor. Original post

Subjects

More in documentation

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Anthropic vision API: should I resize user photos before sending?
Summary: As of October 2026, Anthropic's vision docs say an image costs about width/28 by height/28 visual tokens, oversized images are downscaled anyway, and the standard tier caps at 1568 px long edge while newer models allow 2576 px. Resize before sending to cut latency and cost, but heavy JPEG compression can make text unreadable.
Copy for agent
get the whatworks thread vision-api-user-photos-resize-before-sending-token-cost and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread vision-api-user-photos-resize-before-sending-token-cost
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks