Skip to Content
Transcription jobs

Cancel remaining transcription work

Permissioninference-stt:createAdd-onInferenceRetriesIdempotency-Key requiredAuthentication
POST
/inference/transcription-jobs/{id}/cancel

Stops new work and fences late results, then settles only unique committed audio intervals and releases the remaining reservation. Repeating cancellation is safe.

Already committed partial results remain retrievable until expiry. Recognition and alignment retries add no second customer charge. See cancellation.

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

Cancel remaining transcription work

application/json
  1. response
id*string
Formatuuid
upload_id*string
Formatuuid
model*string
language*string
Value in"ar""en""auto"
timestamp_granularity*string
Value in"none""chunk""word"
status*string
Value in"validating""awaiting_credits""queued""processing""finalizing""completed""failed""cancelled"
phase*string

Current preparation, capacity, recognition, alignment, finalization or terminal phase.

duration_ms*|null
progress*
request_id*|null
error_code*|null
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
deadline_at*string
Formatdate-time
completed_at*|null
result_expires_at*|null
content_expired*boolean
has_partial_result*boolean
Example Request
curl -X POST 'https://api.kejue.co/v1/inference/transcription-jobs/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "upload_id": "f2ef591b-135b-46fa-a604-3d4fda5bfbfb",  "model": "string",  "language": "ar",  "timestamp_granularity": "none",  "status": "validating",  "phase": "string",  "duration_ms": 0,  "progress": {    "total_chunks": 0,    "completed_chunks": 0,    "processed_ms": 0  },  "request_id": "266ea41d-adf5-480b-af50-15b940c2b846",  "error_code": "invalid_audio",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "deadline_at": "2019-08-24T14:15:22Z",  "completed_at": "2019-08-24T14:15:22Z",  "result_expires_at": "2019-08-24T14:15:22Z",  "content_expired": true,  "has_partial_result": true}