Skip to content

AI Gateway REST: google/gemini-3.1-flash-lite failing all requests with HTTP 500 #616

Description

@patrickdundas

All AI Gateway REST /ai/run requests for google/gemini-3.1-flash-lite have been failing with HTTP 500 for over 7 days (Since July 6th).

Reproduction:
Use the provided example CURL on Cloudflare's official model page:

curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "google/gemini-3.1-flash-lite",
  "input": {
    "contents": [
      {
        "parts": [
          {
            "text": "What are the three laws of thermodynamics?"
          }
        ],
        "role": "user"
      }
    ]
  }
}'

HTTP 500 Response:

{
    "errors": [
        {
            "message": "Model execution failed (Error)",
            "code": 2002
        }
    ],
    "success": false,
    "result": {},
    "messages": []
}

Cloudflare support has failed to raise an outage for this issue, or respond to tickets regarding it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions