Input
Per image generation will cost 0.0047$
For premium plan image generation will cost 0.00$ i.e Free.
Output
Unknown content type
Related Models
Discover similar models you might be interested in
About SD XL
SD XL is a ai generation AI model available on ModelsLab. Access SD XL through our API with pay-per-use pricing and no minimum commitments.
Technical Specifications
- Model ID
- sd-xl
- Provider
- Modelslab
- Task
- AI Generation
- Price
- $0.0047 per API call
- Added
- June 7, 2024
Quick Start
Integrate SD XL into your application with a single API call. Get your API key from the pricing page to get started.
import requestsimport jsonurl = "https://modelslab.com/api/v6/images/text2img"headers = {"Content-Type": "application/json"}data = {"model_id": "sd-xl","prompt": "your prompt here","key": "YOUR_API_KEY"}try:response = requests.post(url, headers=headers, json=data)response.raise_for_status() # Raises an HTTPError for bad responses (4XX or 5XX)result = response.json()print("API Response:")print(json.dumps(result, indent=2))except requests.exceptions.HTTPError as http_err:print(f"HTTP error occurred: {http_err} - {response.text}")except Exception as err:print(f"Other error occurred: {err}")
View the full API documentation for SDKs, code examples in Python, JavaScript, and more.
Pricing
SD XL API costs $0.0047 per API call. Pay only for what you use with no minimum commitments. View pricing plans
SD XL FAQ
SD XL is a ai generation AI model available on ModelsLab. Access it through our API with pay-per-use pricing and no minimum commitments.
You can integrate SD XL into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "sd-xl" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.
SD XL costs $0.0047 per API call. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.
The model ID for SD XL is "sd-xl". Use this ID in your API requests to specify this model.
Yes, ModelsLab offers a free tier that lets you try SD XL and other AI models. Sign up to get free API credits and start building immediately.









![Pixel Artstyle LoRA [Noob v-pred 0.6] - v2.0](https://images.stablediffusionapi.com/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/76daee00-d164-4e20-afab-902055251230/width=768/40323184.jpeg)
![Bed Invitation [Pony/Illustrious/NoobVpred] - NoobVpred v1.0](https://images.stablediffusionapi.com/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/a325a180-cc54-43c2-bf93-3ff80c9aacd4/width=1744/44915701.jpeg)

![Object Showcase Collection of 60 Items [XL] - 22 Plate Showcase](https://images.stablediffusionapi.com/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/92304d64-c9c8-4330-a6d2-e92196d06115/width=1024/17594946.jpeg)





