Skip to Content
File uploads

Complete an audio upload

Permissioninference-stt:createAdd-onInferenceRetriesIdempotency-Key requiredAuthentication
POST
/inference/uploads/{id}/complete

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.

Authorization

inferenceBearerAuth
headerAuthorizationBearer <token>

Use an Inference API key. Access and keys.

Path Parameters

id*string
Formatuuid

Header Parameters

Idempotency-Key*string

Required. Reuse the same key to retry this write safely. Retries and idempotency.

Match^[A-Za-z0-9!#$%&'*+.^_`|~-]+$
Length1 <= length <= 255

Request Body

application/json
  1. body

Response Body

Complete an audio upload

application/json
  1. response
id*string
Formatuuid
status*string
Value in"initiating""uploading""completing""ready""aborted""expired"
filename*string
size_bytes*integer
Range1 <= value <= 5368709120
part_size_bytes*integer
expires_at*string
Formatdate-time
parts*array<>
Example Request
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"    }  ]}