OpenAI
OpenAI Python SDK Integration
Use OpenAI’s Python SDK to integrate with Helicone to log your OpenAI usage.
Proxy Integration (recommended)
1
2
Set HELICONE_API_KEY as an environment variable
3
Modify the base path and add a Helicone-Auth header
Package Integration
1
2
Set HELICONE_API_KEY as an environment variable
3
Install the Helicone package
4
Modify OpenAI import to use Helicone
5
That's it! You're ready to start logging with Helicone. Here's an example of using Helicone along with our advanced features as parameters
Was this page helpful?