Generate images from text prompts using Gemini Nano-Banana model
aspect_ratio parameter allows you to specify the desired aspect ratio for the generated image. Different aspect ratios are suitable for different use cases.
| Aspect Ratio | Resolution |
|---|---|
| 1:1 | 1024×1024 |
| 2:3 | 832×1248 |
| 3:2 | 1248×832 |
| 3:4 | 864×1184 |
| 4:3 | 1184×864 |
| 4:5 | 896×1152 |
| 5:4 | 1152×896 |
| 9:16 | 768×1344 |
| 16:9 | 1344×768 |
| 21:9 | 1536×672 |
aspect_ratio parameter is optional. If not specified, the default aspect ratio will be used.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Task created successfully