Create speech
Generates audio from the input text.
Generates audio from the input text.
Authorization
BearerAuth AuthorizationBearer <token>
API key as bearer token in Authorization header
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
audio/mpeg
curl -X POST "https://llm-gateway.codzen.ai/v1/audio/speech" \ -H "Content-Type: application/json" \ -d '{ "model": "tts-1", "input": "string", "voice": "alloy" }'"string"