Skip to content
Stable Diffusion API

SDXL

V2.0- SDXL Version

model_id: v20sdxlversion

Merged with SDXL. Not sure how long I'll keep this version as I might make adjustments, but here it is for now. Merged with SDXL. Not sure how long I'll keep this version as I might make adjustments, but here it is for now. You can integrate V2.0- SDXL Version into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "v20sdxlversion" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation. V2.0- SDXL Version costs $0.0047 per API call. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

V2.0- SDXL Version sample image

Generate with V2.0- SDXL Version via API

Send a POST request to https://stablediffusionapi.com/api/v4/dreambooth with your API key. Get yours at modelslab.com.

curl -X POST 'https://stablediffusionapi.com/api/v4/dreambooth' \
  -H 'Content-Type: application/json' \
  -d '{
  "key": "YOUR_API_KEY",
  "model_id": "v20sdxlversion",
  "prompt": "a photo of v2.0- sdxl version",
  "negative_prompt": null,
  "width": "512",
  "height": "512",
  "samples": "1",
  "num_inference_steps": "30",
  "guidance_scale": "7.5",
  "safety_checker": "no",
  "enhance_prompt": "yes",
  "seed": null,
  "webhook": null,
  "track_id": null
}'

Parameters

Parameter Default Description
model_id v20sdxlversion Model identifier
prompt
negative_prompt
width 512 Output image width (px)
height 512 Output image height (px)
samples 1 Number of images to generate
num_inference_steps 30 Denoising steps (1-50)
guidance_scale 7.5 Prompt adherence (1-20)
seed null Random seed (null to randomize)
safety_checker yes NSFW filter (yes/no)
enhance_prompt yes Auto-improve prompt (yes/no)

Also searched as

V2.0- SDXL Version is also known as: V2.0- SDXL Version, v20sdxlversion, 2.0- SDXL Version. Use it for sdxl image generation, available for download via the Stable Diffusion API REST API at https://stablediffusionapi.com/api/v4/dreambooth.

FAQ — V2.0- SDXL Version

How do I use V2.0- SDXL Version via API?
Send a POST request to https://stablediffusionapi.com/api/v4/dreambooth with your API key, prompt, and model_id "v20sdxlversion". Get an API key from modelslab.com.
Is V2.0- SDXL Version free to use?
Yes — Stable Diffusion API offers a free tier with 20 generations. Paid plans starting at $8/month give you unlimited access to V2.0- SDXL Version and 1,000+ other models.
What parameters does V2.0- SDXL Version support?
V2.0- SDXL Version accepts standard Stable Diffusion parameters: prompt, negative_prompt, width, height, samples, num_inference_steps (default 30), guidance_scale (default 7.5), seed, and safety_checker.
Can I use generated images commercially?
Yes. You retain copyright on all images you generate via the API and can use them commercially.