Generate an image synchronously
Interactive API
Generate an image synchronously
Run a Gemini-native Nano Banana request and receive the complete result on the same connection.
POST
Generate an image synchronously
Use this method when the caller can wait for the final Gemini response.
Select a model-specific size before choosing Try it. The shared schema
contains all family sizes; individual model guides define which values are
valid.
Compare model limits
Review price and resolution before sending a billable request.
Authorizations
YingTu API key.
Path Parameters
Current Nano Banana model ID.
Available options:
gemini-2.5-flash-image, gemini-3.1-flash-lite-image, gemini-3.1-flash-image, gemini-3-pro-image Body
application/json
Messages sent to the model.
Minimum array length:
1Optional Gemini tools. Availability depends on the selected image model.
Configuration for tools declared in tools.
Optional cached content resource name when supported by the selected model.
Response
Complete Gemini response
The model version that produced the response.
Example:
"gemini-3.1-flash-image"
Provider response identifier.
Example:
"response_example"
Creation time when supplied by the selected model channel.