HomeAI APIs › Stability AI

Stability AI API — pricing, credits & how to get a key

Stability AI is the company behind Stable Diffusion. Its API generates images from text (and does image-to-image, upscaling and inpainting) and bills in credits rather than tokens. Here's what a generation actually costs, the free credits, and how to start.

Stability AI pricing (reference, July 2026)

Model / endpointCredits per image≈ Cost (at ~$0.01/credit)
Stable Image Core~3 credits~$0.03
Stable Diffusion 3.5 Large~6.5 credits~$0.065
Stable Image Ultra~8 credits~$0.08
Upscale / edit endpoints~3–25 credits~$0.03–$0.25
⚠️ Reference prices, July 2026 — Stability prices in credits and changes models often. Credits are bought in bundles (commonly ~$10 = 1,000 credits, so ≈ $0.01/credit). Confirm current rates on platform.stability.ai. Self-hosting the open weights is free of API cost but you pay for GPUs. · Report outdated price →
✓ Last verified: 2026-07-15· Source: official provider pricing page· Auto-monitored — report change →

The free tier

New accounts get a small one-time pool of free credits to test generation — enough for a few dozen images. It's a trial, not a recurring monthly free quota. If you need ongoing free image generation, running the open Stable Diffusion weights yourself (on a rented GPU or a service like Replicate) can be cheaper at volume, at the cost of setup and ops.

How to get a Stability AI API key (step by step)

1. Sign up at platform.stability.ai.
2. Open account settings and check your free credits.
3. Go to API Keys and generate a key (starts with sk-).
4. Call a v2beta image endpoint with a Bearer token.

Generate one image:

# replace $STABILITY_API_KEY
curl -X POST https://api.stability.ai/v2beta/stable-image/generate/core \
-H "Authorization: Bearer $STABILITY_API_KEY" \
-H "Accept: image/*" \
-F prompt="a red fox in snow, cinematic" \
-F output_format=webp -o fox.webp

Cheaper / alternative options

For text-to-image you have real choice. OpenAI (gpt-image / DALL·E) and Google Gemini both generate images and may be simpler if you already use them for text. Replicate hosts Stable Diffusion and hundreds of other image models on a pay-per-second basis, which is often cheaper for bulk jobs. Stability's edge is being the source of the Stable Diffusion family with editing, upscaling and structure-control endpoints. Estimate your monthly spend with the AI app cost estimator before committing.

FAQ

Does Stability AI have a free tier?

You get a small one-time allowance of free credits to test. After that, images are billed in credits (roughly a few cents each). There's no perpetual free monthly quota.

How do I get a Stability AI API key?

Sign up at platform.stability.ai, open account settings, go to API Keys, and generate a key (it starts with sk-). Use it as a Bearer token on the v2beta image endpoints.

How much does one image cost?

Roughly $0.03 for Stable Image Core, ~$0.065 for SD 3.5 Large and ~$0.08 for Ultra, assuming credits cost about $0.01 each. Edit and upscale endpoints range from a few credits to ~25.

Is it cheaper than DALL·E?

Often comparable. Stable Image Core is among the cheapest hosted options per image; OpenAI and Gemini are competitive and may win on convenience. For high volume, self-hosting the open weights or using Replicate per-second can undercut all of them.

Not affiliated with Stability AI. Prices are reference estimates — always verify on the official pricing page.

Host your project:DigitalOcean — $200 free ↗Hostinger VPS

Exchanges

BybitBinanceOKXKuCoinBitgetGate.ioMEXC

Tools & Hosting

📈 TradingView🔒 NordVPN💳 RevolutDigitalOcean $200Hostinger