有此时候,我们不能打开comfyUI的8188端口,那可以使用下面的命令来进行作图,
comfyui的接口格式为
curl -X POST http://127.0.0.1:8188/prompt \
-H "Content-Type: application/json" \
-d '{"prompt": {……}}' 有此时候,我们不能打开comfyUI的8188端口,那可以使用下面的命令来进行作图,
comfyui的接口格式为
curl -X POST http://127.0.0.1:8188/prompt \
-H "Content-Type: application/json" \
-d '{"prompt": {……}}' curl --location --request POST 'https://openai.xxx.com/v1/chat/completions' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer sk-xxxxx' \
--data-raw '{
"model": "glm-4-air",
"messages": [
{
"role": "user",
"content": "月亮有多高!"
}
]
}'