Warning
This integration method is maintained but no longer actively developed. For the best experience and latest features, use our new AI Gateway with unified API access to 100+ models.
How to Integrate#
Create an account and generate an API key
Log into Helicone or create an account. Once you have an account, you can generate an API key here.
Set up your Helicone API key in your .env file
Modify the base URL path
Use the LangChain SDK
Verify your requests in Helicone
With the above setup, any calls to OpenAI will automatically be logged and monitored by Helicone. Review them in your Helicone dashboard.
Related Guides#
Building a chatbot with OpenAI structured outputs
This step-by-step guide covers function calling, response formatting and monitoring with Helicone.
Trace, replay, and debug LLM sessions
Learn how to replay and modify LLM sessions using Helicone to optimize your AI agents and improve their performance.
