Frequently asked questions
How do I get my API key?
Sign up on the /get-api-key/ page using Google or email. Your key appears on the dashboard alongside your balance and usage stats. Each account holds one active key. You can issue a new key at any time, which immediately invalidates the old one.
Can I use the OpenAI SDK with this API?
Yes. The endpoint matches the OpenAI speech format. Change your SDK’s base_url to https://api.win66ok.com/v1 and use your CuraVoce key. This allows direct integration with official OpenAI SDKs without custom client code.
What is the character limit per request?
Each request accepts up to 4096 characters in the input field. Spaces and punctuation count toward this limit. For longer texts, split your content into chunks of this size and join the resulting audio files.
Does the API support streaming audio?
No. The API returns the complete audio file in the response body. There is no WebSocket or real-time partial audio support. You receive the full file only after synthesis completes.
How do I handle texts longer than 4096 characters?
Split your text into parts of up to 4096 characters. Send each part via POST to /v1/audio/speech. Join the returned audio files to create the final output. Requests process sequentially, so queueing may occur under load.
Which models are available?
Two models are available: tts-1 and tts-1-hd. Both use the same engine and pricing. Select your preferred model in the request body. The choice does not affect the cost per character.
Is there a limit on requests per minute?
Yes, the limit is 60 requests per minute per key. New accounts start with 10 requests per minute until the first top-up. Exceeding this limit may result in queued processing or temporary rejection.
How do I change my API key?
Issue a new key from your dashboard. The old key stops working immediately upon issuing the new one. You can generate a new key at any time. Ensure your application updates to use the new key.
What audio formats are supported?
Supported formats are mp3, wav, opus, flac, and pcm. Specify your choice in the response_format field. The API returns the audio file in the requested format within the HTTP response body.
Can I use the API with Python or Node.js?
Yes. Use the official OpenAI SDKs for Python or Node.js. Configure the base_url to https://api.win66ok.com/v1. Pass your Bearer token in the Authorization header.
Does the API return metadata with the audio?
The response contains the audio file. Request metadata like time, characters, and status are kept for billing purposes but are not embedded in the audio file. Check the HTTP response headers for status details.
How do I detect errors in the response?
Check the HTTP status code and response body. Failed requests are free, and charges are returned. If synthesis fails, the API returns an error object. Inspect the response for error codes and messages.
Can I specify the language explicitly?
Yes. Use the optional language field with an ISO code. If omitted, the API guesses the language from the script. Latin text defaults to English, so set language explicitly for non-English Latin-script text.
What happens if the rate limit is exceeded?
Requests are processed sequentially and may wait in a queue. If the limit is exceeded, requests might be delayed or rejected. The limit is 60 requests per minute after top-up, or 10 before.
First request
curl
curl https://api.win66ok.com/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.win66ok.com/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.win66ok.com/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 |
Authentication
Secure your API access by including a Bearer token in the Authorization header of every request. This key authenticates your account and tracks usage against your balance.
Bearer token authorization
Include the header Authorization: Bearer tts-... with your unique key. The API validates this token to authorize speech generation requests.
- Format:
Authorization: Bearer YOUR_API_KEY - Include with every
POSTandGETrequest
One active key per account
Each account maintains a single active API key. This simplifies credential management for your medical application's integration.
Regenerate key instantly
Issue a new key from your dashboard at any time. The previous key stops working immediately, ensuring tight security without downtime.
Speech Endpoint
The core synthesis operation is performed via a single POST request to the /v1/audio/speech endpoint. This endpoint accepts your clinical text and converts it into a downloadable audio file, serving as the primary interface for generating patient education materials or audio guides.
You send a JSON payload containing the text, selected voice, and desired audio format. The system processes the request and returns the synthesized audio directly in the response body, allowing seamless integration into your medical application's workflow.
For texts exceeding 4096 characters, split your content into smaller chunks and join the resulting audio files. This ensures consistent delivery and prevents truncation during synthesis.
POST /v1/audio/speech
Send a POST request to https://api.win66ok.com/v1/audio/speech. This is the only endpoint needed for generation. It handles the conversion of your input text into spoken audio.
Include your API key in the Authorization header as a Bearer token. Ensure the request body strictly follows the required JSON structure to avoid parsing errors.
- Endpoint:
POST https://api.win66ok.com/v1/audio/speech - Method: POST
- Content-Type: application/json
JSON body request
Structure your request with the model, input, voice, and response_format fields. The input field accepts up to 4096 characters of text. Spaces and punctuation count toward this limit.
You can optionally specify a language ISO code to ensure correct pronunciation for non-English clinical terms. If omitted, the system guesses the language, defaulting to English for Latin script.
Supported models are tts-1 and tts-1-hd, which use the same engine and pricing. Adjust the speed parameter between 0.25 and 4.0 to fit your presentation style.
model: "tts-1" or "tts-1-hd"input: string (max 4096 chars)voice: one of 8 presetsresponse_format: mp3, wav, opus, flac, or pcmspeed: float (0.25–4.0)language: optional ISO code
Returns audio file
Upon successful synthesis, the response body contains the raw audio data in your chosen format. There is no intermediate file storage; the audio is returned directly in the response.
If the request fails, the charge is returned in full. Check the HTTP status code to determine if you need to retry or adjust parameters like text length or voice selection.
The generated audio includes an inaudible watermark to identify it as synthetic speech, which is useful for compliance in patient education contexts.
- Returns raw audio bytes
- Format matches
response_format - Inaudible synthetic watermark included
- Failed requests are free
OpenAI SDK Compatibility
Our API mirrors the OpenAI speech endpoint structure, allowing teams to integrate quickly without learning a new protocol. You can use the official OpenAI SDKs by simply adjusting the base URL to point to our infrastructure.
This compatibility ensures that existing code patterns remain valid while leveraging our medical-grade audio synthesis capabilities.
The request shape is identical to OpenAI’s, meaning you only need to update the endpoint configuration. This reduces integration time for product teams building medical applications.
Use official OpenAI SDKs
Leverage the established OpenAI client libraries directly. This allows your development team to use familiar tools and patterns, minimizing the learning curve for integrating text-to-speech into your medical app.
Bullets
Change base_url to api.win66ok.com
Update the SDK configuration to use https://api.win66ok.com/v1 as the base URL. This directs requests to our processing cluster while maintaining standard compatibility.
Bullets
Same request shape as OpenAI
Send JSON bodies with model, input, voice, and response_format fields exactly as defined for the OpenAI speech endpoint. No custom payload structure is required for standard synthesis tasks.
Bullets
Request Parameters
Configure the synthesis request by selecting a model, providing the source text, and choosing a voice preset. Each API call processes a single chunk of text, so longer documents must be split into segments of 4,096 characters or fewer before submission.
Model: tts-1 or tts-1-hd
Both models use the same underlying engine and pricing tier. Select tts-1 or tts-1-hd; both use the same engine and pricing. The choice does not affect the character count or rate limits.
Input: text up to 4096 chars
Send your clinical text or guide content in the input field. The limit is strictly 4,096 characters per request, including spaces and punctuation. For lengthy patient leaflets, split the content into multiple requests and join the resulting audio files.
Voice: select from 8 presets
Choose from eight distinct voices. Select a voice ID from the available presets. If your text is in a non-English Latin script, explicitly set the language parameter to ensure accurate pronunciation.
- Female: aria, nova, luna, sage
- Male: felix, milo, atlas, orion
- Supports 23 languages including English, Spanish, German, French, Arabic, Chinese, Danish, Dutch, Finnish, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Swahili, Swedish, and Turkish.
Response Formats
Select the response_format field in your JSON payload to determine how the synthesized audio is returned. Choose from MP3, WAV, Opus, FLAC, or PCM based on your application's storage and playback requirements.
MP3, WAV, Opus, FLAC, PCM
The API supports five standard audio formats. MP3 offers compressed efficiency, while WAV and FLAC provide lossless quality. Opus is ideal for low-bandwidth scenarios, and PCM provides raw uncompressed data.
- MP3: Compressed, widely compatible
- WAV: Lossless, uncompressed
- Opus: Efficient, low bitrate
- FLAC: Lossless compression
- PCM: Raw, uncompressed data
Standard audio formats
All selected formats are delivered as complete audio files in the response body. This ensures compatibility with existing medical audio players and patient education platforms without requiring custom decoders.
No streaming format
The API does not support streaming or WebSocket connections. Audio is generated entirely before being returned. For long texts, split input into chunks under 4096 characters and join the resulting files.

Rate Limits
Rate limits protect service stability during peak usage. Your API key allows up to 60 requests per minute once funded. This limit applies globally to your key, so monitor usage if multiple services call the API simultaneously.
All requests are processed sequentially. Under heavy load, synthesis may wait in a queue before starting. This ensures consistent audio quality but can increase latency for burst traffic.
60 requests per minute
After topping up, your key supports 60 requests per minute. Exceeding this limit returns a 429 status code.
- Limit resets every 60 seconds.
- Applies per API key, not per IP address.
10 requests before first top-up
New accounts start with a limit of 10 requests per minute. This allows testing the API without immediate payment. Once you top up, the limit increases to 60 requests per minute.
- Check your dashboard for current limits.
- Limits update immediately after top-up confirmation.
Queued processing under load
Requests are processed one after another. If many requests are submitted simultaneously, they queue up. This ensures reliable synthesis but may delay response times during high traffic.
- No priority queues available.
- Estimated wait time varies by load.
Voices Endpoint
The /v1/voices endpoint provides a programmatic way to discover available audio profiles for your medical application. Use GET /v1/voices to retrieve a JSON list of all supported voices, their IDs, and associated metadata. This allows your frontend or backend to dynamically populate voice selection menus without hardcoding values.
Each voice preset is a standard audio profile. You can filter results by language to ensure the generated audio matches the target audience's linguistic needs. The endpoint returns the full catalog of 8 presets, including female voices like Aria and Nova, and male voices like Felix and Milo.
GET /v1/voices
Send a GET request to /v1/voices with your Bearer token. The response returns a JSON array of voice objects, each containing an ID, name, and description. This data helps you map clinical text types to appropriate voice tones, such as using Atlas for neutral news-style updates or Luna for soft storytelling.
The endpoint does not require a body. Simply authenticate with your API key to receive the current list. Since voices are static presets, the list rarely changes, but you should still check it periodically for any updates.
- Returns JSON array of voice objects
- Includes ID, name, and gender metadata
- No request body required
- Authenticates via Bearer token
List available voices
The API supports 8 distinct voice presets designed for clear speech. Female voices include Aria (warm narrator), Nova (upbeat), Luna (soft storytelling), and Sage (calm instructional). Male options include Felix (energetic), Milo (friendly), Atlas (neutral news), and Orion (deep documentary).
Each voice can speak all 23 supported languages, including English, Spanish, German, and French. You can select the voice that fits your context, such as using Sage for instructional guides or Orion for documentary-style reviews.
- 8 presets available
- 4 female, 4 male voices
- All voices support 23 languages
- No custom cloning available
Check language support
While any voice can speak any of the 23 supported languages, you should explicitly set the language parameter in your speech request for non-English Latin-script text. This ensures accurate pronunciation and avoids defaulting to English.
Supported languages include Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish. Languages like Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, and Bengali are not supported.
- 23 languages supported
- Language guessing defaults to English
- Explicit language code recommended
- No SSML or phoneme support
Error Handling
Handling API responses correctly ensures your medical audio generation pipeline remains robust. Our service returns standard HTTP status codes to indicate success or failure, allowing your application to log issues and trigger appropriate alerts without manual intervention.
Standard HTTP error codes
Use 200 for successful audio generation. Non-200 codes indicate issues like invalid keys (401) or malformed JSON (400). Check the response body for a detailed error message to diagnose the cause quickly.
Free retry on failure
If synthesis fails due to a transient server error, you are not charged. The API returns a non-200 status code, and any attempted charge is reversed automatically. You can safely retry the request without worrying about double-billing.
Check input length limits
Each request supports up to 4096 characters. Exceeding this limit returns a 400 error. For longer clinical notes, split the text into segments, generate audio for each, and join the files. Remember that spaces and punctuation count toward this limit.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. We are simplifying complex medical data for our patient guides today.
23 languages
Any voice speaks any of these languages.
Sources and further reading
- Wikipedia
- LibriTTS-R paper (arXiv 2305.18802)
- TRON developer hub: TRC-20
- OpenAI API reference: create speech
- W3C WAI: making audio and video accessible
- ISO 639 language codes
- curl documentation
- openai-node on GitHub
- openai-python on GitHub
- Creative Commons Attribution 4.0
- FFmpeg documentation
- LibriTTS-R corpus (OpenSLR 141)
