AniwaffleDocsHomeStudio

Get started

Quickstart

Generate your first speech file with the Aniwaffle API: list your voices, send text to POST /v1/tts, and save the audio.

Prerequisites

  • A workspace. Aniwaffle is invite-only for now. Request access if you don't have one.
  • An API key. In Studio, open API keys and select Create API key. The key starts with awp_ and is shown once. See Authentication.
  • A runtime. cURL, Node.js 20 or later, or Python 3.11 or later with httpx (pip install httpx).

Store the key in an environment variable:

bash
export ANIWAFFLE_API_KEY="awp_..."

Note: Keep API keys on your server. Browser and mobile clients connect with short-lived stream tokens instead.

1. Choose a voice

List the voices your key can use. Every workspace includes built-in voices; voices your team clones appear here too.

curl https://aniwaffle.com/v1/voices \
  --header "Authorization: Bearer $ANIWAFFLE_API_KEY"
Response
{
  "voices": [
    {
      "id": "YOUR_VOICE_ID",
      "name": "Example voice",
      "output_formats": ["pcm_24000", "pcm_44100", "pcm_48000", "aac_44100_128"],
      "capabilities": ["tts", "voice_tags"]
    }
  ]
}

Copy a voice id and store it:

bash
export ANIWAFFLE_VOICE_ID="YOUR_VOICE_ID"

You can also copy an ID in Studio: open the voice, then select More actions › Copy ID.

2. Generate speech

Send the text, the voice and an output format to POST /v1/tts. The response body is the audio file.

curl https://aniwaffle.com/v1/tts \
  --fail-with-body \
  --header "Authorization: Bearer $ANIWAFFLE_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "text": "Hello! This is my first line from Aniwaffle.",
    "voice_id": "'"$ANIWAFFLE_VOICE_ID"'",
    "output_format": "aac_44100_128"
  }' \
  --output speech.aac

Open speech.aac in any audio player. Each response carries an X-Request-Id header; include it if you contact support.

If the request fails, the body is a JSON error instead of audio. See Errors.

Next steps

Contact our team

Tell us about your character and what you’d like to build.