Mage API · Image model
SDXL Plus API
SDXL with faces and hands fixed
POST https://api.mage.space/v1/sdxl_plus/generateAt a glance
The SDXL Plus API runs SDXL Plus through Mage at POST https://api.mage.space/v1/sdxl_plus/generate. A request at the default settings costs 15 Gems (about $0.015), with no subscription. SDXL Plus takes no @handle mentions.
- ImageOutput
- 1Variant
- 15Gems per image, default
- $0.015About, in USD
Overview
What the SDXL Plus API does
Our high-detail SDXL pipeline with automatic face and hand cleanup. Text-to-image or from one input image; slower than plain SDXL, and worth it.
Mage's high-detail SDXL pipeline with automatic face and hand cleanup, with an optional input image.
It accepts image as inputs.
Quick start
Call the SDXL Plus API
Set MAGE_API_KEY, submit to /sdxl_plus/generate, and poll status_url until the request completes.
cURL
STATUS_URL=$(curl --request POST 'https://api.mage.space/v1/sdxl_plus/generate' \
--header "Authorization: Bearer $MAGE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"prompt": "Editorial portrait in soft daylight, 35mm film look",
"aspect_ratio": "4:5",
"model_id": "6A35A7855770AE9820A3C931D4964C3817B6D9E3C6F9C4DABB5B3A94E5643B80"
}' | jq -r '.status_url')
# Repeat until status is "completed"; result.url is the file
curl "$STATUS_URL" --header "Authorization: Bearer $MAGE_API_KEY"TypeScript
// npm install @mage-space/sdk
import Mage from '@mage-space/sdk';
const mage = new Mage(); // reads MAGE_API_KEY
const request = await mage.run('sdxl_plus', {
prompt: 'Editorial portrait in soft daylight, 35mm film look',
aspect_ratio: '4:5',
model_id: '6A35A7855770AE9820A3C931D4964C3817B6D9E3C6F9C4DABB5B3A94E5643B80',
});
console.log(request.result.url);Python
# pip install mage-space
from mage_space import Mage
mage = Mage() # reads MAGE_API_KEY
request = mage.run("sdxl_plus", {
"prompt": "Editorial portrait in soft daylight, 35mm film look",
"aspect_ratio": "4:5",
"model_id": "6A35A7855770AE9820A3C931D4964C3817B6D9E3C6F9C4DABB5B3A94E5643B80",
})
print(request["result"]["url"])Models
SDXL Plus model_id values
Send model_id to pick a variant. A request without one runs the default.
| model_id | Name | Default |
|---|---|---|
| 6A35A7855770AE9820A3C931D4964C3817B6D9E3C6F9C4DABB5B3A94E5643B80 | SDXL Plus | Yes |
Options
SDXL Plus parameters
Allowed values across all variants; a variant may offer fewer. The docs list the options per variant.
| Field | Values |
|---|---|
| aspect_ratio | 21:9, 16:9, 3:2, 5:4, 1:1, 4:5, 2:3, 9:16, 9:21 |
Inputs
Media inputs SDXL Plus accepts
Send each as an https URL, a data URL, or an upload of up to 100 MB.
| Field | Role |
|---|---|
| image | The reference image. |
More image models
Other image generation APIs on Mage
Seedream API
Seedream, with a strict filter
Stable Diffusion v1.5 API
The classic, on a budget
Stable Diffusion v3.5 Large API
The Stable Diffusion that listens best
Stable Diffusion XL API
Photoreal-tuned SDXL
Z-Image API
The fastest image model on Mage
Anima API
Purpose-built for anime
FAQ
Frequently asked questions
How much does the SDXL Plus API cost?
What is the SDXL Plus API endpoint?
Which SDXL Plus models can I call?
Does SDXL Plus support reference images or characters?
Can I use SDXL Plus from Claude or ChatGPT?
How long are SDXL Plus results kept?
Start building with Mage
One account, one Gems balance, every model. Pay only for what you generate.