SDXL 1.0 Base

SDXL_BASE

High-resolution text-to-image diffusion.

Image Generationtext-to-imagesdxldiffusionFine-tunable
SDXL 1.0 Base: Image Generation model on Kainguru

About SDXL 1.0 Base

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.

Capabilities

  • Text-to-image generation — prompt describes the desired image
  • Negative prompting — negative_prompt excludes unwanted elements
  • High-resolution output — configurable width / height up to 2048px
  • Guidance control — guidance_scale sets how closely the output follows the prompt
  • Reproducible outputs — fix generation with seed

SDXL 1.0 Base inputs and output

NameTypeRequiredDefaultDetails
prompttextYes—Text description of the image to generate.
Min 1 characters
negative_prompttextNo—Elements to exclude from the generated image.
widthintegerNo1024Output image width in pixels.
256–2048
heightintegerNo1024Output image height in pixels.
256–2048
num_inference_stepsintegerNo30Number of denoising steps.
1–100
guidance_scalenumberNo7.5How closely the output follows the prompt. Higher = more prompt-adherent.
0–20
seedintegerNo—Random seed for reproducible generation.
0–2147483647

Output. Returns PNG image: Generated image.

Run SDXL 1.0 Base with the API

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
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"
Python
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)

Fine-tune SDXL 1.0 Base

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.

SDXL 1.0 Base pricing

Price per image: 0.3135 credits ($0.003135). The price is shown again before every run; all prices are on the pricing page.

Licence and source

Playground v2.5: Image Generation model on Kainguru
Image Generation

Playground v2.5

Aesthetics-tuned SDXL fine-tune for 1024px image generation.

Fine-tunable
Z-Image-Turbo: Image Generation model on Kainguru
Image Generation

Z-Image-Turbo

Fast text-to-image with legible English and Chinese text rendered inside the picture.

Stable Diffusion 3.5 Large: Image Generation model on Kainguru
Image Generation

Stable Diffusion 3.5 Large

Text-to-image generation with an MMDiT architecture and strong prompt following.

Fine-tunable
ERNIE-Image: Image Generation model on Kainguru
Image Generation

ERNIE-Image

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: Image Generation model on Kainguru
Image Generation

GLM-Image

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: Image Generation model on Kainguru
Image Generation

HiDream-O1-Image

HiDream-O1-Image from HiDream.ai: an 8B text-to-image model that paints directly in pixels, with no separate decoder…

Fine-tunable