{"openapi":"3.0.2","info":{"title":"stability/generate-ultra","description":"The request body Comfy Router accepts for the model \"stability/generate-ultra\", 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":"0427b6a5f152"},"paths":{"/v2/models/stability/generate-ultra":{"post":{"operationId":"runRouterModel","summary":"Run stability/generate-ultra synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"Comfy Router request for Stability Image Core and Image Ultra, in Stability's v2beta generate fields sent as a JSON object. `stability/generate-core` is text-to-image only and refuses `image` or `strength` with 400 rather than silently ignoring them. `stability/generate-ultra` cuts the prompt and negative prompt to their first 1,500 characters after Unicode NFKC normalization. Returns one PNG image and is billed once per call.","example":{"aspect_ratio":"16:9","prompt":"a lighthouse on a cliff at sunset, oil painting","seed":12345},"properties":{"aspect_ratio":{"description":"Text-to-image only. Output aspect ratio. Default 1:1.","enum":["1:1","16:9","9:16","21:9","9:21","3:2","2:3","5:4","4:5"],"type":"string"},"image":{"description":"`stability/generate-ultra` only. A Comfy-signed asset URL of a source image; sending it switches to image-to-image and requires `strength`. Refused with 400 on `stability/generate-core`.","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.","maxLength":10000,"type":"string"},"seed":{"description":"0 or omitted picks a random seed.","maximum":4294967294,"minimum":0,"type":"integer"},"strength":{"description":"`stability/generate-ultra` image-to-image only. How far to move from the source image; 1 ignores it. Refused with 400 on `stability/generate-core`.","maximum":1,"minimum":0,"type":"number"},"style_preset":{"description":"Stability style preset, for example `photographic`.","type":"string"}},"required":["prompt"],"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/generate-ultra","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"]}
