Skip to main content

Ready-to-Use SDKs

AudioPod AI provides official SDKs that make it easy to integrate audio processing into your applications. Our SDKs handle authentication, request formatting, polling for job completion, and error handling automatically.

Quick Comparison

FeaturePythonNode.js
Packageaudiopodaudiopod
Min VersionPython 3.8+Node 16+
Type SupportType hintsFull TypeScript
Async SupportYesYes
File UploadYesYes
URL ProcessingYesYes
Auto-pollingYesYes

Installation

pip install audiopod

Quick Start

from audiopod import AudioPod

# Initialize client (uses AUDIOPOD_API_KEY env var)
client = AudioPod()
# Or pass API key directly
client = AudioPod(api_key="ap_your_api_key")

# Separate audio into stems
result = client.stems.separate(
    url="https://youtube.com/watch?v=VIDEO_ID",
    mode="six"
)

# Download stems
for stem, url in result["download_urls"].items():
    print(f"{stem}: {url}")

Available Services

Both SDKs provide access to the same set of services:
ServicePythonNode.jsDescription
Stemsclient.stemsclient.stemsAudio stem separation
Transcriptionclient.transcriptionclient.transcriptionSpeech-to-text
Voiceclient.voiceclient.voiceVoice cloning and TTS
Musicclient.musicclient.musicAI music generation
Denoiserclient.denoiserclient.denoiserNoise reduction
Speakerclient.speakerclient.speakerSpeaker diarization
Walletclient.walletclient.walletBalance and billing

Error Handling

Both SDKs provide typed exceptions for common error scenarios:
from audiopod import AudioPod, AuthenticationError, InsufficientBalanceError

try:
    client = AudioPod(api_key="ap_...")
    result = client.stems.separate(url="...", mode="six")
except AuthenticationError:
    print("Invalid API key")
except InsufficientBalanceError as e:
    print(f"Need ${e.required_cents / 100:.2f}")

Environment Variables

Both SDKs automatically read from the AUDIOPOD_API_KEY environment variable:
export AUDIOPOD_API_KEY="ap_your_api_key"

Next Steps