Ai agent lags for no reason when image analysis outputs short text

I have a puzzling issue with AI agents doing image analysis.

I send a pdf to an AI agent, which contains the word RED, to do OCR.


the output is sent correctly, input is ok, no retries, but this is the time to completion of the AI Agent:

and this is the time to completion of the vertex answer:

so there is a monumental lag without any additional thought, from the AI Agent.

this definitely looks like a bug.

the HTTP node outputs in the same timing as the second screenshot, I also canceled and re-created the workflow and the agent node, and tried with a different chat model - same issue. it repeats consistently.

the prompt has no effect on this: if the text is “long” (probably when a large part of the image contains some text) the AI agent completes successfully right after the reply.

anyone encountered this problem? I strongly prefer using AI agent instead of http nodes.