Skip to main content
POST
Read a ComfyUI Desktop snapshot as a build definition

Authorizations

Authorization
string
header
required

A workspace-scoped Cloud JWT. A missing or invalid token is 401 UNAUTHORIZED in the Error body.

Body

application/json
snapshot
object
required

A ComfyUI Desktop snapshot export, exactly as Desktop writes it. Read rather than validated field by field: what the builder can install from is carried across, and what it cannot is reported. A payload that is not a Desktop export at all is a 400.

Only the FIRST entry in snapshots is read — Desktop lists newest first, so that is the state the machine is in. An export-all envelope's remaining entries are history and are ignored, so trim before sending: they cost request size for nothing, and the request is bounded like every other. A snapshot naming more custom nodes than a definition may hold is a 400.

An optional top-level models list, [{folder, name, size}], names the model files the install has on disk: the ComfyUI model folder kind, the name relative to it, and the size in bytes. It is carried into the report as localModels, never into the definition. A malformed entry is dropped on its own, and a models that is not a list is ignored. A top-level modelsTruncated: true says the sender cut the list itself, and is passed on as localModelsTruncated.

baseImageId
string

Build on this base image rather than the one the snapshot's Python selects. The report still says whether the choice fits the snapshot.

Response

The snapshot was read. An empty report means everything in it translated, which is a normal outcome and not a guarantee the build will succeed.

definition
object
required

The user's environment choices (nodes, models, base version). Free-form for MVP, except that a field named like a known one in another case (customnodes for customNodes) is rejected: create and update refuse one they bring in, and check and cut refuse it wherever it sits. A public custom node declares an https github.com repository URL plus an optional gitRef (absent means the default branch); a private one references an uploaded blobId; exactly one of the two per node. A model declares a type (the ComfyUI model folder it lands in, e.g. checkpoints, loras, vae) plus exactly one source, a public sourceUri (https) or a private blobId, and an optional filename and sha256; the built release records each model so it can be placed at deploy time (models are not baked into the image). A CivitAI sourceUri is saved without its token query parameter and any user:password@ part, since a deployment downloads CivitAI links with the platform's own token, so a saved definition can read back without them. A CivitAI sourceUri (civitai.com or civitai.red, with or without www.) should be a download link (https://civitai.com/api/download/models/) or a model page link (https://civitai.com/models/), since a deployment can download no other CivitAI link: create and update warn on any other, and check and cut refuse it. An optional baseImage names the curated base image (the CUDA/Python/torch runtime the build is built on) by id; omitted means the default, and an unrecognized id is rejected (only images we build are selectable, never an arbitrary ref). pipDependencies is a requirements.txt string (one requirement per line). A version pin (numpy<2.5) is applied as an override in the single dependency resolution, so it beats every other declaration of that package; it forces a version rather than adding a package, so use it to correct versions your nodes already bring in, and the build warns about a pin nothing else requires. A direct reference to an https wheel (nunchaku @ https://host/nunchaku-1.0.1-cp311-cp311-linux_x86_64.whl) is instead a root of the resolution and adds that package, which is how an engine published only as a wheel outside PyPI gets in; an optional #sha256= fragment on the address is verified at install. Local paths, file: URLs, git+ references and addresses carrying credentials are dropped with a warning, and so is an address for a package a version pin in the same blob also names, whatever markers either line carries, because the pin would replace the address in the resolution. modelPolicy, partnerNodePolicy and customNodePolicy are allow/deny lists for which models, partner nodes and custom nodes the build permits: each is an object with a mode of "allowlist" (allow only the list) or "blocklist" (allow all except the list) plus a list of string ids. An optional uiOrigin string records which client flow authored the definition; the platform currently writes "desktop-snapshot" or "comfyui-bundle". It is attribution only: stored and read back as sent, never validated, and it changes nothing about the build (the worker reports it, truncated to 64 characters, as ui_origin on its build analytics events).

report
object
required

What a snapshot could not carry into its definition. Everything here is advisory: the definition is still usable, and each entry names something the user may want to fix before building.

An empty list is omitted rather than sent as [], so an absent field carries no claim in either direction: it does not assert that the check ran and found nothing.

installationName
string

The name Desktop gave the install, as a starting point for the build's name.

comfyVersion
string

The upstream ComfyUI release the install is on. Empty when the snapshot does not vouch for one.

pythonVersion
string

The Python the install ran on, which is what the pins were resolved against.

nodes
object[]

Every pack the snapshot named, as it was read.