# Stability AI API Platform > The Stability AI Platform API lets developers generate and edit images, 3D models, and audio with Stable Diffusion 3.5, Stable Image, and Stable Audio. - [Stability AI Platform](https://docs.stability.ai/index.md): Documentation for the Stability AI API Platform. Generate and edit images, 3D models, and audio with Stable Diffusion 3.5, Stable Image, and Stable Audio. - [Stable Audio](https://docs.stability.ai/stable-audio.md): Stable Audio 3.0 prompt guide - [Getting started](https://docs.stability.ai/getting-started.md): Create a Stability AI account, get an API key, and buy credits to start calling the Stability AI API. - [Stable Image](https://docs.stability.ai/getting-started/stable-image.md): Introduction to Stable Image services: Generate, Upscale, Edit, and Control APIs for building image applications. - [Pricing](https://docs.stability.ai/pricing.md): Credit pricing for Stability AI API services, including Stable Image, Stable Audio, and 3D models. 1 credit equals $0.01. - [FAQs](https://docs.stability.ai/faq.md): Answers to common questions about Stability AI API keys, rate limits, errors, Stable Audio, commercial use, status, and billing. - [Docs MCP server](https://docs.stability.ai/ai/docs-mcp.md): Connect the Stability AI docs MCP server to Claude Code, Cursor, VS Code, Codex, or Claude so your coding agent can read the API reference while it writes code. - [Python gRPC SDK](https://docs.stability.ai/legacy/python-grpc-sdk.md): Install and configure the legacy Stability AI Python gRPC SDK (stability-sdk) and make your first generation request. - [TypeScript gRPC client](https://docs.stability.ai/legacy/typescript-grpc-client.md): Set up the legacy Stability AI TypeScript gRPC client and helper functions for Node.js generation requests. - [API reference](https://docs.stability.ai/api-reference/index.md): Base URL, authentication, request and response formats, async results, errors, and rate limits for the Stability AI REST API. - [Text-to-Audio](https://docs.stability.ai/api-reference/stable-audio/text-to-audio.md): Stable Audio transforms existing audio samples into new high-quality compositions up to six minutes long at 44.1kHz stereo using text instructions. - [Audio-to-Audio](https://docs.stability.ai/api-reference/stable-audio/audio-to-audio.md): Stable Audio transforms existing audio samples into new high-quality compositions up to six minutes long at 44.1kHz stereo using text instructions. Discover techniques for sample transformation in our [Audio to Audio Guide](https://www.stableaudio.com/user-guide/audio-to-audio) to maximize creative… - [Inpaint](https://docs.stability.ai/api-reference/stable-audio/inpaint.md): Stable Audio transforms existing audio samples into new high-quality compositions up to six minutes long at 44.1kHz stereo using text instructions. - [Fetch Audio Result](https://docs.stability.ai/api-reference/audio-results/fetch-audio-result.md): Fetch the result of an audio generation by ID. - [Text-to-Audio](https://docs.stability.ai/api-reference/stable-audio-2/text-to-audio.md): Stable Audio generates high-quality music and sound effects up to three minutes long at 44.1kHz stereo from text descriptions. Learn how to craft effective prompts in our [Prompt Guide](https://www.stableaudio.com/user-guide/text-to-audio) to get the best results from your generations. - [Audio-to-Audio](https://docs.stability.ai/api-reference/stable-audio-2/audio-to-audio.md): Stable Audio transforms existing audio samples into new high-quality compositions up to three minutes long at 44.1kHz stereo using text instructions. Discover techniques for sample transformation in our [Audio to Audio Guide](https://www.stableaudio.com/user-guide/audio-to-audio) to maximize creativ… - [Inpaint](https://docs.stability.ai/api-reference/stable-audio-2/inpaint.md): Stable Audio 2.5 transforms existing audio samples into new high-quality compositions up to three minutes long at 44.1kHz stereo using text instructions. - [Stable Image Ultra](https://docs.stability.ai/api-reference/generate/stable-image-ultra.md): Our most advanced text to image generation service, Stable Image Ultra creates the highest quality images with unprecedented prompt understanding. Ultra excels in typography, complex compositions, dynamic lighting, vibrant hues, and overall cohesion and structure of an art piece. Made from the most… - [Stable Image Core](https://docs.stability.ai/api-reference/generate/stable-image-core.md): Our primary service for text-to-image generation, Stable Image Core represents the best quality achievable at high speed. No prompt engineering is required! Try asking for a style, a scene, or a character, and see what you get. - [Stable Diffusion 3.5](https://docs.stability.ai/api-reference/generate/stable-diffusion-35.md): Generate using Stable Diffusion 3.5 models, Stability AI latest base model: - [Fast](https://docs.stability.ai/api-reference/upscale/fast.md): Our Fast Upscaler service enhances image resolution by 4x using predictive and generative AI. This lightweight and fast service (processing in ~1 second) is ideal for enhancing the quality of compressed images, making it suitable for social media posts and other applications. - [Conservative](https://docs.stability.ai/api-reference/upscale/conservative.md): Takes images between 64x64 and 1 megapixel and upscales them all the way to 4K resolution. Put more generally, it can upscale images ~20-40x times while preserving all aspects. Conservative Upscale minimizes alterations to the image and should not be used to reimagine an image. - [Creative Upscale (async)](https://docs.stability.ai/api-reference/upscale/creative-upscale-async.md): Takes images between 64x64 and 1 megapixel and upscales them all the way to **4K** resolution. Put more generally, it can upscale images ~20-40x times while preserving, and often enhancing, quality. Creative Upscale **works best on highly degraded images and is not for photos of 1mp or above** as i… - [Erase](https://docs.stability.ai/api-reference/edit/erase.md): The Erase service removes unwanted objects, such as blemishes on portraits or items on desks, using image masks. - [Inpaint](https://docs.stability.ai/api-reference/edit/inpaint.md): Intelligently modify images by filling in or replacing specified areas with new content based on the content of a "mask" image. - [Outpaint](https://docs.stability.ai/api-reference/edit/outpaint.md): The Outpaint service inserts additional content in an image to fill in the space in any direction. Compared to other automated or manual attempts to expand the content in an image, the Outpaint service should minimize artifacts and signs that the original image has been edited. - [Search and Replace](https://docs.stability.ai/api-reference/edit/search-and-replace.md): The Search and Replace service is a specific version of inpainting that does not require a mask. Instead, users can leverage a `search_prompt` to identify an object in simple language to be replaced. The service will automatically segment the object and replace it with the object requested in the pr… - [Search and Recolor](https://docs.stability.ai/api-reference/edit/search-and-recolor.md): The Search and Recolor service provides the ability to change the color of a specific object in an image using a prompt. This service is a specific version of inpainting that does not require a mask. The Search and Recolor service will automatically segment the object and recolor it using the colors… - [Remove Background](https://docs.stability.ai/api-reference/edit/remove-background.md): The Remove Background service accurately segments the foreground from an image and implements and removes the background. - [Replace Background and Relight (async)](https://docs.stability.ai/api-reference/edit/replace-background-and-relight-async.md): The Replace Background and Relight edit service lets users swap backgrounds with AI-generated or uploaded images while adjusting lighting to match the subject. This new API provides a streamlined image editing solution and can serve e-commerce, real estate, photography, and creative projects. - [Sketch](https://docs.stability.ai/api-reference/control/sketch.md): This service offers an ideal solution for design projects that require brainstorming and frequent iterations. It upgrades rough hand-drawn sketches to refined outputs with precise control. For non-sketch images, it allows detailed manipulation of the final appearance by leveraging the contour lines… - [Structure](https://docs.stability.ai/api-reference/control/structure.md): This service excels in generating images by maintaining the structure of an input image, making it especially valuable for advanced content creation scenarios such as recreating scenes or rendering characters from models. - [Style Guide](https://docs.stability.ai/api-reference/control/style-guide.md): This service extracts stylistic elements from an input image (control image) and uses it to guide the creation of an output image based on the prompt. The result is a new image in the same style as the control image. - [Style Transfer](https://docs.stability.ai/api-reference/control/style-transfer.md): Style Transfer applies visual characteristics from reference style images to target images. While Style Guide extracts stylistic elements from an input image (control image) and uses it to guide the creation of an output image based on the prompt, Style Transfer specifically transforms existing cont… - [Fetch async generation result](https://docs.stability.ai/api-reference/results/fetch-async-generation-result.md): Fetch the result of a generation by ID. - [Stable Fast 3D](https://docs.stability.ai/api-reference/3d/stable-fast-3d.md): Stable Fast 3D generates high-quality 3D assets from a single 2D input image. - [Stable Point Aware 3D](https://docs.stability.ai/api-reference/3d/stable-point-aware-3d.md): Stable Point Aware 3D (SPAR3D) can make real-time edits and create the complete structure of a 3D object from a single image in a few seconds. SPAR3D combines the strengths of point-cloud diffusion (probabilistic) and mesh regression (deterministic) to have improved details on the unseen back region… - [Text-to-image](https://docs.stability.ai/api-reference/sdxl-10/text-to-image.md): Generate an image from a text prompt. ### Using SDXL 1.0 Use `stable-diffusion-xl-1024-v1-0` as the `engine_id` of your request and pass in `height` & `width` as one of the following combinations: - 1024x1024 (default) - 1152x896 - 896x1152 - 1216x832 - 1344x768 - 768x1344 - 1536x640 - 640x1536 - [Image-to-image with prompt](https://docs.stability.ai/api-reference/sdxl-10/image-to-image-with-prompt.md): Produce an image from an existing image using a text prompt. ### How to control strength of generation To preserve only roughly 35% of the initial image, pass in either `init_image_mode=IMAGE_STRENGTH` and `image_strength=0.35` or `init_image_mode=STEP_SCHEDULE` and `step_schedule_start=0.65`. Bot… - [Image-to-image with a mask](https://docs.stability.ai/api-reference/sdxl-10/image-to-image-with-a-mask.md): Selectively modify portions of an image using a mask. The `mask` must be the same shape and size as the init image. This endpoint also supports `image` parameters with alpha channels. See below for more details. - [List engines](https://docs.stability.ai/api-reference/engines/list-engines.md): List all engines available to your organization/user - [Account details](https://docs.stability.ai/api-reference/user/account-details.md): Get information about the account associated with the provided API key - [Account balance](https://docs.stability.ai/api-reference/user/account-balance.md): Get the credit balance of the account/organization associated with the API key - [gRPC API parameters](https://docs.stability.ai/legacy/grpc-api/features/api-parameters.md): Reference for legacy gRPC API generation parameters, including dimensions, steps, CFG scale, engines, samplers, and seeds. - [Text-to-image](https://docs.stability.ai/legacy/grpc-api/features/text-to-image.md): Generate images from text prompts with the legacy Stability AI gRPC API in Python or TypeScript. - [Image-to-image](https://docs.stability.ai/legacy/grpc-api/features/image-to-image.md): Generate new images from an initial image and a prompt with the legacy Stability AI gRPC API in Python or TypeScript. - [Inpainting and masking](https://docs.stability.ai/legacy/grpc-api/features/inpainting.md): Inpaint parts of an image using a grayscale mask with the legacy Stability AI gRPC API in Python or TypeScript. - [Multi-prompting](https://docs.stability.ai/legacy/grpc-api/features/multi-prompting.md): Mix concepts and use negative prompts by assigning weights to multiple prompts with the legacy gRPC API. - [Variants](https://docs.stability.ai/legacy/grpc-api/features/variants.md): Create alternative versions of a past generation using image-to-image with the legacy gRPC API. - [Release Notes](https://docs.stability.ai/release-notes.md): Changelog of Stability AI API releases, new models, updates, deprecations, and pricing notices. ## OpenAPI Specs - [openapi-v1](/openapi-v1.json) - [openapi](/openapi.json) ## Optional - [Status](https://status.stability.ai)