Gemini API Diagnostics

Loaded staging/0env-config.php successfully.

Key Definitions:

STAGING_GEMINI_API_KEY: Not Defined
GEMINI_API_KEY: 'AQ.Ab8RN6L3kuOnKWndNCsoTM_OUJHzUkat77I5U1BpiLSFwuvhBQ'

Using API Key: 'AQ.A...vhBQ'

API URL:
https://generativelanguage.googleapis.com/v1beta/models/gemini-3.6-flash:generateContent?key=AQ.A...vhBQ
Payload:
{"contents":[{"role":"user","parts":[{"text":"Hello, respond with only the word SUCCESS."}]}]}

Testing Connection...

Method: cURL
HTTP Status Code: 402
Response Body:
{
  "error": {
    "code": 402,
    "message": "Your prepayment credits are depleted. Please go to AI Studio at https://ai.studio/projects to manage your project and billing. Learn more at https://ai.google.dev/gemini-api/docs/billing#prepay. ",
    "status": "RESOURCE_EXHAUSTED"
  }
}

Method: file_get_contents stream
HTTP Status Code: 402
Response Body:
{
  "error": {
    "code": 402,
    "message": "Your prepayment credits are depleted. Please go to AI Studio at https://ai.studio/projects to manage your project and billing. Learn more at https://ai.google.dev/gemini-api/docs/billing#prepay. ",
    "status": "RESOURCE_EXHAUSTED"
  }
}