PlayHT

Play HT Developer Reference

Play HT Text to Speech API & Request Playground

Fetch 200+ public voices via GET /api/voices and generate streaming MP3 audio in 85 languages via POST /api/tts. Need direct AI assistant integration? Use Play HT MCP Connect.

Build a Request

curl -X POST https://playht.app/api/tts \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Give your next story a natural voice with Play HT.",
    "voiceId": "JBFqnCBsd6RMkjVDRZzb",
    "language": "en"
  }' \
  --output voice.mp3

Endpoint Reference & Credit Rates

EndpointPurposeNotes & Limits
GET /api/voicesList public voices with metadata and prerecorded preview URLsPublic, no auth required, zero credits
POST /api/ttsGenerate speech and return an MP3 audio stream500 chars guest (turnstile token) / 10,000 chars subscriber. Basic 1 cr, Pro 2 cr, Max 4 cr per 100 chars.
MCP ConnectRemote Streamable HTTP + OAuth 2.1 for AI coding assistantsBuilt-in credit quotes before paid synthesis. View setup guide

Building with AI Agents?

Connect Play HT via MCP in One Prompt

Give Claude Code, Cursor, Codex, Grok Bot, or Muse AI direct access to voice search, credit quotes, MP3 generation, multi-speaker dialogues, and audiobooks with OAuth 2.1.

Frequently Asked Questions

What endpoints does the Play HT Preview TTS API provide?

Use GET /api/voices to retrieve the public voice catalog and POST /api/tts with text, voiceId, language, and model to receive an MP3 audio stream.

What are the character limits and credit rates?

Guests can preview up to 500 characters (3 generations/day per network address, 100,000 characters/day sitewide). Signed-in subscribers can send up to 10,000 characters per request. Basic costs 1 credit per 100 characters, Pro costs 2, and Max costs 4.

Which plans include commercial licensing and API access?

Studio ($99/mo or $594/yr) and Enterprise ($299/mo or $1,794/yr) include commercial licensing and API access under the published API limits and applicable terms.

Can I connect Play HT to AI assistants like Claude Code or Cursor?

Yes. Use Play HT MCP Connect (/mcp-connect) for remote Streamable HTTP MCP integration with OAuth 2.1 and explicit credit quotes.