Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
/**
* Stability AI image-generation model catalog.
*
* Extracted out of imageRegistry.ts (which sits right at the 800-line file-size
* cap) so the catalog lives in its own semantic family module, following the same
* pattern as `providers/registry/kie/imageModels.ts` and
* `providers/registry/segmind/imageModels.ts`. See `imageRegistry.ts`'s
* `stability-ai` entry for baseUrl/auth/format wiring.
*
* `imageRequired: true` marks the dedicated edit/control/upscale endpoints
* (STABILITY_EDIT_ENDPOINTS in open-sse/handlers/imageGeneration.ts) that accept a
* text prompt but mechanically require an input image regardless —
* modalitiesRequireImageInput() alone can't tell them apart from flexible
* dual-modality generation models (BFL Kontext, Together, NVIDIA, LMArena,
* NanoGPT), which correctly allow pure text-to-image.
*/
export interface StabilityImageModelEntry {
id: string;
name: string;
inputModalities?: string[];
imageRequired?: boolean;
}
export const STABILITY_AI_IMAGE_MODELS: StabilityImageModelEntry[] = [
{ id: "stable-image-ultra", name: "Stable Image Ultra" },
{ id: "stable-image-core", name: "Stable Image Core" },
{ id: "sd3.5-large-turbo", name: "sd3.5-large-turbo" },
{ id: "sd3.5-large", name: "sd3.5-large" },
{ id: "sd3.5-medium", name: "sd3.5-medium" },
{ id: "sd3.5-flash", name: "sd3.5-flash" },
{ id: "erase", name: "Erase", inputModalities: ["image"] },
{ id: "inpaint", name: "Inpaint", inputModalities: ["text", "image"], imageRequired: true },
{ id: "outpaint", name: "Outpaint", inputModalities: ["text", "image"], imageRequired: true },
{ id: "remove-background", name: "Remove Background", inputModalities: ["image"] },
{
id: "search-and-replace",
name: "Search and Replace",
inputModalities: ["text", "image"],
imageRequired: true,
},
{
id: "search-and-recolor",
name: "Search and Recolor",
inputModalities: ["text", "image"],
imageRequired: true,
},
{
id: "replace-background-and-relight",
name: "Replace Background and Relight",
inputModalities: ["text", "image"],
imageRequired: true,
},
{
id: "creative",
name: "Creative Upscale",
inputModalities: ["text", "image"],
imageRequired: true,
},
{ id: "fast", name: "Fast Upscale", inputModalities: ["image"] },
{ id: "conservative", name: "Conservative Upscale", inputModalities: ["image"] },
{ id: "sketch", name: "Sketch Control", inputModalities: ["text", "image"], imageRequired: true },
{
id: "structure",
name: "Structure Control",
inputModalities: ["text", "image"],
imageRequired: true,
},
{ id: "style", name: "Style Control", inputModalities: ["text", "image"], imageRequired: true },
{
id: "style-transfer",
name: "Style Transfer",
inputModalities: ["text", "image"],
imageRequired: true,
},
];