{"openapi":"3.0.2","info":{"title":"stability/sdxl-1.0-text-to-image","description":"The request body Comfy Router accepts for the model \"stability/sdxl-1.0-text-to-image\", 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":"7859ec90a144"},"paths":{"/v2/models/stability/sdxl-1.0-text-to-image":{"post":{"operationId":"runRouterModel","summary":"Run stability/sdxl-1.0-text-to-image synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"Comfy Router request for Stability SDXL 1.0, in Stability's v1 JSON shape. `stability/sdxl-1.0-text-to-image` reads `width` and `height`; `stability/sdxl-1.0-image-to-image` reads `init_image` and its strength or step-schedule fields instead. A field the model does not read is refused with 400. Billed once per image returned.","example":{"samples":1,"seed":12345,"steps":30,"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"},"height":{"description":"Text-to-image only. Output height; must form one of SDXL 1.0's supported sizes with `width`. Default 1024.","type":"integer"},"image_strength":{"description":"Image-to-image only. How much of the source image to keep.","maximum":1,"minimum":0,"type":"number"},"init_image":{"description":"Image-to-image only, required there. A Comfy-signed asset URL of the source image.","format":"uri","type":"string"},"init_image_mode":{"description":"Image-to-image only. Whether `image_strength` or the step schedule controls how much the source image is kept. Default IMAGE_STRENGTH.","enum":["IMAGE_STRENGTH","STEP_SCHEDULE"],"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"},"step_schedule_end":{"description":"Image-to-image only, with `init_image_mode` STEP_SCHEDULE.","maximum":1,"minimum":0,"type":"number"},"step_schedule_start":{"description":"Image-to-image only, with `init_image_mode` STEP_SCHEDULE.","maximum":1,"minimum":0,"type":"number"},"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"},"width":{"description":"Text-to-image only. Output width; must form one of SDXL 1.0's supported sizes with `height`. Default 1024.","type":"integer"}},"required":["text_prompts"],"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-text-to-image","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["text"],"x-comfy-router-output-modalities":["image"]}
