Skip to main content
Glama

generate_gemini_tts

NEW — Google Gemini native TTS via kie.ai: style-directed speech from natural-language direction, 30 named voices, up to 2 speakers, inline tone tags like [whispers]/[laughs] (flash model).

Instructions

NEW — Google Gemini native TTS via kie.ai: style-directed speech from natural-language direction, 30 named voices, up to 2 speakers, inline tone tags like [whispers]/[laughs] (flash model). ~4.2 credits per MINUTE of audio — cheaper than all ElevenLabs tiers. Simple mode: pass text (+ optional voice_name). Dialogue mode: pass speakers + dialogue_turns. model=flash is most expressive (keep expected audio <60s — quality degrades on long takes); model=pro is more stable for multi-minute narration. Downloads to kie/assets/raw/.

Input Schema

NameRequiredDescriptionDefault
textNoSimple mode: the text to speak (single speaker). Inline tone tags like [whispers] work on flash. Ignored if dialogue_turns is set.
waitNoSet false to submit and return immediately with the task_id (async mode) — then poll with check_task and fetch with download_result.
modelNoflash = Gemini 3.1 Flash TTS (most expressive, 200+ inline tags, best <60s; ~4.2 cr/min). flash-3.8 = Gemini 3.8 Flash TTS (NEW Sept 2026, same inputs, ~1.9 cr/min, ~40% cheaper per clip in live tests). flash-lite = Gemini 3.8 Flash Lite TTS (NEW, cheapest at ~1.3 cr/min; draft/bulk narration). pro = Gemini 2.5 Pro TTS (more stable long-form, ~4.2 cr/min). 3.8 prices are kie limited-time pricing until 2026-12-31.flash
sceneNoScene description, e.g. "A quiet, warm room with a fireplace crackling softly."
filenameNoOutput filename (default gemini-tts-<ts>.wav)
speakersNoDialogue mode: 1-2 speakers as [{speaker_id: "Speaker 1", voice_name, audio_profile?, accent?, style?, pace?}]. accent: Neutral|American (Gen)|American (Valley)|American (South)|British (RP)|British (Brixton)|Transatlantic|Australian. style: Vocal Smile|Newscaster|Whisper|Empathetic|Promo/Hype|Deadpan. pace: Natural|Rapid Fire|The Drift|Staccato.
voice_nameNoSimple mode voice (default Zephyr)
max_creditsNoRefuse to submit if the estimated cost exceeds this many credits (overrides KIE_MAX_CREDITS_PER_CALL). Estimates come from published rates; kie bills the actual amount.
temperatureNoSampling temperature (default 1)
download_dirNoAbsolute directory to save into (created if missing). Defaults to the server's kie/assets/raw/.
estimate_onlyNoReturn the estimated credit cost WITHOUT submitting anything. Use before expensive runs (video, 4K, 1080p upgrades, layer splits).
dialogue_turnsNoDialogue mode: [{speaker_id, text}] in order; text ≤10000 chars, may contain tone tags
sample_contextNoOverall tone/direction, e.g. "Audiobook style narration. Tone is gentle and inviting."
max_wait_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv5.8.0
    • addedInput schema / properties / estimate_only
      Added value: +{
      +  "description": "Return the estimated credit cost WITHOUT submitting anything. Use before expensive runs (video, 4K, 1080p upgrades, layer splits).",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / max_credits
      Added value: +{
      +  "description": "Refuse to submit if the estimated cost exceeds this many credits (overrides KIE_MAX_CREDITS_PER_CALL). Estimates come from published rates; kie bills the actual amount.",
      +  "type": "number"
      +}
  2. Changed2 schema fields changedv5.3.0
    • changedInput schema / properties / model / description
      Previous value: -"flash = Gemini 3.1 Flash TTS (most expressive, 200+ inline tags, best <60s); pro = Gemini 2.5 Pro TTS (more stable long-form). Same price."New value: +"flash = Gemini 3.1 Flash TTS (most expressive, 200+ inline tags, best <60s; ~4.2 cr/min). flash-3.8 = Gemini 3.8 Flash TTS (NEW Sept 2026, same inputs, ~1.9 cr/min, ~40% cheaper per clip in live tests). flash-lite = Gemini 3.8 Flash Lite TTS (NEW, cheapest at ~1.3 cr/min; draft/bulk narration). pro = Gemini 2.5 Pro TTS (more stable long-form, ~4.2 cr/min). 3.8 prices are kie limited-time pricing until 2026-12-31."
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "flash",
      -  "pro"
      -]New value: +[
      +  "flash",
      +  "flash-3.8",
      +  "flash-lite",
      +  "pro"
      +]
  3. First observedv4.7.0

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does well: it discloses per-minute credit cost, the quality degradation on long flash takes, the default download destination (kie/assets/raw/), and the model tradeoffs. It does not address auth requirements, failure modes, or what happens on partial/retry runs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening is front-loaded with the distinguishing identity ('NEW — Google Gemini native TTS') before cost and modes, which is the right order for an agent. It is dense and somewhat list-like, and pricing appears both here and again per-model in the schema, but for a 14-parameter multimodal generation tool the length is largely justified.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex, annotation-free tool with no output schema and zero required parameters, the description covers the essentials an agent needs: mode selection, model choice, cost ceiling rationale, and output location. It omits guidance on failure/async recovery beyond the schema's own wait note, and gives no indication of rate limits or concurrency.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 93%, so the baseline is 3; the description adds value by grouping the 14 flat parameters into coherent modes ('Simple mode: pass text', 'Dialogue mode: pass speakers + dialogue_turns') and explaining the model enum's cost/quality tradeoffs rather than just listing values. It stops short of explaining mutually exclusive combinations or precedence rules beyond the single 'Ignored if dialogue_turns is set' note.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description identifies a specific resource (Google Gemini native TTS via kie.ai) and enumerates distinguishing capabilities: style-directed speech, 30 named voices, up to 2 speakers, inline tone tags. It implicitly separates itself from the ElevenLabs-based siblings via 'cheaper than all ElevenLabs tiers,' but it never names generate_tts or generate_dialogue, so the differentiation is inferential rather than explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is unusually concrete: it distinguishes Simple mode (text + optional voice_name) from Dialogue mode (speakers + dialogue_turns), and gives model-selection heuristics (flash for expressive short takes, pro for multi-minute stability). What is missing is an explicit 'use this instead of X' or when-not-to-use statement relative to the sibling TTS tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.