The Python SDK is the recommended starting point and is fully covered below.
The JavaScript SDK is in early release — see the JavaScript SDK
guide for its current
surface.
1. Install
2. Authenticate
Create a Fish Audio account
Create a Fish Audio account
Sign up for a free Fish Audio account to get started with our API.
- Go to fish.audio/auth/signup
- Fill in your details to create an account, complete steps to verify your account.
- Log in to your account and navigate to the API section
Get your API key
Get your API key
Once you have an account, you’ll need an API key to authenticate your requests.
- Log in to your Fish Audio Dashboard
- Navigate to the API Keys section
- Click “Create New Key” and give it a descriptive name, set a expiration if desired
- Copy your key and store it securely
FISH_API_KEY environment variable:
3. Generate your first audio
output.mp3 (Python) or local playback (JavaScript). That’s it — you’re generating speech.
Next steps
Text-to-Speech
Voices, formats, prosody, and model selection
Voice Cloning
Instant cloning and persistent voice models
Realtime WebSocket
Stream LLM tokens to speech as they arrive
Errors & Retries
Exception types, retries, and timeouts
Cookbook
Task-focused recipes
API Reference
Full Python SDK reference

