How to Authenticate with the API

All requests must be made over HTTPS and will usually be authenticated using an API key. To create your first API Key, please create an account at


Shhh! Keep your API key a secret 🫣

API keys are like passwords. They should not be added to client-side code or checked into your application's code, including in Github repositories.

import audiostack  
import os

audiostack.api_key = os.environ["AUDIO_STACK_DEV_KEY"]

If you're using the AudioStack Python SDK, you can include your API key in any Python scripts you create just like this. This allows AudioStack to identify you, so you can access private content such as sound templates and cloned voices that are specific to your user account or organisation. It's also how we track how many credits you're using.

What’s Next

Have a read of some of the other tutorials