Stability API nodes for ComfyUI
Nodes:Stability SD3, Stability Outpainting, Stability Search and Replace, Stability Image Core, Stability Inpainting, Stability Remove Background, Stability Creative Upscale. Add API key to environment variable 'SAI_API_KEY' Alternatively you can write your API key to file 'sai_platform_key.txt' You can also use and/or override the above by entering your API key in the 'api_key_override' field of each node.
Nodes (17)
Cloud upscaling that plays it straight — no invented detail
This is Control Sketch with a typo — same node, same behavior
Turn a scribble into a scene, cloud-style
Keep the composition, change everything else — ControlNet without the setup
Steal the look, keep your own scene — style control done server-side
The 'invent detail' upscaler — Magnific's cloud rival, faces not included
Object removal with no prompt at all
The dumbest upscaler in the pack, and that's a compliment
The workhorse text-to-image node in Stability's cloud stack
Stability's flagship text-to-image, minus the GPU — and it does img2img too
Classic masked inpainting, hosted — untouched pixels stay untouched
Grow the canvas in one call — outpaint on autopilot
Background gone in one call — transparency included
New background, new light, one async call
Run the full-size SD3 models without touching a single weight
Find it by name, repaint it by prompt — no mask required
Find it by name, swap it by prompt — no mask drawing required
Stability API nodes for ComfyUI

Usage:
Add API key to environment variable "SAI_API_KEY"
Alternatively you can write your API key to file "sai_platform_key.txt"
You can also use and/or override the above by entering your API key in the "api_key_override" field of each node, but be careful sharing workflows containing your API key.
Includes nodes for all the v2 (Stable Image) routes listed at https://platform.stability.ai
Nodes list:
- Stability Conservative Upscale
- Stability Creative Upscale
- Stability Remove Background
- Stability Erase
- Stability Inpainting
- Stability Image Core
- Stability Image Ultra
- Stability Search and Replace
- Stability Outpainting
- Stability SD3
- Stability Control Sketch
- Stability Control Structure
- Stability Search And Recolor
- Stability Control Style
- Stability Fast Upscale
- Stability Replace Background and Relight
License
The MIT License (MIT)
Copyright (c) 2024 Stability AI
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.