Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.together.ai/llms.txt

Use this file to discover all available pages before exploring further.

Audio translation converts speech from any language to English text:
from pathlib import Path

response = client.audio.translations.create(
    file=Path("french_audio.mp3"),
    model="openai/whisper-large-v3",
)
print(f"English translation: {response.text}")

Translation with context

from pathlib import Path

response = client.audio.translations.create(
    file=Path("business_meeting_spanish.mp3"),
    model="openai/whisper-large-v3",
    prompt="This is a business meeting discussing quarterly sales results.",
)