Nodes/Simple API · 简易 API/API Request Profile
ComfyUI Node

API Request Profile

Configure upload, JSON or multipart submission, task polling and result paths for any compatible provider. / 配置平台的上传、JSON 或表单请求、任务轮询及结果路径,供自动请求节点使用。

By playboy-dongan·Created 8 days ago·Updated 8 days ago· 0
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)

    NameTypeDefaultDescription
    base_urlSTRINGProvider API base URL, including its version. / 平台基础地址,包含版本号。
    settings_jsonSTRING{ "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。
    timeoutINT9001–3600Total upload, generation and download deadline. / 上传、生成与下载的总等待时间。

    Outputs (1)

    NameTypeDescription
    profileSA_REQUEST_PROFILE—