Frequently asked questions
What is a TTS API?
A TTS API is a cloud service where you send text via a POST request and receive an audio file. It uses a standard JSON structure similar to the OpenAI speech endpoint, making it easy to integrate into Python scripts or WordPress pipelines without managing complex infrastructure.
How does it differ from pyttsx3?
Unlike local pyttsx3, this is a cloud API that generates high-quality audio files remotely. It supports 23 languages, multiple voice presets, and formats like MP3 and WAV. It offloads processing from your server, avoiding heavy local dependencies while providing consistent speech synthesis for your content.
Can I use my own API key?
Yes, you generate a unique API key when you sign up on our /get-api-key/ page. You use this key in the Authorization header of your requests. You can issue a new key at any time, which immediately invalidates the old one, ensuring secure access to your account.
What formats are supported?
We support MP3, WAV, OPUS, FLAC, and PCM formats. You specify the desired format in the response_format field of your request. This flexibility allows you to choose the best balance between file size and quality for your specific WordPress theme or blog audio player requirements.
Which languages are available?
We support 23 languages including English, Spanish, French, German, Japanese, and Chinese. Any voice can speak any of these languages. If you do not set the language parameter, the system guesses it from the script, defaulting to English for Latin text, so you can generate multilingual content easily.
How much does it cost?
Pricing is $10 per 1 million characters, or $0.01 per 1,000 characters. Spaces and punctuation count as characters. Failed requests are free, with charges returned in full. There are no monthly plans, seats, or minimum spends, making it cost-effective for occasional blog updates or high-volume content pipelines.
Is there a free trial?
Yes, signing in with Google gives you $0.50 of credit, valid for 7 days, which covers about 50,000 characters. Accounts created with email and password start without trial credit. This allows you to test the API quality and integration workflow before committing to a top-up via USDT.
How do I top up?
Top up using USDT on the TRON network (TRC-20) with a minimum of $5. Credits are automatically added to your balance within minutes after the transfer. We do not accept cards, PayPal, or subscriptions. Your balance does not expire, so you can top up whenever needed for your projects.
What is the character limit?
Each request supports up to 4,096 characters of input text. For longer texts, you can split them into parts and join the resulting audio files. This limit ensures efficient processing, and our typical speed is roughly real-time, generating about 25 characters of text per second of audio.
Can I clone voices?
No, we do not offer custom voice cloning or uploading your own voice. We provide 8 preset voices based on licensed recordings from LibriTTS-R and LibriVox. Each generated file carries an inaudible watermark marking it as synthetic speech, ensuring clarity about the audio source without requiring complex cloning setups.
Is streaming supported?
No, we do not support streaming, WebSocket, or real-time partial audio. You send a text request and receive the complete audio file in the response. This synchronous model is reliable for WordPress blogs and content pipelines where you need a finished audio file rather than a live stream.
Do you have an SLA?
No, we do not offer an SLA, uptime guarantee, or enterprise contracts. Requests are processed sequentially, so under load, a request may wait in a queue. This fits well for blogs where occasional delays are acceptable.
How is data used?
Input text is used only to produce the audio and is not used for training. Generated audio is returned in the response and not stored. We keep request metadata like time, characters, and status for billing purposes. Your content remains private and is not repurposed for our models.
How do I contact support?
Support is available by email only. We do not offer a phone number, live chat, or on-premise installation. For technical issues or billing questions, send an email to our support address. We aim to provide helpful, specific assistance for your WordPress and blog integration needs.
First request
curl
curl https://api.casicosta.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.mp3Why Python Bloggers Are Switching from pyttsx3
pyttsx3 relies on local system voices, which often sound robotic or vary wildly depending on the user’s operating system. By moving synthesis to the cloud, CodeCaster guarantees uniform, high-quality audio across every device, ensuring your blog’s audio experience feels professional rather than like a basic system notification.
Local vs. Cloud Processing
Local processing ties your audio quality to the listener’s machine, resulting in inconsistent voices. Cloud processing via our API delivers consistent speech regardless of the user’s device, ensuring your content sounds the same on every platform.
Scalability for High Traffic
When your blog goes viral, local CPU usage can spike, slowing down page loads. Our cloud API handles the synthesis, keeping your server resources free for content delivery.
Consistent Voice Quality
System voices change with OS updates and versions. With CodeCaster, you get predictable, high-fidelity audio every time. Whether you choose the warm narration of Aria or the energetic promo style of Felix, the quality remains stable across all your posts.
8 Studio-Quality Voices for Your Content
CodeCaster offers eight distinct voice presets, each rooted in licensed recordings from LibriTTS-R and public-domain audiobook readings. This ensures high-quality, consistent audio without the robotic artifacts often found in local TTS engines.
Choose from four female voices—Aria, Nova, Luna, and Sage—and four male voices: Felix, Milo, Atlas, and Orion. Each voice has a specific tone, from warm narration to energetic promos.
Every voice supports all 23 available languages. If you do not specify a language, the system guesses it from the text script, defaulting to English for Latin characters. For non-English Latin text, explicitly set the language parameter for accuracy.
Female Voices: Aria, Nova, Luna, Sage
Aria provides a warm, clear narrator style ideal for blog intros. Nova offers a bright, upbeat tone perfect for lively updates. Luna brings a soft, storytelling vibe for longer articles. Sage delivers a calm, instructional voice for tutorials.
These voices handle their preset styles naturally, ensuring your content sounds professional without requiring complex SSML markup.
- Aria: Warm, clear narrator
- Nova: Bright, upbeat
- Luna: Soft, storytelling
- Sage: Calm, instructional
Male Voices: Felix, Milo, Atlas, Orion
Felix is energetic and great for promotional content. Milo sounds friendly and conversational, suitable for personal blogs. Atlas provides a neutral, news-style delivery. Orion offers a deep, documentary tone for serious topics.
All male voices maintain clarity across different speeds and formats, ensuring your audio remains accessible whether listeners are on mobile or desktop.
- Felix: Energetic, promo
- Milo: Friendly, conversational
- Atlas: Neutral, news
- Orion: Deep, documentary
Linguistic Versatility
Each voice can speak any of the 23 supported languages, including Arabic, Chinese, French, German, Japanese, Spanish, and more. This flexibility allows you to maintain a consistent brand voice across multilingual content.
Automatic language detection works for most scripts. However, for non-English text using Latin characters, always set the language parameter to ensure accurate pronunciation and intonation.
23 Languages, One Simple API
CodeCaster supports 23 languages, covering most major global markets without requiring separate voice models. Whether you are writing in English, Spanish, or Japanese, the same API endpoint handles the synthesis.
This broad coverage ensures your blog content reaches diverse audiences with consistent audio quality, eliminating the need to manage multiple language-specific configurations or third-party services.
Support for Major Languages
We provide high-quality voices for Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish.
Each voice adapts naturally to the phonetics of the language, ensuring clear and natural-sounding audio for your readers.
- Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish
Automatic Language Detection
If you do not specify a language, the API guesses it from the text script. Latin script text defaults to English, while other scripts trigger the appropriate language model automatically.
This simplifies your Python scripts, as you can often omit the language parameter for standard content.
Explicit Language Setting
For non-English Latin-script text, you should explicitly set the language parameter to ensure accurate pronunciation and intonation.
This prevents the default English voice from mispronouncing foreign words, ensuring your blog audio sounds professional and native.
Formats for Every Player
CodeCaster lets you choose the audio format that best fits your WordPress blog’s performance needs. Whether you prioritize broad browser compatibility, lossless quality for archives, or minimal bandwidth usage, our API delivers the exact file type you require.
MP3 for Web Compatibility
MP3 is the universal standard for web audio, ensuring your blog posts play smoothly across all devices and browsers without additional plugins. It offers a balance between file size and sound quality for casual listening.
- Supported by all modern web browsers
- Ideal for standard blog audio players
- Optimized for quick loading on mobile networks
WAV for High Fidelity
WAV provides uncompressed, studio-quality audio perfect for archiving or professional presentations where sound fidelity is paramount. Choose this format if you need the rawest possible output from our TTS engine without any data loss.
Note that WAV files are significantly larger than MP3s, so consider your storage limits.
- Lossless audio quality
- No compression artifacts
- Best for professional archives
Opus and FLAC for Efficiency
Opus offers efficient compression for low-bandwidth environments, while FLAC provides lossless compression for smaller file sizes without quality loss. Use Opus for efficient delivery and FLAC when you want smaller files than WAV but retain full quality.
- Opus: High efficiency for streaming
- FLAC: Lossless compression
- Reduced bandwidth costs
How It Works: The Python Workflow
Generate audio from text by sending a POST request to the speech endpoint with your desired parameters. The API processes your input and returns the synthesized file, ensuring a seamless integration into your blog’s content pipeline without heavy plugins or slow page loads.
By utilizing the familiar OpenAI SDK structure, you can easily switch the base URL to our API endpoint. This allows you to leverage existing Python scripts and libraries, making the transition from local processing to cloud-based synthesis straightforward and efficient for WordPress creators.
Send Text via POST Request
Construct a JSON body containing the text input, chosen voice, and desired format. The endpoint accepts requests up to 4096 characters, allowing you to feed text directly into the synthesis engine.
- Endpoint: POST https://api.casicosta.cc/v1/audio/speech
- Auth: Bearer tts-... key in headers
- Input: plain text up to 4096 characters
Receive Audio File Instantly
Upon successful synthesis, the API returns the audio file in your requested format, such as MP3, WAV, Opus, or FLAC. This response allows you to store or embed the audio directly into your WordPress posts.
Integrate with OpenAI SDKs
The API mirrors the OpenAI speech endpoint structure, meaning you can use the official OpenAI Python SDK by simply updating the base_url to https://api.casicosta.cc/v1. This compatibility reduces boilerplate code and leverages existing developer knowledge for quick implementation.

Pricing That Scales with Your Blog
CodeCaster charges a flat $0.01 per 1,000 characters, meaning $10 for every million characters processed. This predictable, usage-based model ensures your audio costs grow linearly with your content volume, making it easy to budget for high-traffic blogs without unexpected surges.
Pay Per Character
Every character, including spaces and punctuation, counts toward your total. With a typical generation speed of roughly 25 characters per second, long-form articles remain cost-effective. Failed requests are free, so you only pay for successful audio synthesis.
No Monthly Fees
There are no monthly subscriptions, seats, or minimum spending requirements. You can pause usage entirely without penalty. Balances do not expire, allowing you to top up once and use funds over time as your blog grows.
- No recurring charges
- No minimum spend
- No expiring credits
Free Trial Available
Sign up with Google to receive $0.50 in free trial credit, enough for approximately 50,000 characters. This trial is valid for 7 days, giving you ample time to test voice quality and integration speed. Email-based accounts start without trial credit.
- $0.50 initial credit
- 7-day validity period
- Google sign-up required
Technical Reliability
CodeCaster ensures reliable audio generation for your WordPress pipeline through clear operational boundaries. Understanding rate limits and error states helps you maintain consistent content delivery without unexpected interruptions.
Rate Limits Explained
Your API key supports 60 requests per minute once funded. New accounts start with a limit of 10 requests per minute until the first top-up is processed.
Error Handling
If synthesis fails, the charge is returned in full. Failed requests incur no cost, ensuring you only pay for successfully generated audio files.
Data Privacy
Input text is used solely to produce the audio and is not used for training. Generated audio is returned in the response and not stored. Only request metadata (time, characters, status) is kept for billing purposes.
Quick Start Demo
Get your first audio file in minutes with CodeCaster’s lightweight API. The following examples demonstrate how to send text and receive synthesized speech using standard tools, ensuring seamless integration into your Python blog scripts.
Python Code Snippet
Use the official OpenAI Python SDK by pointing it to our base URL. Replace YOUR_API_KEY with your key from /get-api-key/.
- import openai
- client = openai.OpenAI(base_url="https://api.casicosta.cc/v1", api_key="YOUR_API_KEY")
- audio = client.audio.speech.create(model="tts-1", voice="nova", input="Hello from CodeCaster")
- with open("output.mp3", "wb") as f: f.write(audio.content)
cURL Example
Test the endpoint directly from your terminal. This command generates a 5-second MP3 clip using the 'nova' voice.
- curl -X POST "https://api.casicosta.cc/v1/audio/speech" \
- -H "Authorization: Bearer YOUR_API_KEY" \
- -H "Content-Type: application/json" \
- -d '{"model": "tts-1", "voice": "nova", "input": "Quick test"}' -o audio.mp3
Voice Selection Guide
Choose from 8 presets. For upbeat blog intros, use 'nova'. For calm narration, try 'luna'. All voices support 23 languages.
- nova: Bright, upbeat
- luna: Soft, storytelling
- atlas: Neutral, news
- orion: Deep, documentary
Frequently Asked Questions
Many WordPress creators still rely on local engines like pyttsx3, but cloud APIs offer scalable, consistent audio without server strain. CodeCaster provides a lightweight, character-based API that fits directly into your Python scripts, keeping your blog fast and your voices high-quality.
Unlike local libraries, our service handles the heavy lifting in the cloud. You get studio-quality voices, 23 languages, and standard formats like MP3 and WAV, all via a simple POST request that works with the familiar OpenAI SDK structure.
What is TTS API?
A Text-to-Speech API lets you send text via HTTP and receive an audio file. CodeCaster uses a standard endpoint compatible with the OpenAI SDK, making integration into your Python blog scripts simple.
How does it differ from pyttsx3?
pyttsx3 runs locally on your machine, which can slow down your site or limit voice quality based on your OS. Our cloud API offloads processing, ensuring consistent, high-fidelity audio regardless of your server’s specs.
Can I use my own API key?
Yes. Generate your unique key on the /get-api-key/ page. You can rotate keys anytime; the old one stops immediately upon issuing a new one.
What formats are supported?
We support MP3 for web compatibility, WAV for high fidelity, and Opus or FLAC for efficient storage. PCM is also available for raw audio needs.
Which languages are available?
We support 23 languages including English, Spanish, German, French, Japanese, and Arabic. Any voice can speak any supported language. Vietnamese, Indonesian, Thai, and Ukrainian are not yet supported.
How much does it cost?
Pricing is $10 per 1 million characters ($0.01 per 1,000 chars). Failed requests are free. There are no monthly fees or subscriptions.
Is there a free trial?
Yes, signing in with Google gives you $0.50 credit (about 50,000 characters) valid for 7 days. Email-only accounts start without trial credit.
How do I top up?
Top up via USDT on the TRON network (TRC-20). Minimum $5. Credits appear automatically within minutes of transfer. No cards or PayPal.
What is the character limit?
Each request supports up to 4,096 characters. For longer texts, split the text into parts and join the resulting audio files in your script.
Can I clone voices?
No, custom voice cloning is not offered. We provide 8 preset voices based on licensed recordings from LibriTTS-R and LibriVox.
Is streaming supported?
No, we do not support streaming or WebSocket audio. You receive the complete audio file after synthesis completes.
Do you have an SLA?
No, we do not offer an SLA, uptime guarantee, or enterprise contracts. Support is via email only.
How is data used?
Input text is used only to generate audio and is not used for training. Generated audio is returned in the response and not stored. Request metadata is kept for billing.
How do I contact support?
Support is available via email only. There is no phone number or live chat.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. However, understanding the underlying processing limits helps you avoid unexpected delays during peak traffic periods.
23 languages
Any voice speaks any of these languages.
