AI for Production: we'll match your first deposit 100% (x2 credits), up to $1,000 in bonus credits. Limited time.Bonus termsGet API key

LLM API
OpenAIText to speechReleased April 19, 2026

GPT-4o Mini TTS

GPT-4o Mini TTS turns text into speech for $0.0006 per 1K characters on LLM API.

Pricing

Served by OpenAI, the only provider.

GPT-4o Mini TTS prices on LLM API
Text to speech$0.0006/ 1K charactersper 1K characters

Call GPT-4o Mini TTS

POST /v1/audio/speechSet LLMAPI_KEY to your LLM API key.Speech docs

import os

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="gpt-4o-mini-tts",
    voice="alloy",
    input="Hello from LLM API",
)
speech.write_to_file("hello.mp3")

More from OpenAI

All OpenAI audio models

Prices synced .

You've been invited to LLM API

Top up $50 or more and the friend who invited you gets $20 in credits. We pay the $20; your credits stay yours. Referral terms

Sign up