OpenAI Responses Integration
Integrate OpenAI Responses with Helicone to monitor and analyze your model’s responses.
Introduction
OpenAI Responses enable you to provide text or image inputs to generate text or JSON outputs by calling your own custom code or use built-in tools like web search or file search. By integrating them with Helicone, you can monitor performance, analyze interactions, and gain valuable insights into your responses.
Integration Steps
Create an Account and Generate an API Key
Log into Helicone or create a new account. Once logged in, generate a Helicone API key.
Keep your API keys secure and do not expose them publicly.
Set Environment Variables
Set your OpenAI and Helicone API keys as environment variables:
Install the OpenAI SDK
If you haven’t already, install the OpenAI SDK:
Configure the OpenAI Client to Use Helicone Proxy
Modify your OpenAI client configuration to route requests through the Helicone proxy and include the Helicone-Auth
header:
Start Using OpenAI Responses API with Helicone
With the above setup, any calls to OpenAI Responses API will automatically be logged and monitored by Helicone. You can now implement your responses without any additional configuration.
Here’s a basic example of creating and using a response for different types of inputs and tools:
Replace the response’s model, input, and output with content relevant to your application.
You can also include session headers in each request to have more granular control over session tracking. This approach is especially useful if you want to handle sessions dynamically or manage multiple sessions concurrently.
Related Guides
Was this page helpful?