Skip to content

    Kokoro-82M

    Audio

    Kokoro-82M

    Kokoro-82M on FlexAI: hexgrad TTS, Apache 2.0 license, served via the OpenAI-compatible Token Factory at the live market-tracked rate.

    Pricing

    Price

    $0.558 / M chars

    Pricing source

    API endpoint

    /v1/audio/speech

    Compatibility

    OpenAI

    Parameters

    82M

    License

    Apache 2.0

    Hardware

    H100

    Quantization

    FP32

    Estimate your monthly cost

    M chars
    1,000 × $0.558/M chars$558
    Estimated monthly cost$558

    Estimate only, at the current market-tracked rate. Usage-based; no minimums.

    Get an API key

    Quick Start

    from openai import OpenAI
    
    client = OpenAI(base_url="https://tokens.flex.ai/v1", api_key="your-api-key")
    
    response = client.audio.speech.create(
        model="Kokoro-82M",
        voice="neutral_female",
        input="Hello! This is a test of the text to speech API.",
    )
    
    response.stream_to_file("out.wav")
    print("Saved out.wav")