Models/Image APIs/Stable Diffusion XL API
LiveStable Diffusion XL · image generation and LoRA inference2 endpoints

Stable Diffusion XL API — SDXL Image & LoRA

The Stable Diffusion XL API hub combines low-cost SDXL prompt generation with optional custom LoRA weights. Set explicit width and height controls from 256 to 1536 pixels, then use the same Muapi submit-and-poll workflow for both endpoints.

SDXL ImagePrompt-driven Stable Diffusion XL generation1 models
Text to ImageLiveFeatured
SDXL Image

SDXL Image

Generate photorealistic or stylized images from a prompt with explicit width and height controls.

256–1536px
$0.004/image
Try Model
SDXL LoRACustom LoRA-guided image generation1 models
LoRA ImageLive
SDXL LoRA

SDXL LoRA

Generate SDXL images with up to four custom LoRA weight URLs and per-adapter scale control.

256–1536px · up to 4 LoRAs
$0.002/image
Try Model

What is the Stable Diffusion XL API?

Stable Diffusion XL is a high-quality image family on Muapi with a base text-to-image endpoint and an SDXL LoRA variant. Both require a prompt and expose explicit width and height controls from 256 to 1536 pixels.

The SDXL LoRA endpoint additionally accepts up to four lora_list entries. Each entry provides a URL or path to weights and a scale from 0 to 4. The base image endpoint costs $0.004 per generation; the LoRA endpoint costs $0.002 per generation.

SDXL API capabilities

Prompt-driven image generation

Generate photorealistic or stylized images from a required text prompt.

Explicit dimensions

Set width and height independently between 256 and 1536 pixels, with 1024 as the default for each.

Custom LoRA weights

Pass up to four LoRA weight paths and tune each adapter's scale from 0 to 4.

Low per-generation cost

Use the base SDXL endpoint at $0.004 or the LoRA endpoint at $0.002 per generation.

SDXL workflows

Concept and illustration generation

Create detailed concept art, photorealistic scenes, and stylized images from text prompts.

Custom-style inference

Use SDXL LoRA with custom weights for specialized aesthetics, characters, or themes.

Dimension-specific assets

Generate assets for product cards, editorial layouts, social formats, and other fixed canvases.

Quick start — Stable Diffusion XL API code examples

Submit an SDXL image task with your Muapi key, receive a request ID, and poll the shared predictions endpoint for the generated image URL.

1. Submit an SDXL job

curl -X POST https://api.muapi.ai/api/v1/sdxl-image \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"An elven archer in a bioluminescent forest at night, intricate leather armor, painterly high-detail concept art","width":1024,"height":1024}'

# Response: {"request_id":"REQUEST_ID"}

The example calls sdxl-image with a prompt and explicit dimensions. Switch to sdxl-lora-image and include lora_list for custom weights.

2. Poll the result

curl https://api.muapi.ai/api/v1/predictions/REQUEST_ID/result \
  -H "x-api-key: YOUR_API_KEY"

Poll until the task completes, then read the generated image URL from the result response.

Stable Diffusion XL API FAQ

Which SDXL endpoints are available?

Muapi lists sdxl-image for base prompt-to-image generation and sdxl-lora-image for generation with optional custom LoRA weights.

What dimensions does SDXL support?

Both endpoints accept width and height from 256 to 1536 pixels, with 1024 by 1024 as the schema default.

How many LoRAs can I pass?

The sdxl-lora-image schema accepts up to four lora_list entries, each with a path and optional scale from 0 to 4.

Is the LoRA list required for SDXL LoRA?

No. The prompt is required; lora_list is optional, so the endpoint can also run without custom weights.

How is SDXL priced?

sdxl-image costs $0.004 per generation and sdxl-lora-image costs $0.002 per generation.

Build with SDXL

Connect base Stable Diffusion XL generation and custom LoRA inference through one Muapi API key.