Get a weights upload URL
Returns a presigned URL for uploading one weight file of a release in a single PUT.
Send the bytes with Content-Type: application/octet-stream and a Content-Length equal
to size. The URL is valid for one hour. For files over 5 GiB, use the multipart upload.
With sha256 set (and force unset), the server first looks for an identical file in an
earlier release of the same model. When it finds one, the response has copied: true and
no URL: skip the upload, and the file is copied at finalize. from_release restricts that
search to one release.
After every file is uploaded, call POST .../weights/finalize. The release must be
registered first. Callable by an account_admin or developer of the owning account when
model serving is enabled for the account. The CLI equivalent is reactor weights upload.
Authorizations
A Reactor API key (rk_...), sent as Authorization: Bearer rk_.... Keep it on a server.
Path Parameters
The model's ID (not its project ID). Find it with GET /models?name=your-org/your-model.
The release tag, such as v1.2.3-gabcdef0.
"v1.2.3-gabcdef0"
Body
The file's path in the bundle; may include subdirectories.
"model.safetensors"
The file size in bytes. The upload must match it.
x >= 0application/octet-stream file Hex SHA-256 of the file, to look for an identical file in earlier releases.
Skip the identical-file lookup and always upload.
Look for identical files only in this release.
Response
An upload URL, or a server-side copy in place of an upload.