Text to speech (AI voice generation)
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.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://www.trezalabs.com/api/x402/speech
| Category | Image and media |
|---|---|
| Provider host | www.trezalabs.com |
| Networks | eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 3 from 3 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"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"
}
Promised output schema (from the provider)
{
"$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"
}