6 releases (3 breaking)

Uses new Rust 2024

new 0.4.0 May 1, 2025
0.3.0 Apr 19, 2025
0.2.0 Apr 16, 2025
0.1.2 Mar 17, 2025

#96 in WebSocket

Download history 189/week @ 2025-03-05 140/week @ 2025-03-12 30/week @ 2025-03-19 4/week @ 2025-03-26 308/week @ 2025-04-16 9/week @ 2025-04-23

318 downloads per month

MulanPSL-2.0

60KB
542 lines

ComfyUI Client

Rust Version GitHub Actions CI crates.io Downloads docs.rs License

Rust client for ComfyUI.

API Reference

The following table lists the available APIs in ComfyUIClient:

Method URL Purpose Client Method
GET /history/{prompt_id} Retrieves the history for a specified prompt get_history
GET /prompt Retrieves the current prompt information get_prompt
GET /view Retrieves view data for a file (e.g., images) get_view
POST /prompt Sends a prompt in JSON format post_prompt
POST /upload/image Uploads an image to ComfyUI upload_image

Additionally, the client establishes a WebSocket connection to /ws to receive real-time events from ComfyUI.

Examples

Refer to examples.

License

MulanPSL-2.0

Dependencies

~10–25MB
~411K SLoC