Skip to main content
The Archetype AI Python client uses environment variables for authentication and API configuration.

Required Variables

ATAI_API_KEY

Your unique API key for authenticating with the Archetype platform.
To obtain an API key, contact [email protected].

ATAI_API_ENDPOINT

The base URL for the Archetype platform API. It ends in /api, and endpoint paths such as /projects are appended to it.
If you’re using the free trial, use this instead:
Include /api but no version path in the endpoint — every service, including the Fine-Tuning Service, uses the same base URL. A malformed endpoint fails with 404 errors, which the Python client surfaces as an empty ApiError: {}.

Setting Environment Variables

Add the following to your shell configuration file (~/.bashrc, ~/.zshrc, or similar):
If you’re using the free trial, ATAI_API_ENDPOINT use this instead:
Then reload your shell:

Verifying Configuration

To verify your environment variables are set correctly:
Both should display the values you configured.