Namespace Glitch9.AIDevKit.Stability
Classes
EditService
Service for Stability AI image editing endpoints. POST /v2beta/stable-image/edit/inpaint POST /v2beta/stable-image/edit/outpaint POST /v2beta/stable-image/edit/erase POST /v2beta/stable-image/edit/search-and-replace POST /v2beta/stable-image/edit/search-and-recolor POST /v2beta/stable-image/edit/remove-background All endpoints return raw image bytes.
GenerateService
Service for Stability AI image generation endpoints. POST /v2beta/stable-image/generate/sd3 POST /v2beta/stable-image/generate/core POST /v2beta/stable-image/generate/ultra All endpoints return raw image bytes (image/png by default).
StabilityClient
REST client for the native Stability AI API (https://api.stability.ai). Auth: Bearer API key. All image endpoints use multipart/form-data and return raw image bytes.
StabilityCoreRequest
Request body for POST /v2beta/stable-image/generate/core. Fast, high-quality image generation. No explicit model field required.
StabilityEraseRequest
Request body for POST /v2beta/stable-image/edit/erase. Removes objects defined by the mask, replacing them with AI-generated background.
StabilityInpaintRequest
Request body for POST /v2beta/stable-image/edit/inpaint. Fills masked or transparent areas of an image using the provided prompt.
StabilityOutpaintRequest
Request body for POST /v2beta/stable-image/edit/outpaint. Extends the canvas of an existing image by a specified number of pixels on each side.
StabilityRemoveBgRequest
Request body for POST /v2beta/stable-image/edit/remove-background. Segments the foreground and removes the background from an image. No prompt required.
StabilityRequest
Shared base for all Stability AI native API generation and edit requests. All requests use multipart/form-data encoding.
StabilitySD3Request
Request body for POST /v2beta/stable-image/generate/sd3. Supports SD3 Large, SD3 Large Turbo, and SD3 Medium models.
StabilitySearchRecolorRequest
Request body for POST /v2beta/stable-image/edit/search-and-recolor. Recolors a specified object in the image based on a text prompt.
StabilitySearchReplaceRequest
Request body for POST /v2beta/stable-image/edit/search-and-replace. Replaces a specified object (described by search_prompt) with generated content.
StabilitySettings
StabilityUltraRequest
Request body for POST /v2beta/stable-image/generate/ultra. Highest-quality single-image generation, highest credit cost.
StabilityUpscaleRequest
Request body for synchronous upscale endpoints: POST /v2beta/stable-image/upscale/conservative POST /v2beta/stable-image/upscale/fast The creative upscale endpoint is async (deferred) and uses a different polling flow.
UpscaleService
Service for synchronous Stability AI upscale endpoints. POST /v2beta/stable-image/upscale/conservative POST /v2beta/stable-image/upscale/fast
Note: The creative upscale endpoint is async (returns a job ID for polling) and is deferred to a future implementation.