Skip to Content
Transcription jobs

Submit an asynchronous transcription job

Permissioninference-stt:createAdd-onInferenceRetriesIdempotency-Key requiredAuthentication
POST
/inference/transcription-jobs

Submits a ready upload to a published STT model with async support. The server validates decoded samples before reserving the full duration in the existing STT wallet. Original input is at most five hours and 5 GiB, within the model’s separate limits.

Invalid audio is uncharged. Insufficient credit enters awaiting_credits without recognition work. A submitted job survives client disconnects and ordinary browser session expiry.

Word timing is opt-in acoustic forced alignment in a qualified language; unaligned words have null times. Keep one stable Idempotency-Key per logical job. See file jobs.

Authorization

inferenceBearerAuth
headerAuthorizationBearer <token>

Use an Inference API key. Access and keys.

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
upload_id*string
Formatuuid
model*string
Length1 <= length <= 80
language?string
Default"ar"
Value in"ar""en""auto"
timestamp_granularity?string
Default"none"
Value in"none""chunk""word"
webhook_config_id?string
Formatuuid

Response Body

Submit an asynchronous transcription job

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' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "upload_id": "f2ef591b-135b-46fa-a604-3d4fda5bfbfb",  "model": "string"}'
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}