Text to speech API
Text to speech API: convert text up to 2000 characters into natural MP3 audio with multiple voices and languages. Use when an agent needs spoken output for a notification, audiobook clip or voice response. No account, pay per call over x402.
Answeringour last check, 2026-11-26
7 of 7checks answered this week
344 msmedian answer time
$0.01listed price per call
$0.01price it asked us
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
GET https://agent-data-tools.revmesh2074.workers.dev/text-to-speech-generate
| Category | Image and media |
|---|---|
| Provider host | agent-data-tools.revmesh2074.workers.dev |
| Networks | eip155:137, eip155:42161, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-11-26 | valid payment request | 402 | $0.01 | 348 ms |
| 2026-11-25 | valid payment request | 402 | $0.01 | 348 ms |
| 2026-11-24 | valid payment request | 402 | $0.01 | 321 ms |
| 2026-11-23 | valid payment request | 402 | $0.01 | 433 ms |
| 2026-11-22 | valid payment request | 402 | $0.01 | 328 ms |
| 2026-11-21 | valid payment request | 402 | $0.01 | 344 ms |
| 2026-11-20 | valid payment request | 402 | $0.01 | 249 ms |
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"text": "Your payment was received. Thank you!"
},
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"properties": {
"format": {
"description": "Audio format: mp3 (default), wav, pcm (raw 16-bit little-endian mono), ulaw or alaw (8 kHz telephony, e.g. Twilio), opus (Ogg) or flac. opus and flac only for text spoken in one part (up to 450 characters)",
"enum": [
"mp3",
"wav",
"pcm",
"ulaw",
"alaw",
"opus",
"flac"
],
"examples": [
"mp3"
],
"type": "string"
},
"lang": {
"description": "Language: en or es (Aura-2 MP3, many voices); fr, zh, ja and ko are retired (MeloTTS was removed from Workers AI, 20 Nov 2026); default en",
"enum": [
"en",
"es"
],
"examples": [
"en"
],
"type": "string"
},
"pronunciations": {
"description": "How to say words: JSON {\"Nginx\":\"engine x\",\"GIF\":\"jif\"} or Nginx=engine x, GIF=jif (up to 50, whole words, any case)",
"examples": [
"Nginx=engine x"
],
"type": "string"
},
"sample_rate": {
"description": "Sample rate in Hz for wav and pcm (8000, 16000, 24000 default, 32000, 48000) or ulaw/alaw (8000 default, 16000)",
"examples": [
"24000"
],
"type": "string"
},
"text": {
"description": "Text to speak, up to 300 characters",
"examples": [
"Your payment was received. Thank you!"
],
"type": "string"
},
"voice": {
"description": "Voice name. English: amalthea, andromeda, apollo, arcas, aries, asteria, athena, atlas, aurora, callista, cora, cordelia, delia, draco, electra, harmonia, helena, hera, hermes, hyperion, iris, janus, juno, jupiter, luna, mars, minerva, neptune, odysseus, ophelia, orion, orpheus, pandora, phoebe, pluto, saturn, thalia, theia, vesta, zeus. Spanish: sirio, nestor, carina, celeste, alvaro, diana, aquila, selena, estrella, javier. Default: luna (en), aquila (es)",
"examples": [
"luna"
],
"type": "string"
}
},
"required": [
"text"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"audioBase64": {
"type": "string"
},
"bytes": {
"type": "number"
},
"characters": {
"type": "number"
},
"contentType": {
"type": "string"
},
"lang": {
"type": "string"
},
"model": {
"type": "string"
},
"voice": {
"type": "string"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}