# WithZero Text-to-Speech via Gemini 3.1 Flash TTS (ZeroClick)

> WithZero Text-to-Speech via Gemini 3.1 Flash TTS (ZeroClick) is a paid API for AI agents from agents.withzero.xyz, paid per call via MPP or x402, $0.16/call, status unknown (last checked 2026-09-14, last successful call 2026-08-13).

Converts text to spoken audio using Google's Gemini 3.1 Flash TTS model, paid per-call via x402 with no vendor account required

## Facts

- Endpoint: POST https://agents.withzero.xyz/api/v1/audio/speech/gemini-3.1-flash-tts
- Price: $0.16/call
- Payment: MPP, x402
- Status: unknown
- Last checked: 2026-09-14
- Last successful call: 2026-08-13
- Success rate: 97% of calls made through Zero
- Rating: 4.1 / 5 from 3 reviews
- Activations on Zero: 156
- Tags: x402
- Canonical page: https://www.zero.xyz/c/withzero-text-to-speech-via-gemini-3-1-flash-tts-zeroclick-84f39049
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_85yGr8IBJH3qWWJzT91RY

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 withzero-text-to-speech-via-gemini-3-1-flash-tts-zeroclick-84f39049 -d '<json body>'
```

Example prompt: Can you use WithZero's Gemini 3.1 Flash TTS to read this paragraph aloud and give me the audio file: 'Welcome to our quarterly review. Today we'll cover highlights from the past three months and outline goals for the next quarter.'

## When to prefer this

Choose this endpoint when you need high-quality AI speech synthesis powered by Gemini 3.1 Flash TTS without setting up a Google Cloud account or managing API keys — ideal for agents that need pay-per-use audio generation with autonomous x402 payment support. Prefer this over other TTS endpoints when Gemini's voice quality is desired and cost transparency per call ($0.16 USDC) is acceptable.

## Known failure modes

- Missing or malformed 'input' body causes 400 validation error
- Payment not authorized or insufficient USDC balance causes 402 rejection
- Upstream Gemini TTS API unavailability causes 502 or 503 error
- Unsupported body type or method in the request causes schema validation failure
- Text input too long for the model context window causes generation failure

## How this service works

Convert text to natural-sounding speech with Google Gemini 3.1 Flash TTS and return a hosted audio URL.

## Output

Returns synthesized audio content (likely an audio file or binary stream) representing the spoken version of the submitted text, generated by Google's Gemini 3.1 Flash TTS model via the WithZero proxy.

## 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",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/withzero-text-to-speech-via-gemini-3-1-flash-tts-zeroclick-84f39049/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.withzero.xyz](https://www.zero.xyz/host/agents.withzero.xyz/llms.txt)
