{"openapi":"3.0.2","info":{"title":"stability/control-sketch","description":"The request body Comfy Router accepts for the model \"stability/control-sketch\", 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":"953514419f6a"},"paths":{"/v2/models/stability/control-sketch":{"post":{"operationId":"runRouterModel","summary":"Run stability/control-sketch synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"Comfy Router request for Stability Control Sketch and Control Structure, in Stability's v2beta control fields sent as a JSON object. One source image is redrawn following the prompt. Returns one PNG image and is billed once per call.","example":{"control_strength":0.7,"image":"https://storage.googleapis.com/example-bucket/sketch.png","prompt":"a castle on a cliff","seed":12345},"properties":{"control_strength":{"description":"How closely the result follows the source image. Default 0.7.","maximum":1,"minimum":0,"type":"number"},"image":{"description":"A Comfy-signed asset URL of the source image.","format":"uri","type":"string"},"negative_prompt":{"description":"What to keep out of the image.","maxLength":10000,"type":"string"},"output_format":{"description":"Omitted is `png`. `jpeg` and `webp` are served only while the deployment's stability output-format switch is on; otherwise they are refused with a 400 before any job runs. The format never changes the price.","enum":["png","jpeg","webp"],"type":"string"},"prompt":{"description":"What to generate from the source image.","maxLength":10000,"type":"string"},"seed":{"description":"0 or omitted picks a random seed.","maximum":4294967294,"minimum":0,"type":"integer"},"style_preset":{"description":"Accepted and not applied.","type":"string"}},"required":["prompt","image"],"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/control-sketch","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"]}
