Create speech
Synthesize speech from text and return the raw audio bytes, with the billed character count in the X-Merge-Billed-Characters header.
Authentication
AuthorizationBearer
Your production key sent as a bearer token.
Request
This endpoint expects an object.
model
Text-to-speech model, for example openai/tts-1.
input
Text to synthesize.
customer
Customer ID (UUID) to scope this request to, applying that customer’s routing policy, provider keys, budget, and usage attribution.
vendor
Pin the vendor that runs this request.
voice
Voice ID, model-specific, for example alloy.
response_format
Audio format; defaults to mp3.
speed
Playback speed, 0.25 to 4.
instructions
Voice direction, model-specific.
Response
Audio bytes in the requested response_format (default mp3).
Errors
422
Unprocessable Entity Error