Has anyone hit’this 20kb limit?
1 Like
Hi @Gilles_W,
Yes, many developers have hit the 20KB payload limit in the Gemini API. It’s a known restriction that triggers a 400 INVALID_ARGUMENT
error when the prompt and metadata exceed the allowed size. To avoid it, use file uploads, trim prompts, or switch to streaming mode.