Frequently asked questions
How do I get an API key?
Sign up at https://559x.info/get-api-key/ using Google or email. You receive one active key per account. You can issue a new key anytime, which instantly invalidates the old one. The dashboard displays your key, balance, trial, characters left, usage, and a ready curl example.
Can I use the OpenAI SDK with this API?
Yes. The request shape matches the OpenAI speech endpoint. Simply change the base URL to https://api.559x.info/v1 and use your API key. The official OpenAI SDKs work directly without modification.
What is the base URL for the API?
The base URL is https://api.559x.info/v1. Use this for all requests, including the speech endpoint POST /v1/audio/speech and the voices endpoint GET /v1/voices.
Which audio formats are supported?
Supported formats are mp3, wav, opus, flac, and pcm. Specify the format using the response_format field in your request. All formats are generated from the same engine.
What are the rate limits?
Limits are 60 requests per minute per key. Before your first top-up, the limit is 10 requests per minute. Requests are processed sequentially, so queues may form under load.
How do I handle errors?
Failed requests are free; charges are returned in full. Monitor your dashboard for usage and status. If synthesis fails, you are not billed for those characters.
What is the maximum text length?
Each request accepts up to 4096 characters in the input field. Spaces and punctuation count toward this limit. Longer texts must be split into chunks of this size.
How do I split long texts?
Split your text into parts of up to 4096 characters. Send each part as a separate request. Then join the returned audio files to create the final narration.
Do I need to install any specific libraries?
No specific library is required. Use the official OpenAI SDK by changing the base URL, or make standard HTTP requests. No proprietary SDK or mobile library is needed.
Is the API RESTful?
Yes. It uses standard HTTP methods. Send a POST request to /v1/audio/speech for synthesis. Use GET /v1/voices to list available voices, languages, and formats.
How do I authenticate requests?
Include your API key in the Authorization header as Bearer tts-... . One active key is issued per account. Replace it with a new key to invalidate the old one.
What happens if I exceed the rate limit?
Requests are processed sequentially. Under load, a request may wait in a queue. The limit is 60 requests per minute after top-up, or 10 before.
Can I use the API in a browser?
Yes, via standard HTTP requests or the OpenAI SDK. Include your API key in the Authorization header. Note that exposing your key in client-side code is possible but less secure.
Is there a sandbox environment?
No separate sandbox environment exists. Use the same production base URL. You can test with your free trial credit of $0.50, valid for 7 days after Google sign-in.
First request
curl
curl https://api.559x.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.559x.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.559x.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
Visit the /get-api-key/ page to create your account. You can sign in using your Google account for instant access, which includes a $0.50 trial credit valid for seven days. Alternatively, use an email and password to start without trial credit.
Sign Up
Account creation is quick and straightforward. Once registered, you receive a unique API key to access the TTS service. This key is the only credential required for all API requests.
Copy Key
After signing up, your API key is displayed on the dashboard. Copy it immediately to use in your requests. The key format begins with 'tts-' and is used for authentication.
- Key starts with 'tts-' prefix
- One active key per account
- Visible on the dashboard
Security Tips
Keep your API key secure. You can issue a new key at any time from the dashboard. When you do, the old key stops working immediately, ensuring your previous key cannot be used.
Quick Start with cURL
Generate narration directly from your script using a simple POST request to our speech endpoint. This approach requires no external SDKs, making it ideal for quick integration into your video editing pipeline or automation scripts.
Basic Request
Send your text via a JSON body to the https://api.559x.info/v1/audio/speech endpoint. You must include the model (tts-1 or tts-1-hd), your input text (up to 4096 characters), and a voice preset like nova or atlas.
- Method: POST
- Content-Type: application/json
Headers Required
Authentication is handled via the Authorization header. Use your unique API key prefixed with Bearer (e.g., Bearer tts-...) to identify your account and bill your balance correctly.
Response Format
Upon success, the API returns the audio file directly in the requested format (mp3, wav, opus, flac, or pcm). Failed requests return a JSON error object and are free.
OpenAI SDK Compatibility
VoiceCraft Studio’s API mirrors the OpenAI speech endpoint structure, allowing you to reuse existing code with minimal changes. By simply updating the base URL and authentication header, you can leverage the official OpenAI SDKs without learning a new library.
Base URL Change
Update your SDK’s base URL to https://api.559x.info/v1 and use your API key in the Authorization header. This ensures all requests route correctly to our TTS engine while maintaining the familiar request shape you already know.
- Base URL: https://api.559x.info/v1
- Auth: Bearer tts-<your-key>
SDK Installation
Install the standard OpenAI Python package using pip. No custom library is required, as our endpoint is fully compatible with the official client.
- pip install openai
Code Example
Initialize the client with your key and the custom base URL. Then call audio.speech.create() with your desired model, voice, and input text. The response contains the audio binary ready for immediate use in your YouTube workflow.
Available Voices
VoiceCraft Studio provides eight distinct voice presets, each designed for specific narration styles. You can choose from warm narrators, upbeat announcers, or deep documentary voices to match your video’s tone.
All voices support 23 languages, including English, Spanish, and Japanese. Any voice can speak any supported language, ensuring flexibility for global content creation without needing separate voice actors for each region.
List of 8 Voices
Select from eight presets based on your content style. Each voice is derived from licensed recordings (LibriTTS-R, CC BY 4.0) from public-domain audiobook readings.
The available voices are: Aria, Nova, Luna, Sage, Felix, Milo, Atlas, and Orion. Each offers a unique tonal character suitable for different genres.
- Aria: Warm, clear narrator
- Nova: Bright, upbeat
- Luna: Soft, storytelling
- Sage: Calm, instructional
- Felix: Energetic, promo
- Milo: Friendly, conversational
- Atlas: Neutral, news
- Orion: Deep, documentary
Voice Characteristics
Each voice has a specific tone (e.g., warm, bright, soft, calm, energetic, friendly, neutral, deep). Aria offers clarity for educational content, while Orion provides depth for documentary-style videos. Felix works well for promotional clips.
The voices are based on licensed recordings from LibriTTS-R (CC BY 4.0), derived from public-domain audiobook readings. This ensures a high-quality, natural sound without the uncanny valley effect.
Gender Options
The API includes four female voices (Aria, Nova, Luna, Sage) and four male voices (Felix, Milo, Atlas, Orion).
Gender does not restrict language capability. All eight voices can speak all 23 supported languages, allowing you to mix and match voices regardless of the target language.
Audio Formats
VoiceCraft Studio delivers high-fidelity audio in multiple formats to suit different editing workflows. MP3 is the standard choice for most YouTube uploads, offering a balance of quality and file size. WAV is available for lossless, uncompressed audio when maximum fidelity is required.
MP3 Support
Use MP3 for general video narration. It provides clear speech quality while keeping file sizes manageable for quick uploads and editing.
WAV Support
WAV offers uncompressed audio, ideal for professional editing software. Choose this format if you need lossless quality for post-production mixing.
FLAC and Opus
FLAC provides lossless compression, preserving audio detail while reducing file size compared to WAV. Opus is a supported format.

Rate Limits
VoiceCraft Studio uses a simple rate limit of 60 requests per minute per API key. This allows you to generate multiple audio clips quickly for your YouTube scripts without hitting a hard cap during normal usage.
60 Requests Per Minute
Once your account is active, you can make up to 60 synthesis requests every minute. This limit resets every 60 seconds and applies to your specific API key. If you exceed this, the API returns a 429 status code until the window clears.
Initial Limit
New accounts start with a lower limit of 10 requests per minute. This initial cap remains in place until you make your first top-up. After you add funds via USTRC-20, your limit automatically increases to the standard 60 requests per minute.
Rate Limit Headers
Every API response includes standard rate-limit headers. Check the rate-limit headers to adjust your request frequency.
Error Handling
The API returns standard HTTP status codes to indicate success or failure. Understanding these codes helps you troubleshoot issues quickly. Most errors are transient and resolve with a simple retry.
Failed synthesis requests are free, ensuring you only pay for successfully generated audio.
Common Errors
400 Bad Request typically indicates invalid JSON, missing required fields like input or voice, or an invalid API key. 429 Too Many Requests means you’ve exceeded the 60 requests per minute limit. Check your rate limit headers to manage your queue effectively.
- Ensure
inputis under 4096 characters. - Verify the
Authorizationheader format. - Check that
voicematches a valid preset.
Retry Logic
Implement exponential backoff for 429 and 5xx errors. Since requests are processed sequentially under load, brief pauses between retries prevent overwhelming the queue.
Status Codes
200 OK: Audio generated successfully. 400 Bad Request: Invalid input or key. 429 Too Many Requests: Rate limit exceeded. 500 Internal Server Error: Temporary service issue.
Text Length Limits
Each API call accepts up to 4096 characters of input text, including spaces and punctuation. This limit applies per request, so long scripts must be processed in chunks to stay within the boundary.
For extended narration, split your script into segments of 4096 characters or fewer. Process each segment individually and then concatenate the resulting audio files to create a complete, continuous track for your YouTube video.
4096 Characters Max
The input field strictly enforces a 4096-character limit per request. This count includes all spaces, punctuation, and special characters. If your script exceeds this, the API will return an error rather than truncating the text automatically.
Splitting Long Text
Divide your script into logical chunks that respect the 4096-character cap. You can split at paragraph breaks or natural pauses to ensure coherent audio segments. Each chunk generates a separate audio file via the API.
Joining Audio Files
After receiving the audio files for each chunk, use your video editor to concatenate them into a single track. This method allows you to handle scripts of any length while maintaining the API's performance and character limits.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. For YouTube creators, selecting the right vocal tone is crucial for retaining viewer attention.
23 languages
Any voice speaks any of these languages.
