Run Control Preprocessor
sdnext_preprocessApply control preprocessors (canny, depth, pose, lineart) to an image and get the processed map for ControlNet, guidance, or image conditioning.
Instructions
Run a control preprocessor (canny, depth, pose, lineart, ...) on an image and return the processed map (SD.Next /sdapi/v1/preprocess). Preprocessor names from sdnext_list_preprocessors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Base64-encoded image (raw base64, data: URL, or "upload:<id>" ref). | |
| model | Yes | Preprocessor name (e.g. "canny", "depth_midas", "pose_dwpose", "lineart_realistic"). | |
| params | No | Preprocessor settings (see sdnext_list_preprocessors params). |