Skip to main content
POST
Create a build

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
name
string
required
description
string
definition
object

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).

Response

Created

id
string
required
name
string
required
workspaceId
string
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
description
string
definition
object

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).

numModels
integer

Count of pre-installed (staged) models in the definition (derived).

numAllowedModels
integer

Count of open-source models the build allows at runtime, from the modelPolicy allow-list (derived; 0 when the policy is absent or a block-list).

numCustomNodes
integer

Count of custom nodes in the definition (derived).

numPartnerNodes
integer

Count of partner nodes the build allows, from the partnerNodePolicy allow-list (derived; 0 when the policy is absent or a block-list).

sizeBytes
integer<int64>

Total size of the content the definition references, in bytes (derived). When the build's current definition is exactly the one a release of it that is not deleted was cut from, so that cutting the build now would return that release rather than a new one, and that release's cut stored a model total, the build answers with that release's size: the figure GET of the release returns (see ReleaseDetail sizeBytes), from the total the cut measured, whatever the release's status. Any edit since that cut, such as a model added or a link or upload swapped under the same filename, leaves the build without one. Otherwise it is read live: private blobs from their upload records, public catalog models from the shared model mirror. Each distinct object is counted once, and an item no source could size contributes nothing (see numUnsizedItems). The live read runs under a time budget rather than being stored, so a loaded server may size fewer of the public models than a quiet one and return a smaller total for the same build, and a public model at a link our mirror does not hold is counted unsized. Create and update always answer live, from the stored upload records alone.

numUnsizedItems
integer

Count of the distinct items (models and custom-node archives) whose size could not be read, so they contribute nothing to sizeBytes (derived). It counts distinct items, while numModels counts entries as the definition lists them, so a definition naming one unsizable model three times reports numModels 3 and numUnsizedItems 1. A definition the server cannot parse counts as one item, since nothing it names can be read. Zero means every item this endpoint sizes was read; a custom node installed from a repository or the registry is sized by neither route and counted by neither, so it is never in the total. Non-zero means sizeBytes is a lower bound on top of that and should be shown as approximate. Where sizeBytes is a release's, this is that release's count too (see ReleaseDetail numUnsizedItems). An absent field means the server does not report the count, which is not a claim that the total is exact. Create and update always answer from the stored upload records alone, so every public model is counted here until the build is read back.

importReport
object

Set only when this build was created from a Desktop snapshot that had something outstanding or listed the install's models (localModels), and cleared on the first save of its definition. A build created from a workflow file reports under workflowImportReport instead. Absent therefore means one of three things and cannot tell them apart: it was never imported from a snapshot, the import carried everything, or it has been saved since. Read it before the first save.

workflowImportReport
object

Set only when this build was created from a workflow file that had something outstanding, and cleared on the first save of its definition. A build carries this or importReport, never both, because it came from one kind of import or the other. Its models are the caller's next job: the definition installs no model a workflow named. Read it before the first save.

warnings
object[]

Non-blocking preflight advisories about the definition as saved (e.g. a pin the base image's Python cannot satisfy, or a pipDependencies line the build will ignore, quoted with the reason). Listed first, the definition's shape problems a release cut refuses on (e.g. a model type that is not a model directory, a malformed filename or sha256, a sourceUri that is not an https URL), then each HuggingFace or CivitAI model link that is not a form a deployment downloads (at models[<n>].sourceUri: e.g. a HuggingFace /raw/ view or repo page rather than a /resolve/ or /blob/ file link, or a CivitAI image page rather than a download or model page link; the reason names the form to use), then the pipDependencies lines the build will ignore, then a baseComfyVersion older than the minimum, then each custom node that installs a pack known not to work fully on a deployment (at customNodes[<n>]: one warning per node class that waits for a browser, naming the class and why, and one naming the editor features that call the pack's own routes, which nothing on Cloud answers yet, so they do nothing in the Cloud editor today), then the package, registry pin, model link and declared sha256 lookups, in that order (a registry pin warns when the Comfy Registry does not publish that version, or withdrew it; a model link warns when a deployment could not download it, naming how its host refused it; a model's sha256 warns, at models[<n>].sha256, when its link's host states another sha256, and the reason names both), then each private blob the definition names that the workspace does not hold, at blob:<id> with reason "unknown blob". A field a shape problem names carries that warning alone. Any other field may carry more than one, so read each warning's reason rather than keying warnings by field: a model link in a form a deployment does not download is still looked up, so its models[<n>].sourceUri can carry one warning for its form and another for how its host answered. Not listed: a missing baseComfyVersion, or what only the cut looks up (a private blob whose upload has not finished). Populated on the save response so an editor gets them without a second call; reads never carry them. A save is never rejected for a warning, and the cut path remains authoritative for what actually blocks a build.