{"modality":"image","operations":["text-to-image","image-edit"],"commonArguments":["prompt","resolution","size","aspectRatio","count","outputFormat","seed"],"modelSpecificArguments":["thinkingLevel","systemPrompt","grounding"],"defaults":{"resolution":"1K","aspectRatio":"1:1"},"capabilities":{"resolutions":["1K","2K","4K"],"aspectRatios":["auto","source","21:9","16:9","4:3","1:1","3:4","9:16","3:2","2:3","4:5","5:4","2:1","1:2","5:2","19.5:9","9:19.5","20:9","9:20","4:1","1:4","8:1","1:8"],"references":{"types":["image","document"],"maximum":{"image":14}},"frames":{"first":false,"last":false,"lastOnly":false,"keyframesMaximum":0,"timed":false},"frameReferenceMix":false,"audio":"unsupported","countMaximum":4},"promptRequired":true,"promptMaximum":50000,"verification":"documented","sources":[{"url":"https://aistudio.google.com/docs/image-generation","checkedAt":"2026-11-03"},{"url":"https://fal.ai/models/fal-ai/nano-banana-pro/edit/api","checkedAt":"2026-11-03"}],"notices":["Gemini 3 Pro Image (Nano Banana Pro) supports 1K, 2K and 4K generation and editing with high reasoning thinkingLevel."],"modelId":"google/nano-banana-pro","operation":"text-to-image","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"prompt":{"type":"string","maxLength":100000,"minLength":1,"pattern":"\\S"},"resolution":{"type":"string","minLength":1,"maxLength":30,"default":"1K"},"size":{"type":"object","properties":{"width":{"type":"integer","exclusiveMinimum":0,"maximum":16384},"height":{"type":"integer","exclusiveMinimum":0,"maximum":16384}},"required":["width","height"],"additionalProperties":false},"aspectRatio":{"type":"string","pattern":"^(source|auto|\\d+(\\.\\d+)?:\\d+(\\.\\d+)?)$","default":"1:1"},"count":{"type":"integer","minimum":1,"maximum":15},"outputFormat":{"type":"string","enum":["png","jpeg","webp"]},"seed":{"type":"integer","minimum":-1,"maximum":9007199254740991},"thinkingLevel":{"type":"string","enum":["high"]},"systemPrompt":{"type":"string","maxLength":50000},"grounding":{"type":"boolean"}},"additionalProperties":false,"allOf":[{"not":{"required":["size","resolution"]}},{"not":{"required":["size","aspectRatio"]}}],"required":["prompt"],"x-opengen":{"modelId":"google/nano-banana-pro","operation":"text-to-image","capabilities":{"resolutions":["1K","2K","4K"],"aspectRatios":["auto","source","21:9","16:9","4:3","1:1","3:4","9:16","3:2","2:3","4:5","5:4","2:1","1:2","5:2","19.5:9","9:19.5","20:9","9:20","4:1","1:4","8:1","1:8"],"references":{"types":["image","document"],"maximum":{"image":14}},"frames":{"first":false,"last":false,"lastOnly":false,"keyframesMaximum":0,"timed":false},"frameReferenceMix":false,"audio":"unsupported","countMaximum":4},"notices":["Gemini 3 Pro Image (Nano Banana Pro) supports 1K, 2K and 4K generation and editing with high reasoning thinkingLevel.","aspectRatio source requires source media or an owned top-level previousJobId. An arguments-only schema cannot validate that outer request context.","Runtime validation also checks model-specific combinations, media contents and regional route restrictions."],"sources":[{"url":"https://aistudio.google.com/docs/image-generation","checkedAt":"2026-11-03"},{"url":"https://fal.ai/models/fal-ai/nano-banana-pro/edit/api","checkedAt":"2026-11-03"}]}},"examples":{"request":{"modelId":"google/nano-banana-pro","operation":"text-to-image","input":{"resolution":"1K","aspectRatio":"1:1","prompt":"Describe the desired result."},"billing":"managed"},"generate":{"operationId":"media.generate","input":{"modelId":"google/nano-banana-pro","operation":"text-to-image","input":{"resolution":"1K","aspectRatio":"1:1","prompt":"Describe the desired result."},"billing":"managed"},"idempotencyKey":"REPLACE_WITH_SAVED_IDEMPOTENCY_KEY"},"cli":"opengen generate --input request.json --idempotency-key \"$OPENGEN_IDEMPOTENCY_KEY\"","placeholders":[],"notices":["Template only. Replace owned asset placeholders after upload prepare/PUT/complete; edit the prompt before submitting.","Inspect published route pricing, regional restrictions and budget before authorizing a separate billable submission. Persist a unique idempotency key with the request before submitting.","Managed billing is explicit in this example. Select BYOK only when the user chooses their provider account as payer; unknown direct charges cannot be capped by OpenGen."]}}