Eleven Multilingual v2

eleven-multilingual-v2
byElevenLabs|Created May 25, 2025
Speech

Eleven-Multilingual-v2 is ElevenLabs’ most advanced multilingual text-to-speech model, delivering high-quality voice synthesis across a wide range of languages with improved realism and expressiveness. It is optimized for both accuracy and naturalness in multilingual scenarios.

Code Example

Example code for using this model through our API with Python (OpenAI SDK) or cURL. Replace placeholders with your API key and model ID.

Basic request example. Ensure API key permissions. For more details, see our documentation.

from openai import OpenAI
from pathlib import Path

client = OpenAI(base_url="https://api.naga.ac/v1", api_key="YOUR_API_KEY")

speech_file_path = Path("speech.mp3")
resp = client.audio.speech.create(
    model="eleven-multilingual-v2",
    voice="alloy",  # type: ignore
    input="Hello from NagaAI Text-to-Speech!"
)
resp.stream_to_file(speech_file_path)