Frequently asked questions
How do I get an API key?
Sign up on the /get-api-key/ page using Google or an email and password. Your account is specific to this site. The dashboard displays your active API key, current balance, and usage statistics immediately after registration, allowing you to start making requests without delay.
What is the base URL for the API?
The API base URL is https://api.wasp99.cc/v1. You send POST requests to https://api.wasp99.cc/v1/audio/speech for synthesis. Other endpoints like /v1/voices are also accessible under this base URL for retrieving available voices and model information.
How do I specify the language?
Include the optional language field with an ISO code in your request. If omitted, the system guesses the language from the script, defaulting to English for Latin text. Explicitly setting the language ensures accurate synthesis for non-English Latin-script texts.
What is the maximum character limit?
Each request supports up to 4096 characters of input text. For longer texts, split your content into parts of this size and join the resulting audio files. Spaces and punctuation count toward this character limit for accurate billing and processing.
Can I use the OpenAI SDK?
Yes, the official OpenAI SDKs work by changing the base_url to https://api.wasp99.cc/v1. Use your CartaTalk API key for authentication. The request shape matches the OpenAI speech endpoint, allowing seamless integration into existing workflows without needing a custom library.
What audio formats are supported?
Supported response formats include mp3, wav, opus, flac, and pcm. Specify your preferred format in the response_format field of the request body. This allows you to choose the optimal balance between file size and quality for your e-commerce video assets.
What are the rate limits?
The limit is 60 requests per minute per API key. Before the first top-up, the limit is 10 requests per minute. Requests are processed sequentially, so under load, a request may wait in a queue until processing resources are available.
How do I handle errors?
Failed requests are free, and the charge is returned in full. If synthesis fails, you receive an error response without being billed. Check the status code and error message to debug issues like invalid parameters or network problems before retrying.
Can I change the voice speed?
Yes, you can adjust the speed between 0.25 and 4.0 using the speed field. This allows you to control the pacing of the narration for product demos or explanations. The default speed is typically set to normal for standard playback.
What happens if the API is down?
We do not provide an SLA or uptime guarantee. If the service is unavailable, requests will fail, but you are not charged for failed synthesis attempts. Monitor the status and retry after a brief delay, as requests are processed sequentially.
Do I need to install a specific library?
No specific library is required. You can use plain HTTP requests or the official OpenAI SDK by adjusting the base URL. CartaTalk does not offer an official SDK, mobile SDK, or WordPress plugin.
How do I rotate my API key?
You can issue a new API key at any time from your account dashboard. The new key becomes active immediately, and the old key stops working at once. This allows for secure key rotation without interrupting your ongoing synthesis workflows.
Is JSON the only request format?
Yes, the API expects a JSON body for the POST request to /v1/audio/speech. The body includes fields like model, input, voice, and response_format. This standard format ensures compatibility with most programming languages and HTTP client libraries.
Can I generate multiple voices at once?
Each request generates audio for a single voice. To produce multiple voices, send separate requests for each voice preset. Requests are processed one after another, so generating multiple files may take time depending on the queue length and text length.
First request
curl
curl https://api.wasp99.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.wasp99.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.wasp99.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 |
Authentication
CartaTalk uses a single active API key per account for authentication. Generate your key via the /get-api-key/ dashboard page. The key identifies your account and deducts charges from your balance.
API Key Generation
Keys are created on the dashboard. Each account holds one active key. You can issue a new key at any time via the same page.
- Access via /get-api-key/ dashboard
- One active key per account
Bearer Token Usage
Include the key in the HTTP header: Authorization: Bearer tts-.... Use this header for all API requests. The key authorizes the request and links charges to your balance.
- Format:
Authorization: Bearer tts-<your_key> - Required for all endpoints
Key Rotation
Issue a new key from the dashboard to rotate. The old key stops immediately. This allows seamless rotation without interrupting active integrations.
- Old key invalidates instantly
- No downtime during rotation
Endpoint Overview
CartaTalk’s API provides three core endpoints for synthesizing and managing voice assets. The Speech Generation endpoint accepts text and configuration parameters to return audio files, while the Voices and Models endpoints expose available assets and engine details for integration planning.
These endpoints enable product teams to programmatically retrieve voice options, verify model capabilities, and generate consistent narration for e-commerce video workflows without manual overhead.
Speech Generation
The primary endpoint for converting text into audio. Send a POST request to generate speech using specified voice, format, and speed settings. The API returns the audio file directly in the response body.
Text is limited to 4,096 characters per request. For longer scripts, split the input and concatenate the resulting audio files to maintain consistent narration quality across product videos.
- Endpoint: POST /v1/audio/speech
- Returns: audio file in requested format
- Supports JSON body with model, input, voice, and speed parameters
Voices Listing
Retrieve the full list of available voices, languages, and supported formats. This endpoint helps you select the appropriate voice preset for your product’s tone, such as Aria for narrations or Felix for promos.
Each voice supports all 23 languages. If the language parameter is omitted, the system guesses the language based on the text script, defaulting to English for Latin script.
- Endpoint: GET /v1/voices
- Returns: list of 8 voice presets with metadata
- Includes supported languages and output formats
Models Endpoint
Query available TTS models. The API currently offers two models: 'tts-1' and 'tts-1-hd', which share the same engine and pricing structure.
Both models deliver identical synthesis quality, allowing you to choose based on SDK compatibility or specific model identifiers used in your integration workflow.
No additional capabilities differ between the two model identifiers.
- Endpoint: GET /v1/models
- Returns: available model IDs
- Models: 'tts-1' and 'tts-1-hd'
Request Parameters
Define the synthesis parameters to control voice characteristics, audio quality, and language output. The API accepts a JSON body with specific fields to tailor the generated audio to your e-commerce assets.
Model Selection
Select either tts-1 for standard quality or tts-1-hd for high-definition audio. Both models use the same underlying engine and pricing structure, allowing you to swap models without changing your integration logic.
Input Text Limits
Each request supports up to 4096 characters of input text. Spaces and punctuation count toward this limit. For longer product descriptions, split the text into chunks and join the resulting audio files in your workflow.
- Maximum 4096 characters per request
Voice and Language
Choose from 8 preset voices (e.g., aria, nova, felix) that support 23 languages. If the language field is omitted, the system guesses the language based on the script, defaulting to English for Latin text.
- 8 voice presets available
Response Formats
CartaTalk returns synthesized audio as binary data in the response body. The format is determined by the response_format field in your request, allowing you to choose the optimal balance between file size and quality for your e-commerce video assets.
MP3 Output
MP3 is the default and recommended format for most use cases. It provides efficient compression suitable for web delivery and quick integration into video editing pipelines without significant quality loss.
WAV Output
WAV delivers uncompressed PCM audio, ideal for high-fidelity production workflows where you need to apply further audio processing or mixing in your studio software before final export.
Other Formats
You can also request Opus, FLAC, or PCM. Opus offers high efficiency for low-bandwidth delivery; FLAC provides lossless compression; PCM provides raw uncompressed data. Choose based on your specific storage or processing needs.
- Opus: Best for low-bandwidth streaming
- FLAC: Lossless compression
- PCM: Raw uncompressed audio data
Rate Limits
CartaTalk enforces strict rate limits to ensure consistent synthesis quality for high-volume e-commerce workflows. Understanding these constraints helps product teams design reliable integration pipelines that avoid unexpected throttling during peak marketing campaigns.
Standard Limit
Each API key supports a maximum of 60 requests per minute. This limit applies uniformly regardless of the model selected. Plan your batch processing jobs accordingly to stay within this threshold.
Pre-Top-Up Limit
New accounts without an active top-up are restricted to 10 requests per minute. This lower limit ensures stable service during the initial trial phase before your first USDT transfer is confirmed.
Queue Behavior
Requests are processed sequentially. Under heavy load, a request may wait in a queue before synthesis begins. Short phrases typically take a few seconds, while longer texts generate at roughly real-time speed. Ensure your client handles HTTP delays gracefully rather than assuming immediate response.

Error Handling
The API returns standard HTTP status codes to indicate the outcome of your synthesis request. Understanding these codes allows your product team to programmatically handle failures without manual intervention, ensuring smooth integration into your video production pipelines.
Common Errors
A 400 Bad Request indicates invalid input, such as exceeding the 4096-character limit or using an unsupported voice. A 401 Unauthorized error means your API key is missing or invalid. A 429 Too Many Requests signal confirms you have hit the rate limit of 60 requests per minute.
- 400: Invalid JSON or character limit exceeded
- 401: Invalid or missing Bearer token
- 429: Rate limit exceeded
Retry Logic
For transient network issues, implement exponential backoff retries. Do not retry on 4xx errors unless they are due to rate limits (429). Since requests are processed sequentially, a 429 response indicates the queue is full; wait briefly before retrying to avoid further throttling.
- Retry 429 with exponential backoff
- Do not retry 400 or 401 errors
Billing Errors
If a synthesis fails due to insufficient balance or a temporary payment processing issue, the API returns a 402 Payment Required error. Failed requests are free, so no charge is applied if the error occurs before audio generation completes. Check your balance on /get-api-key/ to resolve the issue.
- 402: Insufficient funds or payment issue
- No charge for failed synthesis
SDK Integration
The official OpenAI SDKs work directly with CartaTalk by adjusting the base URL. This allows product teams to use familiar libraries for Python, Node.js, and other languages without rewriting integration logic. The request shape matches the OpenAI speech endpoint exactly.
You only need to change the base_url to https://api.wasp99.cc/v1 and provide your tts-... bearer token. This approach ensures consistent behavior while leveraging existing developer tooling within your engineering stack.
OpenAI SDK Usage
Leverage standard OpenAI client libraries for seamless integration. The API accepts identical request structures, allowing you to swap the endpoint without modifying your application’s core logic. This reduces friction for engineering teams already familiar with OpenAI’s ecosystem.
Base URL Configuration
Set the base URL to https://api.wasp99.cc/v1 in your SDK client configuration. Ensure your Authorization header includes the Bearer tts-... key. This single change directs all synthesis requests to CartaTalk’s infrastructure while maintaining standard SDK behavior.
Python Example
Use the openai Python package to generate audio. Initialize the client with the custom base URL and your API key. Call Audio.speech.create() with your model, voice, input text, and desired response format. This code snippet demonstrates a standard integration pattern.
```python from openai import OpenAI client = OpenAI( base_url="https://api.wasp99.cc/v1", api_key="tts-your-api-key-here" ) speech = client.audio.speech.create( model="tts-1", voice="aria", input="Product details synthesized for video asset.", response_format="mp3" ) speech.write_to_file("output.mp3") ```
cURL Examples
cURL commands provide a direct way to test synthesis without writing application code. Use these snippets to verify endpoint connectivity, format options, and parameter handling before integrating into your production pipeline.
Each example assumes a valid bearer token is available in your environment variables. Replace YOUR_API_KEY with your actual key from the dashboard.
Basic Request
Generate a standard MP3 file using the default voice. This command sends a short product description to the speech endpoint.
The response body contains the raw audio binary data, which you can redirect directly to a file for immediate playback or asset storage.
- Replace
YOUR_API_KEYwith your active key. - Output is saved as
output.mp3. - Default model
tts-1is used.
Speed Adjustment
Adjust the narration pace using the speed parameter. Values range from 0.25 to 4.0, with 1.0 being normal speed. This is useful for creating urgent promo audio or detailed instructional guides.
Slower speeds improve clarity for complex product features, while faster speeds reduce latency for high-volume notification assets.
- Set
speedto 1.5 for upbeat promos. - Set
speedto 0.75 for detailed tutorials. - Values outside 0.25–4.0 return an error.
Language Specification
Explicitly set the language field to ensure correct pronunciation, especially for non-English Latin text. The API guesses the language by default, but explicit tagging prevents errors in mixed-language content.
Use ISO 639-1 codes (e.g., de, fr, es) to match the target market of your online store.
- Use
language: "de"for German. - Use
language: "ja"for Japanese. - Omit for English defaults.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. There are no tiered volume discounts or minimum spend requirements.
23 languages
Any voice speaks any of these languages.
