Skip to main content
DeepInfra supports a wide variety of text-to-image models, including Stable Diffusion 1.4, 1.5, 2.1, SDXL, and many derivative models. Browse all text-to-image models.

Quick start

This example uses stability-ai/sdxl:

Advanced options

Each model has its own set of parameters including negative prompts, number of inference steps, guidance scale, seed, and more. Check the model’s page for all available options:

Using the OpenAI-compatible API

You can also use the OpenAI images API for image generation — see Image Generation.

Custom LoRA adapters

To use custom style LoRA adapters for image generation, see LoRA for Image Generation.