Workflows
FlixML is a layer on top of ComfyUI. Every generation runs a workflow — a ComfyUI graph exported as JSON, with a few values (prompt, dimensions, seed, character) filled in at request time.
Built-in workflows
Section titled “Built-in workflows”FlixML ships with workflows for image and video generation out of the box. List what’s available on your install:
curl <your-api-url>/api/workflows # the catalog: what each one makes and needscurl <your-api-url>/api/workflows/<id> # one workflow in full, every param explainedEach workflow has an id you pass to the generate endpoints. The catalog leaves out each workflow’s params — they run long, and you only need them for the one you picked, which is what the second call is for.
Adding your own
Section titled “Adding your own”- Build and test a graph in ComfyUI.
- Export it as API-format JSON.
- Drop the JSON into the workflows directory and give it an ID.
- Reference that ID when you generate.
FlixML injects request-time variables (prompt, width/height, seed, character trigger words, LoRA weights) into the graph before queuing it. Authoring details — which nodes get filled, how variables map — are in app/flixml/workflows/registry.py in the repo.
How a job flows
Section titled “How a job flows”- You call
POST /api/image/generate(or/api/video/generate) with a workflow ID and parameters. - FlixML resolves the workflow, injects your variables, and picks a provider by role.
- The job is queued on that GPU’s ComfyUI and tracked to completion.
- The finished media is imported and organized automatically.
You get a prompt ID back immediately — poll it or browse results in the Studio UI.