sdxl: image generation model
SDXL is Stability AI's Stable Diffusion XL text-to-image model with fine-grained size and step control. Served asynchronously from inside Iran through Hormouz.
- Pricing:
- $0.0100 / run
- Type:
- image
- Image generation
SDXL (Stable Diffusion XL) is Stability AI's high-resolution text-to-image model. It renders a text prompt as a detailed image and is a popular open base for a wide range of styles.
It is served through Hormouz behind an asynchronous predictions API. Submit a prediction, then poll until the image is ready. The required input is a prompt; optional controls include a negative_prompt, explicit width and height (both default 1024) and num_inference_steps (default 50) to trade speed for quality.
Pricing is a flat $0.01 per run, so generation is inexpensive and predictable. Hormouz provides stable access to SDXL from inside Iran, with no foreign credit card or circumvention tooling required.
Quickstart
# Create the prediction, then poll until succeeded
curl -s https://api.hormouz.net/v1/predictions \
-H "Authorization: Bearer ng-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"version":"stability-ai/sdxl","input":{"prompt":"A beautiful sunset"}}'Specs
| Vendor | Stability AI |
|---|---|
| Type | Image |
| Context window | — |
| Pricing | $0.0100 / run |
| API | predictions |
Code example
# Create the prediction, then poll until succeeded
curl -s https://api.hormouz.net/v1/predictions \
-H "Authorization: Bearer ng-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"version":"stability-ai/sdxl","input":{"prompt":"A beautiful sunset"}}'import requests
BASE = "https://api.hormouz.net/v1"
H = {"Authorization": "Bearer ng-YOUR_API_KEY", "Content-Type": "application/json"}
r = requests.post(f"{BASE}/predictions", headers=H,
json={"version": "stability-ai/sdxl", "input": {"prompt":"A beautiful sunset"}})
print(r.json()["id"])const BASE = "https://api.hormouz.net/v1";
const res = await fetch(`${BASE}/predictions`, {
method: "POST",
headers: { Authorization: "Bearer ng-YOUR_API_KEY", "Content-Type": "application/json" },
body: JSON.stringify({ version: "stability-ai/sdxl", input: {"prompt":"A beautiful sunset"} }),
});
const { id } = await res.json();Buy the sdxl API, paid in rial
- Buy credit with an Iranian bank card; no foreign card or account needed.
- One Hormouz key reaches sdxl and 600+ other models, and you pay only for what you use.
- No VPN and no risk of a banned account; just change the base URL to api.hormouz.net/v1.
Use via Hormouz
Connect to this model and 600+ others with one API key, then see usage down to each request.
Request company accessFAQ
- How much does SDXL cost?
- Billing is a flat $0.01 per run on Hormouz. You pay per generated image, with no fixed monthly fee. Current rates are shown in the Hormouz dashboard.
- How do I call SDXL?
- It runs on Hormouz's asynchronous predictions API: submit a prediction with your prompt, then poll until the image is ready. Point your base URL at Hormouz and use a Hormouz API key.
- What inputs does SDXL accept?
- The required input is a text prompt. Optional parameters include a negative_prompt, width and height (both default 1024) and num_inference_steps (default 50).
- What is SDXL good for?
- It suits general text-to-image generation across many styles, with explicit size and step control. Art, concept work, marketing visuals and as a base for fine-tuned pipelines.
- How do I access SDXL from inside Iran?
- Create an account on Hormouz and generate an API key. Hormouz provides a stable path to SDXL from inside Iran, with no foreign credit card or circumvention tooling required.
Updated 2026-10-13