How to use it in n8n via api

#157
by sanman911 - opened

{
"data": [
"Highly detailed sculpture, whole body of David, hyperrealism, intricate details, professional photography, sharp photo.",
0,
true,
768,
1280,
1
]
}

I get event_id, but in the next node i get

[
{
"text":
"event: complete\ndata: [{"path": "/tmp/gradio/ad5632fad6db33d250c220076ef4b836a*****/image.webp", "url": "https://black-forest-labs-flux-1-schnell.hf.space/file=/tmp/gradio/ad5632fad6db33d250c220076ef4b836a******/image.webp", "size": null, "orig_name": "image.webp", "mime_type": null, "is_stream": false, "meta": {"_type": "gradio.FileData"}}, 966530043]\n\n",
"headers":
{
"date":
"Tue, 20 May 2025 18:33:45 GMT",
"content-type":
"text/event-stream; charset=utf-8",
"transfer-encoding":
"chunked",
"connection":
"close",
"server":
"uvicorn",
"x-proxied-host":
"http://10.",
"x-proxied-replica":
"frb8txff-i0
",
"x-proxied-path":
"/call/infer/9705246e5b094963a24fe34867d3a
",
"link":
"https://huggingface.co/spaces/black-forest-labs/FLUX.1-schnell;rel="canonical"",
"x-request-id":
"M16ShD",
"vary":
"origin, access-control-request-method, access-control-request-headers",
"access-control-allow-credentials":
"true"
},
"statusCode":
200,
"statusMessage":
"OK"
}
]

Sign up or log in to comment