Skip to content
Stable Diffusion API

SDXL

SDXL Basemodel 2 General

Use SDXL Basemodel 2 General (SDXL Stable Diffusion model) via the Stable Diffusion API — REST endpoint, model_id "sdxl-basemodel-2-general".

SDXL Basemodel 2 General sample image

Generate with SDXL Basemodel 2 General 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": "sdxl-basemodel-2-general",
  "prompt": "a photo of sdxl basemodel 2 general",
  "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
}'

Also searched as

SDXL Basemodel 2 General is also known as: SDXL Basemodel 2 General, sdxl-basemodel-2-general, sdxl basemodel 2 general, sdxlbasemodel2general, sdxl.basemodel.2.general. Use it for sdxl generation, available via the Stable Diffusion API REST API at https://stablediffusionapi.com/api/v4/dreambooth.

FAQ — SDXL Basemodel 2 General

How do I use SDXL Basemodel 2 General via API?
Send a POST request to https://stablediffusionapi.com/api/v4/dreambooth with your API key, prompt, and model_id "sdxl-basemodel-2-general". Get an API key from modelslab.com.
Is SDXL Basemodel 2 General free to use?
No. API access requires a paid ModelsLab plan, starting at $21/month (Basic, 3,250 API calls). The $149/month Open Source Unlimited plan includes unlimited generations on open-source models; third-party models are billed separately.
What parameters does SDXL Basemodel 2 General support?
SDXL Basemodel 2 General 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.