Logo
Back to all models

GPT-4o mini TTS - In-Depth Overview

OpenAI · GPT-4o mini

Current
Latest in family

Get all the details on GPT-4o mini TTS, an AI model from OpenAI. This page covers its token limits, pricing structure, key capabilities such as text_to_speech, available API code samples, and performance strengths.

Key Metrics

Input Limit

2K tokens

Output Limit

No data tokens

Input Cost

$0.60/1M

Output Cost

$12.00/1M

Sample API Code

from openai import OpenAI

client = OpenAI()

response = client.audio.speech.create(
  model="gpt-4o-mini-tts",
  voice="alloy", # or other available voices
  input="Hello world! This is a test of the OpenAI text-to-speech API."
)

response.stream_to_file("output.mp3")

Required Libraries

openai
openai

Notes

Text-to-speech model powered by GPT-4o mini. Converts text to natural sounding spoken text.

Capabilities

text to speech

Supported Data Types

Input Types

text

Output Types

audio

Strengths & Weaknesses

Good at

text to speech quality

Additional Information

Latest Update

Jul 18, 2024

Knowledge Cutoff

No data