Frequently asked questions
How do I generate an API key?
Sign up on /get-api-key/ using Google or email plus password. The dashboard displays your active API key immediately. You can issue a new key at any time, which instantly invalidates the previous one. Each account maintains one active key for authentication via the Authorization header.
What is the base URL for the OpenAI SDK?
Use https://api.jilevo.cc/v1 as your base URL. This allows you to use the official OpenAI SDKs by simply changing the base_url configuration. The request shape matches the OpenAI speech endpoint, ensuring compatibility with existing client libraries without requiring custom implementations or new SDKs.
Can I use the API with Python?
Yes, you can use Python with the official OpenAI SDK or plain HTTP requests. Configure the SDK’s base_url to https://api.jilevo.cc/v1 and provide your Bearer token. The API accepts standard JSON bodies, making integration straightforward for Python developers building medical narration tools.
How do I specify the language in the request?
Include the optional 'language' field with an ISO code in your JSON body. If omitted, the system guesses the language from the script, defaulting to English for Latin text. Explicitly setting the language ensures accurate pronunciation for non-English Latin-script medical content.
What happens if I exceed the rate limit?
The limit is 60 requests per minute per key. Requests are processed sequentially, so exceeding this may cause your request to wait in a queue. Under load, processing delays occur. Failed requests remain free, but successful ones count toward your usage and character limits.
Is the API compatible with React Native?
Yes, because it uses standard HTTP requests and JSON bodies. You can use any HTTP client library in React Native to send POST requests to the speech endpoint. The API does not require a proprietary SDK or WebSocket connection, making it compatible with mobile environments.
Can I send text with special medical characters?
Yes, you can send up to 4096 characters per request, including spaces and punctuation. The API treats all input text as characters, so special medical symbols are included in the count. The text is used only to produce audio and is not stored or used for training.
How do I handle failed requests programmatically?
Check the HTTP response status code. If synthesis fails, the charge is returned in full. Your application should handle the error response and retry if necessary. Failed requests do not consume your character balance, ensuring you are not billed for unsuccessful audio generations.
Does the API support streaming audio?
No, the API does not support streaming or WebSocket connections. You send a POST request and receive the complete audio file in the response. Audio is generated sequentially, so long texts are split into parts and joined by your application after receipt.
Can I use the same key for multiple apps?
Yes, one active key per account can be used across multiple applications. The rate limit of 60 requests per minute applies to the key itself, shared by all apps using it. You can issue a new key at any time, which invalidates the old one.
How do I downgrade from the HD model?
Simply change the 'model' field in your request body from 'tts-1-hd' to 'tts-1'. Both models use the same engine and price, so there is no cost difference. The request shape remains identical, requiring only this single field adjustment in your JSON payload.
Is there a sandbox environment for testing?
No, there is no separate sandbox environment. You use the same production endpoint at https://api.jilevo.cc/v1. You can test with your free trial credit of $0.50, valid for seven days, or top up with USDT (TRC-20) to test real-world usage conditions.
What is the maximum input length?
The maximum input length is 4096 characters per request. For longer texts, you must split them into parts of up to 4096 characters and join the resulting audio files in your application. Spaces and punctuation count toward this character limit.
Do I need to pay for API documentation access?
No, API documentation access is free. You do not need an API key or paid account to read the documentation. However, you need an account and valid API key to make actual requests and generate audio files using the TTS engine.
First request
curl
curl https://api.jilevo.cc/v1/audio/speech \
-H "Authorization: Bearer $TTS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"tts-1","voice":"aria","input":"Hello from the API.","response_format":"mp3"}' \
--output hello.mp3Python (openai)
from openai import OpenAI
client = OpenAI(base_url="https://api.jilevo.cc/v1", api_key="tts-...")
with client.audio.speech.with_streaming_response.create(
model="tts-1", voice="nova", input="Hello from Python.", response_format="mp3"
) as response:
response.stream_to_file("hello.mp3")Node.js (openai)
import OpenAI from "openai";
import fs from "node:fs";
const client = new OpenAI({ baseURL: "https://api.jilevo.cc/v1", apiKey: process.env.TTS_API_KEY });
const res = await client.audio.speech.create({ model: "tts-1", voice: "milo", input: "Hello from Node.js." });
fs.writeFileSync("hello.mp3", Buffer.from(await res.arrayBuffer()));| voice | |
|---|---|
aria | female |
nova | female |
luna | female |
sage | female |
felix | male |
milo | male |
atlas | male |
orion | male |
| language | |
|---|---|
ar | العربية |
zh | 中文 |
da | Dansk |
nl | Nederlands |
en | English |
fi | Suomi |
fr | Français |
de | Deutsch |
el | Ελληνικά |
he | עברית |
hi | हिन्दी |
it | Italiano |
ja | 日本語 |
ko | 한국어 |
ms | Bahasa Melayu |
no | Norsk |
pl | Polski |
pt | Português |
ru | Русский |
es | Español |
sw | Kiswahili |
sv | Svenska |
tr | Türkçe |
Get Your API Key
Jilevo Audio provides a straightforward path to generating patient education audio through a simple REST API. To begin, visit /get-api-key/ to create an account using Google or an email and password combination. This page serves as your central dashboard, displaying your unique API credentials, current balance, and usage statistics in one place.
Sign Up on /get-api-key/
Registering takes only a few seconds. Accounts created via Google receive a $0.50 free trial credit, valid for seven days, which covers approximately 50,000 characters. Email-based accounts start with zero balance and require a top-up before generating audio. Once registered, you are immediately ready to make your first request.
Copy Your Bearer Token
Your API key is displayed prominently on the dashboard after sign-up. It begins with the prefix tts- and is used as a Bearer token in the Authorization header. Copy this key securely, as it authenticates all your API requests. You can issue a new key at any time, which instantly invalidates the previous one.
- Prefix: tts-...
- Header: Authorization: Bearer <key>
Manage Keys and Balance
The dashboard provides real-time visibility into your account status. You can monitor your remaining balance, track character consumption, and view recent usage history. Since pricing is based on character count ($0.01 per 1,000 characters), tracking usage helps you plan your patient guide production efficiently. Top-ups are processed via USDT (TRC-20) and reflect in your balance within minutes.
First Request with cURL
Start by sending a simple POST request to the API endpoint. This basic example demonstrates how to generate audio from text using the standard TTS-1 model, which is ideal for clear patient education content.
Basic POST Request Example
Send your request to https://api.jilevo.cc/v1/audio/speech. Replace YOUR_API_KEY with your token from /get-api-key/. This cURL command sends a short medical instruction and receives an MP3 file, which you can save to a local file.
- curl -X POST https://api.jilevo.cc/v1/audio/speech \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "tts-1", "input": "Take this medication after meals.", "voice": "sage", "response_format": "mp3"}'
Required Fields: Model and Voice
You must specify the model ("tts-1" or "tts-1-hd") and the voice. For patient guides, "sage" provides a calm, instructional tone, while "aria" offers clear explanations. Both are suitable for medical contexts.
Handling the Response
The API returns the audio file directly in the response body. Save this output to a local file for use in your application. If the request fails, check your authentication or rate limits.
Using the OpenAI SDK
The Jilevo Audio API mirrors the OpenAI speech endpoint structure, allowing teams to reuse existing integration code with minimal changes. By adjusting the base URL, you can leverage the standard OpenAI SDKs to generate patient education audio without learning a new protocol.
Set Base URL to API Endpoint
Configure your OpenAI SDK client to point to https://api.jilevo.cc/v1. This simple change directs all requests to Jilevo’s infrastructure while maintaining the familiar request shape.
Import Standard Audio Module
Use the standard openai Python library or equivalent SDK for your language. Import the Audio module and call the speech.create() method, passing your Bearer token and required parameters like model and voice.
Adapt Existing Code Easily
Since the request body is identical to OpenAI’s format, you can swap the base URL and update your API key. The same code that generates generic TTS can now produce clear, calm medical narration using voices like Sage or Aria.
Supported Audio Formats
Jilevo Audio delivers patient education audio in formats optimized for both digital playback and clinical archiving. Selecting the right format ensures clear voice lines for mobile apps while maintaining high fidelity for long-term medical records.
MP3 for Web and Mobile
MP3 is the default choice for embedding audio in patient portals and mobile applications. It provides a balance of clarity and small file size.
- Ideal for web players and iOS/Android apps
- Smallest file size for efficient bandwidth use
WAV for High-Quality Archiving
Use WAV when you need uncompressed, lossless audio for permanent medical records. This format preserves the voice quality without any data loss.
- Lossless quality for clinical documentation
- Compatible with standard audio editors
FLAC and OPUS Options
FLAC offers lossless compression for storage-heavy environments, while OPUS provides excellent quality at very low bitrates. Choose OPUS for voice-only transmissions where bandwidth is limited but clarity remains critical.
- FLAC: Lossless, smaller than WAV
- OPUS: High efficiency for low-bandwidth scenarios
Voice Selection for Medical Content
Choosing the right voice ensures medical instructions are understood correctly. Our API offers distinct presets tailored for different communication styles in patient education, from calm guidance to friendly support.
Sage for Instructional Tone
Sage provides a calm, instructional voice ideal for step-by-step procedures. Its neutral delivery helps patients follow complex medical directions without feeling rushed.
Aria for Clear Explanations
Aria’s warm, clear narration is perfect for explaining diagnoses or medication details. It maintains clarity while keeping the tone approachable and reassuring.
Milo for Conversational Support
Milo offers a friendly, conversational style suitable for general health tips or post-discharge advice. It sounds natural and engaging for daily wellness content.

Rate Limits and Performance
Jilevo Audio processes synthesis requests sequentially, meaning performance depends on concurrent volume. The standard limit is 60 requests per minute per API key. This capacity supports steady generation of patient education scripts without overwhelming the engine.
60 Requests Per Minute Limit
Each active key allows 60 requests per minute. Long texts are split into 4096-character chunks, counting each chunk as one request. For typical medical guides, this limit handles moderate batch generation efficiently.
10 Requests Before First Top-Up
New accounts start with a trial credit of $0.50 but are restricted to 10 requests per minute until the first top-up. This allows teams to verify integration quality before scaling volume for production patient guides.
Queuing Under Heavy Load
Requests are processed one after another. Under heavy load, subsequent requests may wait in a queue before synthesis begins. Plan your integration to handle slight delays, especially when generating multiple audio files simultaneously.
Handling Long Texts
Patient guides often exceed the 4096-character limit per request. You must split longer texts into chunks that fit within this constraint before sending them to the API.
After generating each chunk, concatenate the resulting audio files to create a continuous narration track. This ensures seamless playback for your users without gaps between sections.
Split Text into 4096 Character Chunks
Each API call accepts up to 4096 characters, including spaces and punctuation. Divide your medical content into segments that respect this limit to avoid errors.
- Count characters carefully, as spaces and punctuation count toward the limit.
- Ensure each chunk is a coherent sentence or paragraph to maintain audio quality.
Concatenate Audio Files
Send each chunk sequentially and combine the returned audio files. This creates a single, continuous audio file for the entire guide.
Use standard audio libraries to merge the files, ensuring smooth transitions between sections.
Manage Character Counts
Track character usage to stay within your budget. Each 1,000 characters cost $0.01, so splitting texts helps you predict costs accurately.
Failed requests are free, but successful ones are charged. Monitor your balance regularly to avoid interruptions.
- Use the /v1/voices endpoint to check available voices.
- Keep a log of character counts for each generated audio file for billing accuracy.
Error Handling and Codes
Error responses in Jilevo Audio follow standard HTTP conventions, ensuring your integration can handle failures gracefully. Understanding these codes helps you maintain uninterrupted patient education workflows without unnecessary delays or billing surprises.
401 Unauthorized Errors
Return if your Authorization header is missing or contains an invalid Bearer token. Verify that your key starts with tts- and matches the account on jilevo.cc. Regenerate your key via the dashboard if unsure, as old keys stop immediately upon issuance.
- Check for typos in the
tts-...string - Ensure no trailing spaces in the header
429 Rate Limit Exceeded
Returned when you exceed 60 requests per minute (or 10 before top-up). Requests are processed sequentially, so heavy loads may queue. Implement exponential backoff in your client to retry automatically once the window resets.
- Limit: 60 req/min per key
- New accounts start with 10 req/min
500 Internal Server Errors
Indicates a transient issue on our side. These are rare but may occur during high demand. Failed synthesis requests are free, so retrying is safe. If the error persists, contact support via email.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Use voices with gentle resonance for chronic condition management, where ongoing support feels as important as the clinical data being conveyed.
23 languages
Any voice speaks any of these languages.
