Gemini Nano Banana 2.1 Interactions API consistently returns HTTP 400

I am integrating gemini-nano-banana-2.1 into a Windows desktop application.

My Google Cloud project has Gemini API enabled, Tier 1 billing, and available prepaid credits.

All three requests to POST /v1beta/interactions returned HTTP 400:

  • Two image-editing requests

  • One minimal text-to-image request with no uploaded images

Google Cloud metrics show the failed requests under InteractionsService.CreateInteractionHttp.

The response body was valid JSON, but my application’s sanitized error handler could not classify the error.

I also compared the public IP addresses used by my browser, direct HTTPX connection, and explicit local proxy. All three matched.

Could you help determine whether these errors relate to project prerequisites, model access, or request validation?

I can provide sanitized request metadata and UTC timestamps privately if needed.

Hello @Chen_Yang1 ,

Thanks for reporting this.

DM’ed your for more details.