Skip to main content
DeepInfra supports a wide variety of text-to-image models. This page walks through SDXL Turbo; the catalog also carries the FLUX, Qwen-Image and Nano Banana families. Browse all text-to-image models.

Quick start

This example uses stabilityai/sdxl-turbo:
images[0] is a data: URI containing the encoded image, not an HTTP link — fetch() accepts it directly, as above.

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.