REST API · Text-to-Speech · 33 Languages

TTS API vs Play.ht

A direct comparison of the TTS API vs Play.ht for developers building voice-powered applications. PixelAPI's text-to-speech API converts any text to natural-sounding MP3 audio in 33 languages, with voice design (describe a voice in plain English — no reference recording needed) and voice cloning (upload a reference audio file). At $0.0018 flat per request — no per-character metering — it costs a fraction of Play.ht's ~$0.040 per 1,000 characters. For a typical 200-character prompt, Play.ht costs ~$0.008 per call; PixelAPI costs $0.0018 — roughly 4x cheaper. For a 500-character narration, the difference grows to 11x. 5,000 free credits (7-day trial), no credit card.

$0.0018 / request 33 languages Voice design + cloning 5,000 free credits Flat rate, not per-char MP3 output
Get an API key (free) Quick start See pricing API docs

Quick start — one API call

Sign up, copy your key from the dashboard, and POST your text. The endpoint returns a generation id; poll until status=completed, then download the MP3 from output_url.

# Voice design — describe any voice, no reference audio needed
curl -X POST https://api.pixelapi.dev/v1/tts/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "text=Hello, welcome to our platform." \
  -F "language=en" \
  -F "voice_description=young woman, warm and friendly"
# {"id": "uuid", "status": "queued", "credits_used": 1.8, ...}

# Poll until completed
curl https://api.pixelapi.dev/v1/tts/status/UUID \
  -H "Authorization: Bearer YOUR_API_KEY"
# {"status": "completed", "output_url": "https://cdn.pixelapi.dev/..."}
pip install pixelapi
# ---
from pixelapi import PixelAPI

client = PixelAPI(api_key="YOUR_API_KEY")
result = client.tts(
    text="Hello, welcome to our platform.",
    language="en",
    voice_description="young woman, warm and friendly"
)
result.save("output.mp3")  # MP3 audio
npm install pixelapi
// ---
import { PixelAPI } from "pixelapi";

const client = new PixelAPI({ apiKey: process.env.PIXELAPI_KEY });
const result = await client.tts({
  text: "Hello, welcome to our platform.",
  language: "en",
  voiceDescription: "young woman, warm and friendly",
});
await result.save("output.mp3"); // MP3 audio
composer require pixelapi/pixelapi
// ---
<?php
use PixelAPI\Client;

$client = new Client(getenv("PIXELAPI_KEY"));
$result = $client->tts([
    "text"              => "Hello, welcome to our platform.",
    "language"          => "en",
    "voice_description" => "young woman, warm and friendly",
]);
file_put_contents("output.mp3", $result->getBody());
gem install pixelapi
# ---
require "pixelapi"

client = PixelAPI::Client.new(api_key: ENV["PIXELAPI_KEY"])
result = client.tts(
  text: "Hello, welcome to our platform.",
  language: "en",
  voice_description: "young woman, warm and friendly"
)
File.binwrite("output.mp3", result.body)
go get github.com/pixelapi/pixelapi-go
// ---
import "github.com/pixelapi/pixelapi-go"

client := pixelapi.New("YOUR_API_KEY")
result, err := client.TTS(pixelapi.TTSRequest{
    Text:             "Hello, welcome to our platform.",
    Language:         "en",
    VoiceDescription: "young woman, warm and friendly",
})
if err != nil { panic(err) }
result.Save("output.mp3")

TTS API vs Play.ht: pricing comparison

Play.ht charges per character consumed; PixelAPI charges a flat rate per request regardless of whether your text is 50 characters or 500. The cost gap widens as requests get longer — a common pattern for IVR scripts, narrations, and audiobook chapters.

Provider Free tier Per-unit cost Voice cloning Languages
PixelAPI 5,000 credits (7-day trial) $0.0018 flat/request ✓ $0.10/req 33
Play.ht (PlayAI) ~12.5K chars/mo ~$0.040 per 1K chars ✓ 142
ElevenLabs Flash v2.5 10K chars/mo ~$0.050 per 1K chars ✓ 32
OpenAI tts-1 None $0.015 per 1K chars ✗ 57
Murf.ai — see murf.ai/pricing ✗ 20+

Pricing verified from each rival's public pricing page September 2026. Note: Play.ht was acquired by Meta in July 2025 and rebranded as PlayAI — check play.ht for current plan availability. PixelAPI's flat-rate model makes costs fully predictable: 10,000 IVR prompts cost exactly $18 regardless of how many characters each contains.

TTS API vs Play.ht — key differences

Billing model

Play.ht bills per character consumed — a 500-character narration costs ~$0.020 on their Creator plan. PixelAPI charges $0.0018 per request regardless of text length up to 500 characters. For most production workloads — IVR prompts, notification audio, short narrations — flat-rate billing is significantly cheaper and removes the need to estimate credit consumption before each call.

Voice design (no reference needed)

Play.ht requires you to select a voice from their library or upload a reference recording to clone. PixelAPI adds a voice_description parameter — describe any voice in natural language and the model synthesises it on the fly. No voice library to manage, no cloning uploads for one-off characters. Try it with prompts like "calm elderly narrator, British accent" or "energetic sports commentator".

Ownership & availability risk

Play.ht was acquired by Meta in July 2025 and operates as PlayAI. Its long-term independence as a standalone API product is uncertain. PixelAPI is an independently operated REST API platform with no acquisition history, predictable pricing, and an SLA for paid plans. If uptime continuity matters for your production pipeline, this is worth factoring in.

API pattern

PixelAPI uses an async job model consistent with the rest of the platform: POST to queue, poll for status, download the MP3. Play.ht supports synchronous streaming. Choose based on your use case — async is better for batch pipelines and audiobook chapters; streaming suits real-time chat or live IVR applications.

What you get back

MP3 audio download

Every completed job returns an output_url pointing to an MP3 audio file. Download it directly, cache it to S3, or serve it from your CDN. No re-encoding step needed for podcast platforms, phone systems, or web players.

33-language support

Pass language=auto to detect language automatically, or specify a code: en, zh, hi, es, fr, de, ja, ko, ru, ar, and 23 more. Same endpoint for all — no model switching or language-specific configuration required.

Voice design (prompt-based)

Pass a natural-language description in voice_description — e.g. "elderly man, warm storytelling tone" or "professional female narrator, neutral accent". Control adherence to the prompt with cfg_value (0.5–5.0). Adjust quality/speed tradeoff with inference_timesteps (4–20).

Voice cloning (reference audio)

Upload a reference WAV, MP3, or M4A (16 kHz+, up to 10 MB) in the voice_ref field. The API synthesises new speech in the cloned voice. A clean 5–10 second recording with minimal background noise delivers the best clone quality. Billed at $0.10 per request (100 credits).

Common workflows

The TTS API powers these production use cases. Each links to a setup guide:

Audiobook production

Convert manuscript chapters to audio. Voice design for narrators, auto language detection for multi-lingual titles.

Podcast automation

Generate episode intros, ad reads, and show-notes summaries without a recording booth.

IVR & phone systems

Dynamic IVR prompts and on-hold messages at $0.0018/call — no re-recording when scripts change.

Language learning apps

Native-sounding pronunciation for 33 languages. Flat per-request pricing keeps costs predictable at scale.

E-learning narration

Auto-narrate course transcripts and slide decks in any of the 33 supported languages.

Content repurposing

Turn blog posts, newsletters, and articles into audio tracks for podcast platforms.

Integrations & SDKs

Zapier

No-code TTS trigger — connect any Zapier source to speech output in one step.

Make.com

Drag-and-drop TTS module in Make scenarios — great for newsletter-to-audio pipelines.

Shopify

Auto-generate product description audio for accessibility and listen-while-browse features.

Next.js

Server-side TTS in Next.js API routes — cache generated audio to S3 or serve direct.

Webflow

Embed audio players on CMS-backed Webflow pages with auto-generated TTS audio.

WooCommerce

Accessibility-ready audio for WooCommerce product pages, generated on publish.

TTS API vs Play.ht — and other alternatives

vs Play.ht (detailed)

Flat per-request vs per-character billing. PixelAPI adds voice design; both support voice cloning. Acquisition risk context.

vs ElevenLabs

Flat per-request vs ElevenLabs Flash per-character. PixelAPI adds voice design; both support voice cloning and multilingual synthesis.

vs OpenAI TTS

Flat per-request vs OpenAI's per-character billing. PixelAPI adds voice cloning and voice design; OpenAI does not.

vs Murf.ai

Developer REST API vs Murf's studio-first product. PixelAPI is built for programmatic bulk use.

vs Azure TTS

No Azure account or region setup required. Single API key, simpler billing, voice design built in.

vs Google TTS

No GCP project needed. Flat per-request pricing vs Google's per-character tiers. Voice design out-of-the-box.

Rate limits & error handling

The TTS endpoint shares the same per-plan rate limits as the rest of the PixelAPI platform: 20 requests/minute on the free trial, 60 on Starter, 120 on Pro, and 300 on Scale — with 3/10/20/50 concurrent jobs respectively. Exceeding the limit returns HTTP 429 with a Retry-After header.

# Python SDK handles 429 automatically with exponential backoff
from pixelapi import PixelAPI
client = PixelAPI(api_key="...", max_retries=4)
result = client.tts(text="Hello world", language="en")  # auto-retries on 429

TTS jobs are asynchronous. Status values returned by GET /v1/tts/status/{id}:

Transient failures are auto-retried up to twice server-side before surfacing as failed. Credits are never charged for a failed job.

Frequently asked questions

How does the TTS API compare to Play.ht?

PixelAPI charges $0.0018 flat per request regardless of text length, while Play.ht (now PlayAI) charges ~$0.040 per 1,000 characters. For a 200-character IVR prompt, Play.ht costs ~$0.008 versus PixelAPI's $0.0018 — about 4x cheaper. For a 500-character narration, Play.ht costs ~$0.020 versus PixelAPI's $0.0018 — roughly 11x cheaper. Both support voice cloning. PixelAPI also adds voice design (describe a voice in plain text, no reference audio needed). Note: Play.ht was acquired by Meta in July 2025.

What does the TTS API cost compared to Play.ht?

$0.0018 per text-to-speech request (1.8 credits at $0.001/credit) for voice design or built-in voices. Voice cloning costs $0.10 per request (100 credits). Play.ht charges approximately $0.040 per 1,000 characters; at 200 characters per request that is ~$0.008 per call versus PixelAPI's $0.0018. New accounts get 5,000 free credits on a 7-day trial — no credit card required — covering over 2,700 standard TTS generations.

Does PixelAPI TTS support voice cloning like Play.ht?

Yes. Upload a WAV, MP3, or M4A reference file (16 kHz or higher, up to 10 MB) in the voice_ref field. The API synthesises new speech in that voice. A clean 5–10 second recording with minimal background noise delivers the best clone quality. Voice cloning is billed at $0.10 per request (100 credits). Per-request cloning means there are no persistent voice IDs to manage.

How many languages does the TTS API support compared to Play.ht?

33 languages: English, Chinese, Hindi, Spanish, French, German, Japanese, Korean, Russian, Arabic, Portuguese, Italian, Dutch, Polish, Turkish, Vietnamese, Thai, Indonesian, Malay, Bengali, Tamil, Telugu, Marathi, Ukrainian, Swedish, Norwegian, Danish, Finnish, Greek, Hebrew, and Swahili — plus language=auto for automatic detection. Play.ht advertises 142 languages. If your use case requires a language outside PixelAPI's 33, Play.ht may cover it; if your use case is within those 33, PixelAPI's flat-rate pricing is significantly cheaper.

What is voice design and how does it differ from Play.ht?

Voice design lets you describe any voice in plain English — e.g. "elderly man, warm storytelling tone" or "energetic young woman, podcast host" — and the API synthesises speech in that style without uploading any reference audio. Pass your description in the voice_description parameter. Tune adherence to the prompt with cfg_value (0.5–5.0). Play.ht does not offer equivalent prompt-based voice generation; it requires selecting from a voice library or uploading a recording.

What audio format does the TTS API return?

The completed job response includes an output_url pointing to an MP3 audio file. The job is asynchronous: POST to /v1/tts/generate (returns a JSON object with an id field), poll GET /v1/tts/status/{id} until status=completed, then fetch the MP3 from output_url. Both the Python and Node SDKs handle the polling loop automatically.

Is there a free trial?

Yes. New accounts receive 5,000 free credits on a 7-day trial with no credit card required. At 1.8 credits per standard TTS request, that covers over 2,700 generations to test on real content. Play.ht offers approximately 12,500 characters per month on its free tier — useful for small ongoing projects. PixelAPI's trial is designed for bulk evaluation; you can run a full audiobook sample or a realistic IVR batch before paying anything. Each network is eligible for one PixelAPI trial.

What are the rate limits?

20 requests/minute and 3 concurrent jobs on the free trial; 60/10 on Starter; 120/20 on Pro; 300/50 on Scale. Exceeding the limit returns HTTP 429 with a Retry-After header. The Python and Node SDKs retry 429 responses automatically with exponential backoff. Need higher limits for batch processing? Email support@pixelapi.dev.

How do I poll for TTS job completion?

After your POST to /v1/tts/generate returns a JSON with an id field, call GET /v1/tts/status/{id} with your API key. Poll every 1–3 seconds until status equals "completed". The response will include output_url for the MP3 download. The Python and Node SDKs handle the polling loop internally — no manual polling needed.

Can I switch from Play.ht to PixelAPI TTS?

Yes. Key differences to map: (1) Billing — flat per-request vs per-character; (2) API pattern — PixelAPI is async (POST → poll → download) while Play.ht supports synchronous streaming; (3) Voice management — PixelAPI passes voice_description or voice_ref per request with no persistent voice IDs; Play.ht uses a voice library with persistent IDs. Start with the 7-day free trial to compare output quality on your own content.

Was Play.ht acquired? Is it still available?

Play.ht was acquired by Meta (Facebook) in July 2025 and rebranded as PlayAI. As of late 2026, the service is still accessible at play.ht. Its long-term availability as an independent developer API is uncertain. If production uptime continuity and predictable pricing matter for your pipeline, PixelAPI is a stable alternative — independently operated, no acquisition history, with an SLA on paid plans.

Can I use PixelAPI TTS for commercial projects? Is there an invoice?

Yes. All paid plans include commercial usage rights. PixelAPI is a registered Indian business that issues GST invoices — 18% IGST for international clients, CGST/SGST for domestic clients. Invoice download is built into the dashboard. For enterprise pricing and SLA agreements, contact support@pixelapi.dev.

Start free — 5,000 credits, no card Read full API docs Compare all plans