SandBase is live — $1 in free credits on signupStart free ›

Stability AI modelsimage generation api

stability-ai/fast-sdxl/image-to-image

Fast Sdxl by Stability AI - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.

Input
The prompt to use for generating the image. Be as descriptive as possible for best results.

PNG, JPEG, WebP, or GIF · 20 MiB maximum

The URL of the image to use as a starting point for the generation.
020
The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you. Range: 0 to 20.
165
The number of inference steps to perform. Range: 1 to 65.
0.051
determines how much the generated image resembles the initial image Range: 0.05 to 1.
If set to true, the aspect ratio of the generated image will be preserved even if the image size is too large. However, if the image is not a multiple of 32 in width or height, it will be resized to the nearest multiple of 32. By default, this snapping to the nearest multiple of 32 will not preserve the aspect ratio. Set crop_output to True, to crop the output to the proper aspect ratio after generating.
The list of LoRA weights to use.
An id bound to a request, can be used with response to identify the request itself.
The version of the safety checker to use. v1 is the default CompVis safety checker. v2 uses a custom ViT model. Allowed values: v1, v2.
The list of embeddings to use.
If set to true, the output cropped to the proper aspect ratio after generating.
If set to true, the prompt will be expanded with additional prompts.
The format of the generated image. Allowed values: jpeg, png.
The aspect ratio of the generated image. Allowed values: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16.
The same seed and the same prompt given to the same version of Stable Diffusion will output the same image every time.
Idle

Example output — click Run to generate your own

API README

Stable Diffusion XL

Stable Diffusion XL occupies a clearly bounded position in a image production pipeline under the route stability-ai/fast-sdxl/image-to-image. It is best evaluated as a named workflow endpoint rather than as a generic substitute for neighboring versions: planners can assign the route to a specific brief, record the chosen revision, and keep approval history tied to one predictable integration surface from intake through delivery.

A practical rollout of Stable Diffusion XL should begin with source-readiness checks, ownership of the submitted material, an agreed budget, and a written definition of the final image to image deliverable. Before automation is enabled, the acceptance pass should verify that the returned asset opens correctly, fits the intended downstream toolchain, satisfies the project’s review criteria, and can be reproduced from the stored request and route identity stability-ai/fast-sdxl/image-to-image.

Highlights

  • Distinct output behavior. For Stable Diffusion XL, for Stable Diffusion XL, use the image field as the visual basis and the prompt as the requested direction In Stable Diffusion XL, this capability is applied through the exact stability-ai/fast-sdxl/image-to-image workflow with seed as a relevant request control; the seed control exposes the corresponding choice in this route; the seed control exposes the corresponding choice in this route.
  • Creative control. For Stable Diffusion XL, for Stable Diffusion XL, supply LoRA weights and embeddings through separate arrays In Stable Diffusion XL, this capability is applied through the exact stability-ai/fast-sdxl/image-to-image workflow with image as a relevant request control; the image control exposes the corresponding choice in this route; the image control exposes the corresponding choice in this route.
  • Workflow fit. For Stable Diffusion XL, for Stable Diffusion XL, choose aspect preservation, post-generation cropping, or neither In Stable Diffusion XL, this capability is applied through the exact stability-ai/fast-sdxl/image-to-image workflow with loras as a relevant request control; the loras control exposes the corresponding choice in this route; the loras control exposes the corresponding choice in this route.
  • Production detail. For Stable Diffusion XL, for Stable Diffusion XL, select the v1 or v2 checker explicitly In Stable Diffusion XL, this capability is applied through the exact stability-ai/fast-sdxl/image-to-image workflow with format as a relevant request control; the format control exposes the corresponding choice in this route; the format control exposes the corresponding choice in this route.

Pricing

ConfigurationPrice
Per request$0.00125

When to Use

ScenarioWhy this model fits
Choose Stable Diffusion XLUse it when the required deliverable is specifically the image-to-image result documented for stability-ai/fast-sdxl/image-to-image.
Match the source materialSelect this route when your inputs naturally map to seed, image, loras, format.
Use its distinguishing capabilityFor Stable Diffusion XL, use the image field as the visual basis and the prompt as the requested direction In Stable Diffusion XL, this capability is applied through the exact stability-ai/fast-sdxl/image-to-image workflow with seed as a relevant request control; the seed control exposes the corresponding choice in this route
Plan repeatable productionFor Stable Diffusion XL, supply LoRA weights and embeddings through separate arrays In Stable Diffusion XL, this capability is applied through the exact stability-ai/fast-sdxl/image-to-image workflow with image as a relevant request control; the image control exposes the corresponding choice in this route
Confirm cost and deliveryUse the pricing combinations below and the output contract above when budgeting or automating Stable Diffusion XL jobs.

Prompt Guide

Build the request around the exact stability-ai/fast-sdxl/image-to-image schema. Start with required fields, then add only the controls needed for the intended output; keep URLs reachable and enum values exactly as shown in Technical Specs.

{
  "image": "https://fal-cdn.batuhan-941.workers.dev/files/tiger/IExuP-WICqaIesLZAZPur.jpeg",
  "prompt": "an island near sea, with seagulls, moon shining over the sea, light house, boats int he background, fish flying over the sea",
  "seed": 0,
  "loras": []
}

Technical Specs

SpecificationValue
Model IDstability-ai/fast-sdxl/image-to-image
Execution modeasync
Required inputsprompt, image
Request fieldsseed (integer, optional); image (string, required); loras (array, optional); format (string, optional, options: jpeg / png); prompt (string, required); strength (number, optional, min 0.05, max 1); embeddings (array, optional); request_id (string, optional); crop_output (boolean, optional); aspect_ratio (string, optional, options: 21:9 / 16:9 / 3:2 / 4:3 / 5:4 / 1:1 / 4:5 / 3:4 / 2:3 / 9:16); expand_prompt (boolean, optional); guidance_scale (number, optional, min 0, max 20); num_inference_steps (integer, optional, min 1, max 65); preserve_aspect_ratio (boolean, optional); safety_checker_version (string, optional, options: v1 / v2)
Outputurl (string); content_type (string)

Related Models

Related Models

stability-ai/fast-sdxlFast Sdxl is Stability AI's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.stability-ai/fast-sdxl/inpaintingFast Sdxl Inpainting by Stability AI - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.stability-ai/fast-sdxl-controlnet-canny/image-to-imageFast Sdxl Controlnet Canny is Stability AI's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.stability-ai/fast-sdxl-controlnet-cannyFast Sdxl Controlnet Canny by Stability AI - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.stability-ai/sd/3.5-largeSd 3.5 Large by stability-ai - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.stability-ai/sd/3.5-mediumSd 3.5 Medium is stability-ai's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.stability-ai/sdxl-controlnet-unionSdxl Controlnet Union is Stability AI's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.stability-ai/sdxl-controlnet-union/image-to-imageSdxl Controlnet Union by Stability AI - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.