Reference/audio

Generate Speech

Generate Speech Project API key or dashboard access token (JWT). Request examples use snake_case; schemas may also display accepted camelCase aliases. Replace resource placeholders with accessible IDs. See the guides for runtime model constraints and workflows.

POST/v1/audio/speech
Open playground
Project API key or dashboard access token (JWT). See authentication.

Authorizations

Project API key or dashboard access token (JWT).

Body (application/json)

modelAliasstringoptionaldefault: voice-v1
modelstringoptional
inputstringoptional
textstringoptional
genderstringoptionaldefault: female
voiceStylestringoptionaldefault: neutral
speednumberoptionaldefault: 1
formatstringoptionaldefault: mp3
Available options: mp3, wav, aac

Response

200 - application/json
Successful Response
No detailed response model is declared for this operation. See its guide for response fields and lifecycle behavior.
Request Example
curl --fail-with-body -X POST "https://api.apimarketplace.com/v1/audio/speech" -H "Authorization: Bearer $API_KEY" -H 'Content-Type: application/json' --data '{"model_alias": "voice-v1", "input": "Welcome to API Marketplace.", "voice_style": "neutral", "gender": "female", "speed": 1.0, "format": "mp3"}'