Text-to-speech generation · 24-hour encrypted capability URL · 0% service fee launch promo
Text-to-speech generation · 24-hour encrypted capability URL · 0% service fee launch promotion
2045 (raw units)
price
4
calls / 30d
1
unique payers
2026-09-06
updated
Provider
onchainrouter.dev · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xA7660dea6AadCc87CbB5e79ccd262d391e61dE5d",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "2045",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"input": "Your text to speak.",
"model": "elevenlabs/flash-v2.5",
"response_format": "mp3",
"speed": 1,
"voice": "darian"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"data": [
{
"url": "https://onchainrouter.dev/v1/media/audio/example?access=capability"
}
],
"id": "spch_example",
"model": "elevenlabs/flash-v2.5",
"usage": {
"input_characters": 19
}
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"input": {
"maxLength": 2000,
"minLength": 1,
"type": "string"
},
"model": {
"enum": [
"elevenlabs/flash-v2.5"
],
"type": "string"
},
"response_format": {
"enum": [
"mp3"
],
"type": "string"
},
"speed": {
"maximum": 1.2,
"minimum": 0.7,
"multipleOf": 0.001,
"type": "number"
},
"voice": {
"description": "Optional public alias; omission uses the selected model's default voice.",
"enum": [
"darian",
"talia",
"elara",
"baxter",
"eldrin",
"kellan",
"elowen",
"kaelen",
"lawrence",
"alicia",
"maisie",
"warren",
"jade",
"eddie",
"caleb",
"sawyer",
"finley",
"florence",
"wyatt",
"bella"
],
"type": "string"
}
},
"required": [
"model",
"input"
]
},
"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"
}
},
"payment-identifier": {
"info": {
"required": false
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"id": {
"maxLength": 128,
"minLength": 16,
"pattern": "^[a-zA-Z0-9_-]+$",
"type": "string"
},
"required": {
"type": "boolean"
}
},
"required": [
"required"
],
"type": "object"
}
}
}Use it
curl
curl "https://onchainrouter.dev/v1/audio/speech" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://onchainrouter.dev/v1/audio/speech");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://onchainrouter.dev/v1/audio/speech")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/8044.json, and this resource appears in /discovery/resources and /discovery/search.