MiniMax Speech 2.6 Turbo Speech API – API Reference
Endpoints and request shape
This page collects the public integration surface for the model: supported endpoints, available request parameters, and example calls through the NagaAI API.
Speech
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="speech-2.6-turbo",
voice="alloy",
input="Hello from NagaAI Text-to-Speech!"
)
resp.stream_to_file(speech_file_path)
MiniMax Speech 2.6 brings comprehensive upgrades with ultra-low latency, enhanced format handling, and a more natural, human-like voice for Voice Agent scenarios.