{"info":{"title":"nano-banana-2-lite","version":"0.1.0"},"paths":{"/":{"post":{"summary":"Run nano-banana-2-lite","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Output"}}},"description":"Successful Response"}},"operationId":"run_nano-banana-2-lite","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Input"}}},"required":true}}}},"openapi":"3.1.0","components":{"schemas":{"Input":{"type":"object","title":"Input","required":["prompt"],"properties":{"prompt":{"type":"string","title":"Prompt","x-order":0,"description":"The text prompt describing the image to generate. Describe subject, framing, lighting and style; quote any text you want rendered inside the image."},"aspect_ratio":{"allOf":[{"$ref":"#/components/schemas/AspectRatio"}],"title":"Aspect Ratio","default":"1:1","x-order":1,"description":"Shape of the generated image. Output is always 1K (roughly 1 megapixel, 1024x1024 for 1:1), so this changes the proportions only, never the resolution."},"safety_settings":{"type":"array","items":{"type":"object","properties":{"category":{"allOf":[{"$ref":"#/components/schemas/HarmCategory"}],"title":"Category","default":"HARM_CATEGORY_HARASSMENT","description":"The category for this safety setting."},"threshold":{"allOf":[{"$ref":"#/components/schemas/HarmBlockThreshold"}],"title":"Threshold","default":"BLOCK_LOW_AND_ABOVE","description":"The probability threshold at which content in this category is blocked."}}},"title":"Safety Settings","x-order":2,"disabled":true,"description":"Per-category content-blocking thresholds. Omit to use the service defaults. This setting can only be configured via the API."}}},"Output":{"type":"string","title":"Output","format":"uri","description":"Generated image URL."},"AspectRatio":{"enum":["1:1","16:9","9:16","4:3","3:4","3:2","2:3","4:5","5:4","21:9","1:4","4:1","1:8","8:1"],"type":"string","title":"AspectRatio","description":"The aspect ratio of the generated image."},"HarmCategory":{"enum":["HARM_CATEGORY_HARASSMENT","HARM_CATEGORY_HATE_SPEECH","HARM_CATEGORY_SEXUALLY_EXPLICIT","HARM_CATEGORY_DANGEROUS_CONTENT"],"type":"string","title":"HarmCategory","description":"The category for a safety setting."},"HarmBlockThreshold":{"enum":["OFF","BLOCK_NONE","BLOCK_ONLY_HIGH","BLOCK_MEDIUM_AND_ABOVE","BLOCK_LOW_AND_ABOVE","HARM_BLOCK_THRESHOLD_UNSPECIFIED"],"type":"string","title":"HarmBlockThreshold","description":"The probability threshold at which content is blocked."}}}}