# Gemini 3.1 Flash TTS (Preview)

Gemini 3.1 Flash TTS (Preview) turns text into speech for $0.004 per 1K characters on LLM API.

Model ID: `gemini-3.1-flash-tts-preview` · Google · Text to speech · Released April 15, 2026
Updated: 2026-10-13
Canonical: https://llmapi.ai/models/google-gemini-3-1-flash-tts-preview/

- Per 1K characters: $0.004
- Task: Text to speech

## Pricing

Served by Google AI Studio, the only provider.

| Price | Amount | Per |
| --- | --- | --- |
| Text to speech | $0.004 | per 1K characters |

**Volume pricing.** At higher monthly volume, Gemini 3.1 Flash TTS (Preview) may cost less. Book a call and sales will quote a price for your usage. [Book a call with sales](https://meetings.hubspot.com/julia-andriienko/llmapi) or [Create an account first](https://app.llmapi.ai/signup).

## Call Gemini 3.1 Flash TTS (Preview)

### Speech (`POST /v1/audio/speech`)

Set LLMAPI_KEY to your LLM API key.

```python
import os
import wave

from openai import OpenAI

client = OpenAI(
    base_url="https://api.llmapi.ai/v1",
    api_key=os.environ["LLMAPI_KEY"],
)

speech = client.audio.speech.create(
    model="gemini-3.1-flash-tts-preview",
    voice="Kore",
    input="Hello from LLM API",
)
with wave.open("hello.wav", "wb") as f:  # raw PCM: 24 kHz, 16-bit, mono
    f.setnchannels(1)
    f.setsampwidth(2)
    f.setframerate(24000)
    f.writeframes(speech.content)
```

Docs: [Speech docs](https://docs.llmapi.ai/api/v1/audio)

## More from Google

- [Google Chirp 3](https://llmapi.ai/models/chirp-3/): $0.016 per minute
- [Gemini 2.5 Flash Preview TTS](https://llmapi.ai/models/google-gemini-2-5-flash-preview-tts/): $0.002 per 1K characters
- [Gemini 2.5 Pro Preview TTS](https://llmapi.ai/models/google-gemini-2-5-pro-preview-tts/): $0.004 per 1K characters

Prices synced 2026-11-03.

Next step: [Get API key](https://app.llmapi.ai/signup)
