speech-02-hd API
speech-02-hd is a speech model from MiniMax, available on OneFast API behind the same API key as every other model in the catalog.
Pricing
| Usage | Price (USD) |
|---|---|
| Text-to-speech | $125.00 / 1M characters |
Billed by the number of characters synthesized. The price shown is the public list price; after signing in, the console shows the price for your own account.
Model details
| Model ID | speech-02-hd |
| Provider | MiniMax |
| Type | Audio |
Endpoints
POST /v1/audio/speech— Text-to-speech (docs)
Quickstart
Create an API key in the console, then call the API:
curl https://api.onefast.ai/v1/audio/speech \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "speech-02-hd",
"input": "Hello, and welcome to our service.",
"response_format": "mp3"
}' --output speech.mp3More examples: Text-to-speech docs · Quickstart.