SDXL Image
Generate photorealistic or stylized images from a prompt with explicit width and height controls.
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.
Generate photorealistic or stylized images from a prompt with explicit width and height controls.
Generate SDXL images with up to four custom LoRA weight URLs and per-adapter scale control.
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.
Generate photorealistic or stylized images from a required text prompt.
Set width and height independently between 256 and 1536 pixels, with 1024 as the default for each.
Pass up to four LoRA weight paths and tune each adapter's scale from 0 to 4.
Use the base SDXL endpoint at $0.004 or the LoRA endpoint at $0.002 per generation.
Create detailed concept art, photorealistic scenes, and stylized images from text prompts.
Use SDXL LoRA with custom weights for specialized aesthetics, characters, or themes.
Generate assets for product cards, editorial layouts, social formats, and other fixed canvases.
Submit an SDXL image task with your Muapi key, receive a request ID, and poll the shared predictions endpoint for the generated image URL.
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.
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.
Muapi lists sdxl-image for base prompt-to-image generation and sdxl-lora-image for generation with optional custom LoRA weights.
Both endpoints accept width and height from 256 to 1536 pixels, with 1024 by 1024 as the schema default.
The sdxl-lora-image schema accepts up to four lora_list entries, each with a path and optional scale from 0 to 4.
No. The prompt is required; lora_list is optional, so the endpoint can also run without custom weights.
sdxl-image costs $0.004 per generation and sdxl-lora-image costs $0.002 per generation.
Connect base Stable Diffusion XL generation and custom LoRA inference through one Muapi API key.