Image matting
Request syntax
POST /scc/comfy_promptRequest header
Name | Type | Description | |
X-SP-RESOURCE-CONFIG-ID | string | The resource pool configuration ID. This parameter is optional. | |
Request parameters
Name | Type | Description | |
workflow_id | string | The workflow ID. The value is fixed to `extract_img`. | |
version_id | string | The workflow version number. The value is fixed to `v1`. | |
inputs | object | The prompt information. | |
prompt | string | The positive prompt. | |
source_image | string | The URL or Base64 encoding of the image. | |
safe_confidence_level | int | The confidence level for image Content Moderation. A value of 0 indicates complete trust. A value of 100 indicates no trust. The default is 0. | |
photo_safe_check | bool | Specifies whether to enable the image safety check. The default is true. | |
text_safe_check | bool | Specifies whether to enable the text safety check. The default is true. | |
Data parameters
Name | Type | Description |
taskId | string | The task ID. |
status | string | The task status. Valid values: succeeded, failed, running, and waiting. |
To retrieve the task result, see Query task result - sd_get_result.