{"openapi":"3.0.2","info":{"title":"runware/runware-nano-banana-2","description":"The request body Comfy Router accepts for the model \"runware/runware-nano-banana-2\", and the response body it returns. The INPUT schema is the same schema the server validates a call against before it reaches the provider, so what is published and what is enforced cannot differ. `x-comfy-router-input-modalities` records the media kinds the model is documented to accept; the request schema is shared across sibling models and may admit media kinds this model ignores. The OUTPUT schema describes the provider's native result document exactly as Router returns it: Router does not validate, narrow or re-envelope the response, so the output schema is descriptive rather than enforced, and Comfy owns no output shape of its own.","version":"8e567a9e28e8"},"paths":{"/v2/models/runware/runware-nano-banana-2":{"post":{"operationId":"runRouterModel","summary":"Run runware/runware-nano-banana-2 synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":true,"description":"One Runware `imageInference` task, sent as a single JSON object. Router fills in the parts the model's path already decides: `taskType` is set to `imageInference`, `model` to this model's Runware AIR id, `deliveryMethod` to `sync` and `includeCost` to `true`, overriding anything the body carries for those four, and a `taskUUID` is generated when the body has none or sends null. `positivePrompt` is required. Runware's other imageInference fields (`outputFormat`, `inputs.referenceImages`, `providerSettings`, ...) are accepted and forwarded unchanged; Runware validates them, and supported `width`/`height` pairs vary by model.","example":{"height":1024,"positivePrompt":"A watercolor fox curled up in a snowy pine forest","width":1024},"properties":{"deliveryMethod":{"description":"Optional; always overridden with `sync`.","nullable":true,"type":"string"},"height":{"description":"Output height in pixels. Not required by this schema; the supported width/height pairs vary by model and Runware validates them. The 12288 ceiling is nano-banana-2's 4K `8:1`/`1:8` edge.","maximum":12288,"minimum":1,"type":"integer"},"includeCost":{"description":"Optional; always overridden with `true`.","nullable":true,"type":"boolean"},"model":{"description":"Optional; always overridden with this model's Runware AIR id.","nullable":true,"type":"string"},"numberResults":{"description":"Number of images to generate (1-20, Runware's documented bound for these models). Each result is billed at the cost Runware reports for it.","maximum":20,"minimum":1,"type":"integer"},"positivePrompt":{"description":"The prompt describing the image to generate.","minLength":1,"type":"string"},"taskType":{"description":"Optional; always overridden with `imageInference`.","nullable":true,"type":"string"},"taskUUID":{"description":"Optional client-chosen UUID v4 for the task. Generated when absent or null. Runware documents this field as a UUID v4, so the pattern pins the version nibble to `4` and the variant nibble to `[89abAB]` rather than accepting any UUID-shaped string.","maxLength":36,"nullable":true,"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$","type":"string"},"width":{"description":"Output width in pixels. Not required by this schema; the supported width/height pairs vary by model and Runware validates them. The 12288 ceiling is nano-banana-2's 4K `8:1`/`1:8` edge.","maximum":12288,"minimum":1,"type":"integer"}},"required":["positivePrompt"],"type":"object"}}}},"responses":{"200":{"description":"OK - the provider's native result document, returned unchanged. Comfy has not described this model's output yet, so neither its shape nor its media type is narrowed here; the provider's own documentation is authoritative.","content":{"*/*":{"schema":{"additionalProperties":true,"description":"Comfy has not described this model's result document yet. Router returns the provider's native output unchanged, so the provider's own documentation is authoritative for the response shape.","type":"object"}}}}}}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"x-comfy-router-model-id":"runware/runware-nano-banana-2","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":false,"x-comfy-router-input-modalities":["text"],"x-comfy-router-output-modalities":["image"],"x-comfy-router-alias-of":"vertexai/gemini-3.1-flash-image","x-comfy-router-alias-provider":"runware"}
