GPT-4o Mini TTS (Free)

gpt-4o-mini-tts:free
byOpenAI|Created Jun 10, 2025
Speech

A text-to-speech model built on GPT-4o mini, a fast and powerful language model. Use it to convert text into natural-sounding spoken audio.

Pricing

Pay-as-you-go rates for this model. More details can be found here.

Free

Capabilities

Input Modalities

Text

Output Modalities

Audio

Supported Parameters

Available parameters for API requests

Instructions
Response Format
Speed

Usage Analytics

Token usage of this model on our platform

Throughput

Not enough throughput data

Time-To-First-Token (TTFT)

Not enough TTFT data

Code Example

Example code for using this model through our API with Python (OpenAI SDK) or cURL. Replace placeholders with your API key and model ID.

Basic request example. Ensure API key permissions. For more details, see our documentation.

from openai import OpenAI
from pathlib import Path

client = OpenAI(base_url="https://api.naga.ac/v1", api_key="YOUR_API_KEY")

speech_file_path = Path("speech.mp3")
resp = client.audio.speech.create(
    model="gpt-4o-mini-tts:free",
    voice="alloy",  # type: ignore
    input="Hello from NagaAI Text-to-Speech!"
)
resp.stream_to_file(speech_file_path)