ComfyUI Node

HTTP Serving

A ComfyUI node in Serving-Toolkit with 3 inputs and 1 output.

By matan1905·Created 3 years ago·Updated about a year ago· 71
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)

    NameTypeDefaultDescription
    portINT80001–65535
    enable_cross_origin_requestsBOOLEANfalse
    html_contentSTRING <!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)

    NameTypeDescription
    Serving configSERVING_CONFIG