API Documentation for VTuber Text-to-Speech

By StreamVoice editorial team · Updated 2026-11-18

This documentation provides a complete reference for the VocalVibe text-to-speech API, designed specifically for VTubers and streamers who need reliable audio generation for VODs and live overlays. You will find precise details on authentication, request parameters, and response formats to integrate synthesis directly into your streaming workflows.

The guide covers essential endpoints, rate limits, and OpenAI SDK compatibility, enabling you to automate narration efficiently. Whether you are generating short clips or long-form content, this reference ensures you understand the technical constraints and capabilities of the API for consistent voice assets.

API Documentation for VTuber Text-to-Speech

Frequently asked questions

How do I get an API key?

Visit the /get-api-key/ page to sign up using Google or an email and password. Your account page displays your active API key, current balance, and usage statistics. You can also issue a new key at any time, which immediately invalidates the previous one.

Is the OpenAI SDK fully compatible?

Yes, the request shape matches the OpenAI speech endpoint. You can use the official OpenAI SDKs by changing the base_url to https://api.wa55thai.com/v1 and providing your site-specific key. This allows seamless integration without needing a custom library.

What is the maximum text length?

Each request supports up to 4096 characters of input text. For longer texts, you must split the content into chunks of this size and join the resulting audio files. Spaces and punctuation count toward the character limit.

Can I send multiple voices in one request?

No, each request accepts only one voice preset from the eight available options. To use different voices, you must send separate requests for each segment and concatenate the resulting audio files manually.

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 under load, your request may wait in a queue. Failed requests are free.

What happens if the API is down?

If synthesis fails, the charge is returned in full. There is no SLA or uptime guarantee, so availability is not contractually guaranteed. You should implement retry logic in your application to handle temporary service interruptions.

Do I need to install a specific library?

No, you can use the official OpenAI SDK or plain HTTP requests. There is no proprietary SDK or mobile library required. Simply point your HTTP client to the API endpoint with the correct authentication header.

Can I use this API in Python?

Yes, you can use the official OpenAI Python SDK by configuring the base_url to https://api.wa55thai.com/v1. Alternatively, you can send standard HTTP POST requests using any Python HTTP library like requests.

How do I specify a language?

Include the optional 'language' field with an ISO code in your request body. If omitted, the system guesses the language from the script, defaulting to English for Latin text. Explicitly setting it ensures accuracy for non-English languages.

Is SSML supported in the input?

No, SSML is not supported. The input field accepts plain text only. You cannot use phoneme dictionaries, custom pronunciation lexicons, or emotion tags. The API focuses on straightforward text-to-speech conversion without markup complexity.

What is the default response format?

You can specify other formats like wav, opus, flac, or pcm via the 'response_format' field. All generated files contain an inaudible watermark marking them as synthetic speech.

Can I stream audio in real-time?

No, streaming and WebSocket support are not available. The API returns the complete audio file in the response after synthesis. You must wait for the full generation process to complete before receiving the data.

How do I renew my API key?

You can issue a new key at any time from your account page. The new key becomes active immediately, and the old one stops working at once. This allows you to rotate keys without downtime.

Are there SDKs for mobile?

No, there is no official mobile SDK. You can use the standard HTTP API or the OpenAI SDKs, which are compatible with mobile platforms. Simply integrate the HTTP client into your mobile application.

First request

curl

curl https://api.wa55thai.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.mp3

Python (openai)

from openai import OpenAI

client = OpenAI(base_url="https://api.wa55thai.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.wa55thai.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
ariafemale
novafemale
lunafemale
sagefemale
felixmale
milomale
atlasmale
orionmale
language
arالعربية
zh中文
daDansk
nlNederlands
enEnglish
fiSuomi
frFrançais
deDeutsch
elΕλληνικά
heעברית
hiहिन्दी
itItaliano
ja日本語
ko한국어
msBahasa Melayu
noNorsk
plPolski
ptPortuguês
ruРусский
esEspañol
swKiswahili
svSvenska
trTürkçe

Authentication

Sound wave illustration for: Authentication

To authenticate your requests, include your unique API key in the header of every call sent to https://api.wa55thai.com/v1. This ensures that your account is correctly identified for billing and rate limit tracking.

Each account is restricted to one active key at any given time. You can generate a new key at any moment via your dashboard, which immediately invalidates the previous one, ensuring tight control over your access credentials.

Bearer Token Format

Bearer Token Format

Include the header Authorization: Bearer tts-... with your specific key string. The prefix tts- distinguishes these keys from other potential identifiers.

Single Active Key

Single Active Key

Only one key is active per account. If you issue a new key, the old one stops working instantly, preventing concurrent use by different services.

Key Rotation Process

Navigate to /get-api-key/ to generate a new key. Update your streaming or VOD generation scripts immediately to avoid service interruption during the switch.

Endpoint Overview

Sound wave illustration for: Endpoint Overview

The VocalVibe API centers on three core endpoints for VTuber workflow automation. The primary endpoint handles audio generation, while the companion endpoints provide metadata for voice selection and model verification.

POST /v1/audio/speech

Send text and receive audio via JSON. Support for tts-1 and tts-1-hd models, 8 voice presets, and 5 formats.

GET /v1/voices

Retrieve available voices, supported languages, formats, and current pricing details. Essential for dynamic UI integration.

GET /v1/models

List available models and their specific capabilities. Verify engine status before generating assets for VODs.

Request Parameters

Sound wave illustration for: Request Parameters

The API accepts plain text input with a strict limit of 4096 characters per request. Spaces and punctuation count toward this total. For longer scripts, split the text into chunks and join the resulting audio files sequentially.

You must specify one of eight available voices. Each voice has a distinct tone, from warm narration to energetic promos. The system also allows optional speed adjustment and format selection to fit your stream’s needs.

Input Text Limit

Each request supports a maximum of 4096 characters, including spaces and punctuation. If your script exceeds this, divide it into smaller segments and concatenate the output audio files. Short phrases may take a few seconds to generate, while longer texts process at roughly real-time speed.

  • Maximum 4096 characters per request
  • Spaces and punctuation count as characters
  • Split and join for longer content

Voice Selection

Choose from eight preset voices: Aria, Nova, Luna, Sage, Felix, Milo, Atlas, or Orion. Each voice is optimized for specific content types, such as storytelling or news delivery. The voice parameter expects the exact name string. You can also optionally set the language field using an ISO code to ensure correct pronunciation for non-English text.

If the language is not specified, the system guesses it from the script. Latin script defaults to English, so explicitly set the language for other Latin-based languages like Spanish or German to avoid mispronunciation.

  • 8 preset voices available
  • Voice names: Aria, Nova, Luna, Sage, Felix, Milo, Atlas, Orion
  • Optional ISO language code

Speed and Format

Adjust playback speed between 0.25 and 4.0 using the speed parameter. This allows you to match the pacing of your live stream or VOD edits. Choose your preferred audio format from mp3, wav, opus, flac, or pcm. MP3 is recommended for general use, while WAV offers lossless quality for editing.

The response returns the audio file directly in the body. Ensure your client handles binary data correctly. No additional formatting parameters like SSML are supported, keeping the API simple and fast for automated workflows.

  • Speed range: 0.25 to 4.0
  • Formats: mp3, wav, opus, flac, pcm
  • Direct binary audio response

Response Formats

Sound wave illustration for: Response Formats

The API returns the synthesized audio directly in the response body, eliminating the need for polling or external storage lookups. This direct delivery method ensures that your application receives the complete audio asset immediately upon successful synthesis, streamlining workflows for VOD narration and live overlay generation.

Audio File Delivery

Generated audio is returned in the HTTP response body, allowing for file saving without intermediate storage steps. This design supports rapid iteration for streamers generating short phrases or longer narration segments efficiently.

MP3, WAV, OPUS, FLAC, PCM

Select your preferred format via the response_format field. MP3 offers efficient compression for web delivery, while WAV and FLAC provide lossless quality for archival. PCM is available for raw audio processing, and OPUS suits low-bandwidth live streams.

  • MP3: Standard compression for web and VODs.
  • WAV: Lossless quality for professional editing.
  • OPUS: Optimized for low-bandwidth delivery.
  • FLAC: Lossless compression for archival storage.
  • PCM: Raw audio for custom processing.

Error Response Structure

Errors return standard HTTP status codes (4xx, 5xx) with a JSON body detailing the issue. Failed synthesis requests are free, ensuring you are not charged for errors, and the response includes specific error codes for easy debugging in your automation scripts.

Rate Limits

Sound wave illustration for: Rate Limits

Rate limits protect API stability and ensure fair usage across all VTuber and streamer accounts. Understanding these constraints helps you plan your narration workflows without unexpected interruptions during live streams or VOD production.

Requests are processed sequentially, so under load a request may wait in a queue.

60 Requests Per Minute

Once your account is active and topped up, you can make up to 60 requests per minute. This limit applies per API key and is sufficient for generating most short-form content like video clips or stream overlays in rapid succession.

  • Standard limit for active, funded accounts
  • Per API key, not per IP address
  • Resets every 60-second window

10 Requests Before Top-Up

New accounts or those without sufficient balance start with a lower limit of 10 requests per minute. This ensures basic stability before scaling up usage. You can top up via USDT (TRC-20) to immediately increase this to 60 requests per minute.

  • Applies to accounts with low or zero balance
  • Increases to 60 req/min after top-up
  • Top-ups are credited within minutes

Queue Behavior Under Load

Requests are processed sequentially. Under heavy load, your request may wait in a queue before synthesis begins. For real-time needs, consider pre-generating assets during off-peak hours.

  • Sequential processing per key
  • Queued requests are not charged until started
  • Typical speed: ~25 chars/sec for long texts
Rate Limits

OpenAI SDK Compatibility

Sound wave illustration for: OpenAI SDK Compatibility

VocalVibe’s API mirrors the OpenAI speech endpoint structure, allowing VTuber developers to integrate seamlessly using existing OpenAI SDKs. By simply adjusting the base_url to https://api.wa55thai.com/v1, you can leverage standard libraries without rewriting core logic. This compatibility ensures that scripts using the OpenAI SDK work with minimal configuration changes.

Base URL Modification

To direct requests to VocalVibe, update your SDK configuration to point to https://api.wa55thai.com/v1. This single change routes all standard speech synthesis calls to our infrastructure while maintaining the familiar request shape.

Standard SDK Usage

Use the official OpenAI SDK (or compatible HTTP clients) with your API key. Pass parameters like model, voice, and input exactly as documented. The SDK handles authentication and JSON serialization automatically, simplifying integration for stream automation tools.

No Custom SDK Required

We do not provide a proprietary SDK. Our design follows industry standards, so any language with an OpenAI-compatible client works. This avoids vendor lock-in and lets you use the same code for testing and production.

  • No need to install VocalVibe-specific packages
  • Works with Python, Node.js, and other OpenAI SDK languages
  • Standard JSON request/response format

Error Handling

Sound wave illustration for: Error Handling

The API returns standard HTTP status codes to indicate request outcomes. Use these codes to structure your retry logic and error handling routines effectively.

Common HTTP Errors

Errors such as 400 (Bad Request) or 401 (Unauthorized) provide specific details in the response body. Check the code and message fields to identify issues like invalid characters or missing authentication headers.

Failed Request Refunds

If synthesis fails, the charge is returned in full. You are only billed for successful audio generations.

Rate Limit Responses

When exceeding 60 requests per minute, the API returns a 429 Too Many Requests status. Requests processed before the limit are charged; failed requests are free.

  • Limit: 60 requests/minute per key
  • Pre-top-up limit: 10 requests/minute
  • Status code: 429

Curl Example

Sound wave illustration for: Curl Example

This section demonstrates how to send a text-to-speech request using the standard curl command. It shows the exact JSON structure required by the POST /v1/audio/speech endpoint, including model, voice, and format parameters.

The example validates the response, ensuring the audio file is correctly generated. This workflow is essential for VTubers automating narration for VODs or live overlays without managing complex voice engines.

Basic Speech Request

Send a POST request to the API base URL with your Bearer token. Replace YOUR_API_KEY with your key from /get-api-key/.

The command below generates a short clip using the 'tts-1' model and 'aria' voice in English.

  • curl -X POST https://api.wa55thai.com/v1/audio/speech \
  • -H "Authorization: Bearer YOUR_API_KEY" \
  • -H "Content-Type: application/json" \
  • ` -d '{"model": "tts-1", "input": "Hello, I am a VTuber.", "voice": "aria", "response_format": "mp3"}'`

JSON Body Structure

The request body must include model ("tts-1" or "tts-1-hd"), input (up to 4096 characters), and voice (one of 8 presets).

response_format can be mp3, wav, opus, flac, or pcm. Optional fields include speed (0.25–4.0) and language (ISO code).

Response Validation

A successful request returns an audio file in the specified format. Failed requests are free, with charges returned in full.

Ensure the response code is 200. If the text exceeds 4096 characters, split it into parts and join the audio files.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. This flexibility is crucial for creators who produce multilingual clips or engage with international communities.

Avatar of the voice aria
ariafemale
Avatar of the voice nova
novafemale
Avatar of the voice luna
lunafemale
Avatar of the voice sage
sagefemale
Avatar of the voice felix
felixmale
Avatar of the voice milo
milomale
Avatar of the voice atlas
atlasmale
Avatar of the voice orion
orionmale

23 languages

Any voice speaks any of these languages.

Sources and further reading

  1. Wikipedia
  2. FFmpeg documentation
  3. W3C WAI: making audio and video accessible
  4. openai-node on GitHub
  5. IETF RFC 7845: Ogg Opus
  6. openai-python on GitHub
  7. curl documentation
  8. LibriTTS-R corpus (OpenSLR 141)
  9. LibriTTS-R paper (arXiv 2305.18802)
  10. LibriVox public-domain audiobooks
  11. MDN: Web Speech API
  12. Python documentation

More on this site