Gemma 4 on the Gemini API: every request with an image returns 400 INVALID_ARGUMENT since 1 Nov

Since early on 1 November 2026, every generateContent request to gemma-4-26b-a4b-it or gemma-4-31b-it that contains an image fails with:

{
  "error": {
    "code": 400,
    "message": "Request contains an invalid argument.",
    "status": "INVALID_ARGUMENT"
  }
}

Text-only requests to both models still work. Gemini models accept the exact same image request with the same key.

This worked until recently. A batch job of ours sent about 150 images to gemma-4-26b-a4b-it between 29 and 31 October, and the last one succeeded at 19:40 UTC on 31 October. Our next request, just after 04:05 UTC on 1 November, failed, and all of the several image requests since then have failed too. Our machine was off in between, so the change happened somewhere in that window. As of 13:40 UTC on 1 November it is still failing.

Minimal repro, using a 16×16 red PNG (83 bytes) and no generation config:

curl -s "https://generativelanguage.googleapis.com/v1beta/models/gemma-4-26b-a4b-it:generateContent" \
  -H "x-goog-api-key: $GEMINI_API_KEY" -H "Content-Type: application/json" \
  -d '{"contents":[{"parts":[{"inline_data":{"mime_type":"image/png","data":"iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAGklEQVR42mO8IyLCQApgYiARjGoY1TB0NAAATz0BJHAVIksAAAAASUVORK5CYII="}},{"text":"What colour is this image?"}]}]}'

With gemma-4-26b-a4b-it or gemma-4-31b-it this returns the 400 above. Change the model to gemini-flash-lite-latest and it answers “This image is red.”

Things we have already ruled out:

  • The key. A second API key gives the same 400, and the same keys work for text on Gemma 4 and for images on Gemini.
  • The client. Same result over REST v1beta and v1, with the google-genai Python SDK (inline bytes, and a Files API upload as in the “Gemma on Gemini API” docs), and through the OpenAI-compatible endpoint.
  • The image. We tried 13 images, JPEG and PNG, from 83 bytes to 169 KB, including images these same models had processed without trouble on 30 and 31 October. Declared MIME types match the file bytes.
  • The prompt. Ten prompts, from no text at all and a single word up to our real 5,000-character task prompt, with the text before or after the image, one of them in Hindi, Chinese, both with and without generationConfig.
  • Our network and machine. gemini-flash-lite-latest, gemini-3.1-flash-lite-preview and gemini-3-flash-preview all answer the same image requests from the same machine.

The error body has no details field, so there is nothing more specific to go on.

Same problem here any change recently?

Same here since early 1 Nov (first failures around 21:00 UTC on 31 Oct).
Both gemma-4-31b-it and gemma-4-26b-a4b-it, REST v1beta generateContent:
every request with an image returns 400 INVALID_ARGUMENT
“Request contains an invalid argument.” with no details.
Tried inline JPEG and PNG (10 KB to 210 KB), Files API fileData and the
OpenAI-compatible endpoint: all 400. Text-only requests to the same models
still return 200. The same code read ~14K images per night without errors
from 28 to 31 Oct. Billing-enabled project, API key created in AI Studio.