comfyanonymous / ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
https://www.comfy.org/
GNU General Public License v3.0
49.69k stars 5.23k forks source link

API接口 #3981

Open YSblack opened 1 month ago

YSblack commented 1 month ago

Your question

有完整的API接口请求文档吗 ?

Logs

No response

Other

No response

huchenlei commented 1 month ago

Currently you have to directly referece impl in https://github.com/comfyanonymous/ComfyUI/blob/master/server.py

We have some API return values typed in https://github.com/Comfy-Org/ComfyUI_frontend/blob/9762b7884cc9bc7267f3e2115bdbe02d3bdccebc/src/types/apiTypes.ts

YSblack commented 1 month ago

目前,您必须直接引用 impl in https://github.com/comfyanonymous/ComfyUI/blob/master/server.py

我们有一些 API 返回值键入 https://github.com/Comfy-Org/ComfyUI_frontend/blob/9762b7884cc9bc7267f3e2115bdbe02d3bdccebc/src/types/apiTypes.ts

有获取当前正在使用的workflow.json名称的接口吗?

huchenlei commented 1 month ago

You can call /queue API endpoint to get currently queued and currently executing workflows

YSblack commented 1 month ago

您可以调用 API 端点以获取当前排队和当前正在执行的工作流/queue

comfyui导出的workflow.json,有没有固定的唯一参数?或者唯一编号以及标识

jensen1207 commented 1 month ago

API已跑通,咨询+vx:八七六八七六二七

github-actions[bot] commented 3 days ago

This issue is being marked stale because it has not had any activity for 30 days. Reply below within 7 days if your issue still isn't solved, and it will be left open. Otherwise, the issue will be closed automatically.