Generate ultra-sharp images from text prompts using the Gemini Nano-Banana Pro model
resolution up to 4K)Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Text to image generation request body
Text prompt for image generation
Aspect ratio of the generated image
1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 Output resolution preset (longest side in pixels)
1K, 2K Task created successfully