Documented the 402 Payment Required (payment_required) response when Prepay credit balance is depleted, including guidance to add credits or enable auto-reload and not retry, on API errors and Generate content API errors.
Changelog
Gemini API — Billing and errors
Documented the 402 Payment Required (payment_required) response when Prepay credit balance is depleted, including guidance to add credits or enable auto-reload and not retry, on API errors and Generate content API errors.
Clarified on Billing that after Prepay balance hits $0, requests fail with HTTP 402 until credits are added.
Updated Troubleshooting retry guidance to treat 402 as a non-retryable client error (alongside 400 and 403), including depleted Prepay credits.