Quick setup
Open the kRouter dashboard at http://localhost:20128
Go to Providers → click Stability AI
Paste your API key, click Save
Test the connection
Use in your IDE
Point any OpenAI-compatible client at kRouter using your local API key.
# Endpoint
http://localhost:20128/v1
# API key (from Dashboard → API Keys)
sk-krouter-XXXX
# Model
stability/<model-id>How Stability AI billing works with kRouter
Stability AI is pay-per-token. You bring your own API key and kRouter routes to it, so you keep your own rate limits and billing relationship. kRouter authenticates it via apikey. 5 models are routable as stability/<model>.
Through kRouter, Stability AI serves image generation, exposed on /v1/images/generations. Requests reach it through the same local OpenAI-compatible endpoint as every other provider, so switching to or from Stability AI is a one-line model change in your client rather than a rewrite.
Stability AI models & pricing
These are the model ids kRouter routes to. This provider does not publish per-token rates.
| Model | Route as |
|---|---|
| Stable Image Ultra | stability/stable-image-ultra |
| Stable Image Core | stability/stable-image-core |
| Stable Diffusion 3.5 Large | stability/sd3.5-large |
| Stable Diffusion 3.5 Large Turbo | stability/sd3.5-large-turbo |
| Stable Diffusion 3.5 Medium | stability/sd3.5-medium |
Stability AI links
Stability AI FAQ
Is Stability AI free through kRouter?
Stability AI is pay-per-token: you bring your own API key and are billed by Stability AI at their rates. kRouter adds nothing on top and is free and MIT-licensed.
How do I use Stability AI with Claude Code or Cursor?
Connect Stability AI in the kRouter dashboard, then point your tool at kRouter's local endpoint (http://localhost:20128/v1) with a kRouter API key. Any OpenAI-compatible client works, and models are addressed as stability/<model>.
Which Stability AI models can kRouter route to?
5 models, including Stable Image Ultra, Stable Image Core, Stable Diffusion 3.5 Large. Every one is addressed as stability/<model> from any client.
What happens when Stability AI is rate limited?
kRouter detects the limit, parks that account until its real reset time, and fails over to your next connected account or provider — so the request still completes instead of erroring.