Documentation Index
Fetch the complete documentation index at: https://docs.crazyrouter.com/llms.txt
Use this file to discover all available pages before exploring further.
Gemini Image Generation
nano-banana-2returnedinlineDatawhen called withresponseModalities: ["IMAGE"]nano-banana-proreturnedtextcontaining a Markdown image with adata:image/...;base64,...payloadnano-bananaalso returnedtextcontainingdata:image/...;base64,...nano-bananareturnedtextcontaining a hosted image URL
If you are migrating from the Nano Banana family, do not keep using
/v1/images/generations. nano-banana-2 should now move directly to nano-banana-2:generateContent. nano-banana can return image output through nano-banana:generateContent, but billing consistency is still under review.Most Practical Current Example
For the specific goal of getting image bytes directly, the easiest current model to handle isnano-banana-2:
Other Observed Output Shapes
The same-day production check also showed these model-specific differences:nano-banana-pro:parts[0].textlooked likenano-banana:parts[0].textlooked likenano-banana:parts[0].textlooked like
- Check
inlineDatafirst - Then check whether
textcontainsdata:image/ - Then check whether
textcontains a hosted image URL
This page no longer keeps aspect-ratio or multi-image parameter guidance, because those parameters were not revalidated in this production pass.