OpenAI

gpt-4o-mini-tts API pricing and integration

Integrate gpt-4o-mini-tts using the published protocols below. Review context limits and billing units before choosing request parameters.

Model ID: gpt-4o-mini-tts · Catalog updated: 2026-11-04

Published base prices

Input
$0.60
/ 1M tokens
Output
$12.00
/ 1M tokens
-

Account discounts and final billing are shown in your dashboard.

Model parameters and protocols

Context window
See model documentation
Maximum output
See model documentation
Billing type
composite
Published protocols
/v1/audio/speech

Parameters and tool support

A listed protocol does not imply support for every parameter or hosted tool. Image input, reasoning options, structured output, and tool execution depend on the model and route. Validate your workload with a small request and preserve session context for tool continuations.

Tools and sessions guide

Integration examples

Complete examples

Generated from the model’s public capabilities and updated with every selection.

Supported protocols only
Protocol
Language
pip install openai
Audio · SpeechPythonDefault provider
Audio · Speech · Python
import os
from pathlib import Path
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["GR_API_KEY"],
    base_url="https://endpoint.greatrouter.com"
)

with client.audio.speech.with_streaming_response.create(
    model="gpt-4o-mini-tts",
    voice="alloy",
    input="Today is a wonderful day to build something people love!",
) as response:
    response.stream_to_file(Path("speech.mp3"))