AI GatewayConcepts

Responses API

Use the OpenAI Responses API format through CoreValue AI Gateway with your CoreValue API key

The Responses API is OpenAI's newer interface for conversational AI that supports advanced features like reasoning, tool use, and streaming. CoreValue's AI Gateway supports the Responses API format for both OpenAI and Anthropic models.

Quick Start

Use your CoreValue 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.COVA_API_KEY,
  baseURL: "https://gateway.corevalue.dev/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);
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ.get("COVA_API_KEY"),
    base_url="https://gateway.corevalue.dev/v1",
)

response = client.responses.create(
    model="gpt-5",
    input="Write a one-sentence bedtime story about a unicorn.",
)

print(response.output_text)
curl https://gateway.corevalue.dev/v1/responses \
  -H "Authorization: Bearer $COVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5",
    "input": "Write a one-sentence bedtime story about a unicorn."
  }'

For Chat Completions usage and more background on the AI Gateway, see the AI Gateway Overview.

Parameter Stripping (M2 0.5)

The gateway runs a paramStripper on Responses API requests to remove parameters that are not supported by the target provider before forwarding. A NEVER_STRIP denylist protects critical parameters (such as model, input, stream, and reasoning) so they are always preserved regardless of provider.

The NEVER_STRIP denylist ensures that essential Responses API parameters are never stripped during provider translation. Provider-specific unsupported fields are dropped silently; check the Cova-Translation-Warning response header (in translated mode) to see which fields were dropped.

References

On this page