OpenDaemon ComfyUI
v0.1.0Make AI videos with ComfyUI on your own GPU: render, review, edit and export clips.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
comfyui_status
Is ComfyUI running, which graphics card and how much memory it has, free disk space, and what is rendering.
start_comfyui
Starts ComfyUI if it is not running (takes 20-60 s). Does nothing if it already runs.
restart_comfyui
Stops and starts ComfyUI again. Fixes a stuck ComfyUI. Refused while a video renders. Ask the user first, then call with user_confirmed=true.
| Parameter | Type | Description |
|---|---|---|
user_confirmed | boolean |
free_gpu_memory
Unloads models from the graphics card. Use after an out-of-memory error or before another program needs the GPU. Refused while a video renders.
get_logs
The last lines of the ComfyUI log (max 500). contains= keeps only lines with that text, e.g. "error".
| Parameter | Type | Description |
|---|---|---|
contains | string | |
lines | integer |
get_defaults
Your saved defaults for render (e.g. model, quality, style). They apply when render leaves a setting out.
set_defaults
Saves render defaults so later renders can leave them out. clear=true forgets all of them.
| Parameter | Type | Description |
|---|---|---|
avoid | string | |
camera | string | |
clear | boolean | |
model | string | |
quality | string | |
seconds | integer | |
style | string |
list_models
What models are installed and what can be downloaded, with size, the card they need, and if we tested them. "best" marks the best one for this PC's graphics card. Use a model's "use_as" value in render(model=...).
download_model
Downloads a model from our list (ids from list_models), with any helper files it needs. Big downloads: tell the user the size and call again with user_confirmed=true.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
user_confirmed | boolean |
download_status
Progress of the running model download (one at a time).
cancel_download
Stops the running model download. What was downloaded is kept, so starting it again resumes.
search_models
Searches Hugging Face for video models that fit this PC's graphics card (bigger ones are hidden). These are NOT tested by us; check_model reads a file's header first. Empty query = LTX-Video and Wan VACE models.
| Parameter | Type | Description |
|---|---|---|
query | string |
check_model
Says if a model file can run here and why not if it can't, without loading it. A file on this PC: file="C:/path/model.gguf" or a file name in ComfyUI's models folder. A file on Hugging Face (from search_models): repo="owner/name" and file="path/in/repo.gguf".
| Parameter | Type | Description |
|---|---|---|
file | string | |
repo | string |
add_model_file
Adds a model file that is already on this PC, where it is (a link, no copy). It is checked first. After this, render(model=<the file name>) uses it.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
name | string |
remove_model
Removes a model the user added (from list_models "added_by_user"). Only our link is removed, never the user's file. Ask the user first, then call with user_confirmed=true.
| Parameter | Type | Description |
|---|---|---|
file * | string | |
user_confirmed | boolean |
upload_image
Puts a picture into ComfyUI's input folder. Give ONE of: path (a file on this PC), url (http/https), base64_data (the image bytes; give a name like "cat.png"). Returns the name to use in render(image=...).
| Parameter | Type | Description |
|---|---|---|
base64_data | string | |
name | string | |
path | string | |
url | string |
write_prompt
Turns a short idea ("the cat waves hello") into a full video prompt, looking at the uploaded picture. Uses the AI keys set up in OpenDaemon (Gemini or NVIDIA). You can also write the prompt yourself.
| Parameter | Type | Description |
|---|---|---|
idea * | string | |
image * | string |
write_avoid_list
Writes the avoid list (negative prompt) for a prompt. Only vace and LTX dev models use it.
| Parameter | Type | Description |
|---|---|---|
image * | string | |
prompt * | string |
render_options
The models, styles, qualities, cameras and speeds render() accepts, with what each one does.
render
Makes a video from a prompt, starting from a picture (image = a name from upload_image) or, with no image, from the prompt alone (text to video: describe the whole scene). Everything else is optional: model: small (default, fast) | ltx13 | vace | an added model's file name (list_models) style: e.g. "Balanced", "Soft and calm", "Lively", "Slow motion" (render_options lists all) quality: "Draft" (fastest) | "Normal" (default) | "High" | "Best" (1080p, very slow) | "Manual" (then width, height) seconds: 1-7 (2-3 holds together best). camera: still | zoom | zoomout | panr | pan…
| Parameter | Type | Description |
|---|---|---|
prompt * | string | |
avoid | string | |
camera | string | |
height | integer | |
image | string | |
model | string | |
movement | integer | |
priority | string | |
quality | string | |
seconds | integer | |
seed | integer | |
speed | string | |
style | string | |
width | integer |
rerender
Makes a video again with the settings of an earlier one (a name from list_videos). seed: leave out for the same seed (same video, e.g. after a crash), -1 for a new variation, or a number.
| Parameter | Type | Description |
|---|---|---|
video * | string | |
prompt | string | |
seed | integer |
job_status
Waits until the job is done (up to wait_seconds, max 55) and reports progress, then returns its status. Call again while status is queued or rendering. No id = the last 10 jobs. Also takes a batch id ("batch-...", from render_batch), a fix id ("fix-...", from auto_fix) or an edit id ("edit-...").
| Parameter | Type | Description |
|---|---|---|
id | string | |
wait_seconds | integer |
cancel
Stops a queued or rendering job.
| Parameter | Type | Description |
|---|---|---|
id * | string |
diagnose_job
Why a job failed, in plain words, with what to try and the ComfyUI log lines.
| Parameter | Type | Description |
|---|---|---|
id * | string |
list_videos
The finished videos, newest first, with their file path and short settings.
| Parameter | Type | Description |
|---|---|---|
limit | integer |
video_info
Everything about one video: all its settings, size, length, path and a link to watch it.
| Parameter | Type | Description |
|---|---|---|
video * | string |
delete_video
Moves a video and its settings to the out/trash folder (not deleted for good). Ask the user first, then call with user_confirmed=true.
| Parameter | Type | Description |
|---|---|---|
video * | string | |
user_confirmed | boolean |
estimate
How long a render (same settings as render) or a whole batch (items = a list of render settings) would take on this PC, and how long the queue is, WITHOUT starting anything.
| Parameter | Type | Description |
|---|---|---|
camera | string | |
height | integer | |
image | string | |
items | array | |
model | string | |
movement | integer | |
prompt | string | |
quality | string | |
seconds | integer | |
speed | string | |
style | string | |
width | integer |
render_batch
Many clips at once. items = a list of render settings, e.g. [{"image": "cat.png", "prompt": "...", "style": "Lively"}, ...] (same keys as render). All items are checked before any starts. Batches wait while the user's own renders go first. Over 30 minutes in total: tell the user the estimate and call again with user_confirmed=true. Returns a batch id; job_status(batch id) reports progress.
| Parameter | Type | Description |
|---|---|---|
items * | array | |
label | string | |
priority | string | |
user_confirmed | boolean |
render_variations
Several versions of an earlier video to pick from (2-6). vary: "seed" (same settings, different luck: the usual choice) or "movement" (less and more movement around the original, same seed). Returns job ids for job_status.
| Parameter | Type | Description |
|---|---|---|
video * | string | |
count | integer | |
priority | string | |
vary | string |
queue
The render queue. action: list (default) | pause (nothing new starts; the current render finishes) | resume | clear (cancels waiting jobs; priority="batch" clears only batch jobs) | front (move waiting job `id` first) | priority (set job `id` to priority "user" or "batch").
| Parameter | Type | Description |
|---|---|---|
action | string | |
id | string | |
priority | string |
review_video
Shows you the clip: frames spread over it (start, middle, end for 3) side by side in ONE picture, after the start picture, so you can SEE if it worked. judge=true also asks a vision model for a score and problems (uses the Gemini/NVIDIA key from OpenDaemon). Look for: the character changing, the action not happening, extra hands, melting, the end falling apart.
| Parameter | Type | Description |
|---|---|---|
video * | string | |
frames | integer | |
judge | boolean |
auto_fix
The self-check loop for one video: a vision model judges it, the settings are fixed by the kind of problem (drift = less movement, no action = more movement, end melts = shorter, hands/melting = avoid list) and it renders again, at most `tries` times (1-3). Every try is kept; the answer names the best one. problems: if you already looked (review_video), say what you saw so the first judge call is skipped: drift, wrong_subject, no_action, too_much_motion, hands, melting, end_melts, talking, blurry. Returns a fix id; job_status(fix id) follows it.
| Parameter | Type | Description |
|---|---|---|
video * | string | |
priority | string | |
problems | array | |
tries | integer |
suggest_settings
Settings to start with for a goal ("calm portrait", "lively dance", "quick test"), plus the best-scored videos made on this PC so far (scores come from review_video(judge=true) and auto_fix).
| Parameter | Type | Description |
|---|---|---|
goal | string | |
model | string |
build_video
ONE call for a finished video. clips: video names in order, or {"video", "start", "end", "speed"} to cut/speed one. transition: cut | fade | crossfade. shape: "9:16" (Shorts/Reels/TikTok) | "1:1" | "4:5" | "16:9". voice: the words to say (or {"text", "voice": andrew|emma|ava|brian|es|pt..., "engine": edge|local, "sample"} or {"audio": file}). captions: "auto" (timed to the voice) or your own text. music: a music file path (or {"file", "volume"}); it gets quieter under the voice. title: text for a card at the start. end_card: text for the last card (true = "Follow for more").…
| Parameter | Type | Description |
|---|---|---|
clips * | array | |
captions | ||
end_card | ||
export | string | |
music | ||
shape | string | |
title | string | |
transition | string | |
voice |
join_clips
Clips into one video, in order. transition: cut | fade (through black) | crossfade; seconds = its length.
| Parameter | Type | Description |
|---|---|---|
videos * | array | |
seconds | number | |
transition | string |
trim_clip
Keeps only start..end seconds. Good for cutting the end of a clip where it starts to melt.
| Parameter | Type | Description |
|---|---|---|
video * | string | |
end | number | |
start | number |
extend_clip
GPU. Makes a video longer without it falling apart: the last frame becomes the start of a new clip (same model and settings, your prompt for what happens next), then both are joined. Takes a render's time.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | |
video * | string | |
seconds | integer | |
transition | string |
change_speed
0.5 = half speed (slow motion), 2 = twice as fast. 0.1 to 8.
| Parameter | Type | Description |
|---|---|---|
speed * | number | |
video * | string |
reverse_clip
Plays the clip backwards.
| Parameter | Type | Description |
|---|---|---|
video * | string |
loop_clip
Repeats the clip (2-20 times).
| Parameter | Type | Description |
|---|---|---|
video * | string | |
times | integer |
boomerang
Forwards then backwards, like a boomerang. times = how many back-and-forths.
| Parameter | Type | Description |
|---|---|---|
video * | string | |
times | integer |
smooth_motion
Smoother motion: makes in-between frames, 24 -> 30/48/50/60 fps (on the processor, about 2 s per second of video).
| Parameter | Type | Description |
|---|---|---|
video * | string | |
fps | integer |
upscale_clip
Bigger video. method "simple": resize to `height` with sharpening (seconds, any video). method "ltx": GPU, renders the same clip again with the LTX second pass to 1080p - real detail, but 30-50 min on a 4 GB card.
| Parameter | Type | Description |
|---|---|---|
video * | string | |
height | integer | |
method | string |
crop_zoom
A slow camera move on a finished clip. direction: in | out | left | right | up | down | none (a still crop). zoom 1.01-4. x, y (0-1) = the point to zoom on (0.5, 0.5 = the middle).
| Parameter | Type | Description |
|---|---|---|
video * | string | |
direction | string | |
x | number | |
y | number | |
zoom | number |
color_adjust
brightness -1..1 (0 = same), contrast 0.5..2 (1 = same), saturation 0..3 (1 = same), warmth -1 cool .. 1 warm.
| Parameter | Type | Description |
|---|---|---|
video * | string | |
brightness | number | |
contrast | number | |
saturation | number | |
warmth | number |
fade
Fades from black at the start and to black at the end (seconds; 0 = none). Sound fades too.
| Parameter | Type | Description |
|---|---|---|
video * | string | |
fade_in | number | |
fade_out | number |
add_music
Background music (a file path), looped or cut to the video's length, faded in and out. If the video has a voice, the music gets quieter while it speaks (duck).
| Parameter | Type | Description |
|---|---|---|
music * | string | |
video * | string | |
duck | boolean | |
volume | number |
make_voice
A voice line from text, as an audio file for add_voice. engine "edge" (default): free online voices, fast, with word timings for auto captions; voice: andrew, emma, ava, brian, es, es-f, pt, pt-f, or any edge voice name. engine "local": Chatterbox on this PC, offline, CLONES the voice in `sample` (a 5-15 s recording); slow.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
engine | string | |
language | string | |
sample | string | |
voice | string |
add_voice
Puts a voice line (from make_voice, or any sound file) on a clip, starting at `start` seconds. If it is longer than the clip, the last frame is held until it ends.
| Parameter | Type | Description |
|---|---|---|
audio * | string | |
video * | string | |
keep_original | boolean | |
start | number | |
volume | number |
lipsync
Moves a real human face's lips to a voice (LatentSync). Needs a graphics card with 8 GB or more.
| Parameter | Type | Description |
|---|---|---|
audio * | string | |
video * | string |
add_captions
Burned-in captions. text "auto" = timed to the voice line put on with add_voice (edge voices). Or your own text, spread over the clip ("|" forces a break). style: bold | impact | clean | box. position: bottom | lower | center | top. highlight = yellow text.
| Parameter | Type | Description |
|---|---|---|
video * | string | |
highlight | boolean | |
position | string | |
style | string | |
text | string | |
words_per_caption | integer |
add_text
A title or any text on the video, from `start` to `end` seconds (default: the whole clip).
| Parameter | Type | Description |
|---|---|---|
text * | string | |
video * | string | |
box | boolean | |
end | number | |
position | string | |
start | number | |
style | string |
add_logo
A logo or watermark (a picture file, PNG with transparency is best). position: top-right | top-left | bottom-right | bottom-left | center. scale = its width as part of the video's width.
| Parameter | Type | Description |
|---|---|---|
image * | string | |
video * | string | |
opacity | number | |
position | string | |
scale | number |
title_card
A card at the START: text and/or a picture on a dark background, faded into the video.
| Parameter | Type | Description |
|---|---|---|
video * | string | |
image | string | |
seconds | number | |
text | string |
end_card
A card at the END ("Follow for more", your logo...), faded in after the video.
| Parameter | Type | Description |
|---|---|---|
video * | string | |
image | string | |
seconds | number | |
text | string |
reformat
Changes the shape: 9:16 (Shorts, Reels, TikTok) | 1:1 | 4:5 | 16:9. mode: blur (blurred copy behind, nothing is cut off) | crop (fills the frame, cuts the sides) | pad (black bars).
| Parameter | Type | Description |
|---|---|---|
video * | string | |
mode | string | |
shape | string |
export
Ready to post: the platform's shape, H.264 + AAC, file size under the limit. platform: shorts | reels | tiktok | facebook (10 MB) | youtube | x | square. max_mb overrides the size limit.
| Parameter | Type | Description |
|---|---|---|
video * | string | |
max_mb | number | |
platform | string |
thumbnail
A still picture (JPG) from the video at `at` seconds (default: the middle), for a post's cover.
| Parameter | Type | Description |
|---|---|---|
video * | string | |
at | number |
make_gif
An animated GIF of the video.
| Parameter | Type | Description |
|---|---|---|
video * | string | |
fps | integer | |
width | integer |
extract_audio
Saves the video's sound as an .m4a file.
| Parameter | Type | Description |
|---|---|---|
video * | string |
remove_audio
The same video without sound.
| Parameter | Type | Description |
|---|---|---|
video * | string |
list_workflows
Your own ComfyUI workflows (API-format .json files in the workflows folder) and the inputs each one lets you change (prompt, image, seed, steps... found automatically, or nodes titled "$name" in ComfyUI).
run_workflow
Runs one of your workflows. inputs = {"prompt": "...", "image": "C:/pics/cat.png", "steps": 20} using the names from list_workflows; a file path for image/video/audio is copied into ComfyUI for you. A new random seed each run unless you pass seed or keep_seed=true. Checks the workflow first and refuses if it would fail (force=true runs anyway). Returns a job id: wait with job_status; the saved files come back in "files".
| Parameter | Type | Description |
|---|---|---|
name * | string | |
force | boolean | |
inputs | object | |
keep_seed | boolean | |
priority | string |
check_workflow
Before a slow run: finds missing node types (and which node pack has them), missing model files and wrong values in a saved workflow (name) or one you give (workflow, API format). Also lists its changeable inputs.
| Parameter | Type | Description |
|---|---|---|
name | string | |
workflow | object |
install_custom_node
Installs a ComfyUI node pack: a GitHub link, a pack name, or a node type from check_workflow. Node packs are programs from other people, so ASK THE USER FIRST, then call again with user_confirmed=true. ComfyUI needs a restart after (restart_comfyui).
| Parameter | Type | Description |
|---|---|---|
source * | string | |
user_confirmed | boolean |
save_workflow
Keeps a workflow (ComfyUI API format) under a name, so run_workflow can use it. Returns its inputs.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
workflow * | object | |
overwrite | boolean |