{
"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."
}
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."
}'
{
"code": 200,
"message": "success",
"data": {
"id": "51aefa20d0ae459ab6689e8694106785",
"model": "wavespeed-ai/flux-dev-ultra-fast",
"outputs": [],
"urls": {
"get": "https://api.302.ai/ws/api/v3/predictions/51aefa20d0ae459ab6689e8694106785/result"
},
"has_nsfw_contents": [],
"status": "created",
"created_at": "2025-10-20T08:26:46.871Z",
"error": "",
"executionTime": 0,
"timings": {
"inference": 0
}
}
}