Overview

Welcome to AudioPod AI! This guide will help you make your first API call in just a few minutes. By the end of this guide, you’ll have:
  1. Created an AudioPod AI account
  2. Generated your API key
  3. Made your first text-to-speech API call
  4. Understood credit usage and billing

Step 1: Create Your Account

Sign up for a free AudioPod AI account to get started:

Sign Up for AudioPod AI

Create your free account with 10,000 credits

Step 2: Get Your API Key

After creating your account:
  1. Log into the AudioPod AI account
  2. Navigate to API Keys in the sidebar
  3. Click Create New API Key
  4. Copy your API key and store it securely
Keep your API key secure and never expose it in client-side code. Use environment variables in production.
While you can use any HTTP client, we highly recommend using our official SDKs for a better developer experience:
pip install audiopod-client

Step 4: Authentication Setup

Set up your API key in your environment:
# Set environment variable
import os
os.environ['AUDIOPOD_API_KEY'] = 'your_api_key_here'

# Or use .env file
# Create .env file with: AUDIOPOD_API_KEY=your_api_key_here
from dotenv import load_dotenv
load_dotenv()

Step 5: Make Your First API Call

Let’s start with a simple text-to-speech generation:
from audiopod import Client

# Initialize client
client = Client()

# Generate speech
result = client.voice.generate_speech(
    voice_id="aura",
    text="Hello world! This is my first AudioPod AI generated voice.",
    language="en",
    audio_format="mp3",
    wait_for_completion=True
)

print(f"Audio generated: {result.output_url}")

# Download the audio file
import requests
audio_response = requests.get(result.output_url)
with open("hello_world.mp3", "wb") as f:
    f.write(audio_response.content)

print("Audio saved as hello_world.mp3")

Step 6: Explore More Features

Now that you’ve made your first call, let’s try some other popular features:

Voice Cloning

Create a custom voice from a sample:
# Create a voice profile from audio sample
voice_profile = client.voice.create_voice_profile(
    name="My Custom Voice",
    voice_file="path/to/voice_sample.wav",
    description="A custom voice for my project",
    wait_for_completion=True
)

print(f"Voice profile created: {voice_profile.id}")

# Use the new voice for speech generation
cloned_speech = client.voice.generate_speech(
    voice_id=voice_profile.id,
    text="This is my cloned voice speaking!",
    wait_for_completion=True
)

print(f"Cloned speech: {cloned_speech.output_url}")

Music Generation

Generate AI music from text prompts:
# Generate music from text prompt
music_job = client.music.generate_music(
    prompt="upbeat electronic dance music with heavy bass",
    duration=120.0,  # 2 minutes
    wait_for_completion=True
)

print(f"Music generated: {music_job.output_url}")

# Generate rap music
rap_job = client.music.generate_rap(
    lyrics="AudioPod AI, the future is here, Making music that's crystal clear",
    style="modern",
    tempo=120,
    wait_for_completion=True
)

print(f"Rap generated: {rap_job.output_url}")

Speech-to-Text Transcription

Convert audio to text with speaker diarization:
# Transcribe audio file
transcription = client.transcription.transcribe_audio(
    audio_file="path/to/meeting_recording.wav",
    language="en",
    enable_speaker_diarization=True,
    enable_word_timestamps=True,
    wait_for_completion=True
)

print(f"Transcript: {transcription.transcript}")
print(f"Detected language: {transcription.detected_language}")

# Transcribe from URL (YouTube, etc.)
url_transcription = client.transcription.transcribe_url(
    url="https://youtube.com/watch?v=example",
    enable_speaker_diarization=True,
    wait_for_completion=True
)

print(f"URL Transcript: {url_transcription.transcript}")

Step 7: Understanding Credits

AudioPod AI uses a credit-based billing system:
  • Text to Speech: 330 credits per minute
  • Speech-to-Text: 660 credits per minute
  • Voice Cloning: 330 credits per minute
  • Voice Changer: 990 credits per minute
  • Speech Translation: 3300 credits per minute
  • Music Generation: 1320 credits per minute
  • Stem Splitter: 990 credits per minute
  • Noise Reduction: 330 credits per minute
  • Speaker Separation: 1650 credits per minute
New accounts receive 10,000 credits to get started. Check your AudioPod Account to monitor usage.

Check Your Credit Balance

# Check credit balance
credits = client.credits.get_credit_balance()
print(f"Available credits: {credits.balance}")
print(f"Pay-as-you-go credits: {credits.payg_balance}")
print(f"Total available: {credits.total_available_credits}")

# Get usage history
usage_history = client.credits.get_usage_history()
for usage in usage_history:
    print(f"Used {usage.credits_used} credits for {usage.feature}")

Step 8: Additional Features

Here are more advanced features you can try:

Audio Translation

Translate speech from one language to another:
# Translate audio file
translation = client.translation.translate_audio(
    audio_file="path/to/spanish_audio.wav",
    target_language="en",
    source_language="es",
    wait_for_completion=True
)

print(f"Translated audio: {translation.translated_audio_url}")
print(f"Original transcript: {translation.transcript}")
print(f"Translated text: {translation.translated_text}")

Audio Enhancement

Remove noise from audio files:
# Denoise audio
denoised = client.denoiser.denoise_audio(
    audio_file="path/to/noisy_audio.wav",
    quality_mode="balanced",
    wait_for_completion=True
)

print(f"Denoised audio: {denoised.output_url}")

Stem Separation

Separate music into individual instruments:
# Split stems from music
stems = client.stem_extraction.extract_stems(
    audio_file="path/to/song.wav",
    stem_types=["vocals", "drums", "bass", "other"],
    wait_for_completion=True
)

print("Separated stems:")
for stem_type, url in stems.download_urls.items():
    print(f"{stem_type}: {url}")

Next Steps

Congratulations! You’ve successfully made your first API call. Here’s what to explore next:

Common Issues

Need Help?

Join Our Discord Community

Get help from our team and connect with other developers building with AudioPod AI.