Upload File in Chunks
Send a file inline as small base64 chunks, assembled server-side. This exists for clients that can reach neither the S3 host nor the relay — prefer Initiate Upload everywhere else.
Omit upload_id on the first chunk; the response mints one to thread through the rest. Set is_last_part on the final chunk. Chunks may arrive out of order; the upload completes when every index from 0 to the last is present, and the response then carries file_url. Limits: 1 MiB decoded per chunk, 50 MiB per upload, 10,000 parts, and abandoned parts are discarded after an hour.
expected_decoded_bytes is the truncation guard: a mismatch rejects that chunk alone, so resend only that part_index.
Authorizations
Use the format: Key modelrunner_key
Body
x >= 0Exactly one chunk may set this.
This chunk's bytes, base64-encoded. ~32–48 KB per chunk works well.
Decoded byte length of this chunk.
x >= 1Omit on the first chunk; echo the minted value on every later chunk.
Defaults to application/octet-stream.
Optional hex SHA-256 of this chunk's decoded bytes.
Optional hex SHA-256 of the whole assembled file, checked at completion.

