# Tanship PayAI Console — Text-to-Speech (TTS)

> Tanship PayAI Console — Text-to-Speech (TTS) is a paid API for AI agents from x402.tanship.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Converts text input into synthesized speech audio via a payment-gated API using the x402 micropayment protocol on Base.

## Facts

- Endpoint: POST https://x402.tanship.dev/v1/ai/tts
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tanship-payai-console-text-to-speech-tts-a749f48d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cQ3wDA61fElJXSJDwYmgl

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability tanship-payai-console-text-to-speech-tts-a749f48d -d '<json body>'
```

Example prompt: Can you convert this paragraph into spoken audio: 'Welcome to our platform. We're glad you're here. Let's get started together.'

## When to prefer this

Choose this endpoint when you need pay-per-use, on-demand text-to-speech without a subscription, especially in autonomous agent or Web3 contexts where USDC micropayments on Base are native. Ideal for agents that need to synthesize speech occasionally and want to pay per call at $0.01 USDC rather than managing API keys or monthly quotas. Prefer over traditional TTS APIs when operating in a crypto-native or x402-compatible environment.

## Known failure modes

- Payment not included or invalid x402 payment header — returns HTTP 402 Payment Required
- Malformed request body or missing required 'input' field — returns validation error
- Unsupported bodyType value — returns enum validation error
- Network or edge inference failure — returns 500 server error
- Text input too long — may return payload too large or truncation error

## How this service works

Payment-gated AI and browser automation API using the x402 protocol. All /v1/* endpoints require USDC payment on Base (eip155:8453) via x402 v2 exact scheme.

## Output

Returns synthesized speech audio corresponding to the submitted text. The audio is delivered as a binary audio file or stream (e.g. MP3 or WAV). Each call requires a $0.01 USDC micropayment via the x402 protocol on Base (eip155:8453).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tanship-payai-console-text-to-speech-tts-a749f48d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.tanship.dev](https://www.zero.xyz/host/x402.tanship.dev/llms.txt)
