
Change of October 21, 2026
On October 21, 2026, llmbox added an audio API on ElevenLabs models. It covers five tasks: text to speech, speech recognition, voice changing, sound effects and music. They use the same key and the same balance as the text models, and you can send requests in either the ElevenLabs or the OpenAI format.
What it does
| Task | Endpoint | Example model |
|---|---|---|
| Text to speech | POST /v1/text-to-speech/{voice_id} and /stream | eleven_multilingual_v2 |
| Speech recognition | POST /v1/speech-to-text | scribe_v2, the model_id field is required |
| Voice changing | POST /v1/speech-to-speech/{voice_id} | eleven_multilingual_sts_v2 |
| Sound effects | POST /v1/sound-generation | eleven_text_to_sound_v2 |
| Music | POST /v1/music and /stream | music_v1 |
For text to speech, voice changing, sound effects and music, the models above are used by default when model_id is not passed. For speech recognition, specify the model explicitly.
You can also list voices (GET /v1/voices, GET /v2/voices, the shared voice library) and models in the ElevenLabs format. Voice requests are free.
The catalog also includes other text-to-speech models, such as Eleven v3, and music models. All of them are collected in the audio model collection.
Two request formats
The official ElevenLabs SDKs for Python and Node work: just point them at the llmbox address. In the SDK, the address is set without /v1, and the key is passed as xi-api-key.
import os
from elevenlabs.client import ElevenLabs
client = ElevenLabs(base_url="https://llmbox.cc", api_key=os.environ["LLMBOX_API_KEY"])
audio = client.text_to_speech.convert(
voice_id="VOICE_ID",
text="Hello. This is a voice test.",
model_id="eleven_multilingual_v2",
output_format="mp3_44100_128",
)
with open("speech.mp3", "wb") as f:
for chunk in audio:
f.write(chunk)
Text to speech and recognition are also available in the OpenAI format: POST /v1/audio/speech and POST /v1/audio/transcriptions. Here the regular OpenAI SDK works with the base URL https://llmbox.cc/v1. OpenAI voices such as alloy or nova are mapped to ElevenLabs voices, and any other voice value is treated as an ElevenLabs voice ID.
import os
from openai import OpenAI
client = OpenAI(base_url="https://llmbox.cc/v1", api_key=os.environ["LLMBOX_API_KEY"])
speech = client.audio.speech.create(
model="eleven_multilingual_v2", voice="alloy", input="Hello.", response_format="mp3",
)
speech.write_to_file("speech.mp3")
with open("input.mp3", "rb") as f:
text = client.audio.transcriptions.create(model="scribe_v2", file=f, language="en")
print(text.text)
Formats and limits
- Text to speech accepts up to 50,000 characters of text. Response formats:
mp3,opus,pcm,wav,ulaw,alawandm4a_aac_44100_128, withmp3_44100_128by default. - Speech recognition accepts an audio or video file up to 90 MiB and returns text with words and timestamps, and with
diarizeit also separates speakers. - A sound effect lasts from 0.5 to 30 seconds, and a music track generated from a description lasts from 3 to 600 seconds.
- In the OpenAI format, text to speech supports
mp3,opus,wavandpcm, and recognition returnsjson,textandverbose_json.
How pricing works
Each task is billed in its own units. Text to speech is counted by the number of characters, recognition by the duration of the input audio, and voice changing, sound effects and music by the duration of the resulting audio. Each model's rates and a calculator are on its catalog page.
For the full parameter reference, curl and Node examples and error codes, see the documentation page ElevenLabs-compatible API. SDK setup is described in OpenAI and ElevenLabs SDKs.
Published November 15, 2026


