Skip to Content
Usage and limits

Get a request's status

Permissioninference-usage:readAuthentication
GET
/inference/requests/{id}

Returns what happened to one request — the call to reach for when a client lost its response and you need to know whether the work ran, and what it was charged.

See request history and interrupted work.

Authorization

inferenceBearerAuth
headerAuthorizationBearer <token>

Use an Inference API key. Access and keys.

Path Parameters

id*string
Formatuuid

Response Body

Get a request's status

application/json
  1. response
id*string
Formatuuid
org_id*string
Formatuuid
model*string
kind*string
Value in"tts""stt"
source*string
Value in"api""playground""sample"
status*string
Value in"running""completed""error""cancelled""interrupted"
unit*string
Value in"characters""milliseconds"
charged*integer

What the request cost, in unit (input characters for text to speech, audio milliseconds for speech to text).

Range0 <= value
audio_ms*integer

Audio generated (text to speech). 0 for speech to text, whose charge is its audio duration.

Range0 <= value
charged_ms*integer

Deprecated. The charge as audio time. Speech to text, same as charged; text to speech, the audio generated (audio_ms).

Range0 <= value
first_output_ms*integer|null
latency_ms*integer|null
error_code*string|null
api_key_id*string|null
created_at*string
Formatdate-time
Example Request
curl -X GET 'https://api.kejue.co/v1/inference/requests/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",  "model": "string",  "kind": "tts",  "source": "api",  "status": "running",  "unit": "characters",  "charged": 0,  "audio_ms": 0,  "charged_ms": 0,  "first_output_ms": 0,  "latency_ms": 0,  "error_code": "string",  "api_key_id": "string",  "created_at": "2019-08-24T14:15:22Z"}