Skip to main content
The Responses API uses a streamlined request format and returns a richer response object compared to Chat Completions. This page covers every key field.

Request Object

A minimal request needs only a model and input:

Input Formats

The input field accepts multiple formats: String input:
Message array input (with system prompt):

Common Parameters

Use instructions as a cleaner alternative to embedding a system message inside input. It keeps your input focused on the user’s question.

Full Request Example


Response Object

A successful response looks like this:

Key Fields

The output_text field is a shortcut. For simple text responses, use it directly instead of digging into output[0].content[0].text.

Output Item Types

The output array can contain different item types:

Status Values

Always check the status field. A "failed" status means the response was not generated — check the error field on the response object for details.

Accessing the Response Text

The simplest way to get the model’s reply:
For more control, iterate over the output array:
When the model calls a function, the output includes a function_call item:

Error Responses

Errors follow the same format as Chat Completions:
See the Errors page for the full list and handling guidance.