> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# List the build targets a release can be cut for

> The (os, gpu) pairs the builder can produce a verified artifact for, so the build dialog can offer them as a checklist. Static and identical for every caller; it is the same allow-list cutVersion and addArtifact validate a requested target against, so the menu and validation cannot drift. The Target enums are deliberately wider than this list (they carry pairs the builder does not build yet), so a client that reads the enums instead of this endpoint will offer targets that are rejected at cut time.




## OpenAPI

````yaml /openapi-builder.yaml get /v1/build-targets
openapi: 3.0.3
info:
  title: Comfy Builder API
  version: 0.1.0
  description: >
    Builder owns builds (editable environment definitions) and cuts immutable,
    deployable releases that Deploy later runs.
servers:
  - url: https://platformapi.comfy.org/builder
    description: Comfy Developer Platform
security:
  - BearerAuth: []
  - ApiKeyAuth: []
paths:
  /v1/build-targets:
    get:
      summary: List the build targets a release can be cut for
      description: >
        The (os, gpu) pairs the builder can produce a verified artifact for, so
        the build dialog can offer them as a checklist. Static and identical for
        every caller; it is the same allow-list cutVersion and addArtifact
        validate a requested target against, so the menu and validation cannot
        drift. The Target enums are deliberately wider than this list (they
        carry pairs the builder does not build yet), so a client that reads the
        enums instead of this endpoint will offer targets that are rejected at
        cut time.
      operationId: listBuildTargets
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BuildTargetList'
components:
  schemas:
    BuildTargetList:
      type: object
      required:
        - targets
      properties:
        targets:
          type: array
          description: The buildable targets, in menu order.
          items:
            $ref: '#/components/schemas/BuildTargetOption'
    BuildTargetOption:
      type: object
      description: >
        One build target the frontend renders as a menu option. Post target's os
        and gpu back in a cut or add-artifact request; the rest is display
        metadata. This menu is base-agnostic, so its accelVariant is the DEFAULT
        base's and may not be the one a given build produces. It is ignored on a
        request and derived from the release's base, so echoing it back is
        harmless.
      required:
        - target
        - label
        - artifactKind
        - default
      properties:
        target:
          $ref: '#/components/schemas/Target'
        label:
          type: string
          description: Short human label, e.g. "Linux · NVIDIA".
        artifactKind:
          type: string
          enum:
            - image
            - archive
          description: >
            image: the artifact is a baked container image a deployment runs.
            archive: a downloadable desktop archive, with no image to deploy.
        default:
          type: boolean
          description: True for the target a cut builds when the request names none.
    Target:
      type: object
      required:
        - os
        - gpu
      properties:
        os:
          type: string
          enum:
            - linux
            - windows
            - mac
        gpu:
          type: string
          enum:
            - nvidia
            - amd
            - cpu
            - mps
        accelVariant:
          type: string
          readOnly: true
          description: >
            Accelerator build variant, e.g. cu128. Part of the target identity.
            Server-derived from the gpu and the release's base image: exactly
            one variant is valid per pair, so a value sent on a request is
            IGNORED. Present on responses to report what was built.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >
        A workspace-scoped Cloud JWT. A missing or invalid token is 401
        UNAUTHORIZED in the Error body.
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >
        A workspace API key, sent alone. The service checks it on every request
        and acts as the key's user in the key's workspace. A request carrying a
        key and a Bearer token is 400 INVALID_REQUEST, and a value that is not a
        key's shape is 401 UNAUTHORIZED. A refused key answers 401
        (UNAUTHORIZED), 403 (FORBIDDEN), 404 (NOT_FOUND) or 429 (RATE_LIMITED)
        with its message and Retry-After; a 503 (SERVICE_UNAVAILABLE) means the
        key could not be checked right now, so retry. Each refusal answers the
        Error body.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.