Transcribe an audio file
inference-stt:createAdd-onInferenceRetriesIdempotency-Key identifies the computationAuthenticationTranscribes an uploaded audio file. Accepts PCM16 mono 16 kHz WAV, up to the model's published limit and at most 300 seconds.
What you are charged
The accepted input duration, once the request is dispatched — including a partial failure. A refusal before dispatch releases the reservation. Audio and transcript content are not retained by the usage ledger.
Reusing an Idempotency-Key returns 409 rather than transcribing again.
See file transcription.
inferenceBearerAuthAuthorizationBearer <token>Use an Inference API key. Access and keys.
Idempotency-Key*stringIdentifies one computation. Reuse returns 409 inference_request_exists; results are not replayed. Retries and idempotency.
^[A-Za-z0-9!#$%&'*+.^_`|~-]+$1 <= length <= 255multipart/form-data- body
model*string1 <= length <= 80file*filePCM16 mono 16 kHz WAV. Up to 300 seconds, bounded by the published model.
binarylanguage?string"ar""ar""en""auto"Transcribe an audio file
application/json- response
text*stringlanguage*stringLanguage the model reports. It echoes the requested language, and returns unklang when the request asked for auto.
duration_ms*integer1 <= valuerequest_id*stringuuidmodel*stringcurl -X POST 'https://api.kejue.co/v1/inference/audio/transcriptions' \ -H 'Idempotency-Key: string' \ -F 'model=string' \ -F 'file=string'{ "text": "string", "language": "string", "duration_ms": 1, "request_id": "266ea41d-adf5-480b-af50-15b940c2b846", "model": "string"}