Diagnose the first failure
- Missing from the app
- Check the account, subscription and rollout availability.
- API returns 403 or 404
- Verify the API key’s project, API surface and model ID. Check that your project has access to that exact model.
- API returns 429
- Review current quota and billing. Reduce concurrency and retry transient throttling with bounded backoff.
- Request too large
- Count the prompt, attachments and expected output. Reduce the payload and verify limits in the product documentation.
When asking for help, include the status, model ID and request size. Exclude keys and private input. Google Gemini API quickstart