VoxPilot API

Generate AI voice audio programmatically using the same 328-voice engine that powers the web app. Free, key-based access — no separate API pricing tier.

v1 REST / JSON 328 Voices 82 Languages

Introduction

The VoxPilot API lets you generate speech from text using any of the 328 available neural voices, with full control over speed, pitch, volume, and emotion — the same parameters available in the web studio.

Base URL: all endpoints below are relative to https://voxpilot-ai.com

Authentication

Every request to /api/v1/generate requires an API key, sent as a header. Generate a key from your Dashboard — it's shown once, so save it immediately.

X-API-Key: your_api_key_here
Keep your key private. It's tied to your account's credit balance — anyone with your key can generate audio using your credits.

Generate Speech

POST /api/v1/generate

Converts text to speech and returns a downloadable audio URL.

FieldTypeRequiredDescription
textstringYesText to convert. Max 5,000 characters.
voicestringNoVoice ID. Default: en-US-JennyNeural. See /voices below.
speedintegerNo-100 to 100. Default: 0.
pitchintegerNo-50 to 50. Default: 0.
volumeintegerNo-50 to 50. Default: 0.
emotionstringNoe.g. happy, sad, calm. Default: neutral.
intensityfloatNo0.2 to 2.0. Default: 1.0.

Example request (cURL):

curl -X POST https://voxpilot-ai.com/api/v1/generate \
  -H "X-API-Key: your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Hello from the VoxPilot API",
    "voice": "en-US-GuyNeural",
    "emotion": "happy"
  }'

Example request (Python):

import requests

response = requests.post(
    "https://voxpilot-ai.com/api/v1/generate",
    headers={"X-API-Key": "your_api_key_here"},
    json={
        "text": "Hello from the VoxPilot API",
        "voice": "en-US-GuyNeural",
        "emotion": "happy"
    }
)
print(response.json())

Example response:

{
  "success": true,
  "audio_url": "https://voxpilot-ai.com/audio/a1b2c3.mp3",
  "download_url": "https://voxpilot-ai.com/download/a1b2c3.mp3",
  "characters_used": 27,
  "credits_remaining": 9973,
  "voice": "en-US-GuyNeural",
  "emotion": "happy"
}

List Voices

GET /api/v1/voices

Returns all available voice IDs. No API key required for this endpoint.

curl https://voxpilot-ai.com/api/v1/voices
{
  "total": 328,
  "voices": [
    {
      "id": "en-US-JennyNeural",
      "name": "Jenny",
      "locale": "en-US",
      "gender": "Female",
      "language": "English"
    },
    // ...327 more
  ]
}

Error Codes

200 Success
400 Missing or invalid parameter (bad text, invalid voice ID)
401 Missing, invalid, or revoked API key
402 Not enough credits remaining on your account
429 Rate limit exceeded — see limits below
500 Server error — audio generation failed, please retry

All errors return JSON: {"error": "description of what went wrong"}

Rate Limits

EndpointLimit
/api/v1/generate30 requests per minute, per API key
/api/v1/voices60 requests per minute, per IP

Credits

API usage draws from the same monthly credit pool as the web studio — 1 character generated = 1 credit used, whether generated via the API or the website. Check credits_remaining in every API response to track your balance, or view it anytime on your Dashboard.

Credits reset monthly based on your plan. Free accounts include 10,000 credits/month.