On this page

SD API V1 Endpoints

Base path: /sdapi/v1

The endpoints under /sdapi/v1 implement a compatible subset of the Stable Diffusion API and share the same parameters as their /v1 counterparts. Text-to-image and img2img requests are routed to either engine and translated for vLLM-Omni models; ControlNet, preprocessors, SD.Next catalogs, and upscaling are SD.Next-only. Catalog endpoints (sd-models, upscalers) return ArliAI's curated catalog with A1111-compatible identity fields, not the full native A1111 metadata.

POST /sdapi/v1/img2img

See /v1/img2img for parameters.

1curl -X POST https://api.arliai.com/sdapi/v1/img2img \
2-H "Content-Type: application/json" \
3-H "Authorization: Bearer your_api_key" \
4-d '{
5  "sd_model_checkpoint": "MODEL_NAME",
6  "init_images": ["base64_encoded_image"],
7  "prompt": "A futuristic city",
8  "width": 1024,
9  "height": 1024
10}'

POST /sdapi/v1/txt2img

See /v1/txt2img for parameters.

1curl -X POST https://api.arliai.com/sdapi/v1/txt2img \
2-H "Content-Type: application/json" \
3-H "Authorization: Bearer your_api_key" \
4-d '{
5  "sd_model_checkpoint": "MODEL_NAME",
6  "prompt": "A majestic lion in the savanna",
7  "width": 1024,
8  "height": 1024
9}'

POST /sdapi/v1/control

ControlNet-guided generation in the SD-API style: the control array carries preprocessor/model/image pairs per unit, and the response includes processed (preprocessed control maps) alongside images. Equivalent to POST /v1/control; SD.Next-only, so vLLM-Omni models return 503.

1curl -X POST https://api.arliai.com/sdapi/v1/control \
2-H "Content-Type: application/json" \
3-H "Authorization: Bearer your_api_key" \
4-d '{
5  "prompt": "a person standing in front of an ancient castle",
6  "unit_type": "controlnet",
7  "control": [
8    {
9      "unit_type": "controlnet",
10      "process": "OpenPose",
11      "model": "OpenPose XL",
12      "image": "base64_encoded_control_image",
13      "strength": 0.9
14    }
15  ]
16}'

POST /sdapi/v1/preprocess

Run a single control preprocessor on an image and return the processed control map. Equivalent to POST /v1/preprocess; SD.Next-only, so vLLM-Omni models return 503.

1curl -X POST https://api.arliai.com/sdapi/v1/preprocess \
2-H "Content-Type: application/json" \
3-H "Authorization: Bearer your_api_key" \
4-d '{
5  "model": "Canny",
6  "image": "base64_encoded_image",
7  "params": { "low_threshold": 100, "high_threshold": 200 }
8}'

POST /sdapi/v1/extra-single-image

See /v1/upscale-img for parameters.

1curl -X POST https://api.arliai.com/sdapi/v1/extra-single-image \
2-H "Content-Type: application/json" \
3-H "Authorization: Bearer your_api_key" \
4-d '{
5  "image": "base64_encoded_image",
6  "upscaler_1": "R-ESRGAN 4x+"
7}'

GET /sdapi/v1/sd-models

Retrieves available image models in ArliAI's curated catalog shape, including A1111-compatible title and model_name fields plus ArliAI limits and capability flags.

1curl -X GET https://api.arliai.com/sdapi/v1/sd-models \
2-H "Authorization: Bearer your_api_key"

GET /sdapi/v1/upscalers

Retrieves available upscalers with A1111-compatible name and model_name fields. vLLM-Omni does not provide upscaling.

1curl -X GET https://api.arliai.com/sdapi/v1/upscalers \
2-H "Authorization: Bearer your_api_key"

GET /sdapi/v1/options

Retrieves the image generation checkpoint identifier. Only sd_model_checkpoint is returned; other SD.Next options are not exposed.

1curl -X GET https://api.arliai.com/sdapi/v1/options \
2-H "Authorization: Bearer your_api_key"

GET /sdapi/v1/samplers

Retrieves available image samplers.

1curl -X GET https://api.arliai.com/sdapi/v1/samplers \
2-H "Authorization: Bearer your_api_key"

GET /sdapi/v1/ip-adapters

Lists IP-Adapter models, optionally scoped to the selected checkpoint via ?model=. Equivalent to GET /v1/ip-adapters.

1curl -X GET "https://api.arliai.com/sdapi/v1/ip-adapters?model=MODEL_NAME" \
2-H "Authorization: Bearer your_api_key"

GET /sdapi/v1/control-models

Lists control models for a control unit type, optionally scoped to the selected checkpoint (?model= and ?unit_type=). Equivalent to GET /v1/control-models.

1curl -X GET "https://api.arliai.com/sdapi/v1/control-models?model=MODEL_NAME&unit_type=controlnet" \
2-H "Authorization: Bearer your_api_key"

GET /sdapi/v1/preprocessors

Lists available control preprocessors with their parameters, optionally scoped via ?model=. Equivalent to GET /v1/preprocessors.

1curl -X GET "https://api.arliai.com/sdapi/v1/preprocessors?model=MODEL_NAME" \
2-H "Authorization: Bearer your_api_key"

GET /sdapi/v1/control-modes

Lists control modes (Union/ProMax predefines) for the selected checkpoint via ?model=. Equivalent to GET /v1/control-modes.

1curl -X GET "https://api.arliai.com/sdapi/v1/control-modes?model=MODEL_NAME" \
2-H "Authorization: Bearer your_api_key"