Skip to main content

Installation

pip install lokutor

Authenticate

Get your API key from the Lokutor dashboard and set it as an environment variable:
export LOKUTOR_API_KEY="your-api-key"

Your First Request

from lokutor import Client

client = Client()  # Uses LOKUTOR_API_KEY env var

# Synthesize text to speech
audio = client.tts.synthesize(
    text="Hello, this is Lokutor!",
    voice="M1",
    quality="high"
)

# Save to file
with open("output.mp3", "wb") as f:
    f.write(audio)

Next Steps