{"openapi":"3.0.2","info":{"title":"stability/sdxl-1.0-masking","description":"The request body Comfy Router accepts for the model \"stability/sdxl-1.0-masking\", 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":"2aa714bab474"},"paths":{"/v2/models/stability/sdxl-1.0-masking":{"post":{"operationId":"runRouterModel","summary":"Run stability/sdxl-1.0-masking synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"Comfy Router request for Stability SDXL 1.0 masking, in Stability's v1 JSON shape. Repaints the masked part of `init_image`. Any other field is refused with 400. Billed once per image returned.","example":{"init_image":"https://storage.googleapis.com/example-bucket/source.png","mask_image":"https://storage.googleapis.com/example-bucket/mask.png","mask_source":"MASK_IMAGE_WHITE","seed":12345,"text_prompts":[{"text":"a lighthouse on a cliff at sunset, oil painting"}]},"properties":{"cfg_scale":{"description":"How strictly the image follows the prompt. Default 7.","maximum":35,"minimum":0,"type":"number"},"clip_guidance_preset":{"description":"Stability's CLIP guidance preset, for example `NONE`.","type":"string"},"extras":{"description":"Accepted for compatibility and ignored.","type":"object"},"init_image":{"description":"A Comfy-signed asset URL of the source image.","format":"uri","type":"string"},"mask_image":{"description":"A Comfy-signed asset URL of the mask. Required with MASK_IMAGE_WHITE and MASK_IMAGE_BLACK, refused with INIT_IMAGE_ALPHA.","format":"uri","type":"string"},"mask_source":{"description":"Where the mask comes from. MASK_IMAGE_WHITE and MASK_IMAGE_BLACK read `mask_image`, repainting its white or black pixels; INIT_IMAGE_ALPHA reads the alpha channel of `init_image`.","enum":["MASK_IMAGE_WHITE","MASK_IMAGE_BLACK","INIT_IMAGE_ALPHA"],"type":"string"},"sampler":{"description":"Stability's sampler name, for example `K_DPMPP_2M`.","type":"string"},"samples":{"description":"Number of images to generate. Default 1. Each image returned is billed.","maximum":10,"minimum":1,"type":"integer"},"seed":{"description":"Seed for the whole batch. 0 or omitted picks a random seed.","minimum":0,"type":"integer"},"steps":{"description":"Diffusion steps. Default 30.","maximum":30,"minimum":10,"type":"integer"},"style_preset":{"description":"Stability style preset, for example `photographic`.","type":"string"},"text_prompts":{"description":"Prompts, each with an optional weight. A negative weight makes it a negative prompt.","items":{"properties":{"text":{"type":"string"},"weight":{"type":"number"}},"required":["text"],"type":"object"},"minItems":1,"type":"array"}},"required":["text_prompts","init_image","mask_source"],"type":"object"}}}},"responses":{"200":{"description":"OK - the model's native JSON output, returned unchanged; the schema describes the provider's terminal result document as Router returns it.","content":{"application/json":{"schema":{"description":"Comfy Router output schema for the Stability image models. The image is generated on Comfy-hosted infrastructure and stored on Comfy storage: `image` is a Comfy-signed URL valid for up to 24 hours, not a Stability URL, so download it before then. If the image cannot be stored, the call answers 502 and is not billed; no other URL is returned.","example":{"finish_reason":"SUCCESS","image":"https://example.invalid/stability/image.png","seed":12345},"properties":{"finish_reason":{"description":"Always SUCCESS on a 200.","type":"string"},"image":{"description":"Comfy-signed URL of the (first) PNG image, valid for up to 24 hours.","format":"uri","type":"string"},"images":{"description":"SDXL only, when more than one image was returned. Every Comfy-signed image URL, in output order, each valid for up to 24 hours.","items":{"format":"uri","type":"string"},"type":"array"},"seed":{"description":"The seed the image was generated with.","type":"integer"}},"required":["image","finish_reason","seed"],"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":"stability/sdxl-1.0-masking","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["text","image"],"x-comfy-router-output-modalities":["image"]}
