| Method | Path | Body |
|---|---|---|
| POST | /v2/audio |
multipart — audio_file |
| POST | /v2/audio/estimate-credits |
JSON |
| POST | /v2/audio/text-2-speech |
JSON — prompt, voice, option |
| POST | /v2/audio/text-2-sound-effect |
JSON — prompt, duration |
| POST | /v2/audio/text-2-music |
JSON — prompt |
results on the returned asset (audio URL strings).data wrapperresults; poll by asset id when async_mode is trueGeneration routes run synchronously by default (async_mode is not used on audio).
X-Api-Key: YOUR_API_KEY on every request.
Legacy form-data routes (with data wrapper on some responses) remain at /image/*, /video/*, /audio/*, and /text/* (tagged (Legacy) in the schema).
Uploads an audio file. multipart/form-data — field audio_file.
import requests
with open("voiceover.mp3", "rb") as f:
r = requests.post(
"https://api.vimmerse.net/v2/audio",
headers={"X-Api-Key": "YOUR_API_KEY"},
files={"audio_file": ("voiceover.mp3", f, "audio/mpeg")},
timeout=120,
)
print(r.json()["results"])
Authorization (string) or Authorization (null) (Authorization) | |
Username (string) or Username (null) (Username) | |
X-Client-Type (string) or X-Client-Type (null) (X-Client-Type) |
New Audio URL
Bad Request
Insufficient Credit
Validation Error
{- "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
- "customer_id": "customer123",
- "primary_user_id": "user-abc-123",
- "args": {
- "prompt": "Welcome to the show.",
- "option": "ElevenLabsTTS",
- "voice": "AutoV"
}, - "thumbnails": [ ],
- "status": "success",
- "mime_type": "audio/mp3",
- "app_name": "text-to-speech",
- "quantity": 1,
- "credits": 8,
- "created_at": "2025-05-06T16:35:59.840508+00:00",
- "updated_at": "2025-05-06T16:36:12.102933+00:00",
- "history": [ ]
}Estimates credits without creating an asset.
| Field | Required | Notes |
|---|---|---|
app_name |
Yes | text-to-speech, text-to-audio, text-to-music, upload-audio |
option |
Yes | e.g. AutoA, ElevenLabsTTS, ChirpTTS, ElevenLabsSE, MMAudio, Lyria |
quantity |
No | Default 1 |
prompt |
No | Length-based pricing when applicable |
duration |
No | Seconds (sound effects) |
voice |
No | e.g. AutoV (text-to-speech) |
Credit estimate and breakdown
Validation Error
{- "total_credits": 0,
- "breakdown": { }
}Text-to-speech from prompt.
| Field | Default | Notes |
|---|---|---|
voice |
AutoV |
See schema for voice names |
option |
ElevenLabsTTS |
or ChirpTTS |
language |
"" |
e.g. en-US; auto-detected if empty |
import requests
r = requests.post(
"https://api.vimmerse.net/v2/audio/text-2-speech",
headers={"X-Api-Key": "YOUR_API_KEY", "Content-Type": "application/json"},
json={"prompt": "Hello from Vimmerse.", "voice": "AutoV", "option": "ElevenLabsTTS"},
timeout=300,
)
print(r.json()["results"])
Authorization (string) or Authorization (null) (Authorization) | |
Username (string) or Username (null) (Username) | |
X-Client-Type (string) or X-Client-Type (null) (X-Client-Type) |
Generated speech
Bad Request
Insufficient Credit
Validation Error
{- "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
- "customer_id": "customer123",
- "primary_user_id": "user-abc-123",
- "args": {
- "prompt": "Welcome to the show.",
- "option": "ElevenLabsTTS",
- "voice": "AutoV"
}, - "thumbnails": [ ],
- "status": "success",
- "mime_type": "audio/mp3",
- "app_name": "text-to-speech",
- "quantity": 1,
- "credits": 8,
- "created_at": "2025-05-06T16:35:59.840508+00:00",
- "updated_at": "2025-05-06T16:36:12.102933+00:00",
- "history": [ ]
}Sound effect from prompt. duration: length in seconds (default 5).
Authorization (string) or Authorization (null) (Authorization) | |
Username (string) or Username (null) (Username) | |
X-Client-Type (string) or X-Client-Type (null) (X-Client-Type) |
Generated sound effect
Bad Request
Insufficient Credit
Validation Error
{- "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
- "customer_id": "customer123",
- "primary_user_id": "user-abc-123",
- "args": {
- "prompt": "Welcome to the show.",
- "option": "ElevenLabsTTS",
- "voice": "AutoV"
}, - "thumbnails": [ ],
- "status": "success",
- "mime_type": "audio/mp3",
- "app_name": "text-to-speech",
- "quantity": 1,
- "credits": 8,
- "created_at": "2025-05-06T16:35:59.840508+00:00",
- "updated_at": "2025-05-06T16:36:12.102933+00:00",
- "history": [ ]
}Music from prompt (Lyria). Returns WAV in results.
Authorization (string) or Authorization (null) (Authorization) | |
Username (string) or Username (null) (Username) | |
X-Client-Type (string) or X-Client-Type (null) (X-Client-Type) |
Generated music
Bad Request
Insufficient Credit
Validation Error
{- "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
- "customer_id": "customer123",
- "primary_user_id": "user-abc-123",
- "args": {
- "prompt": "Welcome to the show.",
- "option": "ElevenLabsTTS",
- "voice": "AutoV"
}, - "thumbnails": [ ],
- "status": "success",
- "mime_type": "audio/mp3",
- "app_name": "text-to-speech",
- "quantity": 1,
- "credits": 8,
- "created_at": "2025-05-06T16:35:59.840508+00:00",
- "updated_at": "2025-05-06T16:36:12.102933+00:00",
- "history": [ ]
}