Skip to main content
The Responses API is OpenAI’s newer interface for conversational AI that supports advanced features like reasoning, tool use, and streaming. Helicone’s AI Gateway supports the Responses API format for both OpenAI and Anthropic models.

Quick Start

Use your Helicone API key and the AI Gateway base URL. Then call the OpenAI SDK’s responses.create method as usual.
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.HELICONE_API_KEY,
  baseURL: "https://ai-gateway.helicone.ai/v1",
});

const response = await client.responses.create({
  model: "gpt-5",
  input: "Write a one-sentence bedtime story about a unicorn.",
});

console.log(response.output_text);
For Chat Completions usage and more background on the AI Gateway, see the AI Gateway Overview.

References