
Playground v2.5
Aesthetics-tuned SDXL fine-tune for 1024px image generation.
Fine-tunableSDXL_BASEHigh-resolution text-to-image diffusion.

Stability AI SDXL 1.0 base — a high-resolution text-to-image diffusion model. Takes a text prompt (with an optional negative prompt) and returns a single generated image, with controls for resolution, denoising steps, guidance strength, and seed.
prompt describes the desired imagenegative_prompt excludes unwanted elementswidth / height up to 2048pxguidance_scale sets how closely the output follows the promptseed| Name | Type | Required | Default | Details |
|---|---|---|---|---|
prompt | text | Yes | — | Text description of the image to generate. Min 1 characters |
negative_prompt | text | No | — | Elements to exclude from the generated image. |
width | integer | No | 1024 | Output image width in pixels. 256–2048 |
height | integer | No | 1024 | Output image height in pixels. 256–2048 |
num_inference_steps | integer | No | 30 | Number of denoising steps. 1–100 |
guidance_scale | number | No | 7.5 | How closely the output follows the prompt. Higher = more prompt-adherent. 0–20 |
seed | integer | No | — | Random seed for reproducible generation. 0–2147483647 |
Output. Returns PNG image: Generated image.
Send your API key in the X-API-Key header. The run is asynchronous: submit it, then poll it until it finishes. Create an API key.
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=SDXL_BASE" \
-H "X-API-Key: kg_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "An astronaut riding a horse on the moon, photorealistic, dramatic lighting",
"guidance_scale": 7.5,
"height": 1024,
"num_inference_steps": 30,
"width": 1024
},
"outputFormat": "json"
}'
# Poll until the execution reaches a terminal state
curl "https://api.kainguru.com/api/v1/executions/{executionId}" \
-H "X-API-Key: kg_your_api_key"from kainguru import KainguruClient
with KainguruClient(api_key="kg_your_api_key", base_url="https://api.kainguru.com/api") as client:
submitted = client.executions.execute(
"SDXL_BASE",
{
"prompt": "An astronaut riding a horse on the moon, photorealistic, dramatic lighting",
"guidance_scale": 7.5,
"height": 1024,
"num_inference_steps": 30,
"width": 1024
},
output_format="json",
)
result = client.executions.await_completion(submitted.id)
print(result.execution.output)You can fine-tune SDXL 1.0 Base on your own data and run the tuned model through the same API. Dataset: Your training images (5-20 of one concept). Uploaded to S3 and passed to the trainer as a list of file URLs.
The steps are in the docs.
Price per image: 0.3135 credits ($0.003135). The price is shown again before every run; all prices are on the pricing page.

Aesthetics-tuned SDXL fine-tune for 1024px image generation.
Fine-tunable
Fast text-to-image with legible English and Chinese text rendered inside the picture.

Text-to-image generation with an MMDiT architecture and strong prompt following.
Fine-tunable
ERNIE-Image from Baidu: an 8B text-to-image model strong on posters, dense text and multi-panel layouts in English and…
Fine-tunable
GLM-Image from Z.ai: a 16B model that plans the picture with a language model, then draws it with a diffusion decoder…
Fine-tunable
HiDream-O1-Image from HiDream.ai: an 8B text-to-image model that paints directly in pixels, with no separate decoder…
Fine-tunable