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.