Free Tool

Free OpenAI Responses API Request Builder

An OpenAI Responses API request builder creates a copy-ready /v1/responses payload with model, input, instructions, tools, structured output, streaming, and state settings in one place.

Request inputs

Input shape

Output and runtime

Tools

request.json

{
  "model": "gpt-5.1",
  "instructions": "You are a concise assistant. Return accurate, implementation-ready answers.",
  "input": "Summarize the latest onboarding feedback and list the top three fixes.",
  "store": true,
  "max_output_tokens": 800,
  "temperature": 0.7
}

Run it

cURL

curl https://api.openai.com/v1/responses \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d @request.json

Node SDK

import OpenAI from "openai";

const openai = new OpenAI();

const response = await openai.responses.create({
  "model": "gpt-5.1",
  "instructions": "You are a concise assistant. Return accurate, implementation-ready answers.",
  "input": "Summarize the latest onboarding feedback and list the top three fixes.",
  "store": true,
  "max_output_tokens": 800,
  "temperature": 0.7
});

console.log(response.output_text);

How to build a Responses API request

  1. Choose the model and instructions. Pick the model you want to call and add system-level instructions that should guide the response.
  2. Add the input. Use a simple text prompt for quick tests or message input when you need developer and user roles.
  3. Select output and tool settings. Turn on structured outputs, streaming, state, web search, file search, code interpreter, or function calling as needed.
  4. Copy the generated payload. Save the generated JSON as request.json or paste it directly into your application code.
  5. Run the request. Use the generated cURL or Node SDK snippet with your OPENAI_API_KEY in your own shell or app.

Core payload

Configure model, instructions, plain input or role-based message input, output token cap, temperature, response state, and streaming flags.

Structured output

Paste a JSON Schema and the builder creates a strict text.format block for typed application responses.

Tool wiring

Add web search, file search, code interpreter, or a strict custom function schema without hand-writing nested JSON.

Responses API request builder FAQ

What is an OpenAI Responses API request builder?

An OpenAI Responses API request builder helps developers assemble a valid request payload for /v1/responses, including model, input, instructions, tools, structured outputs, streaming, and state settings.

Does this tool call the OpenAI API?

No. The builder runs in your browser and only generates request JSON, cURL, and Node SDK snippets. You run the generated request from your own environment with your own API key.

When should I use structured outputs?

Use structured outputs when your app needs the model response to match a JSON schema, such as extracting fields, returning typed data, or feeding the output into another service.

What tools can the Responses API use?

The Responses API can use built-in tools such as web search, file search, and code interpreter, and it can call custom functions that you define with JSON Schema parameters.

How do I continue a previous response?

Pass the prior response ID in previous_response_id when you want the next request to use state from an earlier response without resending the full conversation.

Related Tornic tools