OpenAPI Specification
openapi: 3.1.0
info:
title: PlayAI Agents Voices API
description: 'PlayAI (formerly PlayHT) is a generative voice platform. The REST API
covers text-to-speech generation (PlayDialog, Dialog 1.0 Turbo, and
Play 3.0 Mini models), voice catalog, voice agents, external functions,
and PlayNote document-to-audio jobs.
Authentication uses two headers: `AUTHORIZATION` carries the secret API
key, and `X-USER-ID` carries the PlayAI user identifier.
'
version: 1.0.0
contact:
name: API Evangelist
email: kin@apievangelist.com
license:
name: Proprietary
servers:
- url: https://api.play.ai
description: PlayAI production API
security:
- apiKey: []
userId: []
tags:
- name: Voices
description: Prebuilt voice catalog.
paths:
/api/v1/voices:
get:
tags:
- Voices
summary: List prebuilt voices
responses:
'200':
description: Voice catalog.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Voice'
components:
schemas:
Voice:
type: object
properties:
id:
type: string
name:
type: string
language:
type: string
accent:
type: string
gender:
type: string
sample:
type: string
format: uri
securitySchemes:
apiKey:
type: apiKey
in: header
name: AUTHORIZATION
description: Secret API key issued in the PlayAI console.
userId:
type: apiKey
in: header
name: X-USER-ID
description: PlayAI user identifier paired with the API key.