이 페이지
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"