Vibevoice 7b
Designed to produce rich, multi-speaker conversations from text, the model is well-suited for podcasts and other long-form audio content. The 7-billion-parameter version of the model.
Setup your API Key
If you don’t have an API key for the AI/ML API yet, feel free to use our Quickstart guide.
API Schema
post
Body
modelstring · enumRequiredPossible values:
scriptstring · min: 1 · max: 5000Required
The script to convert to speech. Can be formatted with "Speaker X:" prefixes for multi-speaker dialogues.
seedintegerOptional
If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed.
cfg_scalenumber · min: 0.1 · max: 2OptionalDefault:
The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt.
1.3streamboolean · enumOptionalDefault:
falsePossible values: Responses
200Success
audiostring · uriRequired
post/v1/tts
curl -L \
--request POST \
--url 'https://api.aimlapi.com/v1/tts' \
--header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"model": "microsoft/vibevoice-7b",
"script": "Cities of the future promise to radically transform how people live, work, and move. Instead of sprawling layouts, we will see vertical structures that integrate residential, work, and public spaces into single, self-sustaining ecosystems. Architecture will adapt to climate conditions, and buildings will be energy-efficient—generating power through solar panels, wind turbines, and even foot traffic."
}'200Success
{
"audio": "https://example.com",
"meta": {
"usage": {
"credits_used": 120000,
"usd_spent": 0.06
}
}
}Code Example
Last updated
Was this helpful?