File uploads
Complete an audio upload
POST
Completes the multipart upload after reconciling the server-side part inventory and actual stored size.
Send an empty JSON object and keep one stable Idempotency-Key across retries. Multipart ETags are not whole-file SHA-256 proofs. A ready upload can attach to one transcription job. See upload and submit.
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
Complete an audio upload
application/json- response
id*stringFormat
uuidstatus*stringValue in
"initiating""uploading""completing""ready""aborted""expired"filename*stringsize_bytes*integerRange
1 <= value <= 5368709120part_size_bytes*integerexpires_at*stringFormat
date-timeparts*array<>curl -X POST 'https://api.kejue.co/v1/inference/uploads/497f6eca-6276-4993-bfeb-53cbbbba6f08/complete' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "status": "initiating", "filename": "string", "size_bytes": 1, "part_size_bytes": 16777216, "expires_at": "2019-08-24T14:15:22Z", "parts": [ { "part_number": 1, "etag": "string", "size_bytes": 1, "checksum_sha256": "string" } ]}