{"slug":"1gateway-dev-v1-ai-tts-56fec5","title":"Use when an agent needs spoken audio from short text (voice reply, narration)","host":"1gateway.dev","method":"GET","resource":"https://1gateway.dev/v1/ai/tts","category":"image","description":"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 ver","price_listed":0.015,"price_asked":0.015,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":218,"reported_calls_30d":6,"reported_payers_30d":1,"networks":["eip155:137","eip155:143","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"lang":"en","text":"Hello from 1gateway"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"additionalProperties":false,"properties":{"lang":{"description":"Speech language: en (English) or es (Spanish) only; default en. One built-in voice per language. Ot…","enum":["en","es"],"type":"string"},"text":{"description":"Text to speak (1-500 chars). Empty or longer text → 400 before payment (not charged)","maxLength":500,"type":"string"}},"required":["text"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"additionalProperties":true,"properties":{"audio":{"additionalProperties":true,"properties":{"base64":{"type":"string"},"bytes":{"type":"integer"},"mimeType":{"type":"string"}},"type":"object"},"costBreakdown":{"items":{"additionalProperties":true,"properties":{"estimated":{"type":"boolean"},"model":{"type":"string"},"provider":{"type":"string"},"stage":{"type":"string"},"usd":{"type":["number","null"]}},"type":"object"},"type":"array"},"costEstimated":{"type":"boolean"},"estimatedSeconds":{"type":"number"},"lang":{"type":"string"},"model":{"type":"string"},"safety":{"additionalProperties":true,"properties":{"textModel":{"type":"string"},"textVerdict":{"type":"string"},"voiceCloning":{"type":"boolean"}},"type":"object"},"text":{"type":"string"},"upstreamCostUsd":{"type":["number","null"]},"voice":{"type":"string"}},"required":["audio","text","lang","voice","model","safety","estimatedSeconds","upstreamCostUsd","costBreakdown"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.015,"price_match":true,"latency_ms":255,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.015,"price_match":true,"latency_ms":191,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.015,"price_match":true,"latency_ms":186,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.015,"price_match":true,"latency_ms":243,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.015,"price_match":false,"latency_ms":220,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.015,"price_match":false,"latency_ms":216,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.015,"price_match":false,"latency_ms":218,"error":null},{"day":"2026-11-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":244,"error":null},{"day":"2026-11-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":205,"error":null},{"day":"2026-11-17","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":187,"error":null},{"day":"2026-11-16","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":188,"error":null},{"day":"2026-11-15","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":190,"error":null},{"day":"2026-11-14","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":201,"error":null},{"day":"2026-11-13","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":206,"error":null},{"day":"2026-11-12","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":200,"error":null},{"day":"2026-11-11","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":206,"error":null},{"day":"2026-11-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":200,"error":null},{"day":"2026-11-09","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":200,"error":null},{"day":"2026-11-08","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":186,"error":null},{"day":"2026-11-07","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":229,"error":null},{"day":"2026-11-06","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":216,"error":null},{"day":"2026-11-05","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":195,"error":null},{"day":"2026-11-04","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":207,"error":null},{"day":"2026-11-03","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":226,"error":null},{"day":"2026-11-02","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":217,"error":null},{"day":"2026-11-01","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":232,"error":null}],"description_full":"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","last_updated":"2026-11-23T01:00:59.573Z","schemes":["exact"]}