Saltar al contenido principal
POST
Create a build from a ComfyUI Desktop snapshot

Autorizaciones

Authorization
string
header
requerido

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

Cuerpo

application/json
name
string
requerido
snapshot
object
requerido

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.

description
string
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.

uiOrigin
string

Which client flow sent the snapshot (Desktop writes "desktop-snapshot"). Stored on the definition as its uiOrigin, the same attribution-only field the other doors carry inside the definition: never validated, and it changes nothing about the build. Cut to its first 64 characters, the length analytics reports.

Respuesta

Created

The created build, alongside what its snapshot could not carry.

build
object
requerido
report
object
requerido

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.