{"slug":"www-trezalabs-com-api-x402-speech-5e56c0","title":"Text to speech (AI voice generation)","host":"www.trezalabs.com","method":"POST","resource":"https://www.trezalabs.com/api/x402/speech","category":"image","description":"Text to speech (AI voice generation): send text, get an ElevenLabs voiceover MP3 back in the same response. Use it when an agent needs narration, a voiceover for a video, or a spoken version of text. Eleven v3 (expressive: [whispers]-style directions, an emotion) or Multilingual v2 (29 languages), E","price_listed":0.04,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":3,"reported_payers_30d":3,"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"model":"eleven-v3","text":"Welcome back. Today we are looking at three small habits that make a big difference.","voice":"george"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"async":{"default":false,"description":"true: answer at once, status running with a statusUrl.","type":"boolean"},"emotion":{"default":"neutral","description":"How the line is read. eleven-v3 only.","enum":["neutral","happy","excited","calm","sad","angry","scared","surprised","whisper"],"type":"string"},"model":{"default":"eleven-v3","enum":["eleven-v3","eleven-multilingual-v2"],"type":"string"},"pitch":{"default":0,"description":"Semitones up or down; the line keeps its length.","maximum":12,"minimum":-12,"type":"integer"},"text":{"description":"What to say.","maxLength":3000,"type":"string"},"voice":{"default":"george","description":"A voices[].id from GET on this URL, e.g. george, brian, alice.","type":"string"},"volume":{"default":1,"description":"Gain on the finished audio; 1 is as generated.","maximum":2,"minimum":0,"type":"number"}},"required":["text"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Text to speech (AI voice generation): send text, get an ElevenLabs voiceover MP3 back in the same response. Use it when an agent needs narration, a voiceover for a video, or a spoken version of text. Eleven v3 (expressive: [whispers]-style directions, an emotion) or Multilingual v2 (29 languages), ElevenLabs narrators, adjustable pitch and volume, up to 3000 characters, $0.42 per 1,000 characters. GET this URL for the voices. No account or API key: the payment is the only credential.","last_updated":"2026-11-26T10:36:26.701Z","schemes":["exact"]}