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/v1Every 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"| Convention | The short version | Details |
|---|---|---|
| Authentication | Authorization: Bearer kejue_<prefix>_<secret>, bound to Kejue Inference | Access and API keys |
| Model names | Send the published alias from GET /v1/inference/models | Overview |
| Live sessions | Mint a one-use token, then open the returned wss:// URL | Text to speech |
| Credit | Separate TTS (characters) and STT (minutes) wallets, reserved before dispatch | Usage, limits, and monitoring |
| Errors | The same error envelope and stable code values as Voice | Error 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.