AIStudio2API icon indicating copy to clipboard operation
AIStudio2API copied to clipboard

/v1/chat/completions return 429 error

Open thangtm82 opened this issue 2 weeks ago • 1 comments

I am encountering a 429 error when using the v1/chat/completions endpoint (with the gemini-4-hydrogen model), whereas the /v1beta/models/gemini-4-hydrogen:streamGenerateContent endpoint works fine. Could you explain the reason?

image

thangtm82 avatar Nov 13 '26 04:11 thangtm82

This is the upstream plan limit, not the endpoint: both send the same request upstream, and once the model’s usage limit is nearly used up Google rejects long requests first while short ones still pass, so the long-context Chat call got 429 and the short v1beta call got 200. You can check https://github.com/Mag1cFall/AIStudio2API/issues/72#issuecomment-6541547879

Mag1cFall avatar Nov 13 '26 20:11 Mag1cFall