> ## Documentation Index
> Fetch the complete documentation index at: https://docs.timepay.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Generate your first speech in under 2 minutes.

Welcome to the Vox platform! This guide will help you generate your first hyper-realistic audio using the Vox API.

## Prerequisites

<Steps>
  <Step title="Sign Up & Get API Key">
    1. Visit [vox.timepay.ai](https://vox.timepay.ai) and sign up for an account.
    2. Navigate to the **API Keys** tab.
    3. Create a new API Key and copy it immediately.
  </Step>

  <Step title="Set Environment Variable">
    It is best practice to keep your key secure. Export it in your terminal:

    ```bash theme={null}
    export TIMEPAY_API_KEY="YOUR_API_KEY_HERE"
    ```
  </Step>
</Steps>

## Generate Speech

Since Vox is designed for flexibility, you can interact with the API using any standard HTTP client.

<Note>
  **Note on Streaming:** The endpoint streams audio data in chunks to ensure ultra-low latency. The examples below demonstrate how to capture this stream and save it to a file.
</Note>

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST "https://api.tts.timepay.ai/api/v1/get_speech" \
    -H "Authorization: Bearer YOUR_API_KEY_HERE" \
    -H "Content-Type: application/json" \
    -d '{
      "text": "Hello world! This is Vox speaking.",
      "voice_id": "khvTFYgvagfvagvfuavdf",
      "language": "en",
      "add_wav_header": true,
      "speed":1.0,
      "sample_rate": 24000
    }' \
    --output output.wav
  ```
</CodeGroup>

## Need Help?

If you have any questions or need assistance, please contact our support team at [support@timepay.ai](mailto:support@timepay.ai).
