REST API v1 • 400+ Neural Voices
Vocalis AI Public Developer API Platform
Add ultra-realistic neural speech synthesis, 70+ languages, and timestamped subtitles into your mobile apps, SaaS products, and autonomous agents in seconds.
🤖 1-Click AI Integration Prompt (Cursor, ChatGPT & Claude)
Copy this master prompt into your AI coding assistant to auto-build client integration code in any programming language.
Copy Prompt for AI
I want to integrate Vocalis AI Neural Text-to-Speech into my application. Here are the API details:
- **Base URL:** https://vocalisai.duckdns.org
- **Authentication:** Header 'Authorization: Bearer ' or 'x-api-key: '
- **Speech Synthesis Endpoint:** POST https://vocalisai.duckdns.org/api/v1/tts/synthesize
- Headers: Content-Type: application/json, Authorization: Bearer vocalis_live_sk_...
- JSON Body:
{
"text": "Hello world! This is natural neural speech synthesized via Vocalis AI.",
"voice": "hi-IN-MadhurNeural",
"rate": 0,
"pitch": 0
}
- Response JSON:
{
"status": "success",
"audio_base64": "",
"duration": 3.5,
"subtitles_srt": "",
"credits_remaining": 9950
}
- **Voices Catalog:** GET https://vocalisai.duckdns.org/api/v1/voices
- **Usage / Balance:** GET https://vocalisai.duckdns.org/api/v1/usage
- **Full OpenAPI Spec:** https://vocalisai.duckdns.org/openapi.json
Please write a production-ready client integration class/helper for my [React / Flutter / Next.js / Python / iOS Swift / Android Kotlin] application that calls this endpoint, decodes the base64 MP3 audio for playback, and handles errors.
Multi-Language Integration Snippets
cURL
Python
Node.js
PHP
Go
REST API v1 Specification
POST
/api/v1/tts/synthesize
Synthesizes speech audio and synchronized captions. Deducts 1 credit per 10 characters.
Body: { "text": "string", "voice": "string (optional)", "rate": 0, "pitch": 0 }
GET
/api/v1/voices
Returns all 400+ neural voices, regional accents (Hindi, Telugu, Tamil, Marathi, Bengali), and gender tags.
GET
/api/v1/usage
Returns remaining credit balance, rate limits, and key status in real time.