AIStudio2API
AIStudio2API copied to clipboard
/v1/chat/completions return 429 error
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?
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