Send the file
Sends the file's bytes to the upload_url from POST /v1/uploads, with every header in upload_headers.
The link is signed: it needs no key and works for 15 minutes. The type is checked by the file's first bytes
(JPEG, PNG or WebP). Each slot takes one file.
asset_id*stringThe upload's asset_id.
uuidexpires*stringPart of the signed link, as given.
signature*stringPart of the signed link, as given.
The file's bytes, up to 7 MiB.
body*stringThe upload, now ready.
application/json- response
asset_id*stringuuidkind*"image""image"status*stringpending until the file arrives, then ready.
"pending""ready"mime*string"image/jpeg""image/png""image/webp"bytes*integerfilename*string|nullcreated_at*stringdate-timecurl -X PUT 'https://tensorfactory.ai/v1/uploads/6f1d2c3b-8a4e-4f0b-9d6a-1c2e3f4a5b6c/data?expires=string&signature=string'{ "asset_id": "6f1d2c3b-8a4e-4f0b-9d6a-1c2e3f4a5b6c", "kind": "image", "status": "ready", "mime": "image/jpeg", "bytes": 482113, "filename": "photo.jpg", "created_at": "2026-11-07T10:00:04.000Z"}Create an upload POST
Creates an upload slot and answers `201` with a signed `upload_url`. `PUT` the file there with every header in `upload_headers` within 15 minutes, then use `asset_id` as `image`, `image_2` or `image_3` in an edit. TensorFactory doesn't keep uploads: one is deleted when the run that uses it ends, or 30 minutes after it is made if no run uses it. Upload the file again for each edit.
Get an upload GET
One of your uploads. It is `pending` until its file arrives, then `ready`.