curl -X POST "https://gptproto.com/v1/images/generations" \ -H "Authorization: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gemini-2.5-flash-image", "prompt": "Create a picture of a nano banana dish in a fancy restaurant with a Gemini theme", "size": "16:9"}'
The model defaults to generates 1:1 squares. The different ratios available and the size of the image generated are listed in this table: