Google's Nano Banana is a cutting-edge text-to-image generation model.
Request
Header Params
Body Params application/json
Example
{"enable_base64_output":false,"enable_sync_mode":false,"output_format":"png","aspect_ratio":"3:2","prompt":"A little girl blowing soap bubbles in a backyard, sunlight making rainbow colors in the bubbles, candid photography style."}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.302.ai/ws/api/v3/google/nano-banana/text-to-image' \
--header'Authorization: Bearer ' \
--header'Content-Type: application/json' \
--data-raw'{
"enable_base64_output": false,
"enable_sync_mode": false,
"output_format": "png",
"aspect_ratio": "3:2",
"prompt": "A little girl blowing soap bubbles in a backyard, sunlight making rainbow colors in the bubbles, candid photography style."
}'