Core payload
Configure model, instructions, plain input or role-based message input, output token cap, temperature, response state, and streaming flags.
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.
{
"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
}curl https://api.openai.com/v1/responses \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d @request.jsonimport 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);Configure model, instructions, plain input or role-based message input, output token cap, temperature, response state, and streaming flags.
Paste a JSON Schema and the builder creates a strict text.format block for typed application responses.
Add web search, file search, code interpreter, or a strict custom function schema without hand-writing nested JSON.
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.
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.
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.
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.
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.