Skip to Content
File uploads

Sign audio upload parts

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

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.

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
parts*array<>
Items1 <= items <= 4

Response Body

Sign audio upload parts

application/json
  1. response
data*array<>
Example Request
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"    }  ]}