API Playground

Test TTS.ai API endpoints live in your browser. Generate code snippets in cURL, Python, and JavaScript.

Voice cloning requires an account and characters. Upload a reference audio sample and enter the text to clone.

Response

Click "Run Request" to see the response

Processing request...

200 OK

                

Frequently Asked Questions

The API Playground is an interactive tool that lets you test TTS.ai API endpoints directly in your browser. You can experiment with text-to-speech, speech-to-text, and voice cloning without writing any code, and see the generated request in cURL, Python, and JavaScript.

You can explore the interface and generate code snippets without an account. To actually run requests, you need a free TTS.ai account. Free accounts receive 15,000 characters to get started, and free-tier models (Kokoro, Piper, VITS, MeloTTS) use zero characters.

Yes, running requests in the Playground uses characters just like any other API call. Free-tier models carry no premium surcharge (they draw your free allowance), standard models use 2x the text length, and premium models use 4x. The Playground shows the estimated cost before you run each request.

The Playground supports text-to-speech (TTS), speech-to-text (STT), and voice cloning endpoints. Select the endpoint tab, configure parameters like model, voice, and text, then click Run Request to see the response and hear the generated audio.

Yes. The Playground generates ready-to-use code in cURL, Python, and JavaScript that updates live as you change parameters. Click the clipboard icon to copy the active snippet. Replace YOUR_API_KEY with your actual API key from your account dashboard.

The Playground supports WAV, MP3, OGG, and FLAC output formats for text-to-speech. Select your preferred format from the dropdown before running the request. WAV provides the highest quality, while MP3 offers the smallest file size.

Yes. Switch to the Clone tab, upload a reference audio sample (10-30 seconds recommended), select a cloning model (Chatterbox, OpenVoice, CosyVoice2), enter text, and click Run Request. Voice cloning requires an account and consumes characters.

Create a free account on TTS.ai, then go to your Account page. Your API key is generated automatically and shown in the API Keys section. Use the sk-tts-xxx format key in the Authorization header for all API requests.

Free accounts are limited to 60 requests per minute per API key. Rate limits apply to all endpoints including TTS, STT, and voice cloning. If you need higher limits, upgrade to a paid plan.

The Playground currently supports the native TTS.ai API format. For the OpenAI-compatible endpoint (POST /v1/audio/speech), use the generated cURL snippet and change the URL to tts.ai/v1/audio/speech with model "tts-1" or "tts-1-hd".

Yes. The Playground is fully responsive and works on tablets and smartphones. The two-column layout stacks vertically on smaller screens. Audio playback and code copying work on all modern mobile browsers.

Yes. Switch to the STT tab, upload an audio file (MP3, WAV, FLAC, M4A, or WebM), select the language and model, then click Run Request. The transcribed text appears in the response panel. STT supports auto-detection for language.

What could we improve? Your feedback helps us fix issues.

Ready to get started?

Sign up free and get 15,000 characters. No credit card required.