Quick Start

Quick Start

If you're using OpenAI chat completions in Python, you can get set up in 2 minutes

Get an API Key

Sign up for an account at https://app.athina.ai (opens in a new tab) to get an API key.

Start Logging

If you are using OpenAI streaming, or anything other than ChatCompletion, then please follow this guide

The easiest way to start logging your inferences is to use our python SDK.

  1. Run pip install athina-logger

  2. Replace your import openai statement with this:

from athina_logger.api_key import AthinaApiKey
from athina_logger.openai_wrapper import openai
  1. Set your Athina API key (one-time, before you call openai)
# Initialize the Athina API key somewhere in your code
AthinaApiKey.set_api_key(os.getenv('ATHINA_API_KEY'))

🎉 Inferences made using openai.ChatCompletion will now be logged automatically.

You are all set to use Athina Monitor now.

Next Steps: