Skip to content
Alphahelmstudio is early software: things will change, and some will break.What's newReport an issue

Upload the bytes of a signed upload link (the signature is the auth; no API key)

PUT
/files/{path}
curl --request PUT \
--url http://localhost:8300/files/example \
--header 'Content-Type: application/octet-stream' \
--data example

Only reachable through an upload_url from POST /v1/studio/uploads (images and audio, at most 50 MB) or POST /v1/studio/loras (u/<owner>/loras/<lora_id>.safetensors, application/octet-stream, at most 2 GiB). The signature is the lower-case hex HMAC-SHA256 (the /files secret) of "PUT\n" + path + "\n" + exp + "\n" + bytes + "\n" + ct; a GET link (path + "\n" + exp) never verifies as a PUT. The request must carry Content-Type equal to ct and Content-Length equal to bytes (no chunked body); the body is streamed to the object store under path with that content type. Single use: an existing object is never overwritten (409).

path
required
string

The object key, u//uploads/<take_id>.

exp
integer

Expiry, unix seconds (missing = 403)

bytes
integer

The exact body size (missing = 403)

ct
string

The content type, URL-encoded (missing = 403)

sig
string

HMAC signature (missing = 403)

Media typeapplication/octet-stream
string

Stored

The gateway (Kong/nginx) refuses a path that climbs above the root (.. segments) before the API sees it

Media typetext/html
string

Bad or missing signature, expired link, or a path outside u/ or with ..

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

“already uploaded”: the object exists

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

“Content-Length must be the signed bytes”: missing, chunked, or another size

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

“Content-Type must be the signed type”

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}