Gemini 3.1 Flash TTS Preview: toman pricing and API

Text to speech · google/gemini-3.1-flash-tts-preview

Price
about21,119toman per 1,000 characters

You see the exact estimate before each run and an amount is held; afterwards only the real cost is charged, and a failed run is free.

API example

python
from openai import OpenAI

client = OpenAI(base_url="https://api.uttapen.ir/v1", api_key="sk-up-...")

audio = client.audio.speech.create(model="google/gemini-3.1-flash-tts-preview", voice="<voice>", input="سلام! به یوتاپن خوش آمدید.")
audio.write_to_file("hello.mp3")
Maker's own description

Gemini 3.1 Flash TTS Preview is a text-to-speech model from Google, and a substantial generational step up from Gemini 2.5 Flash TTS. It takes text input and produces audio output...