{"info":{"title":"Google: nano-banana-2/edit","version":"0.1.0"},"paths":{"/":{"post":{"summary":"Prediction","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Output"}}},"description":"Successful Response"}},"operationId":"predict_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Input"}}},"required":true}}}},"openapi":"3.1.0","components":{"schemas":{"Input":{"type":"object","title":"Input","required":["images","prompt"],"properties":{"images":{"type":"array","items":{"type":"string","format":"uri"},"title":"Images","x-order":0,"description":"The input image(s) for editing. The model supports providing multiple images in a single request."},"prompt":{"type":"string","title":"Prompt","x-order":1,"description":"The text prompt for image editing."},"image_size":{"anyOf":[{"$ref":"#/components/schemas/ImageSize"},{"$ref":"#/components/schemas/image_size_enum"}],"title":"Image Size","default":"1_1_2k","x-order":3,"description":"The size of the generated image. Use a preset string (e.g. '4_3_1k') or a custom {width, height} object."},"safety_settings":{"type":"array","items":{"type":"object","properties":{"category":{"allOf":[{"$ref":"#/components/schemas/HarmCategory"}],"title":"Category","default":"HARM_CATEGORY_HARASSMENT","description":"The harm category to apply the setting to."},"threshold":{"allOf":[{"$ref":"#/components/schemas/HarmBlockThreshold"}],"title":"Threshold","default":"BLOCK_LOW_AND_ABOVE","description":"The threshold for blocking content in the specified category."}}},"title":"Safety Settings","default":[{"category":"HARM_CATEGORY_HARASSMENT","threshold":"BLOCK_LOW_AND_ABOVE"},{"category":"HARM_CATEGORY_HATE_SPEECH","threshold":"BLOCK_LOW_AND_ABOVE"},{"category":"HARM_CATEGORY_SEXUALLY_EXPLICIT","threshold":"BLOCK_LOW_AND_ABOVE"},{"category":"HARM_CATEGORY_DANGEROUS_CONTENT","threshold":"BLOCK_LOW_AND_ABOVE"}],"x-order":5,"disabled":true,"description":"A list of unique safety settings for blocking unsafe content. Supported categories: HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT. Supported thresholds: HARM_BLOCK_THRESHOLD_UNSPECIFIED, BLOCK_LOW_AND_ABOVE, BLOCK_MEDIUM_AND_ABOVE, BLOCK_ONLY_HIGH, BLOCK_NONE. This setting can only be configured via the API."},"google_search_grounding":{"type":"boolean","title":"Google Search Grounding","default":false,"x-order":2,"description":"Enables Google Search grounding to provide more accurate and up-to-date information in the generated image."}}},"Output":{"type":"string","title":"Output","format":"uri","description":"Generated file URL."},"ImageSize":{"type":"object","title":"ImageSize","properties":{"width":{"type":"integer","title":"Width","default":512,"maximum":14142,"description":"The width of the generated image.","exclusiveMinimum":0},"height":{"type":"integer","title":"Height","default":512,"maximum":14142,"description":"The height of the generated image.","exclusiveMinimum":0}}},"HarmCategory":{"enum":["HARM_CATEGORY_HARASSMENT","HARM_CATEGORY_HATE_SPEECH","HARM_CATEGORY_SEXUALLY_EXPLICIT","HARM_CATEGORY_DANGEROUS_CONTENT"],"type":"string","title":"HarmCategory","description":"An enumeration."},"image_size_enum":{"enum":["1_1_512","1_1_1k","1_1_2k","1_1_4k","16_9_512","16_9_1k","16_9_2k","16_9_4k","9_16_512","9_16_1k","9_16_2k","9_16_4k","4_3_512","4_3_1k","4_3_2k","4_3_4k","3_4_512","3_4_1k","3_4_2k","3_4_4k","3_2_512","3_2_1k","3_2_2k","3_2_4k","2_3_512","2_3_1k","2_3_2k","2_3_4k","4_5_512","4_5_1k","4_5_2k","4_5_4k","5_4_512","5_4_1k","5_4_2k","5_4_4k","4_1_512","4_1_1k","4_1_2k","4_1_4k","1_4_512","1_4_1k","1_4_2k","1_4_4k","8_1_512","8_1_1k","8_1_2k","8_1_4k","1_8_512","1_8_1k","1_8_2k","1_8_4k","21_9_512","21_9_1k","21_9_2k","21_9_4k","auto"],"type":"string","title":"image_size_enum","description":"Preset image sizes using {W}_{H}_{resolution} naming (e.g. 4_3_1k, 16_9_2k)."},"HarmBlockThreshold":{"enum":["HARM_BLOCK_THRESHOLD_UNSPECIFIED","BLOCK_LOW_AND_ABOVE","BLOCK_MEDIUM_AND_ABOVE","BLOCK_ONLY_HIGH","BLOCK_NONE"],"type":"string","title":"HarmBlockThreshold","description":"An enumeration."}}}}