ComfyUI Node
API Request Profile
Configure upload, JSON or multipart submission, task polling and result paths for any compatible provider. / 配置平台的上传、JSON 或表单请求、任务轮询及结果路径,供自动请求节点使用。
API Request Profile
- profile
◄base_url►
◄settings_json{
"auth": "bearer",
"upload": {
"endpoint": "uploads/images",
"format": "multipart",
"file_field": "file",
"url_path": "/url"
},
"generate": {
"endpoint": "images/generations",
"body": {
"model": "{{model}}",
"prompt": "{{prompt}}",
"async": true
}
},
"edit": {
"endpoint": "images/edits",
"body": {
"model": "{{model}}",
"prompt": "{{prompt}}",
"images": "{{images}}",
"async": true
}
},
"poll": {
"endpoint": "tasks/{{task_id}}",
"task_id_path": "/id",
"status_path": "/status",
"success_states": [
"completed"
],
"failure_states": [
"failed",
"cancelled"
],
"error_path": "/fail_reason",
"interval": 5
},
"result_path": "/data"
}►
◄timeout900►
CategorySimple API/Advanced
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| base_url | STRING | Provider API base URL, including its version. / 平台基础地址,包含版本号。 | |
| settings_json | STRING | { "auth": "bearer", "upload": { "endpoint": "uploads/images", "format": "multipart", "file_field": "file", "url_path": "/url" }, "generate": { "endpoint": "images/generations", "body": { "model": "{{model}}", "prompt": "{{prompt}}", "async": true } }, "edit": { "endpoint": "images/edits", "body": { "model": "{{model}}", "prompt": "{{prompt}}", "images": "{{images}}", "async": true } }, "poll": { "endpoint": "tasks/{{task_id}}", "task_id_path": "/id", "status_path": "/status", "success_states": [ "completed" ], "failure_states": [ "failed", "cancelled" ], "error_path": "/fail_reason", "interval": 5 }, "result_path": "/data" } | Request workflow configuration. See docs/AUTOMATIC_REQUESTS.md. / 请求流程配置,示例见 docs/AUTOMATIC_REQUESTS.md。 |
| timeout | INT | 9001–3600 | Total upload, generation and download deadline. / 上传、生成与下载的总等待时间。 |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| profile | SA_REQUEST_PROFILE | — |