VoxCPM 2
VoxCPM 2 API for text to speech at $0.00282 per second. Natural speech. Call it on /v1/audio/speech and pay as you go in USD.
- Price
- $0.00282
- Unit
- per second
- Type
- Text to speech
- Endpoint
- /v1/audio/speech
Pricing
$0.00282 per second
Estimated $0.02256
USD, charged from your prepaid balance at the listed price. List price; a few keys on special plans may differ. How billing works
What it does
Natural speech
- Model ID
- voxcpm-2
API
POST /v1/audio/speech
Returns the result in the response. Set BIGMODEL_API_KEY to your API key first.
cURL
curl https://bigmodel.io/v1/audio/speech \
-H "Authorization: Bearer $BIGMODEL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "voxcpm-2",
"input": "Welcome to BigModel.io. One key for every model.",
"voice": "VOICE_ID"
}' \
--output speech.mp3Python, Node.js, every input field and error handling are in the guide. Guide →