このページ
SD API V1エンドポイント
ベースパス:/sdapi/v1
/sdapi/v1以下のエンドポイントは、Stable Diffusion APIの互換サブセットを提供し、/v1の対応するものと同じパラメータを共有します。カタログエンドポイント(sd-models、upscalers)は、A1111互換の識別フィールドを持つArliAIのキュレーション済みカタログを返します(A1111の完全なネイティブメタデータではありません)。
POST /sdapi/v1/img2img
パラメータについては/v1/img2imgを参照してください。
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
パラメータについては/v1/txt2imgを参照してください。
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
パラメータについては/v1/upscale-imgを参照してください。
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
利用可能な画像モデルをArliAIのキュレーション済みカタログ形式で取得します。A1111互換のtitleおよびmodel_nameフィールドに加え、ArliAIの制限と機能フラグを含みます。
1curl -X GET https://api.arliai.com/sdapi/v1/sd-models \
2-H "Authorization: Bearer your_api_key"GET /sdapi/v1/upscalers
A1111互換のnameおよびmodel_nameフィールドを持つ利用可能なアップスケーラーを取得します。vLLM-Omniはアップスケーリングを提供しません。
1curl -X GET https://api.arliai.com/sdapi/v1/upscalers \
2-H "Authorization: Bearer your_api_key"GET /sdapi/v1/options
画像生成のチェックポイント識別子を取得します。返されるのは sd_model_checkpoint のみで、その他の SD.Next オプションは公開されません。
1curl -X GET https://api.arliai.com/sdapi/v1/options \
2-H "Authorization: Bearer your_api_key"GET /sdapi/v1/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"