PeumeAPI

AI generation · Gemini

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).

$0.053 per lookup, only when foundUsually answers in a few seconds

Call it

curl https://api.peume.com/v1/call/google-gemini-3-8-flash-lite-tts \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "model": "gemini-3.8-flash-lite-tts",
    "contents": [
      {
        "parts": [
          {
            "text": "Welcome to example.",
            "speechMetadata": {
              "style": "cheerful"
            }
          }
        ]
      }
    ],
    "generationConfig": "your generationConfig"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: google-gemini-3-8-flash-lite-tts.

Parameters

modelRequiredstring

's key runs only gemini-3.8-flash-lite-tts; your own key can name another model.

Example: gemini-3.8-flash-lite-tts

contentsRequiredarray

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.style` ({text: "Welcome to.", speechMetadata: {style: cheerful}}) and keep `text` to the words to be spoken. For two speakers, give each line its own part with its speaker: [{text: "Did it finish?", speechMetadata: {speaker: Joe}}, {text: "Yes.", speechMetadata: {speaker: Jane}}], and name both in multiSpeakerVoiceConfig; a single "Joe:... Jane:..." te

Example: [{"parts":[{"text":"Welcome to example.","speechMetadata":{"style":"cheerful"}}]}]

generationConfigRequiredobject

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.