ComfyUI Node
HTTP Serving
A ComfyUI node in Serving-Toolkit with 3 inputs and 1 output.
HTTP Serving
- Serving config
◄port8000►
◄enable_cross_origin_requestsfalse►
◄html_content
<!DOCTYPE html>
<html>
<body>
<input type="text" id="prompt" value="">
<button onclick="sendPost()">Send</button>
<img id="resultImage" style="display:none">
<script>
function sendPost() {
const prompt = document.getElementById('prompt').value;
fetch(window.location.href, { method: 'POST', body: JSON.stringify({ prompt }) })
.then(response => response.json())
.then(data => {
document.getElementById('resultImage').src = 'data:image/png;base64,' + data.base64_img;
document.getElementById('resultImage').style.display = 'block';
});
}
</script>
</body>
</html>
►
CategoryServing-Toolkit
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| port | INT | 80001–65535 | — |
| enable_cross_origin_requests | BOOLEAN | false | — |
| html_content | STRING | <!DOCTYPE html> <html> <body> <input type="text" id="prompt" value=""> <button onclick="sendPost()">Send</button> <img id="resultImage" style="display:none"> <script> function sendPost() { const prompt = document.getElementById('prompt').value; fetch(window.location.href, { method: 'POST', body: JSON.stringify({ prompt }) }) .then(response => response.json()) .then(data => { document.getElementById('resultImage').src = 'data:image/png;base64,' + data.base64_img; document.getElementById('resultImage').style.display = 'block'; }); } </script> </body> </html> | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| Serving config | SERVING_CONFIG | — |