Skip to main content
POST
Upload File in Chunks

Authorizations

Authorization
string
header
required

Use the format: Key modelrunner_key

Body

application/json
part_index
integer
required
Required range: x >= 0
is_last_part
boolean
required

Exactly one chunk may set this.

base64
string
required

This chunk's bytes, base64-encoded. ~32–48 KB per chunk works well.

file_name
string
required
expected_decoded_bytes
integer
required

Decoded byte length of this chunk.

Required range: x >= 1
upload_id
string

Omit on the first chunk; echo the minted value on every later chunk.

content_type
string

Defaults to application/octet-stream.

sha256
string

Optional hex SHA-256 of this chunk's decoded bytes.

file_sha256
string

Optional hex SHA-256 of the whole assembled file, checked at completion.

Response

Chunk stored, or upload completed.

upload_id
string
received_parts
integer[]

Indices held so far.

missing_parts
integer[]

Present once the final part has been seen and gaps remain.

file_url
string

Present only on the chunk that completes the upload.