Frequently asked questions
What is the API endpoint?
Send your requests to POST https://api.cb333.info/v1/audio/speech. This endpoint accepts JSON bodies containing your text, voice selection, and format preferences. It follows the same request shape as the OpenAI speech endpoint, allowing you to use standard HTTP libraries or the OpenAI SDK by adjusting the base URL configuration.
How do I set the base URL for the OpenAI SDK?
Configure your OpenAI SDK client by setting the base_url to https://api.cb333.info/v1. Use your unique API key for authentication. This allows you to use the official OpenAI SDKs seamlessly with our TTS endpoint, ensuring compatibility with existing codebases while leveraging our specific voice models and pricing structure.
What are the required fields for a request?
You must provide the model ("tts-1" or "tts-1-hd"), input text (up to 4096 characters), and voice selection. While response_format and speed are optional, they allow customization. The language field is also optional; if omitted, the system guesses the language based on the text script, defaulting to English for Latin text.
How many voices are available?
We offer eight distinct voice presets: Aria, Nova, Luna, and Sage for female tones, and Felix, Milo, Atlas, and Orion for male tones. Each voice has a specific character, such as warm narration or energetic promo. All eight voices can speak any of the 23 supported languages, providing versatile options for your stories.
What audio formats can I choose?
You can select from mp3, wav, opus, flac, or pcm formats. These options cover various quality and compression needs. MP3 is efficient for web delivery, while WAV and FLAC offer lossless quality for professional editing. PCM provides raw audio data. Choose the format that best fits your distribution channel and storage requirements.
What is the character limit per request?
Each API request supports up to 4096 characters of input text. For longer stories, you should split the text into chunks of this size and join the resulting audio files. This ensures consistent processing. Short phrases may take a few seconds, while longer texts generate at roughly real-time speed.
How do I handle rate limits?
The limit is 60 requests per minute per key, or 10 per minute before your first top-up. Requests are processed sequentially, so high load may cause queuing. Monitor your usage via the dashboard. If you exceed limits, your requests may delay. Plan your batch generations accordingly to maintain smooth audio production workflows.
Can I change the voice after generating audio?
No, you cannot change the voice after generation. Each request produces audio with a specific voice preset. To use a different voice, you must send a new API request with the desired voice parameter. This allows you to generate multiple versions if needed, but the audio file itself is fixed upon creation.
How is the language detected?
If the language field is not set, the system guesses it from the text script. Latin script defaults to English. For non-English Latin text, explicitly set the language parameter. Supported languages include Arabic, Chinese, French, German, Japanese, Spanish, and others. Explicit setting ensures accurate pronunciation and intonation for your specific story content.
What happens if the API returns an error?
If synthesis fails, the charge is returned in full. Failed requests are free, so you are not penalized for errors. Check your input parameters, such as character limits or voice availability. Retry the request if necessary. This ensures you only pay for successful audio generations, protecting your budget during development and testing phases.
Is the API key secure?
Each account has one active API key. You can issue a new key at any time, which immediately invalidates the old one. Use the Bearer token in the Authorization header. Keep your key confidential to prevent unauthorized usage. The key provides access to your balance and usage data, so treat it like a password.
How do I rotate my API key?
You can issue a new API key at any time from your dashboard. Once a new key is generated, the old one stops working immediately. This allows you to rotate keys without downtime. Use the new key in your applications. This feature helps manage security by limiting the exposure of any single key.
What is the maximum speed setting?
The speed parameter accepts values between 0.25 and 4.0. This allows you to slow down narration for clarity or speed up content for brevity. Adjusting speed affects the duration of the generated audio. Ensure your pacing matches the story’s tone. Faster speeds may reduce naturalness, so test different settings for optimal results.
Can I use the API for commercial projects?
Yes, you can use the generated audio for commercial projects. The audio files are returned in the response and not stored by us. Input text is used only for synthesis. There are no specific usage restrictions mentioned. You pay per character used, making it scalable for any volume of commercial content creation.
First request
curl
curl https://api.cb333.info/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.cb333.info/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.cb333.info/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
Getting started with StoryWhisper is straightforward. You begin by creating an account on our site, which gives you immediate access to the API infrastructure needed to narrate children's stories and educational content. This first step unlocks your unique credentials for making voice requests.
Once registered, you will find your API key in the dashboard. This key authenticates your requests, allowing you to convert text into high-quality audio files directly from your code or tools.
Sign Up on the Site
Visit the /get-api-key/ page to create your account. You can sign up using Google for instant access or use a standard email and password. Both methods create an independent storefront account specific to cb333.info.
Google sign-ups include a free trial credit of $0.50, valid for seven days, which covers approximately 50,000 characters. Email-based accounts start without trial credit but allow immediate top-ups via USDT on the TRON network.
- Supports Google OAuth and email/password authentication
- Accounts are specific to cb333.info
- Free trial available for Google sign-ups
Locate Your Key
After logging in, the dashboard displays your active API key, current balance, and usage statistics. You can copy this key directly from the interface. It begins with the prefix 'tts-' and is required for all API calls.
If needed, you can issue a new key at any time. The previous key stops working immediately upon the creation of the new one, ensuring your credentials remain secure during rotation.
- Key format: Bearer tts-...
- One active key per account
- Instant revocation on key rotation
Secure Your Key
Treat your API key like a password. Include it in the Authorization header of your requests as 'Bearer <your-key>'. Avoid sharing it publicly in client-side code or version control systems.
Since each key is limited to 60 requests per minute, keeping it secure prevents unauthorized usage that could deplete your balance or trigger rate limits unexpectedly.
First Request with cURL
Send a POST request to the speech endpoint with your text and voice selection. The API returns an audio file directly in the response body, allowing you to save it locally.
You need a valid API key in the Authorization header and must specify the model, input text, and voice. This simple structure lets you generate narration for children’s stories or educational content with just a few lines of code.
Basic Syntax
Use cURL to send a JSON payload to https://api.cb333.info/v1/audio/speech. Include your Bearer token and the required parameters in the body. The endpoint accepts standard JSON formats compatible with the OpenAI SDK structure.
- POST https://api.cb333.info/v1/audio/speech
- Authorization: Bearer tts-your-api-key
- Content-Type: application/json
Required Fields
The request body must include the model identifier, the text input, and the voice preset. You can optionally set the response format, speed, and language. Text input is limited to 4096 characters per request; split longer stories into multiple calls.
- model: tts-1 or tts-1-hd
- input: your story text (max 4096 chars)
- voice: aria, nova, luna, sage, felix, milo, atlas, or orion
Response Format
A successful response contains the raw audio data. Failed requests return an error JSON object but do not charge your balance. Save the binary response to a file with the specified format extension for immediate playback in your app.
Using the OpenAI SDK
Since StoryWhisper uses the same request shape as the OpenAI speech endpoint, you can leverage the official OpenAI SDKs with minimal changes. This allows you to generate audiobooks for children's stories using familiar Python or JavaScript code structures without learning a new library from scratch.
Install the SDK
Install the official OpenAI Python package via pip. This provides the necessary classes to handle JSON requests and audio responses directly.
- pip install openai
Set Base URL
Configure the client to point to StoryWhisper’s API endpoint. Change the base_url to https://api.cb333.info/v1 so all requests route correctly through our infrastructure.
- base_url="https://api.cb333.info/v1"
Make Request
Call the audio.speech.create method with your API key, model, voice, and input text. The SDK returns the audio file bytes, which you can save as an MP3 or WAV for your storytelling project.
Available Voices
StoryWhisper offers eight distinct voice presets designed to bring children's stories and educational content to life. Each voice is built from licensed recordings, ensuring a high-quality, consistent narration style suitable for audiobooks and learning materials.
Female Voices
Aria provides a warm, clear narration ideal for classic fairy tales. Nova offers a bright, upbeat tone perfect for energetic stories. Luna delivers a soft, storytelling voice for gentle bedtime readings, while Sage is calm and instructional, excellent for educational content.
- Aria: warm, clear narrator
- Nova: bright, upbeat
- Luna: soft, storytelling
- Sage: calm, instructional
Male Voices
Felix brings an energetic, promo-style energy to engaging narratives. Milo provides a friendly, conversational tone for interactive stories. Atlas remains neutral and news-like for clear instructions, and Orion offers a deep, documentary voice for serious tales.
- Felix: energetic, promo
- Milo: friendly, conversational
- Atlas: neutral, news
- Orion: deep, documentary
Voice Selection Guide
Select Aria or Luna for traditional children's stories. Use Nova or Milo for interactive learning materials. Choose Atlas or Orion for clear, neutral narration. All voices support 23 languages, including English, Spanish, and German, allowing you to localize content easily.
Audio Formats
Choose the right format based on your distribution channel and quality needs. Our API supports five distinct audio formats, allowing you to optimize file sizes or preserve maximum fidelity depending on your specific use case for children’s stories or educational content.
Every generated file includes an inaudible watermark to identify it as synthetic speech, which is useful for content creators managing rights across multiple platforms without needing additional metadata tagging.
MP3
MP3 is the most widely supported format, ensuring compatibility with almost all web players, mobile apps, and podcast platforms. It offers a good balance between file size and audio quality.
- Best for web embedding and mobile apps
WAV
WAV provides uncompressed, high-quality audio perfect for professional editing or archival purposes. If you plan to further process the narration or need the highest fidelity for educational materials, this is the reliable choice.
Note that WAV files are significantly larger than MP3s, so consider storage implications for large libraries of stories.
- Uncompressed, high fidelity
OPUS, FLAC, PCM
OPUS offers excellent compression with high quality, suitable for modern streaming applications. FLAC provides lossless compression, retaining all audio data in a smaller file than WAV. PCM is raw, uncompressed audio data, useful for direct hardware integration or specific engineering workflows.
Select these formats when you need specific codec support or minimal processing overhead for your storytelling pipeline.
- OPUS: efficient streaming
- FLAC: lossless compression
- PCM: raw audio data

Rate Limits and Errors
Your API key allows 60 requests per minute, which is sufficient for most storytelling workflows. If you exceed this limit, requests will queue or return a 429 error. New accounts start with a lower limit of 10 requests per minute until the first top-up is processed.
60 Requests Per Minute
Each API call counts toward your minute limit. For longer stories, split your text into chunks of 4096 characters to stay within efficient request bounds. This ensures smooth generation without hitting hard limits.
Common Error Codes
429 Too Many Requests: You have exceeded the rate limit. Wait a minute or split your text into smaller chunks. 401 Unauthorized: Your API key is invalid or expired. Regenerate your key from the dashboard. 400 Bad Request: Missing required fields like model or voice. Check your JSON body.
- 429: Rate limit exceeded
- 401: Invalid API key
- 400: Missing required fields
Handling Quotas
To manage quotas effectively, monitor your usage in the dashboard. If you need higher throughput, consider splitting long texts into multiple requests. Failed requests do not consume your character balance.
Advanced Features
Beyond basic synthesis, the API offers precise control over voice pacing and language detection to ensure your stories sound exactly as intended. These features allow you to fine-tune the narration for educational clarity or dramatic effect without needing external tools.
Adjusting speed and explicitly setting languages ensures consistent quality across diverse content, from fast-paced fairy tales to calm bedtime stories, while handling long texts automatically.
Speed Control
Set the speed parameter between 0.25 and 4.0 to adjust the voice pace. Slower speeds enhance clarity for educational materials or young listeners, while faster speeds suit energetic storytelling. The default speed provides a natural, balanced narration style suitable for most use cases.
Adjustments are applied during synthesis.
- Minimum speed: 0.25x for slow, clear instruction
- Maximum speed: 4.0x for rapid, energetic delivery
- Default speed: 1.0x for natural narration
Language Specification
While the API guesses language from the script, explicitly setting the language field ensures accuracy for Latin-script text that isn't English. This is crucial for mixed-language stories or when using voices in their native tongues, such as speaking French with the Aria voice.
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.
If you omit the language, Latin text defaults to English, which may cause mispronunciation for other languages like German or Dutch.
Text Splitting
Each request accepts up to 4096 characters. For longer stories, split your text into chunks of this size and join the resulting audio files. This ensures consistent quality and avoids truncation.
The API processes requests sequentially, so longer texts may take time. Plan your splitting strategy to maintain narrative flow, keeping scene breaks or paragraph ends as natural split points.
Use this approach for full fairy tales or educational modules, ensuring each segment generates smoothly within the rate limits.
Data and Privacy
We prioritize your creative workflow by keeping your data private. Your input text is used strictly to generate the audio file and is never added to our training datasets. This ensures that your unique stories and educational materials remain yours.
The generated audio is returned in the response and is not stored on our servers after delivery. Only request metadata—such as timestamp, character count, and status—is retained for billing purposes, allowing you to track usage accurately without storing the actual content.
No Training Data
Your text is processed solely for synthesis. It is not used to train or improve our models, keeping your creative content distinct from our engine's development.
Audio Not Stored
Generated audio files are returned in the response and are not saved to our storage. Once delivered, the audio file exists only on your end.
This means your narrated stories are not archived in our database, ensuring you have full control over your audio assets.
Metadata Retention
We retain minimal metadata, including request time, character count, and status, strictly for billing and usage tracking.
This data helps you monitor your character usage without storing the actual text or audio content.
Metadata is kept only as long as necessary for accounting purposes.
- Timestamp
- Character count
- Request status
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Her upbeat nature makes complex information feel fun and accessible.
23 languages
Any voice speaks any of these languages.
