Skip to main content
POST
Get a weights upload URL

Authorizations

Authorization
string
header
required

A Reactor API key (rk_...), sent as Authorization: Bearer rk_.... Keep it on a server.

Path Parameters

id
string<uuid>
required

The model's ID (not its project ID). Find it with GET /models?name=your-org/your-model.

release
string
required

The release tag, such as v1.2.3-gabcdef0.

Example:

"v1.2.3-gabcdef0"

Body

application/json
name
string
required

The file's path in the bundle; may include subdirectories.

Example:

"model.safetensors"

size
integer<int64>
required

The file size in bytes. The upload must match it.

Required range: x >= 0
mime_type
enum<string>
required
Available options:
application/octet-stream
kind
enum<string>
default:file
Available options:
file
sha256
string

Hex SHA-256 of the file, to look for an identical file in earlier releases.

force
boolean
default:false

Skip the identical-file lookup and always upload.

from_release
string

Look for identical files only in this release.

Response

An upload URL, or a server-side copy in place of an upload.

path
string
required

The file's storage key.

presigned_url
string<uri>

PUT the file here. Absent when copied is true.

copied
boolean

true when an identical file was found; skip the upload.

source_path
string

The identical file that will be copied.