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

> ## Agent Instructions
> To build and serve your own model, start at /deploy/development/quickstart and /deploy/development/overview. Deploying is the default path: reactor init scaffolds a workspace, reactor auth login authenticates, and reactor model deploy registers the model, publishes the release with the weights/ folder, and activates it on Reactor's GPUs, in one command from that workspace. Docker must be running, because the publish step builds the image locally. Bump model.version in reactor.yaml before redeploying a change, because a release that already has an image is reactivated as it is. Deployment access is granted per account, so contact team@reactor.inc if a deploy is refused. Every key in reactor.yaml is documented at /deploy/platform/reactor-yaml. Model code imports reactor_runtime; Python client code imports reactor_sdk. The runtime overview explains the model interface. Running the model on your own machine with reactor run is optional and needs a GPU you attach with --gpus; /deploy/development/local-testing covers that loop and pairs a complete brightness model with a Python client test in a separate brightness-test workspace.
> Reactor hosts multiple models, each with its own connect slug (modelName) and command/event schema. The video model catalog — slug, typed SDK package, and links to its schema — is at /model-api-reference/overview. Robotics policy documentation starts at /robotics/overview; The launch policies are Cosmos Nano DROID (/robotics/cosmos/nano-policy-droid/), DreamZero DROID (/robotics/dreamzero/droid/), and FLUX Action DROID (/robotics/flux-action/droid/), organized by model family and embodiment. Some models expose one slug per experience (e.g. HappyOyster); always take the slug from the model's own pages, never guess it.
> Fastest path to a working app: `npx create-reactor-app my-app --model=<slug>` scaffolds a complete app with secure auth wired up. Typed TypeScript SDKs are published as @reactor-models/<model>; Python uses the base reactor-sdk package.
> Auth: exchange an API key (rk_...) for a JWT via POST https://api.reactor.inc/tokens from your server. Never put the API key in client-side code.
> Append .md to any docs URL for clean Markdown. Search these docs via the MCP server at https://docs.reactor.inc/mcp.

# Put a weight set

> Records a weight set from its version-2 manifest, after its files are uploaded. `set` must
be the full set digest, and it must equal the set digest of the manifest's files. No release
is registered. Repeating the request is safe.

The set digest is `sha256:` plus the SHA-256 of the manifest's file lines, sorted, joined
by newlines; each line is the file's hex SHA-256, two spaces, and its path. Each file must
already be uploaded at its size, or every file must be an `hf://` source pinned to a
commit. Paths are relative, with no `.` or `..` segment and no backslash.

Returns `201` when the project did not have the set and `200` when it did. Available when
weight sets are enabled for your account. Requires the `account_admin` or `developer` role
and Serve access.




## OpenAPI

````yaml /openapi.yaml put /projects/{proj_id}/weights/{set}
openapi: 3.1.0
info:
  title: Reactor Platform API
  version: '1'
  description: >
    The Reactor Platform API mints session tokens, starts and operates sessions,
    negotiates media

    transport, and manages your account, models, and deployments. Every path is
    relative to

    `https://api.reactor.inc`. See the
    [Introduction](/platform-api/introduction) and

    [Authentication](/platform-api/authentication) pages for credentials,
    versioning, and errors.
  contact:
    name: Reactor support
    url: https://docs.reactor.inc/resources/support
servers:
  - url: https://api.reactor.inc
    description: Production
security:
  - apiKey: []
tags:
  - name: Status
    description: >-
      Public, unauthenticated endpoints for service health, pricing, and the
      values the API accepts.
  - name: Tokens
    description: >
      Exchange a long-lived API key for a short-lived, session-scoped token that
      a client can use

      to create and operate sessions without holding the key.
  - name: Users
    description: >
      Read your own user record, your account's roster, and account memberships,
      and manage

      member roles as an account admin.
  - name: API Keys
    description: >-
      Revoke API keys. Use the [Dashboard](https://reactor.inc/dashboard) to
      list or create keys. The CLI can also create a key with `reactor auth
      login`.
  - name: Sessions
    description: >
      Create, inspect, and end sessions. A session holds one running model for
      one client

      application; media and messages flow over a transport you attach to it
      afterwards.
  - name: Transport
    description: >
      Attach a client to a session. WebRTC signaling carries ICE servers, SDP,
      and ICE candidates;

      a LiveKit room connection lets the session join a room you host.
  - name: Files
    description: >
      Upload files a model reads, either for one running session or ahead of
      time for sessions you

      have not started yet.
  - name: Recordings
    description: >
      Fetch the recorded video of a session as an HLS playlist, during the
      session or after it ends.
  - name: Accounts
    description: >
      Read and manage the account your credential acts in: its name and slug,
      its credit

      balance, its effective quotas, and its accelerator capacity.
  - name: Invitations
    description: >
      Invite people to your account by email, and manage pending invitations.
      The recipient

      accepts from the emailed link while signed in to the dashboard.
  - name: Usage
    description: >
      List the sessions your account has run, filter them by status, date,
      model, or API key,

      and read exact session totals for a date window.
  - name: Models
    description: >
      Register, read, update, and delete the models your account serves, and
      list the models you can

      use. The `reactor model` CLI commands are built on these endpoints.
  - name: Releases
    description: >
      Register a model's versioned releases, push their container image, and
      deploy a release with a

      per-region instance plan.
  - name: Model Weights
    description: >
      Upload and inspect the weights bundle of a release: single-request
      uploads, multipart uploads

      for large files, and the server-side finalize that marks a bundle
      complete.
  - name: Model Schemas
    description: >
      Attach an OpenAPI schema to a release that describes the model's commands,
      messages, and

      tracks. Schemas of public models are readable without credentials.
  - name: Model Access
    description: |
      Share a private model with other accounts, one environment at a time.
  - name: Projects
    description: >
      A project is the deploy identity of a model you serve on Reactor. Each
      model is one

      project, with its own UUID. Creating a project also creates its
      `production` environment.
  - name: Environments
    description: >
      An environment is a named deploy target of a project, such as `production`
      or `staging`.

      Each write to an environment creates its next revision, and the newest
      revision is what the

      environment runs. Environment access grants let another account start
      sessions on one

      environment.
  - name: Revisions
    description: >
      A revision is an immutable, numbered snapshot of one environment: its
      model image, weights,

      resources, instances, and variables. An environment's revisions, newest
      first, are its change

      log.
  - name: Images
    description: >
      Model images are the container images pushed to your model's repository,
      named by digest.

      Experimental: this API can change without notice.
  - name: Weight Sets
    description: >
      A weight set is a version-2 weights bundle, named by its set digest. Push
      the files, then put

      the manifest. Available when weight sets are enabled for your account.
      Experimental: this API

      can change without notice.
  - name: Tags
    description: >
      A tag is a movable name on one model image or one weight set of a project.
      A release of the

      model is a read-only tag. Experimental: this API can change without
      notice.
paths:
  /projects/{proj_id}/weights/{set}:
    parameters:
      - $ref: '#/components/parameters/ProjectProjId'
    put:
      tags:
        - Weight Sets
      summary: Put a weight set
      description: >
        Records a weight set from its version-2 manifest, after its files are
        uploaded. `set` must

        be the full set digest, and it must equal the set digest of the
        manifest's files. No release

        is registered. Repeating the request is safe.


        The set digest is `sha256:` plus the SHA-256 of the manifest's file
        lines, sorted, joined

        by newlines; each line is the file's hex SHA-256, two spaces, and its
        path. Each file must

        already be uploaded at its size, or every file must be an `hf://` source
        pinned to a

        commit. Paths are relative, with no `.` or `..` segment and no
        backslash.


        Returns `201` when the project did not have the set and `200` when it
        did. Available when

        weight sets are enabled for your account. Requires the `account_admin`
        or `developer` role

        and Serve access.
      operationId: putWeightSet
      parameters:
        - $ref: '#/components/parameters/ProjectFullSetDigest'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProjectWeightSetPutRequest'
            example:
              manifest:
                version: 2
                files:
                  - path: model.safetensors
                    size: 4831821824
                    sha256: >-
                      2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae
                  - path: config.json
                    size: 16384
                    sha256: >-
                      fcde2b2edba56bf408601fb721fe9b5c338d10ee429ea04fae5511b68fbf8fb9
      responses:
        '200':
          description: The project already had the set.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectWeightSet'
        '201':
          description: The set was recorded. `Location` names its path.
          headers:
            Location:
              description: The weight set's path.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectWeightSet'
              example:
                set_digest: >-
                  sha256:5f2c8e1a9b7d3c4e6f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e
                file_count: 2
                total_size: 4831838208
                tags: []
                created_at: '2026-10-10T09:40:00Z'
                files:
                  - path: model.safetensors
                    size: 4831821824
                    sha256: >-
                      2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae
                  - path: config.json
                    size: 16384
                    sha256: >-
                      fcde2b2edba56bf408601fb721fe9b5c338d10ee429ea04fae5511b68fbf8fb9
        '400':
          description: >-
            `invalid_request`: `set` is not a full digest, `manifest` is
            missing, its `version` is not 2, its set digest differs from `set`,
            `from_release` is present, or an entry has an invalid or repeated
            path, hash, or size.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: No write access to the project, or Serve access is not enabled.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >
            `failed_precondition`, with one of these `reason` values:

            - `set_objects_off`: weight sets are not enabled for your account.

            - `hf_sources_off`: `hf://` sources are not enabled for your
            account.

            - `weights_file_missing`: a file is not uploaded at its size. Upload
            it, then put the set again.

            - `weight_set_conflict`: a set with the same digest is stored with
            other sizes or sources.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: failed_precondition
                reason: weights_file_missing
                message: >-
                  file "model.safetensors" is not uploaded at its size; upload
                  it, then create the weight set again
        '413':
          description: The manifest is too large.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: >-
            A pinned `hf://` source could not be checked because of a rate
            limit. Retry later.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: A pinned `hf://` source could not be checked. Retry later.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: >-
            `unavailable`: storage could not be read or written. Retrying is
            safe.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  parameters:
    ProjectProjId:
      name: proj_id
      in: path
      required: true
      description: The project's ID, a UUID. It is not the model's ID.
      schema:
        type: string
        format: uuid
    ProjectFullSetDigest:
      name: set
      in: path
      required: true
      description: >-
        The full set digest, `sha256:<64 hex>` or the 64 hex characters. A tag
        or prefix is not accepted.
      schema:
        type: string
  schemas:
    ProjectWeightSetPutRequest:
      type: object
      required:
        - manifest
      properties:
        manifest:
          type: object
          required:
            - version
            - files
          description: A version-2 weights manifest.
          properties:
            version:
              type: integer
              enum:
                - 2
            files:
              type: array
              items:
                $ref: '#/components/schemas/ProjectWeightFile'
    ProjectWeightSet:
      type: object
      required:
        - set_digest
        - file_count
        - total_size
        - tags
        - created_at
      properties:
        set_digest:
          type: string
          description: '`sha256:<64 hex>`.'
        file_count:
          type: integer
        total_size:
          type: integer
          format: int64
          description: Bytes.
        tags:
          type: array
          items:
            type: string
          description: >-
            The tags that name this set, then the releases whose bundle is the
            set, in semver order.
        created_at:
          type: string
          format: date-time
        files:
          type: array
          items:
            $ref: '#/components/schemas/ProjectWeightFile'
          description: Detail and put responses only.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: >-
            A stable error code (for example `not_found`) on newer routes, or a
            sentence on older ones. When `message` is present, branch on
            `error`.
        message:
          type: string
          description: >-
            A human-readable explanation. Do not parse it; its wording may
            change.
        resource:
          type: string
          description: The type of the resource a `not_found` refers to.
        reason:
          type: string
          description: >-
            A more specific cause for `failed_precondition`, `aborted`, and some
            `invalid_request` errors.
    ProjectWeightFile:
      type: object
      required:
        - path
        - size
        - sha256
      properties:
        path:
          type: string
          description: Relative path in the bundle.
        size:
          type: integer
          format: int64
          description: Bytes.
        sha256:
          type: string
          description: The file's SHA-256, as 64 hex characters.
        source:
          type: string
          description: An `hf://` file pinned to a commit. Omit for an uploaded file.
  responses:
    Unauthorized:
      description: The credential is missing, invalid, or expired.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        A Reactor API key (`rk_...`), sent as `Authorization: Bearer rk_...`.
        Keep it on a server.

````

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