[Bug] Anthropic API Error: Image processing failures causing conversation token waste

Resolved 💬 70 comments Opened May 18, 2026 by cristian-milea Closed May 21, 2026

Bug Description
I got a lot, A LOT of issues like this one, that burned about 70% of my 5h window. But i have no image..

⎿ API Error: an image in the conversation could not be processed and was removed. Double press esc to edit your
message, or re-read the file if you still need it.

Read 1 file (ctrl+o to expand)
⎿ API Error: an image in the conversation could not be processed and was removed. Double press esc to edit your
message, or re-read the file if you still need it.

Read 1 file (ctrl+o to expand)
⎿ API Error: an image in the conversation could not be processed and was removed. Double press esc to edit your
message, or re-read the file if you still need it.

⏺ Update(ui/plugins/PluginsScreen.kt)
⎿ Added 1 line
151 @Composable
152 private fun PluginRow(
153 plugin: Plugin,
154 + locked: Boolean,
155 onToggle: (Boolean) -> Unit,
156 ) {
157 Row(
⎿ API Error: an image in the conversation could not be processed and was removed. Double press esc to edit your
message, or re-read the file if you still need it.
⎿ API Error: Server is temporarily limiting requests (not your usage limit) · Rate limited

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.143
  • Feedback ID: 134d8df9-d80a-4dc1-9c44-5c96d0de4e66

Errors

[{"error":"Unable to determine image format","timestamp":"2026-05-18T18:13:31.784Z"},{"error":"Unable to determine image format","timestamp":"2026-05-18T18:13:31.785Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Rate limited\"},\"request_id\":\"req_011CbAcLujuDUmE4T41rwBRm\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:62513)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-18T19:46:24.898Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Rate limited\"},\"request_id\":\"req_011CbAdD5p2KA3qW6JrgoYCN\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:62513)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-18T19:57:45.919Z"}]

View original on GitHub ↗

70 Comments

cristian-milea · 1 month ago

I was on auto mode and it went like this for about an hour I think

tedkj1981 · 1 month ago

same here. actually filled my 5h bar to 100% over two consecutive periods, AND nuked my $100 free credit. lol.

Glitchlits · 1 month ago

I’ve having the same issue, we were having a slow day and I hit my session limit on 20x which I’ve never done before

ovshake · 1 month ago

facing the same issue here.

mgazelle · 1 month ago

I am facing the same today with my max plan, never had the error before and there is no image in the context.
API Error: an image in the conversation could not be processed and was removed. Double press esc to edit your message, or re-read the file if you still need it.
API Error: Server is temporarily limiting requests (not your usage limit) · Rate limited

leogiroux · 1 month ago

Same here. filled my 5h bar to 100% in minutes ....

SVS696 · 1 month ago

Yesterday, something like that happened, the scale went down in minutes, and now I continued the session and lost 70% in minutes!!! I barely managed to close the session, I started a new one, and it seems to be working for now. It's a real big problem at the beginning of the workday...

tentious · 1 month ago

Same here! Major problem!

adiki · 1 month ago

Same here!

Santiagorg10 · 1 month ago

Same here, burned almost two session usage with max plan in 5 minutes

lgandecki · 1 month ago

Same here. The app clearly gets into a broken state after hat error, and the agent has no idea what to do. It keeps trying to load an image, take screenshots in different ways, but there is no recovery. It just spins its wheels wasting time and tokens
/compact helps, but of course that might lose important context.

naturetech-hydroponics · 1 month ago

same here

farukkardas · 1 month ago

Error: "API Error: an image in the conversation could not be processed and was removed. Re-read the file with a different approach if you still need it." It used up all the tokens very quickly..

JorgeTemocheK · 1 month ago

API Error: an image in the conversation could not be processed and was removed. Re-read the file with a different approach if you still need it.

Shu-Wan · 1 month ago

used up the whole session in seconds 🤯

frankmark94 · 1 month ago

getting this as well :( Dusted through my $100 credit lol

ubermedialabs · 1 month ago

SOLUTION
Just type this in the same session:

"pls fix API error by clearing the message that is causing this (editing its on-disk JSONL)"

This will will redact Image from transcript to prevent recurring API rejection

Tell me if it works or share screenshot

rubychilds · 1 month ago

@ubermedialabs solution does not work.

<img width="1341" height="378" alt="Image" src="https://github.com/user-attachments/assets/634ea21a-1ed8-4102-9b50-dcfe73f68d2f" />

rubychilds · 1 month ago

@claude can you re-open this issue. It is still an issue

wickedmatter · 1 month ago

@claude the issue is very persistent and consumes a lot of tokens

chrismhlnl · 1 month ago

Same issue here. Burned through my 5-hour-session within minutes.

zhenkai-dev · 1 month ago

The same issue brought me here.

Session ID: bc1bd711-2bfc-4f66-8436-f669d9de5b2c

VatsalBoradhara12 · 1 month ago

Request to reopen this issue — the same problem is still occurring.

Error:
API Error: an image in the conversation could not be processed and was removed. Please re-read the file with a different approach if it is still needed.

<img width="1932" height="100" alt="Image" src="https://github.com/user-attachments/assets/cac7b55a-a72e-486b-a8f0-8adb8b027382" />

The issue is not resolved yet, and the error still appears consistently. Please investigate further and reopen the ticket.

danielkaijzer · 1 month ago

I am also experiencing this issue today. Please reopen and fix!

xVoidByte · 1 month ago

The issue continues to persists as of today, passing an image through the extension in VSCode causes Claude to melt the max plan usage due to multiple attempts of reading the image unsuccessfully.

carb0navatr · 1 month ago

Same here, I use VS code + claude code extension. It's a very serious issue as it ~10x faster to use the tokens. Please @claude fix it.

1278real · 1 month ago

Same here, also using VS code + claude code extension.
The "API Error: an image in the conversation could not be processed and was removed. Please re-read the file with a different approach if it is still needed." becomes a usual friends theses days :-/
Please @claude, as Leia says : "you're our only hope !"

datablazor · 1 month ago

Same issue here

jirihelmich · 1 month ago

+1

doluca · 1 month ago

same issue

mdobrodey · 1 month ago

I wrote /clear and the error didn't appear anymore

Tymcio · 1 month ago

Still appearing.

dron4ik86 · 1 month ago

Same problem.
I also got this error
API Error: an image in the conversation could not be processed and was removed. Re-read the file with a different approach if you still need it.

ffarhanaamin · 1 month ago

I encountered the same issue. My 5-hour usage limit was exhausted twice unexpectedly, but using /compact resolved the problem.

pek2atx · 1 month ago

Same issue still happening. I filed https://github.com/anthropics/claude-code/issues/64352#issue-4559334566.

Refund is requested because it costed me money due to Claude Code's behavior not visible to me. Worse off, Claude Code's error message and explanation mislead me about the impact of the issue and delayed my damage control until I ran out of extra usage credits.

Error message quote:
API Error: an image in the conversation could not be processed and was removed. Re-read the file with a different approach if you still need it.

Claude Code's unhelpful advice:

  • That API error is from the screenshot you sent earlier that was too large — it's not related to the code. The system flagged it as unprocessable. Nothing to worry about.
  • Nothing you can do about it — it's a system message from Claude Code when an image in our conversation couldn't be processed (the screenshot you sent). It'll go away on its own once those messages scroll out of context. No code change needed.
niteeshm · 1 month ago

Same. Happened with me today.

Version: v2.1.159 | Opus 4.8 | MacOS 26.5

<img width="1232" height="1005" alt="Image" src="https://github.com/user-attachments/assets/82cd7226-568f-493a-9a98-1e0012e47922" />

and just like that the window got exhausted. Anthropic should reset the window for the affected users.

Guappa · 1 month ago

This has happened to me in vscode and in cli, both times it ate my 5x usage and my extra credits. As per Anthropic policy they won't refund those credits either, which is complete garbage. Their bug ate my usage AND my credits. I think you can solve it by running /compact, but that's only helpful if you catch this in time.

AzizManaa · 1 month ago

<img width="1383" height="840" alt="Image" src="https://github.com/user-attachments/assets/c2863429-60ad-4f7c-990c-3ce3141abcd8" />
here too kept popping up in every prompt

faithfulcoronel · 1 month ago

A similar issue happened to me today. It consumed all my available tokens after a few retries by the auto-mode in the session.

faithfulcoronel · 1 month ago
A similar issue happened to me today. It consumed all my available tokens after a few retries by the auto-mode in the session.

Can we get a token refund since this seems to be a real issue?

clvsonic · 1 month ago

Mismo problema, ademas se gasta los creditos super rapidos cuando sale ese error y eso que tengo la suscripción max.

billzhao9 · 1 month ago

Yes, the same issue. Any idea of how to fix that?

fernando658 · 1 month ago

Same problem.

pek2atx · 1 month ago
Yes, the same issue. Any idea of how to fix that?

/clear or /compact or rewind to a point in session before the error was triggered

Opus (1M) is included in the Max plan and won't easily trigger extra usage. If you have Max, make sure that's your default.

If you are in VS Code using Claude Code extension, make sure you use /context to confirm which model is used in your session. There's a bug that /model showed my session using Opus (1M) but it's actually Opus (200K) or Sonnet being used. Super frustrating.

hunmaster · 1 month ago

me too..... : (

API Error: an image in the conversation could not be processed and was removed. Re-read the file with a different approach if you still need it.

API Error: Server is temporarily limiting requests (not your usage limit) · Rate limited

saulmm · 1 month ago

<img width="1214" height="788" alt="Image" src="https://github.com/user-attachments/assets/a47944e6-3565-41c8-bdfd-609009a72229" />

same thing, I've hit the limits three times, 13 min within a session and the whole short window exhausted

niteeshm · 1 month ago

Still happening frequently. Just cannot leave the agent unsupervised as it exhausts the Session Context limit in no time ! Antrhopic shall reset the limits for the impacted users cc @bcherny

shaharsha · 1 month ago

For me also, both:

API Error: an image in the conversation could not be processed and was removed. Re-read the file with a different approach if you still need it.

API Error: Server is temporarily limiting requests (not your usage limit) · Rate limited

sakramentas · 1 month ago

Out of curiosity, is anyone here having this issue AND has not forked/branched their conversation at least once? I just wanna test my hypothesis.

dc-riskhub · 1 month ago

This is still happening. Jumped from 83% usage to 100% immediately on Max plan. This is why I pay for two subscriptions...

Lazzolla · 1 month ago

This is still an issue. Is Anthropic providing any answers? It is understandable to have bugs, we have all faced live bugs before, but acknowledgment and customer support are basic expectations. I believe a token pack refund is in order here.

Tymcio · 1 month ago

No information. That why I cancelled my plan.

PeterGanZW · 1 month ago

When a request contains an image whose dimensions exceed the API limit (2000px for many-image requests), the API returns a 400 invalid_request_error. Claude Code then silently removes the image and keeps retrying. Each retry mutates the conversation prefix, which invalidates the prompt cache. From that point on, cache reads collapse and the entire context is re-written to the cache on every turn, causing cache-write tokens (and cost) to explode.

@claude this hasn't been fixed by version 2.1.147.

mansgreback · 1 month ago

It's actually pretty smart. I just upgraded to the SUPER MAX plan because I thought I had burned through all my tokens. Little did I know, it was actually a one-month-old bug in the source code that made me pay up.

simech · 1 month ago

How is this issue closed? "API Error: an image in the conversation could not be processed and was removed. Re-read the file with a different approach if you still need it." constantly

sidewave-io · 1 month ago

This problem keeps happening; it's used up my entire limit!

illuca · 1 month ago

Same here. It happens from time to time. Quite annoying.

cristianpoleyJS · 1 month ago

same here!

Jeju-openlab · 1 month ago

나도.... ㅠㅠ

Klask1604 · 1 month ago

same , happens very very often

JNorgrove · 1 month ago

This is still occurring

semyon-t · 1 month ago

annoying...

naseerahmed599 · 1 month ago

"API Error: an image in the conversation could not be processed and was removed. Re-read the file with a different approach if you still need it."

The SOLUTION should work, "Run /compact (or start a fresh session). That collapses the history into a summary and drops the raw oversized screenshots that keep failing to re-process."

dobreo · 1 month ago

my limits spend very fast cause of this error
cant avoid even /compact

ronnidc · 1 month ago

I am on the Max x5 plan and my 5 hours window disappeared within 5 minutes without getting any thing else than a handfull of these API error messages
API Error: an image in the conversation could not be processed and was removed. Re-read the file with a different approach if you still need it

odilxon · 1 month ago

I am on the Max x5 plan, i am also have same issue, please heeelp

API Error: an image in the conversation could not be processed and was removed. Double press esc to edit your message, or re-read the file if you still need it.
API Error: Server is temporarily limiting requests (not your usage limit) · Rate limited 
robertosebastianmr90 · 1 month ago

API Error: an image in the conversation could not be processed and was removed. Re-read the file with a different approach if you still need it. me acaba de ocurrir

LavendrStudio · 1 month ago

Same issue here, max 5x plan.

billzhao9 · 1 month ago

Does anyone know how to fix this issue? It's been bothering me for a month.

rnv812 · 4 days ago

It still occurs, July 2026. Compacting didn't help.

<img width="795" height="150" alt="Image" src="https://github.com/user-attachments/assets/49a65e0c-7636-48cf-a616-37926f6f4944" />

Working in auto mode, VS Code extension, v2.1.207
Image format: png
Image size: 2303 x 543