Ai Tts
by Text-to-Speech in AI models & inference
Use when an agent needs spoken audio from short text (voice reply, narration). English and Spanish only; other languages 400, not charged. Input: text (max 500 chars), lang (en or es; default en). Price: $0.015 up to 200 chars, $0.025 for 201-500. Output: MP3 audio (base64), voice, model, safety verdict. One fixed voice per language, no cloning. Llama Guard 3 screens text; unsafe 422, not charged. Not stored. Example: ?text=Hello%20from%201gateway&lang=en
https://1gateway.dev/v1/ai/tts- Price
- $0.015
- per call in USDC
- Uptime
- 98.0%
- last 30 days
- Response time
- 298 ms
- 1.3 s slowest 5%
- Last check
- Passed
- 2 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
GET https://1gateway.dev/v1/ai/tts
Each call costs $0.015 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
GET https://1gateway.dev/v1/ai/tts?lang=en&text=Hello+from+1gatewayParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
lang | string | No | Speech language: en (English) or es (Spanish) only; default en. One built-in voice per language. Ot… One of: en, es. |
text | string | Yes | Text to speak (1-500 chars). Empty or longer text → 400 before payment (not charged) |
Example response
The provider's example. We can't check it without paying.
Example response, 28 lines
{
"audio": {
"base64": "//uQZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA…",
"bytes": 108,
"mimeType": "audio/mpeg"
},
"costBreakdown": [
{
"estimated": false,
"model": "@cf/deepgram/aura-2-en",
"provider": "workers-ai",
"stage": "speech",
"usd": 0.00057
}
],
"costEstimated": true,
"estimatedSeconds": 1.4,
"lang": "en",
"model": "@cf/deepgram/aura-2-en",
"safety": {
"textModel": "@cf/meta/llama-guard-3-8b",
"textVerdict": "safe",
"voiceCloning": false
},
"text": "Hello from 1gateway",
"upstreamCostUsd": 0.000697,
"voice": "aura-2-luna-en"
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.015.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://1gateway.dev/v1/ai/tts?lang=en&text=Hello+from+1gateway'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://1gateway.dev/v1/ai/tts?lang=en&text=Hello+from+1gateway' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.015 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.015" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.015 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2F1gateway.dev%2Fv1%2Fai%2Ftts
const res = await pay("https://1gateway.dev/v1/ai/tts?lang=en&text=Hello+from+1gateway");
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.015 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.015"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.get("https://1gateway.dev/v1/ai/tts?lang=en&text=Hello+from+1gateway")
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 288 ms | $0.015 |
| 19 h ago | Timed out | - | - | - |
| 3 days ago | Timed out | - | - | - |
| 4 days ago | Passed | 402 | 475 ms | $0.015 |
| 4 days ago | Passed | 402 | 262 ms | $0.015 |
Show 10 older checks
| 5 days ago | Passed | 402 | 259 ms | $0.015 |
| 5 days ago | Passed | 402 | 284 ms | $0.015 |
| 6 days ago | Passed | 402 | 303 ms | $0.015 |
| 6 days ago | Passed | 402 | 283 ms | $0.015 |
| 6 days ago | Passed | 402 | 319 ms | $0.015 |
| 7 days ago | Passed | 402 | 286 ms | $0.015 |
| 7 days ago | Passed | 402 | 438 ms | $0.015 |
| 7 days ago | Passed | 402 | 203 ms | $0.015 |
| 7 days ago | Passed | 402 | 1.1 s | $0.015 |
| 8 days ago | Passed | 402 | 207 ms | $0.015 |
History
| 20 Nov 2026 | Price on Base changed from $0.01 to $0.015; Price on eip155:143 changed from 10000 units of 0x754704Bc059F8C67012fEd69BC8A327a5aafb603 to 15000 units of 0x754704Bc059F8C67012fEd69BC8A327a5aafb603; Price on Polygon changed from $0.01 to $0.015; Price on Arbitrum changed from $0.01 to $0.015; Price on Solana changed from $0.01 to $0.015 |
| 19 Nov 2026 | Price on Base changed from $0.004 to $0.01; Price on eip155:143 changed from 4000 units of 0x754704Bc059F8C67012fEd69BC8A327a5aafb603 to 10000 units of 0x754704Bc059F8C67012fEd69BC8A327a5aafb603; Price on Polygon changed from $0.004 to $0.01; Price on Arbitrum changed from $0.004 to $0.01; Price on Solana changed from $0.004 to $0.01 |