For the newer image model, use Nano Banana 2.1 with ID
gemini-nano-banana-2.1. Its minimum output tier is 1K and default thinking level is MEDIUM. The examples below remain for gemini-3.1-flash-image; account-specific availability follows the model list.POST https://api.mixroute.ai/v1/models/gemini-3.1-flash-image:generateContent
Examples
Use your MixRoute key in theMIXROUTE_API_KEY environment variable. Requests use Authorization: Bearer .... Replace source-image placeholders with accessible images or local files before editing.
Python
Parameters and Limits
Put the model ID in the request URL and send prompts or image parts incontents. Use generationConfig.responseModalities for the requested output modalities. Use only the image sizes and options listed for this version in the image API reference.