
shridharathi/nano-banana-aspect-ratio

Nano banana with aspect ratio selection
Public
2K
runs
Run shridharathi/nano-banana-aspect-ratio with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
Field | Type | Default value | Description |
---|---|---|---|
prompt |
string
|
Text description of the image to generate or edit
|
|
input_images |
array
|
[]
|
Optional input images to transform, edit, or use as reference
|
aspect_ratio |
None
|
16:9
|
Target aspect ratio for the final output
|
output_format |
None
|
jpg
|
Output image format
|
reframe_prompt |
string
|
|
Optional prompt to guide the reframing generation (leave empty for automatic)
|
{
"type": "object",
"title": "Input",
"required": [
"prompt"
],
"properties": {
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 0,
"description": "Text description of the image to generate or edit"
},
"aspect_ratio": {
"enum": [
"1:1",
"3:4",
"4:3",
"9:16",
"16:9",
"9:21",
"21:9"
],
"type": "string",
"title": "aspect_ratio",
"description": "Target aspect ratio for the final output",
"default": "16:9",
"x-order": 2
},
"input_images": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Input Images",
"default": [],
"x-order": 1,
"description": "Optional input images to transform, edit, or use as reference"
},
"output_format": {
"enum": [
"jpg",
"png"
],
"type": "string",
"title": "output_format",
"description": "Output image format",
"default": "jpg",
"x-order": 3
},
"reframe_prompt": {
"type": "string",
"title": "Reframe Prompt",
"default": "",
"x-order": 4,
"description": "Optional prompt to guide the reframing generation (leave empty for automatic)"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output",
"format": "uri"
}
Example API response
View prediction
'https://replicate.delivery/xezq/F7do0gZeVQVjLis4vtqa3aGDl87wYPNcTcBnQdtCJxjnGynKA/tmp7ljz_5hp.jpg'