{"openapi":"3.0.2","info":{"title":"stability/control-style-transfer","description":"The request body Comfy Router accepts for the model \"stability/control-style-transfer\", 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":"5a34d276f694"},"paths":{"/v2/models/stability/control-style-transfer":{"post":{"operationId":"runRouterModel","summary":"Run stability/control-style-transfer synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"Comfy Router request for Stability Control Style Transfer, in Stability's v2beta control fields sent as a JSON object. The style of `style_image` is applied to `init_image`. `prompt` is optional. Returns one PNG image and is billed once per call.","example":{"init_image":"https://storage.googleapis.com/example-bucket/photo.png","seed":12345,"style_image":"https://storage.googleapis.com/example-bucket/style.png"},"properties":{"change_strength":{"description":"How far the result may move from `init_image`. Default 0.9.","maximum":1,"minimum":0.1,"type":"number"},"composition_fidelity":{"description":"How closely the composition of `init_image` is kept. Default 0.9.","maximum":1,"minimum":0,"type":"number"},"init_image":{"description":"A Comfy-signed asset URL of the image to restyle.","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":"Optional hint for the result.","maxLength":10000,"type":"string"},"seed":{"description":"0 or omitted picks a random seed.","maximum":4294967294,"minimum":0,"type":"integer"},"style_image":{"description":"A Comfy-signed asset URL of the style source.","format":"uri","type":"string"},"style_preset":{"description":"Accepted and not applied.","type":"string"},"style_strength":{"description":"How strongly the style is applied. Default 1.","maximum":1,"minimum":0,"type":"number"}},"required":["init_image","style_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-style-transfer","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"]}
