Usage and limits
Get a request's status
Permission
inference-usage:readAuthenticationGET
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.
inferenceBearerAuthheader
AuthorizationBearer <token>Use an Inference API key. Access and keys.
id*stringFormat
uuidGet a request's status
application/json- response
id*stringFormat
uuidorg_id*stringFormat
uuidmodel*stringkind*stringValue in
"tts""stt"source*stringValue in
"api""playground""sample"status*stringValue in
"running""completed""error""cancelled""interrupted"unit*stringValue in
"characters""milliseconds"charged*integerWhat the request cost, in unit (input characters for text to speech, audio milliseconds for speech to text).
Range
0 <= valueaudio_ms*integerAudio generated (text to speech). 0 for speech to text, whose charge is its audio duration.
Range
0 <= valuecharged_ms*integerDeprecated. The charge as audio time. Speech to text, same as charged; text to speech, the audio generated (audio_ms).
Range
0 <= valuefirst_output_ms*integer|nulllatency_ms*integer|nullerror_code*string|nullapi_key_id*string|nullcreated_at*stringFormat
date-timecurl -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"}