POST https://api.mixroute.ai/v1/models/gemini-3.1-flash-image-preview: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.