Skip to content

[BUG] Image base64 size (8.4 MB) exceeds API limit (5.0 MB). Please resize the image before sending. #20021

Description

@DineshNarra

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

constantly running into the error - Image base64 size (8.4 MB) exceeds API limit (5.0 MB). Please resize the image before sending. ' though the size of the image is less. opening a new window also doesn't fix this.

What Should Happen?

Claude for Vs code asks for screenshot and when i provide one, it throws me an error and gets stuck.

Error Messages/Logs

Steps to Reproduce

Image

Claude Model

Other

Is this a regression?

I don't know

Last Working Version

2.1.11

Claude Code Version

2.1.11

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:apiarea:idebugSomething isn't workingduplicateThis issue or pull request already existsmemoryplatform:macosIssue specifically occurs on macOSstaleIssue is inactive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions