inference.nano-banana.img2img.v2
The inference.nano-banana.img2img.v2 job transforms an input image guided by a text prompt using Gemini 2.5 Flash Image (Nano Banana).
{ "type": "inference.nano-banana.img2img.v2", "config": { "prompt": "a serene mountain landscape at golden hour", "image": "reference.png" }}Additional configuration:
images(array)aspect_ratio(string; one ofauto,1:1,2:3,3:2,3:4,4:3,9:16,16:9,21:9; defaultauto)include_messages(boolean; defaultFalse)
This job type is also available under its partner alias inference.partner.nano-banana.img2img.v2.
Schema
Section titled “Schema”{ "type": "object", "required": [ "type", "config" ], "additionalProperties": false, "properties": { "type": { "type": "string" }, "config": { "type": "object", "additionalProperties": false, "required": [ "prompt" ], "properties": { "images": { "type": "array", "minItems": 1, "maxItems": 3, "items": { "type": "string", "format": "filename", "example": "input.png", "description": "The filename of the input image." }, "description": "Provide an image and use text prompts to add, remove, or modify elements, change the style, or adjust the color grading. Use multiple input images to compose a new scene or transfer the style from one image to another." }, "prompt": { "type": "string", "minLength": 0, "maxLength": 2500, "examples": [ "puppies in a cloud, 4k" ], "description": "A description of the desired output." }, "aspect_ratio": { "type": "string", "default": "auto", "enum": [ "auto", "1:1", "2:3", "3:2", "3:4", "4:3", "9:16", "16:9", "21:9" ], "description": "Aspect ratio of output." }, "include_messages": { "type": "boolean", "default": false, "description": "Enable to include the model's messages in the output as message.txt files." } } } }, "$schema": "https://json-schema.org/draft/2020-12/schema"}