Text to Image
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
contents | array | ❌ No | [{"role": "user", "parts": [{"text": "Hi, can you create a 3d rendered image of a pig with wings and a top hat flying over a happy futuristic scifi city with lots of greenery?"}]}] | Contents parameter |
generationConfig | object | ❌ No | {"responseModalities": ["TEXT", "IMAGE"]} | Generationconfig parameter |