
How to Get Your Stability AI API Key (Stable Diffusion)
Unlock Stable Diffusion 3.5, SVD, and Stable Audio in your projects
Step-by-step guide to create your Stability AI API key, understand which models it unlocks, and start generating images, video, and audio.
Stability AI is one of the most versatile generation APIs available. Beyond text-to-image, it covers video generation, audio synthesis, and a range of image editing tools - all under one key. This guide walks you through getting set up on their platform.
Prerequisites
- A free account on platform.stability.ai
- A payment method for pay-as-you-go usage after the free credits run out
Note: Stability AI gives you 25 free credits on signup. This is enough to generate a few dozen images and get a feel for the API before committing to paid usage.
Step-by-step: creating your API key
- Go to platform.stability.ai and sign up or log in
- Click your profile avatar in the top right corner to open the account menu
- Select "Account"
- Navigate to the "API Keys" tab
- Click "Create API Key"
- Give the key a name, then click Create
- Copy the key immediately - it will not be shown again in full after this step
What this key unlocks
A Stability AI API key gives you access to the full generation suite:
Image generation:
- Stable Diffusion 3.5 Large - the flagship model, highest quality output
- SD3.5 Medium - faster and cheaper, good for iteration
- SD3.5 Large Turbo - distilled version optimized for speed, under 5 seconds per image
Video generation:
- Stable Video Diffusion (SVD) - image-to-video, up to 25 frames at 6fps
Audio generation:
- Stable Audio - text-to-audio and text-to-music, up to 3-minute clips
Image editing tools:
- Search and replace objects within an image
- Outpainting (extend images beyond their original boundaries)
- Upscaling (conservative and creative modes)
- Remove background, sketch-to-image, style transfer
This is notably broader than most generation APIs, which focus on image-only pipelines.
Free tier and pricing
You start with 25 free credits on signup - no credit card required to claim them. After that, pricing is pay-as-you-go:
- SD3.5 Large: approximately $0.065 per image
- SD3.5 Medium: approximately $0.035 per image
- SD3.5 Large Turbo: approximately $0.004 per image (fastest and cheapest path to SD3.5 output)
Stable Audio and SVD have their own per-generation pricing. There is no monthly subscription required.
Security - the essentials
- Store the key in a
.envfile, never hard-code it in source - Add
.envto your.gitignorebefore committing anything - Create separate keys per project so you can revoke one without disrupting others
- Set usage alerts in the platform dashboard to catch unexpected spikes
Using this key with HiWay2LLM
Rather than integrating the Stability AI SDK directly into each project, bring your key to HiWay2LLM. You get unified access to Stability AI alongside 200+ other models, request-level cost tracking, and automatic fallbacks to other image providers if a request fails - all through a single OpenAI-compatible endpoint.
Connect in 30 seconds
Was this useful?
Comments
Be the first to comment.