W

WithZero · Speech Gemini 3 1 Flash TTS

by WithZero

POSTBase

$0.16

per call · USD Coin on Base

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

Endpoint

POST https://agents.withzero.xyz/api/v1/audio/speech/gemini-3.1-flash-tts

4

Calls / 30d

1

Unique payers / 30d

Aug 13

Last called

upto

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://agents.withzero.xyz/api/v1/audio/speech/gemini-3.1-flash-tts", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "input": "Hello from WithZero — this is a text to speech sample."
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agents.withzero.xyz/api/v1/audio/speech/gemini-3.1-flash-tts" \
  -H "Content-Type: application/json" \
  -d '{"input":"Hello from WithZero — this is a text to speech sample."}' \
  -H "X-PAYMENT: <signed x402 payment>"

Payment details

Pay to0x4a7e38e5b2a9325e996a5a155ebdb2dd4181d974
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesupto

Is this your API?

Pin it to the top of Media & Generation and the homepage with a featured placement.

Get featured →

More from WithZero & similar services