The identity and technical contract details declared by the specification.
BetaCompactResponseMethodPublicBody
object
8 properties
1 required
BetaComputerScreenshotContent
object
A screenshot of a computer.
5 properties
4 required
BetaResponseMCPListToolsCompletedEvent
object
Emitted when the list of available MCP tools has been successfully retrieved.
5 properties
4 required
ResponseFileSearchCallSearchingEvent
object
Emitted when a file search is currently searching.
4 properties
4 required
BetaInputFidelity
string
Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for…
ResponseProperties
object
8 properties
BetaCacheMissReasonTypeEnum
string
ResponseCodeInterpreterCallCompletedEvent
object
Emitted when the code interpreter call is completed.
4 properties
4 required
BetaItem
object
Content item used to generate a response.
TextContent
object
A text content.
2 properties
2 required
BetaLocalShellToolParam
object
A tool that allows the model to execute shell commands in a local environment.
1 property
1 required
BetaDirectToolCallCaller
object
1 property
1 required
ContainerAutoParam
object
5 properties
1 required
ResponseOutputItemAddedEvent
object
Emitted when a new output item is added.
4 properties
4 required
BetaTopLogProb
object
The top log probability of a token.
3 properties
3 required
BetaPromptCacheBreakpointParam
object
Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's promptcacheoptions.ttl; the boundary is not rounded to a to…
1 property
1 required
BetaResponseReasoningTextDoneEvent
object
Emitted when a reasoning text is completed.
7 properties
6 required
ResponseRefusalDoneEvent
object
Emitted when refusal text is finalized.
6 properties
6 required
ApplyPatchCreateFileOperation
object
Instruction describing how to create a file via the applypatch tool.
3 properties
3 required
BetaResponseLogProb
object
A logprob is the logarithmic probability that the model assigns to producing a particular token at a given position in the sequence. Less-negative (higher) log…
3 properties
2 required
ImageGenToolCall
object
An image generation request made by the model.
10 properties
4 required
ComputerScreenshotContent
object
A screenshot of a computer.
5 properties
4 required
ResponseFailedEvent
object
An event that is emitted when a response fails.
3 properties
3 required
BetaItemResource
Content item used to generate a response.
BetaToolChoiceMCP
object
Use this option to force the model to call a specific tool on a remote MCP server.
3 properties
2 required
BetaMisalignmentErrorDetailsResource
object
3 properties
CompactionSummaryItemParam
object
A compaction item generated by the [v1/responses/compact API](https://developers.openai.com/api/reference/resources/responses/methods/compact).
3 properties
2 required
MCPToolCall
object
An invocation of a tool on an MCP server.
9 properties
5 required
BetaEmptyModelParam
object
BetaWebSearchTool
object
Search the Internet for sources related to the prompt. Learn more about the [web search tool](https://developers.openai.com/api/docs/guides/tools-web-search).
5 properties
1 required
BetaResponseImageGenCallCompletedEvent
object
Emitted when an image generation tool call has completed and the final image is available.
5 properties
4 required
BetaFunctionToolCall
object
A tool call to run a function. See the [function calling guide](https://developers.openai.com/api/docs/guides/function-calling) for more information.
10 properties
4 required
ToolChoiceAllowed
object
Constrains the tools available to the model to a pre-defined set.
3 properties
3 required
SkillReferenceParam
object
3 properties
2 required
LocalSkillParam
object
3 properties
3 required
ComputerCallOutputItemParam
object
The output of a computer tool call.
6 properties
3 required
WebSearchApproximateLocation
BetaPromptCacheHitDiagnosticsBody
object
1 property
1 required
ContainerMemoryLimit
string
BetaCompoundFilter
object
Combine multiple filters using and or or.
2 properties
2 required
BetaComputerCallOutputItemParam
object
The output of a computer tool call.
7 properties
3 required
CustomGrammarFormatParam
object
A grammar defined by the user.
3 properties
3 required
BetaResponseFormatJsonSchemaSchema
object
The schema for the response format, described as a JSON Schema object. Learn how to build JSON schemas [here](https://json-schema.org/).
BetaScrollParam
object
A scroll action.
6 properties
5 required
ResponseReasoningTextDoneEvent
object
Emitted when a reasoning text is completed.
6 properties
6 required
ResponseCreatedEvent
object
An event that is emitted when a response is created.
3 properties
3 required
ScreenshotParam
object
A screenshot action.
1 property
1 required
CoordParam
object
An x/y coordinate pair, e.g. { x: 100, y: 200 }.
2 properties
2 required
ResponseConfigurationUpdateItemParam
object
An update to the conversation's response configuration. The configuration remains in effect for subsequent responses until it is replaced by another configurat…
3 properties
1 required
BetaResponseShellCallCommandAddedStreamingEvent
object
A streaming event that indicated a shell command was added to a tool call.
6 properties
5 required
FunctionShellCallOutputItemParam
object
The streamed output items emitted by a shell tool call.
7 properties
3 required
ReasoningItem
object
A description of the chain of thought used by a reasoning model while generating a response. Be sure to include these items in your input to the Responses API…
6 properties
3 required
BetaFunctionCallOutputStatusEnum
string
LocalShellExecAction
object
Execute a shell command on the server.
6 properties
3 required
BetaPromptCacheBreakpointConfig
object
Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's promptcacheoptions.ttl; the boundary is not rounded to a to…
1 property
1 required
ResponseFormatJsonSchemaSchema
object
The schema for the response format, described as a JSON Schema object. Learn how to build JSON schemas [here](https://json-schema.org/).
BetaToolChoiceCustom
object
Use this option to force the model to call a specific custom tool.
2 properties
2 required
BetaAccessProgramsParam
object
Domain-specific access programs to use for this request.
1 property
ItemReferenceParam
object
An internal identifier for an item to reference.
2 properties
1 required
ImageGenActionEnum
string
HTTPError
object
3 properties
3 required
BetaShellCallOutputDelta
object
A delta of stdout/stderr emitted while a shell call was running.
2 properties
BetaResponseShellCallCommandDoneStreamingEvent
object
A streaming event that indicated a shell command was completed.
6 properties
5 required
ResponseFormatJsonObject
object
JSON object response format. An older method of generating JSON responses. Using jsonschema is recommended for models that support it. Note that the model will…
1 property
1 required
InputFidelity
string
Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for…
BetaResponseMCPListToolsInProgressEvent
object
Emitted when the system is in the process of retrieving the list of available MCP tools.
5 properties
4 required
FunctionCallStatus
string
CacheMissReasonTypeEnum
string
TextResponseFormatConfiguration
An object specifying the format that the model must output. Configuring { "type": "jsonschema" } enables Structured Outputs, which ensures the model will match…
BetaFunctionShellActionParam
object
Commands and limits describing how to run the shell tool call.
3 properties
1 required
BetaApproximateLocation
object
5 properties
1 required
FileSearchTool
object
A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](https://developers.openai.com/api/docs/guides/tools-file…
5 properties
2 required
PromptCacheUnavailableDiagnosticsBody
object
1 property
1 required
BetaComputerToolCallOutput
object
The output of a computer tool call.
7 properties
3 required
BetaToolChoiceOptions
string
Controls which (if any) tool is called by the model. none means the model will not call any tool and instead generates a message. auto means the model can pick…
BetaTextResponseFormatConfiguration
An object specifying the format that the model must output. Configuring { "type": "jsonschema" } enables Structured Outputs, which ensures the model will match…
ErrorResponse
object
1 property
1 required
BetaProgramToolCallCaller
object
2 properties
2 required
FilePath
object
A path to a file.
3 properties
3 required
BetaResponseMCPListToolsFailedEvent
object
Emitted when the attempt to list available MCP tools has failed.
5 properties
4 required
PromptCacheComparisonResponseNotFoundDiagnosticsBody
object
1 property
1 required
BetaCompactionBody
object
A compaction item generated by the [v1/responses/compact API](https://developers.openai.com/api/reference/resources/responses/methods/compact).
5 properties
3 required
ResponseTextDeltaEvent
object
Emitted when there is an additional text delta.
7 properties
7 required
FunctionAndCustomToolCallOutput
FunctionShellActionParam
object
Commands and limits describing how to run the shell tool call.
3 properties
1 required
ResponseImageGenCallGeneratingEvent
object
Emitted when an image generation tool call is actively generating an image (intermediate state).
4 properties
4 required
BetaResponseReasoningSummaryPartAddedEvent
object
Emitted when a new reasoning summary part is added.
7 properties
6 required
ApplyPatchToolCallItemParam
object
A tool call representing a request to create, delete, or update files using diff patches.
6 properties
4 required
BetaResponseErrorCode
string
The error code for the response.
BetaProgramToolCallCallerParam
object
2 properties
2 required
BetaPromptCacheComparisonResponseNotFoundDiagnosticsBody
object
1 property
1 required
ModerationResultBody
object
A moderation result produced for the response input or output.
6 properties
6 required
WebSearchCallStatus
string
BetaCreateModelResponseProperties
BetaCustomToolParam
object
A custom tool that processes input using a specified format. Learn more about [custom tools](https://developers.openai.com/api/docs/guides/function-callingcust…
7 properties
2 required
BetaScreenshotParam
object
A screenshot action.
1 property
1 required
BetaFunctionShellCallOutputStatusEnum
string
BetaResponseFailedEvent
object
An event that is emitted when a response fails.
4 properties
3 required
ResponsePromptCacheOptionsParam
object
Options for prompt caching. Supported for gpt-5.6 and later models. By default, OpenAI automatically chooses one implicit cache breakpoint. You can add explici…
4 properties
ResponseConversation
object
The conversation that this response belonged to. Input items and output items from this response were automatically added to this conversation.
1 property
1 required
ToolChoiceCustom
object
Use this option to force the model to call a specific custom tool.
2 properties
2 required
ResponseShellCallCommandDoneStreamingEvent
object
A streaming event that indicated a shell command was completed.
5 properties
5 required
BetaOutputMessage
object
An output message from the model.
7 properties
5 required
ResponseCodeInterpreterCallInterpretingEvent
object
Emitted when the code interpreter is actively interpreting the code snippet.
4 properties
4 required
BetaResponseWebSearchCallCompletedEvent
object
Emitted when a web search call is completed.
5 properties
4 required
BetaMultiAgentCall
object
6 properties
5 required
BetaTextContent
object
A text content.
2 properties
2 required
ToolSearchCallItemParam
object
6 properties
2 required
WebSearchTool
object
Search the Internet for sources related to the prompt. Learn more about the [web search tool](https://developers.openai.com/api/docs/guides/tools-web-search).
5 properties
1 required
FunctionShellCall
object
A tool call that executes one or more shell commands in a managed environment.
8 properties
6 required
BetaPromptCacheMissDiagnosticsBody
object
4 properties
3 required
DirectToolCallCallerParam
object
1 property
1 required
InputFileContentParam
object
A file input to the model.
7 properties
1 required
BetaApplyPatchDeleteFileOperationParam
object
Instruction for deleting an existing file via the applypatch tool.
2 properties
2 required
BetaResponseQueuedEvent
object
Emitted when a response is queued and waiting to be processed.
4 properties
3 required
BetaApplyPatchOperationParam
One of the createfile, deletefile, or updatefile operations supplied to the applypatch tool.
BetaResponseReasoningSummaryTextDeltaEvent
object
Emitted when a delta is added to a reasoning summary text.
7 properties
6 required
ResponseContentPartDoneEvent
object
Emitted when a content part is done.
6 properties
6 required
BetaToolsArray
array
An array of tools the model may call while generating a response. You can specify which tool to use by setting the toolchoice parameter. We support the followi…
FunctionToolCall
object
A tool call to run a function. See the [function calling guide](https://developers.openai.com/api/docs/guides/function-calling) for more information.
9 properties
4 required
FunctionCallOutputItemParam
object
The output of a function tool call.
8 properties
2 required
ConversationParam-2
object
The conversation that this response belongs to.
1 property
1 required
BetaCompactionSummaryItemParam
object
A compaction item generated by the [v1/responses/compact API](https://developers.openai.com/api/reference/resources/responses/methods/compact).
4 properties
2 required
BetaProgramOutputStatus
string
WebSearchActionOpenPage
object
Action type "openpage" - Opens a specific URL from search results.
2 properties
1 required
BetaModerationErrorBody
object
An error produced while attempting moderation for the response input or output.
3 properties
3 required
ResponseMCPCallCompletedEvent
object
Emitted when an MCP tool call has completed successfully.
4 properties
4 required
ResponseTextDoneEvent
object
Emitted when text content is finalized.
7 properties
7 required
BetaFunctionShellCallOutputExitOutcomeParam
object
Indicates that the shell commands finished and returned an exit code.
2 properties
2 required
BetaResponseConfigurationUpdate
object
A configuration update that applies to subsequent responses until it is replaced by another configuration update.
4 properties
2 required
CompactionTriggerItemParam
object
Compacts the current context. Must be the final input item.
2 properties
1 required
BetaModerationPolicyParam
object
The policy to apply to moderated response input and output.
2 properties
BetaResponseCodeInterpreterCallInProgressEvent
object
Emitted when a code interpreter call is in progress.
5 properties
4 required
BetaComputerToolCall
object
A tool call to a computer use tool. See the [computer use guide](https://developers.openai.com/api/docs/guides/tools-computer-use) for more information.
8 properties
5 required
BetaContextManagementParam
object
2 properties
1 required
BetaWebSearchToolCall
object
The results of a web search tool call. See the [web search guide](https://developers.openai.com/api/docs/guides/tools-web-search) for more information.
5 properties
4 required
SpecificApplyPatchParam
object
Forces the model to call the applypatch tool when executing a tool call.
1 property
1 required
ResponseRefusalDeltaEvent
object
Emitted when there is a partial refusal text.
6 properties
6 required
BetaToolCallCallerParam
The execution context that produced this tool call.
BetaResponseCodeInterpreterCallCompletedEvent
object
Emitted when the code interpreter call is completed.
5 properties
4 required
ResponseImageGenCallInProgressEvent
object
Emitted when an image generation tool call is in progress.
4 properties
4 required
BetaTool
A tool that can be used to generate a response.
BetaComputerTool
object
A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use).
1 property
1 required
UrlCitationBody
object
A citation for a web resource used to generate a model response.
5 properties
5 required
PromptCacheBreakpointParam
object
Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's promptcacheoptions.ttl; the boundary is not rounded to a to…
1 property
1 required
ResponseAudioTranscriptDeltaEvent
object
Emitted when there is a partial transcript of audio.
3 properties
4 required
BetaFunctionAndCustomToolCallOutput
BetaResponseFormatJsonObject
object
JSON object response format. An older method of generating JSON responses. Using jsonschema is recommended for models that support it. Note that the model will…
1 property
1 required
BetaLocalEnvironmentResource
object
Represents the use of a local environment to perform shell actions.
1 property
1 required
BetaCodeInterpreterOutputImage
object
The image output from the code interpreter.
2 properties
2 required
ToolCallCaller
The execution context that produced this tool call.
BetaResponseUsage
object
Represents token usage details including input tokens, output tokens, a breakdown of output tokens, and the total tokens used.
5 properties
5 required
BetaPromptCacheRetentionEnum
string
ApplyPatchCallOutputStatus
string
BetaImageGenToolCall
object
An image generation request made by the model.
11 properties
4 required
FunctionShellCallOutputContentParam
object
Captured stdout and stderr for a portion of a shell tool call output.
3 properties
3 required
ComputerScreenshotImage
object
A computer screenshot image used with the computer use tool.
3 properties
1 required
BetaFunctionToolParam
object
9 properties
2 required
FunctionShellCallOutput
object
The output of a shell tool call that was emitted.
8 properties
6 required
ResponseErrorCode
string
The error code for the response.
SpecificProgrammaticToolCallingParam
object
1 property
1 required
BetaMultiAgentCallOutputItemParam
object
6 properties
4 required
BetaContainerNetworkPolicyDomainSecretParam
object
3 properties
3 required
InputParam
Text, image, or file inputs to the model, used to generate a response. Learn more: - [Text inputs and outputs](https://developers.openai.com/api/docs/guides/te…
FunctionCallItemStatus
string
CustomTextFormatParam
object
Unconstrained free-form text.
1 property
1 required
BetaResponseCodeInterpreterCallCodeDeltaEvent
object
Emitted when a partial code snippet is streamed by the code interpreter.
6 properties
5 required
NamespaceToolParam
object
Groups function/custom tools under a shared namespace.
4 properties
4 required
Beta_AgentTagParam
object
The agent that produced this item.
1 property
1 required
ContainerNetworkPolicyDomainSecretParam
object
3 properties
3 required
BetaModerationMode
string
ResponseTextParam
object
Configuration options for a text response from the model. Can be plain text or structured JSON data. Learn more: - [Text inputs and outputs](https://developers…
2 properties
BetaResponseMCPCallArgumentsDeltaEvent
object
Emitted when there is a delta (partial update) to the arguments of an MCP tool call.
6 properties
5 required
AccessProgramsParam
object
Domain-specific access programs to use for this request.
1 property
FileSearchToolCall
object
The results of a file search tool call. See the [file search guide](https://developers.openai.com/api/docs/guides/tools-file-search) for more information.
5 properties
4 required
BetaPromptCacheUnavailableDiagnosticsBody
object
1 property
1 required
BetaFunctionShellCallItemParam
object
A tool representing a request to execute one or more shell commands.
8 properties
3 required
ProgramItemParam
object
5 properties
5 required
BetaImageGenTool
object
A tool that generates images using the GPT image models.
12 properties
1 required
ComparisonFilter
object
A filter used to compare a specified attribute key to a given value using a defined comparison operation.
3 properties
3 required
ResponseFormatText
object
Default response format. Used to generate text responses.
1 property
1 required
BetaContainerNetworkPolicyAllowlistParam
object
3 properties
2 required
BetaApplyPatchCallStatus
string
BetaResponseImageGenCallInProgressEvent
object
Emitted when an image generation tool call is in progress.
5 properties
4 required
ComputerCallSafetyCheckParam
object
A pending safety check for the computer call.
3 properties
1 required
ResponseIncompleteEvent
object
An event that is emitted when a response finishes as incomplete. Over WebSocket, steering can finish a response with response.incompletedetails.reason set to s…
3 properties
3 required
PromptCacheModeEnum
string
BetaResponseContentPartDoneEvent
object
Emitted when a content part is done.
7 properties
6 required
ResponseCompletedEvent
object
Emitted when the model response is complete.
3 properties
3 required
BetaDirectToolCallCallerParam
object
1 property
1 required
ToolSearchCall
object
7 properties
6 required
BetaResponseReasoningSummaryPartDoneEvent
object
Emitted when a reasoning summary part is completed.
8 properties
6 required
BetaFunctionShellCallOutputOutcomeParam
The exit or timeout outcome associated with this shell call.
FileCitationBody
object
A citation to a file.
4 properties
4 required
BetaToolChoiceParam
How the model should select which tool (or tools) to use when generating a response. See the tools parameter to see how to specify which tools the model can ca…
BetaLocalEnvironmentParam
object
2 properties
1 required
BetaResponseCodeInterpreterCallInterpretingEvent
object
Emitted when the code interpreter is actively interpreting the code snippet.
5 properties
4 required
BetaResponseAudioTranscriptDeltaEvent
object
Emitted when there is a partial transcript of audio.
4 properties
4 required
BetaResponsePromptVariables
MCPTool
object
Give the model access to additional tools via remote Model Context Protocol (MCP) servers. [Learn more about MCP](https://developers.openai.com/api/docs/guides…
12 properties
2 required
BetaResponseFormatText
object
Default response format. Used to generate text responses.
1 property
1 required
BetaWebSearchActionSearch
object
Action type "search" - Performs a web search query.
4 properties
1 required
BetaResponseProperties
object
8 properties
BetaMessage
object
A message to or from the model.
7 properties
5 required
ResponseAudioDoneEvent
object
Emitted when the audio response is complete.
2 properties
3 required
ApplyPatchDeleteFileOperationParam
object
Instruction for deleting an existing file via the applypatch tool.
2 properties
2 required
ComputerToolCallOutputResource
ResponseQueuedEvent
object
Emitted when a response is queued and waiting to be processed.
3 properties
3 required
BetaResponseCustomToolCallInputDoneEvent
object
Event indicating that input for a custom tool call is complete.
6 properties
5 required
ApplyPatchCreateFileOperationParam
object
Instruction for creating a new file via the applypatch tool.
3 properties
3 required
CyberAccessProgramEnum
string
BetaResponseMCPCallCompletedEvent
object
Emitted when an MCP tool call has completed successfully.
5 properties
4 required
BetaEncryptedContentParam
object
Opaque encrypted content that Responses API decrypts inside trusted model execution.
2 properties
2 required
BetaCodeInterpreterTool
object
A tool that runs Python code to help generate a response to a prompt.
3 properties
2 required
ResponseShellCallCommandDeltaStreamingEvent
object
A streaming event that indicated a shell command was incrementally updated.
6 properties
5 required
BetaOutputTextContent
object
A text output from the model.
4 properties
4 required
ProgramToolCallCallerParam
object
2 properties
2 required
ApplyPatchCallStatusParam
string
Status values reported for applypatch tool calls.
ResponseShellCallOutputContentDoneStreamingEvent
object
A streaming event that indicated shell call output was completed.
6 properties
6 required
BetaProgram
object
6 properties
5 required
FunctionShellCallItemStatus
string
Status values reported for shell tool calls.
BetaFunctionShellCallOutputContentParam
object
Captured stdout and stderr for a portion of a shell tool call output.
3 properties
3 required
BetaResponseMCPCallInProgressEvent
object
Emitted when an MCP tool call is in progress.
5 properties
4 required
BetaMoveParam
object
A mouse move action.
4 properties
3 required
BetaLocalShellToolCall
object
A tool call to run a command on the local shell.
6 properties
5 required
RefusalContent
object
A refusal from the model.
2 properties
2 required
BetaReasoningItem
object
A description of the chain of thought used by a reasoning model while generating a response. Be sure to include these items in your input to the Responses API…
7 properties
3 required
TextResponseFormatJsonSchema
object
JSON Schema response format. Used to generate structured JSON responses. Learn more about [Structured Outputs](https://developers.openai.com/api/docs/guides/st…
5 properties
3 required
RankingOptions
object
3 properties
ResponseItemList
object
A list of Response items.
5 properties
5 required
ContainerReferenceParam
object
2 properties
2 required
BetaResponseFileSearchCallSearchingEvent
object
Emitted when a file search is currently searching.
5 properties
4 required
ContainerNetworkPolicyAllowlistParam
object
3 properties
2 required
ResponseFunctionCallArgumentsDoneEvent
object
Emitted when function-call arguments are finalized.
5 properties
5 required
BetaReasoningTextContent
object
Reasoning text from the model.
2 properties
2 required
BetaInlineSkillParam
object
4 properties
4 required
BetaServiceTierEnum
string
BetaComputerScreenshotImage
object
A computer screenshot image used with the computer use tool.
3 properties
1 required
BetaHybridSearchOptions
object
2 properties
2 required
BetaApplyPatchUpdateFileOperationParam
object
Instruction for updating an existing file via the applypatch tool.
3 properties
3 required
BetaResponseOutputTextAnnotationAddedEvent
object
Emitted when an annotation is added to output text content.
8 properties
7 required
BetaAgentMessage
object
6 properties
5 required
BetaFunctionShellCallOutputContent
object
The content of a shell tool call output that was emitted.
4 properties
3 required
BetaToolChoiceAllowed
object
Constrains the tools available to the model to a pre-defined set.
3 properties
3 required
BetaFunctionShellCallItemStatus
string
Status values reported for shell tool calls.
ReasoningTextContent
object
Reasoning text from the model.
2 properties
2 required
BetaMCPListTools
object
A list of tools available on an MCP server.
6 properties
4 required
ModerationParam
object
Configuration for running moderation on the input and output of this response.
2 properties
1 required
BetaResponseReasoningSummaryTextDoneEvent
object
Emitted when a reasoning summary text is completed.
7 properties
6 required
ResponseImageGenCallCompletedEvent
object
Emitted when an image generation tool call has completed and the final image is available.
4 properties
4 required
ModerationPolicyParam
object
The policy to apply to moderated response input and output.
2 properties
ToolCallCallerParam
The execution context that produced this tool call.
PromptCacheOptionsParam
object
Options for prompt caching. Supported for gpt-5.6 and later models. By default, OpenAI automatically chooses one implicit cache breakpoint. You can add explici…
2 properties
MCPApprovalResponse
object
A response to an MCP approval request.
5 properties
4 required
BetaFunctionToolCallResource
BetaReasoning
object
Configuration options for [reasoning models](https://developers.openai.com/api/docs/guides/reasoning).
5 properties
BetaResponseShellCallOutputContentDoneStreamingEvent
object
A streaming event that indicated shell call output was completed.
7 properties
6 required
ResponseFunctionCallArgumentsDeltaEvent
object
Emitted when there is a partial function-call arguments delta.
5 properties
5 required
BetaFunctionTool
object
Defines a function in your own code the model can choose to call. Learn more about [function calling](https://developers.openai.com/api/docs/guides/function-ca…
9 properties
4 required
ResponseLogProb
object
A logprob is the logarithmic probability that the model assigns to producing a particular token at a given position in the sequence. Less-negative (higher) log…
3 properties
2 required
BetaMCPListToolsTool
object
A tool available on an MCP server.
4 properties
2 required
ApplyPatchCallOutputStatusParam
string
Outcome values reported for applypatch tool call outputs.
ModerationConfigParam
object
The moderation policy for the response input.
1 property
1 required
BetaKeyPressAction
object
A collection of keypresses the model would like to perform.
2 properties
2 required
BetaResponseErrorEvent
object
Emitted when an error occurs.
6 properties
5 required
ResponseCodeInterpreterCallCodeDoneEvent
object
Emitted when the code snippet is finalized by the code interpreter.
5 properties
5 required
ToolSearchOutputItemParam
object
6 properties
2 required
BetaAutoCodeInterpreterToolParam
object
Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.
4 properties
1 required
ToolSearchExecutionType
string
CodeInterpreterOutputLogs
object
The logs output from the code interpreter.
2 properties
2 required
BetaHTTPError
object
3 properties
3 required
ResponseCodeInterpreterCallInProgressEvent
object
Emitted when a code interpreter call is in progress.
4 properties
4 required
BetaApplyPatchCreateFileOperation
object
Instruction describing how to create a file via the applypatch tool.
3 properties
3 required
BetaContainerAutoParam
object
5 properties
1 required
ResponseShellCallCommandAddedStreamingEvent
object
A streaming event that indicated a shell command was added to a tool call.
5 properties
5 required
InputMessage
object
A message input to the model with a role indicating instruction following hierarchy. Instructions given with the developer or system role take precedence over…
4 properties
2 required
BetaSpecificFunctionShellParam
object
Forces the model to call the shell tool when a tool call is required.
1 property
1 required
BetaSkillReferenceParam
object
3 properties
2 required
FunctionShellCallItemParam
object
A tool representing a request to execute one or more shell commands.
7 properties
3 required
BetaInputImageContent
object
An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision).
5 properties
2 required
BetaSpecificProgrammaticToolCallingParam
object
1 property
1 required
BetaAgentTag
object
1 property
1 required
AutoCodeInterpreterToolParam
object
Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.
4 properties
1 required
BetaMultiAgentAction1
string
BetaPromptCacheDiagnostics
Prompt cache diagnostics requested for this response.
BetaResponseContentPartAddedEvent
object
Emitted when a new content part is added.
7 properties
6 required
InputTextContentParam
object
A text input to the model.
3 properties
2 required
CustomToolParam
object
A custom tool that processes input using a specified format. Learn more about [custom tools](https://developers.openai.com/api/docs/guides/function-callingcust…
7 properties
2 required
ResponseOutputItemDoneEvent
object
Emitted when an output item is marked done.
4 properties
4 required
BetaComparisonFilter
object
A filter used to compare a specified attribute key to a given value using a defined comparison operation.
3 properties
3 required
ComputerEnvironment
string
Moderation
object
Moderation results or errors for the response input and output.
2 properties
2 required
BetaLocalShellExecAction
object
Execute a shell command on the server.
6 properties
3 required
BetaCodeInterpreterToolCall
object
A tool call to run code.
7 properties
6 required
ComputerToolCallOutput
object
The output of a computer tool call.
6 properties
3 required
BetaContainerReferenceResource
object
Represents a container created with /v1/containers.
2 properties
2 required
BetaResponseFileSearchCallCompletedEvent
object
Emitted when a file search call is completed (results found).
5 properties
4 required
BetaFunctionShellCallOutput
object
The output of a shell tool call that was emitted.
9 properties
6 required
InputImageContentParamAutoParam
object
An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision)
5 properties
1 required
BetaAnnotation
An annotation that applies to a span of output text.
BetaLocalShellToolCallOutput
object
The output of a local shell tool call.
5 properties
4 required
ApplyPatchToolCallOutput
object
The output emitted by an apply patch tool call.
7 properties
4 required
BetaFileCitationBody
object
A citation to a file.
4 properties
4 required
MCPToolFilter
object
A filter object to specify which tools are allowed.
2 properties
WebSearchPreviewTool
object
This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](https://developers.openai.com/api/docs/guides/tool…
4 properties
1 required
CodeInterpreterToolCall
object
A tool call to run code.
6 properties
6 required
ScrollParam
object
A scroll action.
6 properties
5 required
BetaToolSearchToolParam
object
Hosted or BYOT tool search configuration for deferred tools.
4 properties
1 required
BetaCyberAccessProgramEnum
string
ApplyPatchToolParam
object
Allows the assistant to create, delete, or update files using unified diffs.
2 properties
1 required
WaitParam
object
A wait action.
1 property
1 required
CompactionBody
object
A compaction item generated by the [v1/responses/compact API](https://developers.openai.com/api/reference/resources/responses/methods/compact).
4 properties
3 required
ResponseReasoningSummaryPartAddedEvent
object
Emitted when a new reasoning summary part is added.
6 properties
6 required
BetaCompactionTriggerItemParam
object
Compacts the current context. Must be the final input item.
3 properties
1 required
BetaResponseCompactionCompactingStreamingEvent
object
Emitted when new summary content is sampled for a compaction trigger. Contains no summary content.
5 properties
4 required
ResponseReasoningTextDeltaEvent
object
Emitted when a delta is added to a reasoning text.
6 properties
6 required
BetaRankingOptions
object
3 properties
BetaModerationParam
object
Configuration for running moderation on the input and output of this response.
2 properties
1 required
ResponseMCPCallArgumentsDeltaEvent
object
Emitted when there is a delta (partial update) to the arguments of an MCP tool call.
5 properties
5 required
FunctionShellCallOutputTimeoutOutcomeParam
object
Indicates that the shell call exceeded its configured time limit.
1 property
1 required
BetaProgramItemParam
object
6 properties
5 required
BetaMCPToolExecutionError
object
2 properties
2 required
BetaCustomToolCallOutput
object
The output of a custom tool call from your code, being sent back to the model.
6 properties
3 required
ComputerCallOutputStatus
string
ResponseInProgressEvent
object
Emitted when the response is in progress.
3 properties
3 required
BetaInputParam
Text, image, or file inputs to the model, used to generate a response. Learn more: - [Text inputs and outputs](https://developers.openai.com/api/docs/guides/te…
BetaResponseInProgressEvent
object
Emitted when the response is in progress.
4 properties
3 required
TopLogProb
object
The top log probability of a token.
3 properties
3 required
BetaToolSearchOutputItemParam
object
7 properties
2 required
BetaModelIdsCompaction
Model ID used to generate the response, like gpt-6-astra. OpenAI offers a wide range of models with different capabilities, performance characteristics, and pr…
BetaTruncationEnum
string
ItemField
An item representing a message, tool call, tool output, reasoning, or other response element.
MCPProtocolError
object
3 properties
3 required
MCPListToolsTool
object
A tool available on an MCP server.
4 properties
2 required
ResponseAudioTranscriptDoneEvent
object
Emitted when the full audio transcript is completed.
2 properties
3 required
CodeInterpreterOutputImage
object
The image output from the code interpreter.
2 properties
2 required
BetaDoubleClickAction
object
A double click action.
4 properties
4 required
ComputerToolCall
object
A tool call to a computer use tool. See the [computer use guide](https://developers.openai.com/api/docs/guides/tools-computer-use) for more information.
7 properties
5 required
BetaAgentMessageItemParam
object
A message routed between agents.
6 properties
4 required
ResponseShellCallOutputContentDeltaStreamingEvent
object
A streaming event that indicated shell call output was incrementally added.
6 properties
6 required
BetaCoordParam
object
An x/y coordinate pair, e.g. { x: 100, y: 200 }.
2 properties
2 required
FunctionCallOutputStatusEnum
string
ApplyPatchToolCallOutputItemParam
object
The streamed output emitted by an apply patch tool call.
6 properties
3 required
BetaWebSearchApproximateLocation
BetaResponseShellCallCommandDeltaStreamingEvent
object
A streaming event that indicated a shell command was incrementally updated.
7 properties
5 required
PromptCacheDiagnostics
Prompt cache diagnostics requested for this response.
BetaInputTextContentParam
object
A text input to the model.
3 properties
2 required
BetaIncludeEnum
string
Specify additional output data to include in the model response. Currently supported values are: - websearchcall.results: Include the search results of the web…
CustomToolCallOutputResource
MCPListTools
object
A list of tools available on an MCP server.
5 properties
4 required
ResponseConfigurationUpdate
object
A configuration update that applies to subsequent responses until it is replaced by another configuration update.
3 properties
2 required
BetaWebSearchActionOpenPage
object
Action type "openpage" - Opens a specific URL from search results.
2 properties
1 required
OutputMessage
object
An output message from the model.
6 properties
5 required
BetaContainerFileCitationBody
object
A citation for a container file used to generate a model response.
6 properties
6 required
ResponseFileSearchCallCompletedEvent
object
Emitted when a file search call is completed (results found).
4 properties
4 required
ToolChoiceParam
How the model should select which tool (or tools) to use when generating a response. See the tools parameter to see how to specify which tools the model can ca…
BetaComputerCallOutputStatus
string
ProgrammaticToolCallingParam
object
1 property
1 required
BetaItemField
An item representing a message, tool call, tool output, reasoning, or other response element.
BetaConversationParam-2
object
The conversation that this response belongs to.
1 property
1 required
BetaInputMessageContentList
array
A list of one or many input items to the model, containing different content types.
ResponseUsage
object
Represents token usage details including input tokens, output tokens, a breakdown of output tokens, and the total tokens used.
5 properties
5 required
ResponseImageGenCallPartialImageEvent
object
Emitted when a partial image is available during image generation streaming.
10 properties
6 required
BetaMessagePhase-2
string
CodeInterpreterTool
object
A tool that runs Python code to help generate a response to a prompt.
3 properties
2 required
BetaFileSearchTool
object
A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](https://developers.openai.com/api/docs/guides/tools-file…
5 properties
2 required
BetaTokenCountsResource
object
2 properties
2 required
BetaApplyPatchToolParam
object
Allows the assistant to create, delete, or update files using unified diffs.
2 properties
1 required
BetaImageBackground
string
BetaApplyPatchCallOutputStatus
string
BetaCallableToolAllowedCaller
string
BetaComputerEnvironment
string
BetaInputFileContent
object
A file input to the model.
7 properties
1 required
BetaApplyPatchToolCallOutputItemParam
object
The streamed output emitted by an apply patch tool call.
7 properties
3 required
BetaPromptCacheOptions
object
The prompt-caching options that were applied to the response. Supported for gpt-5.6 and later models.
3 properties
2 required
VectorStoreFileAttributes
BetaResponseStreamOptions
ResponseStreamEvent
Event emitted while a response is streamed.
MCPApprovalResponseResource
object
A response to an MCP approval request.
5 properties
5 required
BetaComputerCallSafetyCheckParam
object
A pending safety check for the computer call.
3 properties
1 required
BetaTokenCountsBody
object
12 properties
BetaAdditionalTools
object
5 properties
4 required
ResponseCustomToolCallInputDeltaEvent
object
Event representing a delta (partial update) to the input of a custom tool call.
5 properties
5 required
BetaDragParam
object
A drag action.
3 properties
2 required
FunctionShellCallOutputStatusEnum
string
ResponseMCPListToolsInProgressEvent
object
Emitted when the system is in the process of retrieving the list of available MCP tools.
4 properties
4 required
ApproximateLocation
object
5 properties
1 required
BetaCodeInterpreterOutputLogs
object
The logs output from the code interpreter.
2 properties
2 required
Reasoning
object
Configuration options for [reasoning models](https://developers.openai.com/api/docs/guides/reasoning).
5 properties
BetaComputerToolCallOutputResource
FunctionShellAction
object
Execute a shell command.
3 properties
3 required
BetaFileDetailEnum
string
BetaUrlCitationBody
object
A citation for a web resource used to generate a model response.
5 properties
5 required
BetaMCPToolCallStatus
string
ProgramOutputItemStatus
string
BetaResponseMCPCallArgumentsDoneEvent
object
Emitted when the arguments for an MCP tool call are finalized.
6 properties
5 required
BetaSearchContentType
string
BetaApplyPatchDeleteFileOperation
object
Instruction describing how to delete a file via the applypatch tool.
2 properties
2 required
BetaContainerMemoryLimit
string
BetaFunctionShellAction
object
Execute a shell command.
3 properties
3 required
Beta_MisalignmentSteer
object
1 property
1 required
BetaFunctionCallStatus
string
CreateModelResponseProperties
BetaModelResponseProperties
object
8 properties
BetaContainerNetworkPolicyDisabledParam
object
1 property
1 required
Program
object
5 properties
5 required
BetaResponseIncompleteEvent
object
An event that is emitted when a response finishes as incomplete. Over WebSocket, steering can finish a response with response.incompletedetails.reason set to s…
4 properties
3 required
BetaFunctionToolCallOutput
object
The output of a function tool call.
9 properties
2 required
InputTextContent
object
A text input to the model.
3 properties
2 required
BetaImageGenActionEnum
string
Beta_MisalignmentErrorType
BetaFunctionShellCallOutputTimeoutOutcomeParam
object
Indicates that the shell call exceeded its configured time limit.
1 property
1 required
BetaApplyPatchToolCall
object
A tool call that applies file diffs by creating, deleting, or updating files.
8 properties
5 required
IncludeEnum
string
Specify additional output data to include in the model response. Currently supported values are: - websearchcall.results: Include the search results of the web…
BetaInputMessage
object
A message input to the model with a role indicating instruction following hierarchy. Instructions given with the developer or system role take precedence over…
5 properties
2 required
BetaApplyPatchCallOutputStatusParam
string
Outcome values reported for applypatch tool call outputs.
Message
object
A message to or from the model.
6 properties
5 required
ProgramOutputItemParam
object
5 properties
5 required
HybridSearchOptions
object
2 properties
2 required
ApplyPatchDeleteFileOperation
object
Instruction describing how to delete a file via the applypatch tool.
2 properties
2 required
ProgramOutputStatus
string
KeyPressAction
object
A collection of keypresses the model would like to perform.
2 properties
2 required
FunctionToolParam
object
9 properties
2 required
FunctionToolCallOutput
object
The output of a function tool call.
8 properties
2 required
BetaFunctionShellCallStatus
string
BetaComputerActionList
array
Flattened batched actions for computeruse. Each action includes an type discriminator and action-specific fields.
BetaResponseAudioTranscriptDoneEvent
object
Emitted when the full audio transcript is completed.
3 properties
3 required
DoubleClickAction
object
A double click action.
4 properties
4 required
BetaResponseStreamEvent
Event emitted while a response is streamed.
BetaApplyPatchToolCallItemParam
object
A tool call representing a request to create, delete, or update files using diff patches.
7 properties
4 required
BetaApplyPatchUpdateFileOperation
object
Instruction describing how to update a file via the applypatch tool.
3 properties
3 required
PromptCacheMissDiagnosticsBody
object
4 properties
3 required
BetaModeration
object
Moderation results or errors for the response input and output.
2 properties
2 required
CustomToolCall
object
A call to a custom tool created by the model.
8 properties
4 required
BetaAdditionalToolsItemParam
object
5 properties
3 required
ResponseMCPListToolsCompletedEvent
object
Emitted when the list of available MCP tools has been successfully retrieved.
4 properties
4 required
BetaResponseShellCallOutputContentDeltaStreamingEvent
object
A streaming event that indicated shell call output was incrementally added.
7 properties
6 required
PromptCacheOptions
object
The prompt-caching options that were applied to the response. Supported for gpt-5.6 and later models.
3 properties
2 required
BetaImageOutputFormat
string
WebSearchActionSearch
object
Action type "search" - Performs a web search query.
4 properties
1 required
BetaToolSearchCall
object
8 properties
6 required
BetaAccessProgramsBody
object
1 property
1 required
BetaFunctionShellToolParam
object
A tool that allows the model to execute shell commands.
3 properties
1 required
BetaInputFileContentParam
object
A file input to the model.
7 properties
1 required
CompoundFilter
object
Combine multiple filters using and or or.
2 properties
2 required
BetaContainerFileCitationParam
object
6 properties
6 required
BetaFileCitationParam
object
4 properties
4 required
ResponseMCPCallFailedEvent
object
Emitted when an MCP tool call has failed.
4 properties
4 required
BetaFunctionShellCallOutputExitOutcome
object
Indicates that the shell commands finished and returned an exit code.
2 properties
2 required
BetaGrammarSyntax1
string
BetaSummaryTextContent
object
A summary text from the model.
2 properties
2 required
ModelIdsCompaction
Model ID used to generate the response, like gpt-6-astra. OpenAI offers a wide range of models with different capabilities, performance characteristics, and pr…
_MisalignmentSteer
object
1 property
1 required
WebSearchActionFind
object
Action type "findinpage": Searches for a pattern within a loaded page.
3 properties
3 required
PromptCacheTTLEnum
string
ResponseReasoningSummaryTextDoneEvent
object
Emitted when a reasoning summary text is completed.
6 properties
6 required
ToolChoiceTypes
object
Indicates that the model should use a built-in tool to generate a response. [Learn more about built-in tools](https://developers.openai.com/api/docs/guides/too…
1 property
1 required
BetaProgramOutputItemStatus
string
Annotation
An annotation that applies to a span of output text.
BetaRefusalContent
object
A refusal from the model.
2 properties
2 required
ResponseAudioDeltaEvent
object
Emitted when there is a partial audio response.
3 properties
3 required
ResponseFileSearchCallInProgressEvent
object
Emitted when a file search call is initiated.
4 properties
4 required
ToolsArray
array
An array of tools the model may call while generating a response. You can specify which tool to use by setting the toolchoice parameter. We support the followi…
FunctionShellCallOutputContent
object
The content of a shell tool call output that was emitted.
4 properties
3 required
BetaResponseTextDeltaEvent
object
Emitted when there is an additional text delta.
8 properties
7 required
BetaResponsePromptCacheOptionsParam
object
Options for prompt caching. Supported for gpt-5.6 and later models. By default, OpenAI automatically chooses one implicit cache breakpoint. You can add explici…
4 properties
DirectToolCallCaller
object
1 property
1 required
ContainerReferenceResource
object
Represents a container created with /v1/containers.
2 properties
2 required
BetaInputImageContentParamAutoParam
object
An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision)
5 properties
1 required
BetaResponseCreatedEvent
object
An event that is emitted when a response is created.
4 properties
3 required
ToolSearchToolParam
object
Hosted or BYOT tool search configuration for deferred tools.
4 properties
1 required
BetaApplyPatchCallStatusParam
string
Status values reported for applypatch tool calls.
InputFileContent
object
A file input to the model.
7 properties
1 required
BetaRankerVersionType
string
BetaToolSearchExecutionType
string
BetaMultiAgentAction
string
BetaResponseFileSearchCallInProgressEvent
object
Emitted when a file search call is initiated.
5 properties
4 required
BetaTextResponseFormatJsonSchema
object
JSON Schema response format. Used to generate structured JSON responses. Learn more about [Structured Outputs](https://developers.openai.com/api/docs/guides/st…
5 properties
3 required
BetaFunctionShellCallOutputItemParam
object
The streamed output items emitted by a shell tool call.
8 properties
3 required
ResponseMCPCallArgumentsDoneEvent
object
Emitted when the arguments for an MCP tool call are finalized.
5 properties
5 required
BetaWebSearchActionFind
object
Action type "findinpage": Searches for a pattern within a loaded page.
3 properties
3 required
ResponseReasoningSummaryTextDeltaEvent
object
Emitted when a delta is added to a reasoning summary text.
6 properties
6 required
ContextManagementParam
object
2 properties
1 required
ToolChoiceOptions
string
Controls which (if any) tool is called by the model. none means the model will not call any tool and instead generates a message. auto means the model can pick…
Item
object
Content item used to generate a response.
BetaToolCallCaller
The execution context that produced this tool call.
ResponseOutputTextAnnotationAddedEvent
object
Emitted when an annotation is added to output text content.
7 properties
7 required
ImageGenTool
object
A tool that generates images using the GPT image models.
12 properties
1 required
ResponseCodeInterpreterCallCodeDeltaEvent
object
Emitted when a partial code snippet is streamed by the code interpreter.
5 properties
5 required
BetaMCPApprovalResponse
object
A response to an MCP approval request.
6 properties
4 required
BetaFunctionShellCallOutputTimeoutOutcome
object
Indicates that the shell call exceeded its configured time limit.
1 property
1 required
BetaPromptCacheModeEnum
string
BetaApplyPatchCreateFileOperationParam
object
Instruction for creating a new file via the applypatch tool.
3 properties
3 required
BetaInputTextContent
object
A text input to the model.
3 properties
2 required
EasyInputMessage
object
A message input to the model with a role indicating instruction following hierarchy. Instructions given with the developer or system role take precedence over…
4 properties
2 required
BetaEncryptedContent
object
Opaque encrypted content that Responses API decrypts inside trusted model execution.
2 properties
2 required
SummaryTextContent
object
A summary text from the model.
2 properties
2 required
LocalShellToolCallOutput
object
The output of a local shell tool call.
4 properties
4 required
BetaResponseAudioDoneEvent
object
Emitted when the audio response is complete.
3 properties
3 required
ResponseCompactionCompactingStreamingEvent
object
Emitted when new summary content is sampled for a compaction trigger. Contains no summary content.
4 properties
4 required
BetaResponseItemList
object
A list of Response items.
5 properties
5 required
ToolChoiceMCP
object
Use this option to force the model to call a specific tool on a remote MCP server.
3 properties
2 required
InlineSkillParam
object
4 properties
4 required
BetaMCPToolCall
object
An invocation of a tool on an MCP server.
10 properties
5 required
InputMessageContentList
array
A list of one or many input items to the model, containing different content types.
BetaModerationInputType
string
ModelResponseProperties
object
8 properties
ResponseMCPListToolsFailedEvent
object
Emitted when the attempt to list available MCP tools has failed.
4 properties
4 required
Error
object
5 properties
4 required
BetaFilePath
object
A path to a file.
3 properties
3 required
BetaMCPToolFilter
object
A filter object to specify which tools are allowed.
2 properties
FunctionShellCallOutputExitOutcomeParam
object
Indicates that the shell commands finished and returned an exit code.
2 properties
2 required
BetaMCPTool
object
Give the model access to additional tools via remote Model Context Protocol (MCP) servers. [Learn more about MCP](https://developers.openai.com/api/docs/guides…
12 properties
2 required
BetaResponseOutputItemAddedEvent
object
Emitted when a new output item is added.
5 properties
4 required
LocalEnvironmentParam
object
2 properties
1 required
ProgramToolCallCaller
object
2 properties
2 required
BetaMCPApprovalRequest
object
A request for human approval of a tool invocation.
6 properties
5 required
BetaFileSearchToolCall
object
The results of a file search tool call. See the [file search guide](https://developers.openai.com/api/docs/guides/tools-file-search) for more information.
6 properties
4 required
BetaResponseTextDoneEvent
object
Emitted when text content is finalized.
8 properties
7 required
BetaOutputTextContentParam
object
3 properties
2 required
InputImageContent
object
An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision).
5 properties
2 required
LocalShellToolParam
object
A tool that allows the model to execute shell commands in a local environment.
1 property
1 required
BetaToolSearchOutput
object
8 properties
6 required
ConversationParam
The conversation that this response belongs to. Items from this conversation are prepended to inputitems for this response request. Input items and output item…
BetaResponseCustomToolCallInputDeltaEvent
object
Event representing a delta (partial update) to the input of a custom tool call.
6 properties
5 required
BetaMCPProtocolError
object
3 properties
3 required
ToolSearchOutput
object
7 properties
6 required
ToolChoiceFunction
object
Use this option to force the model to call a specific function.
2 properties
2 required
BetaResponseRefusalDoneEvent
object
Emitted when refusal text is finalized.
7 properties
6 required
BetaCustomTextFormatParam
object
Unconstrained free-form text.
1 property
1 required
BetaResponseCompletedEvent
object
Emitted when the model response is complete.
4 properties
3 required
BetaCompactResource
object
5 properties
5 required
BetaProgramOutput
object
6 properties
5 required
SpecificFunctionShellParam
object
Forces the model to call the shell tool when a tool call is required.
1 property
1 required
BetaResponseFunctionCallArgumentsDoneEvent
object
Emitted when function-call arguments are finalized.
6 properties
5 required
BetaMultiAgentParam
object
Configuration for server-hosted multi-agent execution.
2 properties
1 required
ContainerNetworkPolicyDisabledParam
object
1 property
1 required
LocalEnvironmentResource
object
Represents the use of a local environment to perform shell actions.
1 property
1 required
MCPApprovalRequest
object
A request for human approval of a tool invocation.
5 properties
5 required
LogProb
object
The log probability of a token.
4 properties
4 required
BetaCustomToolCall
object
A call to a custom tool created by the model.
9 properties
4 required
BetaTypeParam
object
An action to type in text.
2 properties
2 required
CompactResponseMethodPublicBody
object
8 properties
1 required
PromptCacheHitDiagnosticsBody
object
1 property
1 required
FunctionTool
object
Defines a function in your own code the model can choose to call. Learn more about [function calling](https://developers.openai.com/api/docs/guides/function-ca…
9 properties
4 required
BetaConversationParam
The conversation that this response belongs to. Items from this conversation are prepended to inputitems for this response request. Input items and output item…
BetaProgramOutputItemParam
object
6 properties
5 required
CustomToolCallOutput
object
The output of a custom tool call from your code, being sent back to the model.
5 properties
3 required
OutputTextContent
object
A text output from the model.
4 properties
4 required
ResponseReasoningSummaryPartDoneEvent
object
Emitted when a reasoning summary part is completed.
7 properties
6 required
BetaPromptCacheTTLEnum
string
BetaVectorStoreFileAttributes
FunctionToolCallOutputResource
BetaToolChoiceFunction
object
Use this option to force the model to call a specific function.
2 properties
2 required
BetaCustomToolCallOutputResource
ResponseMCPCallInProgressEvent
object
Emitted when an MCP tool call is in progress.
4 properties
4 required
BetaResponseCodeInterpreterCallCodeDoneEvent
object
Emitted when the code snippet is finalized by the code interpreter.
6 properties
5 required
BetaResponseOutputItemDoneEvent
object
Emitted when an output item is marked done.
5 properties
4 required
BetaEasyInputMessage
object
A message input to the model with a role indicating instruction following hierarchy. Instructions given with the developer or system role take precedence over…
4 properties
2 required
TypeParam
object
An action to type in text.
2 properties
2 required
BetaResponseMCPCallFailedEvent
object
Emitted when an MCP tool call has failed.
5 properties
4 required
ComputerUsePreviewTool
object
A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use).
4 properties
4 required
ResponseWebSearchCallSearchingEvent
object
Emitted when a web search call is executing.
4 properties
4 required
BetaResponseConfigurationUpdateItemParam
object
An update to the conversation's response configuration. The configuration remains in effect for subsequent responses until it is replaced by another configurat…
4 properties
1 required
BetaMessagePhase
string
Labels an assistant message as intermediate commentary (commentary) or the final answer (finalanswer). For models like gpt-5.3-codex and beyond, when sending f…
BetaError
object
5 properties
4 required
BetaFunctionCallOutputItemParam
object
The output of a function tool call.
9 properties
2 required
BetaFunctionToolCallOutputResource
ResponseWebSearchCallInProgressEvent
object
Emitted when a web search call is initiated.
4 properties
4 required
FunctionShellToolParam
object
A tool that allows the model to execute shell commands.
3 properties
1 required
FunctionShellCallOutputTimeoutOutcome
object
Indicates that the shell call exceeded its configured time limit.
1 property
1 required
WebSearchToolCall
object
The results of a web search tool call. See the [web search guide](https://developers.openai.com/api/docs/guides/tools-web-search) for more information.
4 properties
4 required
ProgramOutput
object
5 properties
5 required
ResponseCustomToolCallInputDoneEvent
object
Event indicating that input for a custom tool call is complete.
5 properties
5 required
FunctionShellCallOutputOutcomeParam
The exit or timeout outcome associated with this shell call.
BetaSearchContextSize
string
BetaResponseRefusalDeltaEvent
object
Emitted when there is a partial refusal text.
7 properties
6 required
InlineSkillSourceParam
object
Inline skill payload
3 properties
3 required
ResponseContentPartAddedEvent
object
Emitted when a new content part is added.
6 properties
6 required
TokenCountsBody
object
12 properties
BetaItemReferenceParam
object
An internal identifier for an item to reference.
3 properties
1 required
BetaModerationConfigParam
object
The moderation policy for the response input.
1 property
1 required
BetaCustomToolCallResource
ClickParam
object
A click action.
5 properties
4 required
ModerationInputType
string
BetaResponseAudioDeltaEvent
object
Emitted when there is a partial audio response.
4 properties
3 required
BetaClickButtonType
string
MessagePhase
string
Labels an assistant message as intermediate commentary (commentary) or the final answer (finalanswer). For models like gpt-5.3-codex and beyond, when sending f…
BetaResponseWebSearchCallSearchingEvent
object
Emitted when a web search call is executing.
5 properties
4 required
ApplyPatchOperationParam
One of the createfile, deletefile, or updatefile operations supplied to the applypatch tool.
Tool
A tool that can be used to generate a response.
MCPToolExecutionError
object
2 properties
2 required
PromptCacheBreakpointConfig
object
Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's promptcacheoptions.ttl; the boundary is not rounded to a to…
1 property
1 required
ShellCallOutputDelta
object
A delta of stdout/stderr emitted while a shell call was running.
2 properties
ResponseWebSearchCallCompletedEvent
object
Emitted when a web search call is completed.
4 properties
4 required
AdditionalTools
object
4 properties
4 required
BetaSpecificApplyPatchParam
object
Forces the model to call the applypatch tool when executing a tool call.
1 property
1 required
BetaFileInputDetail
string
PromptCacheRetentionEnum
string
BetaContainerReferenceParam
object
2 properties
2 required
BetaResponseWebSearchCallInProgressEvent
object
Emitted when a web search call is initiated.
5 properties
4 required
LocalShellToolCall
object
A tool call to run a command on the local shell.
5 properties
5 required
ApplyPatchToolCall
object
A tool call that applies file diffs by creating, deleting, or updating files.
7 properties
5 required
BetaMultiAgentCallItemParam
object
6 properties
4 required
BetaMultiAgentCallOutput
object
6 properties
5 required
FunctionShellCallStatus
string
CompactResource
object
5 properties
5 required
BetaComputerUsePreviewTool
object
A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use).
4 properties
4 required
BetaApplyPatchToolCallOutput
object
The output emitted by an apply patch tool call.
8 properties
4 required
ApplyPatchCallStatus
string
BetaWebSearchPreviewTool
object
This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](https://developers.openai.com/api/docs/guides/tool…
4 properties
1 required
BetaInlineSkillSourceParam
object
Inline skill payload
3 properties
3 required
TokenCountsResource
object
2 properties
2 required
ApplyPatchUpdateFileOperationParam
object
Instruction for updating an existing file via the applypatch tool.
3 properties
3 required
BetaCustomGrammarFormatParam
object
A grammar defined by the user.
3 properties
3 required
BetaLocalSkillParam
object
3 properties
3 required
ComputerTool
object
A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use).
1 property
1 required
BetaResponseTextParam
object
Configuration options for a text response from the model. Can be plain text or structured JSON data. Learn more: - [Text inputs and outputs](https://developers…
2 properties
BetaModerationResultBody
object
A moderation result produced for the response input or output.
6 properties
6 required
CallableToolAllowedCaller
string
BetaWaitParam
object
A wait action.
1 property
1 required
BetaPromptCacheOptionsParam
object
Options for prompt caching. Supported for gpt-5.6 and later models. By default, OpenAI automatically chooses one implicit cache breakpoint. You can add explici…
2 properties
BetaClickParam
object
A click action.
5 properties
4 required
BetaToolSearchCallItemParam
object
7 properties
2 required
BetaToolChoiceTypes
object
Indicates that the model should use a built-in tool to generate a response. [Learn more about built-in tools](https://developers.openai.com/api/docs/guides/too…
1 property
1 required
AdditionalToolsItemParam
object
4 properties
3 required
ComputerActionList
array
Flattened batched actions for computeruse. Each action includes an type discriminator and action-specific fields.
ApplyPatchUpdateFileOperation
object
Instruction describing how to update a file via the applypatch tool.
3 properties
3 required
BetaLogProb
object
The log probability of a token.
4 properties
4 required
BetaResponseFunctionCallArgumentsDeltaEvent
object
Emitted when there is a partial function-call arguments delta.
6 properties
5 required
AccessProgramsBody
object
1 property
1 required
BetaResponseReasoningTextDeltaEvent
object
Emitted when a delta is added to a reasoning text.
7 properties
6 required
DragParam
object
A drag action.
3 properties
2 required
BetaUrlCitationParam
object
5 properties
5 required
BetaResponseImageGenCallGeneratingEvent
object
Emitted when an image generation tool call is actively generating an image (intermediate state).
5 properties
4 required
BetaResponseImageGenCallPartialImageEvent
object
Emitted when a partial image is available during image generation streaming.
11 properties
6 required
ResponseErrorEvent
object
Emitted when an error occurs.
5 properties
5 required
MisalignmentErrorDetailsResource
object
3 properties
BetaProgrammaticToolCallingParam
object
1 property
1 required
BetaMCPApprovalResponseResource
object
A response to an MCP approval request.
6 properties
5 required
BetaFunctionCallItemStatus
string
BetaWebSearchCallStatus
string
BetaResponseConversation
object
The conversation that this response belonged to. Input items and output items from this response were automatically added to this conversation.
1 property
1 required
ItemResource
Content item used to generate a response.
MoveParam
object
A mouse move action.
4 properties
3 required
ModerationErrorBody
object
An error produced while attempting moderation for the response input or output.
3 properties
3 required
BetaNamespaceToolParam
object
Groups function/custom tools under a shared namespace.
4 properties
4 required
ContainerFileCitationBody
object
A citation for a container file used to generate a model response.
6 properties
6 required
FunctionShellCallOutputExitOutcome
object
Indicates that the shell commands finished and returned an exit code.
2 properties
2 required
BetaFunctionShellCall
object
A tool call that executes one or more shell commands in a managed environment.
9 properties
6 required
BetaInputFidelity_2
string
Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports high and low on gpt-image-1…
ResponseFailedEvent_2
object
An event that is emitted when a response fails.
3 properties
3 required
BetaMisalignmentErrorDetailsResource_2
object
4 properties
BetaCompoundFilter_2
object
Combine multiple filters using and or or.
2 properties
2 required
ToolSearchOutputTool
A tool definition returned by a tool search output.
InputFidelity_2
string
Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports high and low on gpt-image-1…
ResponseTextDeltaEvent_2
object
Emitted when there is an additional text delta.
7 properties
7 required
BetaResponseFailedEvent_2
object
An event that is emitted when a response fails.
4 properties
3 required
BetaResponseQueuedEvent_2
object
Emitted when a response is queued and waiting to be processed.
4 properties
3 required
ResponseContentPartDoneEvent_2
object
Emitted when a content part is done.
6 properties
6 required
ResponseTextDoneEvent_2
object
Emitted when text content is finalized.
7 properties
7 required
BetaWebSearchToolCall_2
object
The results of a web search tool call. See the [web search guide](https://developers.openai.com/api/docs/guides/tools-web-search) for more information.
5 properties
3 required
BetaFunctionToolParam_2
object
9 properties
2 required
BetaToolSearchOutputNamespaceToolParam
object
Groups function/custom tools under a shared namespace.
4 properties
4 required
BetaImageGenTool_2
object
A tool that generates images using the GPT image models.
12 properties
1 required
ResponseIncompleteEvent_2
object
An event that is emitted when a response finishes as incomplete. Over WebSocket, steering can finish a response with response.incompletedetails.reason set to s…
3 properties
3 required
BetaResponseContentPartDoneEvent_2
object
Emitted when a content part is done.
7 properties
6 required
ResponseCompletedEvent_2
object
Emitted when the model response is complete.
3 properties
3 required
FileCitationBody_2
object
A citation to a file.
4 properties
4 required
ComputerToolCallOutputResource_2
ResponseQueuedEvent_2
object
Emitted when a response is queued and waiting to be processed.
3 properties
3 required
BetaResponseCustomToolCallInputDoneEvent_2
object
Event indicating that input for a custom tool call is complete.
6 properties
5 required
TextResponseFormatJsonSchema_2
object
JSON Schema response format. Used to generate structured JSON responses. Learn more about [Structured Outputs](https://developers.openai.com/api/docs/guides/st…
5 properties
3 required
ResponseFunctionCallArgumentsDeltaEvent_2
object
Emitted when there is a partial function-call arguments delta.
5 properties
5 required
BetaFunctionTool_2
object
Defines a function in your own code the model can choose to call. Learn more about [function calling](https://developers.openai.com/api/docs/guides/function-ca…
9 properties
4 required
ToolSearchOutputItemParam_2
object
6 properties
2 required
BetaResponseContentPartAddedEvent_2
object
Emitted when a new content part is added.
7 properties
6 required
ResponseOutputItemDoneEvent_2
object
Emitted when an output item is marked done.
4 properties
4 required
BetaFileCitationBody_2
object
A citation to a file.
4 properties
4 required
BetaToolSearchOutputTool
A tool definition returned by a tool search output.
BetaErrorResponse
object
1 property
1 required
BetaToolSearchOutputItemParam_2
object
7 properties
2 required
BetaResponseStreamOptions_2
ResponseCustomToolCallInputDeltaEvent_2
object
Event representing a delta (partial update) to the input of a custom tool call.
5 properties
5 required
BetaComputerToolCallOutputResource_2
ToolSearchOutputNamespaceToolParam
object
Groups function/custom tools under a shared namespace.
4 properties
4 required
BetaModelResponseProperties_2
object
8 properties
BetaResponseIncompleteEvent_2
object
An event that is emitted when a response finishes as incomplete. Over WebSocket, steering can finish a response with response.incompletedetails.reason set to s…
4 properties
3 required
FunctionToolParam_2
object
9 properties
2 required
CompoundFilter_2
object
Combine multiple filters using and or or.
2 properties
2 required
BetaResponseTextDeltaEvent_2
object
Emitted when there is an additional text delta.
8 properties
7 required
BetaTextResponseFormatJsonSchema_2
object
JSON Schema response format. Used to generate structured JSON responses. Learn more about [Structured Outputs](https://developers.openai.com/api/docs/guides/st…
5 properties
3 required
ImageGenTool_2
object
A tool that generates images using the GPT image models.
12 properties
1 required
ToolSearchOutputFunctionToolParam
object
9 properties
2 required
ModelResponseProperties_2
object
8 properties
BetaResponseTextDoneEvent_2
object
Emitted when text content is finalized.
8 properties
7 required
BetaResponseCustomToolCallInputDeltaEvent_2
object
Event representing a delta (partial update) to the input of a custom tool call.
6 properties
5 required
BetaResponseCompletedEvent_2
object
Emitted when the model response is complete.
4 properties
3 required
BetaCompactResource_2
object
5 properties
5 required
FunctionTool_2
object
Defines a function in your own code the model can choose to call. Learn more about [function calling](https://developers.openai.com/api/docs/guides/function-ca…
9 properties
4 required
BetaResponseOutputItemDoneEvent_2
object
Emitted when an output item is marked done.
5 properties
4 required
WebSearchToolCall_2
object
The results of a web search tool call. See the [web search guide](https://developers.openai.com/api/docs/guides/tools-web-search) for more information.
4 properties
3 required
ResponseCustomToolCallInputDoneEvent_2
object
Event indicating that input for a custom tool call is complete.
5 properties
5 required
ResponseContentPartAddedEvent_2
object
Emitted when a new content part is added.
6 properties
6 required
CompactResource_2
object
5 properties
5 required
BetaToolSearchOutputFunctionToolParam
object
9 properties
2 required
BetaResponseFunctionCallArgumentsDeltaEvent_2
object
Emitted when there is a partial function-call arguments delta.
6 properties
5 required
MisalignmentErrorDetailsResource_2
object
4 properties
The full machine-readable OpenAPI contract behind this narrative.
Other APIs OpenAI publishes across the network.