Pricing per million tokens, context window, capabilities — pulled from each provider's public docs. All 2 are available via the same AIgateway OpenAI-compatible endpoint; flip the model string to switch.
MiniMax Speech 2.8 HD focuses on studio-grade audio generation with emotion control, multilingual support (40+ languages), and voice cloning.
OpenAI's high-definition text-to-speech model producing higher quality audio output.
from openai import OpenAI
client = OpenAI(
base_url="https://api.aigateway.sh/v1",
api_key="sk-aig-...",
)
# MiniMax Speech 2.8 HD
client.chat.completions.create(
model="minimax/speech-2.8-hd",
messages=[{"role":"user","content":"hello"}],
)
# TTS-1 HD
client.chat.completions.create(
model="openai/tts-1-hd",
messages=[{"role":"user","content":"hello"}],
)