Image model API

SDXL API

SDXL creates high-quality, photorealistic images from text, ideal for creative and design tasks. It offers advanced features like inpainting, image-to-image translation, and refinement, making it ideal for detailed creative projects and professional design work. Its a powerful text-to-image generation model that iterates on the previous Stable Diffusion models in three key ways: the UNet is 3x larger and SDXL combines a second text encoder (OpenCLIP ViT-bigG/14) with the original text encoder to significantly increase the number of parameters.

Model id
sdxl
Takes
Text (required)
Makes
Image
Endpoint
POST /api/v1/images/generations
Made by
Stability AI
Mode
Synchronous

Call SDXL

Base URL https://payload.rentprompts.com/api/v1. Replace the placeholder with your key.

Model sdxl

POST /api/v1/images/generations

curl https://payload.rentprompts.com/api/v1/images/generations \
  -H "Authorization: Bearer rp_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "sdxl",
  "prompt": "A lighthouse at dusk, watercolor",
  "n": 1
}'

Replace rp_live_YOUR_KEY with your key, ideally via the RENTPROMPTS_API_KEY environment variable. Keys are shown only once, so they are never filled in here. Get your API key →

What a typical call costs

Worked out from SDXL's published price (0.3 J / image). You pay only for successful results, from your Joule balance.
  • 1 image0.3 Joules
  • 4 images1.2 Joules

Send requests to POST /api/v1/images/generations. SDXL answers synchronously: the result comes back in the response to the same request.

Settings

Optional parameters this model accepts (pass them in settings on /v1/run, or as top-level fields where OpenAI defines them).
NameTypeDefaultRange / options
seedinteger800 – 100
stepsinteger880 – 98
SDXL API — Pricing & Code Examples | RentPrompts