File uploads
Sign audio upload parts
POST
Signs at most four exact part numbers and base64 SHA-256 checksums. Parts are 16 MiB except the final remainder. Each URL binds its bytes, checksum and required headers, and lasts at most 15 minutes.
Refresh expired URLs with a new Idempotency-Key while the upload is valid. Send no API authorization or cookies to storage. Browser JavaScript must let the browser set Content-Length. See uploading parts.
inferenceBearerAuthheader
AuthorizationBearer <token>Use an Inference API key. Access and keys.
id*stringFormat
uuidIdempotency-Key*stringRequired. Reuse the same key to retry this write safely. Retries and idempotency.
Match
^[A-Za-z0-9!#$%&'*+.^_`|~-]+$Length
1 <= length <= 255application/json- body
parts*array<>Items
1 <= items <= 4Sign audio upload parts
application/json- response
data*array<>curl -X POST 'https://api.kejue.co/v1/inference/uploads/497f6eca-6276-4993-bfeb-53cbbbba6f08/parts' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "parts": [ { "part_number": 1, "checksum_sha256": "string" } ]}'Example Response
{ "data": [ { "part_number": 1, "url": "http://example.com", "headers": { "property1": "string", "property2": "string" }, "expires_at": "2019-08-24T14:15:22Z" } ]}