← Back to changelog
Hassieb Pakzad
March 17, 2025
OpenAI Response API support in SDKs

Trace your OpenAI Response API calls with our Python and JS SDKs
OpenAI has released their new improved Response API for a better developer experience building agentic applications. We have added support for tracing OpenAI Response API executions in the OpenAI integrations in both our JS and Python SDK.
from langfuse.openai import openai
from langfuse import get_client
client = openai.OpenAI()
client.responses.create(
model="gpt-4o",
input="Tell me a three sentence bedtime story about a unicorn.",
)
# Flush via global client
langfuse = get_client()
langfuse.flush()
Releases
Learn more
Was this page helpful?