Synthesize speech audio from text (TTS).
Synthesize speech audio from text (TTS).
Authorization
NRouterApiKey AuthorizationBearer <token>
Your nRouter virtual key (sk-nrouter-…). Sent as Authorization: Bearer sk-nrouter-….
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/audio/speech" \ -H "Content-Type: application/json" \ -d '{ "model": "string", "input": "string", "voice": "string" }'"audio/mpeg bytes (rendered as an <audio> player)"Was this page helpful?