Prerequisites
Create a Fish Audio account
Create a Fish Audio account
Sign up for a free Fish Audio account to get started with our API.
- Sign up on fish.audio
- Fill in your details to create an account, complete steps to verify your account.
- Log in to your account and open Get Started
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 and open Get Started
- Click “Get your API key”: the key is created in one click and shown only once
- Copy your key and store it securely
Exception hierarchy
Every SDK error inherits fromFishAudioError. HTTP failures raise APIError or one of its subclasses, which expose .status, .message, and .body.
Handling errors
Install the Python SDK first:pip install fish-audio-sdk.
Retries
The Python client does not retry automatically. Add your own backoff where it matters, typically aroundRateLimitError and ServerError:
RequestOptions accepts a max_retries field, but the current client does
not act on it. Use an explicit loop like the one above.Timeouts
The request timeout is set on the client (seconds; default240):
request_options:
Related
- Exceptions API reference
- Real-time WebSocket:
WebSocketErrorhandling

