Skip to main content
GET
/
api
/
get-text-to-speech-voices
Get TTS Voices
curl --request GET \
  --url https://easy-peasy.ai/api/get-text-to-speech-voices \
  --header 'x-api-key: <api-key>'
{
  "voices": [
    {
      "id": "21m00Tcm4TlvDq8ikWAM",
      "name": "Rachel",
      "description": "calm",
      "image": "https://media.easy-peasy.ai/voices/rachel.png",
      "language": "English",
      "accent": "American"
    },
    {
      "id": "alloy",
      "name": "Alloy",
      "description": "A neutral, balanced voice",
      "image": "https://media.easy-peasy.ai/voices/alloy.png",
      "language": "English"
    }
  ],
  "total": 2,
  "filters": {
    "language": null,
    "accent": null
  },
  "available": {
    "languages": [
      "English",
      "Spanish",
      "French",
      "German"
    ],
    "accents": [
      "American",
      "British",
      "Australian"
    ]
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication. Get yours at https://easy-peasy.ai/settings/api

Headers

x-api-key
string

Your API key (optional, required for custom voices)

Query Parameters

language
string

Filter voices by language (e.g., "English", "Spanish", "French")

accent
string

Filter voices by accent (e.g., "American", "British", "Australian")

include_custom
boolean
default:true

Include user's custom cloned voices in the response (requires authentication)

Response

Successfully retrieved voices

voices
object[]
required

Array of voice objects

total
integer
required

Total number of voices returned

Example:

50

filters
object
required

Filters that were applied to the results

available
object
required

Available filter options based on current results