Skip to Content

API overview

Base URL, Inference keys, and how this reference is organized.

Kejue Inference shares the Kejue API origin with Kejue Voice:

https://api.kejue.co/v1

Every Inference operation lives under /v1/inference. Authenticate with an Inference API key. Voice keys, including wildcard keys, cannot call Inference, and Inference keys cannot call Voice endpoints (403 api_key_product_mismatch):

curl --fail-with-body "https://api.kejue.co/v1/inference/models" \
  -H "Authorization: Bearer $KEJUE_INFERENCE_API_KEY"
ConventionThe short versionDetails
AuthenticationAuthorization: Bearer kejue_<prefix>_<secret>, bound to Kejue InferenceAccess and API keys
Model namesSend the published alias from GET /v1/inference/modelsOverview
Live sessionsMint a one-use token, then open the returned wss:// URLText to speech
CreditSeparate TTS (characters) and STT (minutes) wallets, reserved before dispatchUsage, limits, and monitoring
ErrorsThe same error envelope and stable code values as VoiceError codes

How this reference is organized

Endpoints are grouped by capability: discovering models and voices, text to speech, speech to text, resumable uploads and file jobs, realtime sessions, managing API keys, and reading usage and limits. Every page is generated from the same reviewed OpenAPI contract as the Voice reference. The machine-readable contract covers both products: openapi.json and openapi.yaml.

Long recordings

Discover supports_async and timestamp capabilities on published models, create a resumable upload, and submit a durable transcription job. Jobs expose status, cancellation, retained partial/full results and deletion independently of the original connection. Start with the file-job guide for the complete upload → submit → poll → retrieve flow.

On this page