google-ai_voice-gen_gemini-3-8-flash-lite-tts $0.043751 per call

Google: Gemini 3.8 Flash-Lite TTS. Speak a text in one of 30 prebuilt voices, or a two-speaker dialogue, with Gemini 3.8 Flash-Lite TTS on Google's own API; the audio returns inline as base64 WAV (24 kHz mono). (Google AI (Gemini API) · Voice generation)

For AI agents: call google-ai_voice-gen_gemini-3-8-flash-lite-tts
POST https://toll402.dev/v1/p/google-ai.voice-gen.gemini-3-8-flash-lite-tts
{
 "contents": [
  {
   "parts": [
    {
     "text": "Welcome to treg, the tool catalog for your agents.",
     "speechMetadata": {
      "style": "cheerful"
     }
    }
   ]
  }
 ],
 "generationConfig": {
  "responseModalities": [
   "AUDIO"
  ],
  "speechConfig": {
   "voiceConfig": {
    "prebuiltVoiceConfig": {
     "voiceName": "Kore"
    }
   }
  }
 }
}
Answers 402 with x402 payment requirements; pay with any x402 client (@x402/fetch, x402 for Python, toll402-client, toll402-mcp) or send a prepaid-credits key as x-toll402-key (https://toll402.dev/credits). Paid per call via x402 (USDC on Base) or with a prepaid-credits key (x-toll402-key, card at /credits); charged only on success. Start at /llms.txt or connect the MCP server: npx -y toll402-mcp · remote https://toll402.dev/mcp.

Input schema

{
 "type": "object",
 "properties": {
  "contents": {
   "type": "array",
   "description": "One user turn: {parts: [{text: script}]}. Gemini 3.8 TTS reads `text` as a verbatim transcript: a direction written into it (\"Say cheerfully: ...\") is spoken aloud and billed as audio. Put delivery directions in the part's `speechMetadata.s",
   "examples": [
    [
     {
      "parts": [
       {
        "text": "Welcome to treg.",
        "speechMetadata": {
         "style": "cheerful"
        }
       }
      ]
     }
    ]
   ]
  },
  "generationConfig": {
   "type": "object",
   "properties": {
    "responseModalities": {
     "type": "array",
     "description": "Must be [AUDIO].",
     "examples": [
      [
       "AUDIO"
      ]
     ]
    },
    "speechConfig": {
     "type": "object",
     "description": "Either {voiceConfig: {prebuiltVoiceConfig: {voiceName}}} for one voice, or {multiSpeakerVoiceConfig: {speakerVoiceConfigs: [{speaker, voiceConfig: {prebuiltVoiceConfig: {voiceName}}}]}} for exactly two named speakers. Voices: Zephyr, Puck, ",
     "examples": [
      {
       "voiceConfig": {
        "prebuiltVoiceConfig": {
         "voiceName": "Kore"
        }
       }
      }
     ]
    }
   },
   "required": [
    "responseModalities",
    "speechConfig"
   ]
  }
 },
 "additionalProperties": true,
 "required": [
  "contents",
  "generationConfig"
 ]
}

MCP

{"mcpServers":{"toll402":{"command":"npx","args":["-y","toll402-mcp"],"env":{"TOLL402_WALLET_KEY":"0x..."}}}}

All tools · OpenAPI