Request a presigned upload URL for a model file
Returns a presigned S3 PUT URL for uploading a model file. After uploading, call POST /models to register the model metadata.
Accepts JWT or dk-. The returned URL is a single-part PUT — fine for
files up to the server’s configured request cap (default 500 MB; S3’s
hard ceiling on a single PUT is 5 GB). Larger model files require the
JWT-only multipart flow under /uploads/multipart/*.
Documentation Index
Fetch the complete documentation index at: https://docs.cyberun.cloud/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
User session JWT (Bearer ). Must be paired with the X-Team-ID
request header on team-scoped endpoints so the server knows which
team's resources to operate on.
Headers
UUID of the team to scope the request to. Used by dual-auth endpoints (runtime + scoped management):
- JWT callers MUST send it — a user may belong to multiple teams and the runtime cannot otherwise know which one to operate on. Missing header → 400.
- Credential callers (
sk-,dk-) can omit it because the team is derived from the credential row itself. Any value sent is ignored.
"019abc12-4567-7890-abcd-ef1234567891"
Body
Request a presigned S3 PUT URL to upload a model file.
Original filename of the model file.
"sdxl_base_1.0.safetensors"
File size in bytes.
6800000000
Type/subdirectory of the model (e.g. checkpoints, loras, vae). Corresponds to a ComfyUI models subdirectory.
1 - 50"checkpoints"
Relative path inside ComfyUI models directory (e.g. models/checkpoints/sdxl.safetensors). Must not contain .., backslashes, or be absolute.
^(?!/)(?!.*\.\.)(?!.*\\)[\w./ -]+$"models/checkpoints/sdxl_base_1.0.safetensors"
Response
Presigned upload URL generated
S3 PUT URL for uploading the model file. Include all upload_headers in the request.
"https://s3.example.com/bucket/key?X-Amz-Signature=..."
S3 object key to reference when confirming the upload.
"models/019abc12-4567/019def34-5678"
Required HTTP headers for the PUT upload (signed into the URL).
