Text to Image
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | ✅ Yes | gemini-2.5-flash-image-preview | The model to use for the request |
prompt | string | ✅ Yes | Create a picture of a nano banana dish in a fancy restaurant with a Gemini theme | The prompt for the generation. |
size | string | ❌ No | 1:1 | 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9. default 1:1 |