Skip to main content

Get Your API Key

Sign up for a free Fish Audio account to get started with our API.
  1. Sign up on fish.audio
  2. Fill in your details to create an account, complete steps to verify your account.
  3. Log in to your account and open Get Started
Once you have an account, you’ll need an API key to authenticate your requests.
  1. Log in and open Get Started
  2. Click “Get your API key”: the key is created in one click and shown only once
  3. Copy your key and store it securely
Keep your API key secret! Never commit it to version control or share it publicly.

Client Initialization

Initialize the FishAudio client with your API key: Install the Python SDK first: pip install fish-audio-sdk.

Verifying Authentication

Test your authentication by making a simple API call to check your account credits:
Handle AuthenticationError when verifying authentication. The example uses get_credits() to verify the authentication works.

Next Steps

Text-to-Speech

Generate speech with the authenticated client

Voice Cloning

Clone voices and create custom models

Account Management

Check credits and manage your account

Error Handling

Handle authentication errors properly