Repository Public
1# Fork WebSocket23> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.45Start a new Live session from stored conversation state. Send and receive audio and control events on the new WebSocket connection.67WS `/v1/live/sessions/{session_id}/fork`89## Connection1011`wss://api.openai.com/v1/live/sessions/{session_id}/fork`1213Authenticate from your backend with your OpenAI API key in the `Authorization: Bearer $OPENAI_API_KEY` header. Keep the key on your server.1415`session_id` (required path parameter): The ID of the stored source session to fork. The fork receives a new session ID.1617No query parameters. After connecting, send session.start with a session overrides object. An empty object inherits the stored configuration. Do not supply a new model. Wait for session.started before sending audio or other commands.1819## Inputs2021Required once after connecting. Omitted settings are inherited, including store. You may override Responses delegation settings, storage, and the new WebSocket audio format. Frontend client permissions apply only to WebRTC forks.2223### First message: session.start2425```json26{27 "type": "session.start",28 "session": {}29}30```3132[All client events](#client-events)3334## Outputs3536The server confirms the new session is ready. Use its new ID for subsequent sideband connections and session controls.3738### Fork ready · excerpt: session.started3940```json41{42 "type": "session.started",43 "event_id": "event_started_1",44 "session": {45 "id": "live_fork_123",46 "expires_at": 1788307200,47 "status": "active",48 "model": "gpt-live-1"49 }50}51```5253[All server events](#server-events)5455[Learn how to store a session and fork its conversation.](https://developers.openai.com/api/docs/guides/live-conversations#store-and-fork-a-session)5657<a id="client-events"></a>5859## Client events6061<a id="session.start"></a>6263### session.start6465Start a Live session after connecting to a stored session’s fork WebSocket. Send an empty `session` object to use the stored configuration.6667#### Schema6869Schema name: `LiveForkSessionStartEvent`7071- `session: ForkSessionConfig`7273 Overrides for a stored session after connecting to the fork WebSocket. An empty object inherits the stored configuration; do not supply a new model. audio.format applies only to the new WebSocket connection. client overrides are only supported for WebRTC forks.7475 - `audio: optional object { format }`7677 Audio format for a WebSocket fork. WebRTC forks negotiate their audio format and must omit this field.7879 - `format: optional AudioFormat`8081 Audio encoding and sample rate for audio sent and received over a Live WebSocket connection. WebRTC and SIP negotiate their media format separately.8283 - `AudioPCM object { rate, type }`8485 Raw, mono 16-bit little-endian PCM audio for a Live WebSocket connection.8687 - `rate: 16000 or 24000`8889 Audio sample rate in hertz. Live WebSocket PCM audio supports 16000 or 24000 Hz.9091 - `16000`9293 - `24000`9495 - `type: "audio/pcm"`9697 The audio encoding. Always `audio/pcm`.9899 - `"audio/pcm"`100101 - `AudioPCMU object { rate, type }`102103 Raw, mono G.711 μ-law audio for a Live WebSocket connection.104105 - `rate: number`106107 Audio sample rate in hertz. G.711 audio uses 8000 Hz.108109 - `type: "audio/pcmu"`110111 The audio encoding. Always `audio/pcmu`.112113 - `"audio/pcmu"`114115 - `AudioPCMA object { rate, type }`116117 Raw, mono G.711 A-law audio for a Live WebSocket connection.118119 - `rate: number`120121 Audio sample rate in hertz. G.711 audio uses 8000 Hz.122123 - `type: "audio/pcma"`124125 The audio encoding. Always `audio/pcma`.126127 - `"audio/pcma"`128129 - `client: optional ClientConfig`130131 Frontend data-channel permissions for a WebRTC fork. Omitted permissions inherit the stored values. Not supported for WebSocket forks.132133 - `data_channel: DataChannelConfig`134135 Client and server event permissions for the WebRTC frontend data channel.136137 - `allowed_client_events: optional "all" or array of string`138139 Client event types that the frontend data channel may send. Use 'all' to allow every client event; an empty array allows none. Omission preserves the existing allow-all behavior.140141 - `"all"`142143 - `"all"`144145 - `array of string`146147 - `allowed_server_events: optional "all" or array of ServerEventSelector`148149 Server events that may be sent to the frontend data channel. Use 'all' to allow every server event; an empty array allows none. Omission preserves the existing allow-all behavior. Responses events use an object with type 'response.event' and a response_event selector.150151 - `"all"`152153 - `"all"`154155 - `array of ServerEventSelector`156157 - `type: string`158159 The outer Live server event type. Use 'response.event' for Responses events.160161 - `response_event: optional string`162163 The nested Responses event type. Required when type is 'response.event'; forbidden for other event types.164165 - `delegation: optional object { type, responses }`166167 Overrides for the stored session’s Responses backend. Only supported when the stored session already uses Responses delegation; the delegation type cannot change.168169 - `type: "responses"`170171 The delegation owner. Always `responses` for tasks handled by the Responses API.172173 - `"responses"`174175 - `responses: optional ResponsesDelegationUpdateConfig`176177 Responses backend settings to update. Omitted settings keep their existing values.178179 - `instructions: optional string or null`180181 Instructions for the delegated Responses model, separate from Live instructions. See [backend prompting](https://developers.openai.com/api/docs/guides/live-delegation#start-with-your-existing-backend-prompt).182183 - `max_output_tokens: optional number or null`184185 Maximum number of output tokens for each delegated response.186187 - `model: optional string`188189 The Responses backend model to use for subsequent delegated requests. Omit to keep the current backend model.190191 - `parallel_tool_calls: optional boolean or null`192193 Whether the delegated Responses model may request multiple tool calls in a single response.194195 - `reasoning: optional object { effort, summary } or null`196197 Reasoning settings passed to each delegated Responses request.198199 - `effort: optional "none" or "minimal" or "low" or 3 more or null`200201 How much reasoning effort the delegated Responses model should use. Supported values depend on the backend model.202203 - `"none"`204205 - `"minimal"`206207 - `"low"`208209 - `"medium"`210211 - `"high"`212213 - `"xhigh"`214215 - `summary: optional "concise" or "detailed" or "auto" or null`216217 The reasoning summary to request from the delegated Responses model, when supported.218219 - `"concise"`220221 - `"detailed"`222223 - `"auto"`224225 - `service_tier: optional "auto" or "default" or "fast_tier_temp_pilot" or 3 more or null`226227 Service tier for delegated Responses requests.228229 - `"auto"`230231 - `"default"`232233 - `"fast_tier_temp_pilot"`234235 - `"flex"`236237 - `"priority"`238239 - `"ultrafast"`240241 - `text: optional object { verbosity } or null`242243 Text generation settings passed to each delegated Responses request.244245 - `verbosity: optional "low" or "medium" or "high" or null`246247 The amount of detail in text generated by the Responses backend. This does not configure the Live model’s spoken delivery.248249 - `"low"`250251 - `"medium"`252253 - `"high"`254255 - `tool_choice: optional "auto" or "none" or "required" or object { name, type } or object { name, server_label, type }`256257 Controls which tool the Responses backend uses when handling a task delegated by the Live model.258259 - `LiveToolChoiceEnum = "auto" or "none" or "required"`260261 - `"auto"`262263 - `"none"`264265 - `"required"`266267 - `LiveFunctionToolChoiceParam object { name, type }`268269 - `name: string`270271 - `type: "function"`272273 - `"function"`274275 - `LiveMCPToolChoiceParam object { name, server_label, type }`276277 - `name: string`278279 - `server_label: string`280281 - `type: "mcp"`282283 - `"mcp"`284285 - `tools: optional array of FunctionTool or object { type }`286287 Tools available to the Responses backend while it handles tasks delegated by the Live model.288289 - `FunctionTool object { name, type, description, 2 more }`290291 A function tool available to the Responses backend when the Live model delegates a task.292293 - `name: string`294295 The name the delegated Responses model uses when calling this function.296297 - `type: "function"`298299 The tool type. Always `function`.300301 - `"function"`302303 - `description: optional string or null`304305 What the function does and when the delegated Responses model should call it.306307 - `parameters: optional map[unknown] or null`308309 A JSON Schema object describing the arguments accepted by the function.310311 - `strict: optional boolean or null`312313 Whether the delegated Responses model must follow the function’s parameter schema exactly.314315 - `WebSearch object { type }`316317 A web search tool available to the Live session’s Responses backend.318319 - `type: "web_search"`320321 The tool type. Always `web_search`.322323 - `"web_search"`324325 - `store: optional boolean`326327 Whether to store the forked session. Omission inherits the stored session's setting.328329- `type: "session.start"`330331 The Live client event type. Always `session.start`.332333 - `"session.start"`334335- `event_id: optional string or null`336337 Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.338339#### Example340341```json342{343 "type": "session.start",344 "session": {}345}346```347348<a id="session.update"></a>349350### session.update351352Update the delegation settings of an active Live session. The server acknowledges accepted changes with `session.updated`.353354#### Schema355356Schema name: `LiveSessionUpdateParam`357358- `session: SessionUpdateConfig`359360 Sparse delegation updates. Omitted settings retain their values. The delegation type cannot change, including resetting Responses delegation to null or client. Model, frontend instructions, audio, and startup input are immutable.361362 - `delegation: optional ClientDelegation or object { type, responses } or null`363364 Delegation settings to update. The delegation type must match the current session; omitted settings retain their values.365366 - `ClientDelegation object { type }`367368 Delegate tasks to your application. The Live session emits delegation events that your backend handles.369370 - `type: "client"`371372 The delegation owner. Always `client` for tasks handled by your application.373374 - `"client"`375376 - `Responses object { type, responses }`377378 Update the Responses backend for an existing Live session without changing delegation ownership.379380 - `type: "responses"`381382 The delegation owner. Always `responses` for tasks handled by the Responses API.383384 - `"responses"`385386 - `responses: optional ResponsesDelegationUpdateConfig`387388 Responses backend settings to update. Omitted settings keep their existing values.389390 - `instructions: optional string or null`391392 Instructions for the delegated Responses model, separate from Live instructions. See [backend prompting](https://developers.openai.com/api/docs/guides/live-delegation#start-with-your-existing-backend-prompt).393394 - `max_output_tokens: optional number or null`395396 Maximum number of output tokens for each delegated response.397398 - `model: optional string`399400 The Responses backend model to use for subsequent delegated requests. Omit to keep the current backend model.401402 - `parallel_tool_calls: optional boolean or null`403404 Whether the delegated Responses model may request multiple tool calls in a single response.405406 - `reasoning: optional object { effort, summary } or null`407408 Reasoning settings passed to each delegated Responses request.409410 - `effort: optional "none" or "minimal" or "low" or 3 more or null`411412 How much reasoning effort the delegated Responses model should use. Supported values depend on the backend model.413414 - `"none"`415416 - `"minimal"`417418 - `"low"`419420 - `"medium"`421422 - `"high"`423424 - `"xhigh"`425426 - `summary: optional "concise" or "detailed" or "auto" or null`427428 The reasoning summary to request from the delegated Responses model, when supported.429430 - `"concise"`431432 - `"detailed"`433434 - `"auto"`435436 - `service_tier: optional "auto" or "default" or "fast_tier_temp_pilot" or 3 more or null`437438 Service tier for delegated Responses requests.439440 - `"auto"`441442 - `"default"`443444 - `"fast_tier_temp_pilot"`445446 - `"flex"`447448 - `"priority"`449450 - `"ultrafast"`451452 - `text: optional object { verbosity } or null`453454 Text generation settings passed to each delegated Responses request.455456 - `verbosity: optional "low" or "medium" or "high" or null`457458 The amount of detail in text generated by the Responses backend. This does not configure the Live model’s spoken delivery.459460 - `"low"`461462 - `"medium"`463464 - `"high"`465466 - `tool_choice: optional "auto" or "none" or "required" or object { name, type } or object { name, server_label, type }`467468 Controls which tool the Responses backend uses when handling a task delegated by the Live model.469470 - `LiveToolChoiceEnum = "auto" or "none" or "required"`471472 - `"auto"`473474 - `"none"`475476 - `"required"`477478 - `LiveFunctionToolChoiceParam object { name, type }`479480 - `name: string`481482 - `type: "function"`483484 - `"function"`485486 - `LiveMCPToolChoiceParam object { name, server_label, type }`487488 - `name: string`489490 - `server_label: string`491492 - `type: "mcp"`493494 - `"mcp"`495496 - `tools: optional array of FunctionTool or object { type }`497498 Tools available to the Responses backend while it handles tasks delegated by the Live model.499500 - `FunctionTool object { name, type, description, 2 more }`501502 A function tool available to the Responses backend when the Live model delegates a task.503504 - `name: string`505506 The name the delegated Responses model uses when calling this function.507508 - `type: "function"`509510 The tool type. Always `function`.511512 - `"function"`513514 - `description: optional string or null`515516 What the function does and when the delegated Responses model should call it.517518 - `parameters: optional map[unknown] or null`519520 A JSON Schema object describing the arguments accepted by the function.521522 - `strict: optional boolean or null`523524 Whether the delegated Responses model must follow the function’s parameter schema exactly.525526 - `WebSearch object { type }`527528 A web search tool available to the Live session’s Responses backend.529530 - `type: "web_search"`531532 The tool type. Always `web_search`.533534 - `"web_search"`535536- `type: "session.update"`537538 The Live client event type. Always `session.update`.539540 - `"session.update"`541542- `event_id: optional string or null`543544 Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.545546#### Example547548```json549{550 "type": "session.update",551 "event_id": "evt_update_001",552 "session": {553 "delegation": {554 "type": "responses",555 "responses": {556 "instructions": "Check restaurant availability. Ask before confirming a booking.",557 "max_output_tokens": 1024558 }559 }560 }561}562```563564<a id="session.input_audio.append"></a>565566### session.input_audio.append567568Send audio to a Live session over its primary WebSocket. WebRTC and SIP sessions send audio over their media transport.569570#### Schema571572Schema name: `LiveInputAudioAppendEvent`573574- `audio: string`575576 Base64-encoded raw audio in the startup-selected format, without a WAV or other container header. Primary WebSocket only; media transports use their audio track. Audio appends have no acknowledgment. Reflected sideband server events reuse this event type and audio key, with no timestamps or event_id; their audio is always mono PCM16LE at 24 kHz.577578- `type: "session.input_audio.append"`579580 The Live client event type. Always `session.input_audio.append`.581582 - `"session.input_audio.append"`583584- `event_id: optional string or null`585586 Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.587588#### Example589590```json591{592 "type": "session.input_audio.append",593 "audio": "AACAAIAAAIAAAP9/AIAAgA=="594}595```596597<a id="session.input_audio.mute"></a>598599### session.input_audio.mute600601Mute audio input to the Live model without closing the session. The server acknowledges with `session.input_audio.muted`.602603#### Schema604605Schema name: `LiveInputAudioMuteParam`606607- `type: "session.input_audio.mute"`608609 The Live client event type. Always `session.input_audio.mute`.610611 - `"session.input_audio.mute"`612613- `event_id: optional string or null`614615 Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.616617#### Example618619```json620{621 "type": "session.input_audio.mute",622 "event_id": "evt_mute_001"623}624```625626<a id="session.input_audio.unmute"></a>627628### session.input_audio.unmute629630Resume audio input to a Live model after muting it. The server acknowledges with `session.input_audio.unmuted`.631632#### Schema633634Schema name: `LiveInputAudioUnmuteParam`635636- `type: "session.input_audio.unmute"`637638 The Live client event type. Always `session.input_audio.unmute`.639640 - `"session.input_audio.unmute"`641642- `event_id: optional string or null`643644 Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.645646#### Example647648```json649{650 "type": "session.input_audio.unmute",651 "event_id": "evt_unmute_001"652}653```654655<a id="session.instructions.append"></a>656657### session.instructions.append658659Append instructions to the Live conversation while it is running, optionally associating them with an existing client delegation.660661#### Schema662663Schema name: `LiveInstructionsAppendParam`664665- `content: string`666667 Instruction text to append, limited to 500 tokens. This is a plain string, not an array of content parts.668669- `delegation_id: string or null`670671 Required, nullable. Set null for general session context, or use the ID from session.delegation.created for an existing client delegation. Non-null IDs are not accepted with Responses delegation.672673- `type: "session.instructions.append"`674675 The Live client event type. Always `session.instructions.append`.676677 - `"session.instructions.append"`678679- `event_id: optional string or null`680681 Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.682683#### Example684685```json686{687 "type": "session.instructions.append",688 "event_id": "evt_instructions_001",689 "delegation_id": null,690 "content": "The caller prefers outdoor seating."691}692```693694<a id="session.thinking.append"></a>695696### session.thinking.append697698Provide silent reasoning or progress context to the Live model, optionally for an existing client delegation.699700#### Schema701702Schema name: `LiveThinkingAppendParam`703704- `content: string`705706 Silent reasoning or progress context, limited to 500 tokens. It does not directly request speech, but can influence later speech and is not a secrecy boundary.707708- `delegation_id: string or null`709710 Required, nullable. Set null for general session context, or use the ID from session.delegation.created for an existing client delegation. Non-null IDs are not accepted with Responses delegation.711712- `type: "session.thinking.append"`713714 The Live client event type. Always `session.thinking.append`.715716 - `"session.thinking.append"`717718- `event_id: optional string or null`719720 Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.721722#### Example723724```json725{726 "type": "session.thinking.append",727 "event_id": "evt_thinking_001",728 "delegation_id": "del_abc123",729 "content": "Checking availability for two guests at 7 PM."730}731```732733<a id="session.commentary.append"></a>734735### session.commentary.append736737Provide context the Live model can communicate to the user, optionally for an existing client delegation.738739#### Schema740741Schema name: `LiveCommentaryAppendParam`742743- `content: string`744745 Speakable context for the Live model, limited to 500 tokens. Use this for a result the model should communicate; use session.thinking.append for silent context.746747- `delegation_id: string or null`748749 Required, nullable. Set null for general session context, or use the ID from session.delegation.created for an existing client delegation. Non-null IDs are not accepted with Responses delegation.750751- `type: "session.commentary.append"`752753 The Live client event type. Always `session.commentary.append`.754755 - `"session.commentary.append"`756757- `event_id: optional string or null`758759 Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.760761#### Example762763```json764{765 "type": "session.commentary.append",766 "event_id": "evt_commentary_001",767 "delegation_id": "del_abc123",768 "content": "There is an outdoor table for two at 7 PM. Ask whether to reserve it."769}770```771772<a id="response.item.create"></a>773774### response.item.create775776Add an input item to the Live session’s Responses backend. Requires Responses delegation; use `response.create` to request a response.777778#### Schema779780Schema name: `LiveResponseItemCreateParam`781782- `item: EasyInputMessage or object { content, role, status, type } or ResponseOutputMessage or 30 more`783784 An input item to append to the Responses backend conversation, such as a user message or a function tool result.785786 - `EasyInputMessage object { content, role, phase, type }`787788 A message input to the model with a role indicating instruction following789 hierarchy. Instructions given with the `developer` or `system` role take790 precedence over instructions given with the `user` role. Messages with the791 `assistant` role are presumed to have been generated by the model in previous792 interactions.793794 - `content: string or ResponseInputMessageContentList`795796 Text, image, or audio input to the model, used to generate a response.797 Can also contain previous assistant responses.798799 - `TextInput = string`800801 A text input to the model.802803 - `ResponseInputMessageContentList = array of ResponseInputContent`804805 A list of one or many input items to the model, containing different content806 types.807808 - `ResponseInputText object { text, type, prompt_cache_breakpoint }`809810 A text input to the model.811812 - `text: string`813814 The text input to the model.815816 - `type: "input_text"`817818 The type of the input item. Always `input_text`.819820 - `"input_text"`821822 - `prompt_cache_breakpoint: optional object { mode }`823824 Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.825826 - `mode: "explicit"`827828 The breakpoint mode. Always `explicit`.829830 - `"explicit"`831832 - `ResponseInputImage object { detail, type, file_id, 2 more }`833834 An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision).835836 - `detail: ImageDetail`837838 The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.839840 - `"low"`841842 - `"high"`843844 - `"auto"`845846 - `"original"`847848 - `type: "input_image"`849850 The type of the input item. Always `input_image`.851852 - `"input_image"`853854 - `file_id: optional string or null`855856 The ID of the file to be sent to the model.857858 - `image_url: optional string or null`859860 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.861862 - `prompt_cache_breakpoint: optional object { mode }`863864 Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.865866 - `mode: "explicit"`867868 The breakpoint mode. Always `explicit`.869870 - `"explicit"`871872 - `ResponseInputFile object { type, detail, file_data, 4 more }`873874 A file input to the model.875876 - `type: "input_file"`877878 The type of the input item. Always `input_file`.879880 - `"input_file"`881882 - `detail: optional "auto" or "low" or "high"`883884 The detail level of the file to be sent to the model. Use `auto` to let the system select the detail level; for GPT-5.6 and later models, `auto` uses high-quality rendering, which may increase input token usage. Use `low` for lower-cost rendering, or `high` to render the file at higher quality. Defaults to `auto`.885886 - `"auto"`887888 - `"low"`889890 - `"high"`891892 - `file_data: optional string`893894 The content of the file to be sent to the model.895896 - `file_id: optional string or null`897898 The ID of the file to be sent to the model.899900 - `file_url: optional string`901902 The URL of the file to be sent to the model.903904 - `filename: optional string`905906 The name of the file to be sent to the model.907908 - `prompt_cache_breakpoint: optional object { mode }`909910 Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.911912 - `mode: "explicit"`913914 The breakpoint mode. Always `explicit`.915916 - `"explicit"`917918 - `role: "user" or "assistant" or "system" or "developer"`919920 The role of the message input. One of `user`, `assistant`, `system`, or921 `developer`.922923 - `"user"`924925 - `"assistant"`926927 - `"system"`928929 - `"developer"`930931 - `phase: optional "commentary" or "final_answer" or null`932933 Labels an `assistant` message as intermediate commentary (`commentary`) or the final answer (`final_answer`).934 For models like `gpt-5.3-codex` and beyond, when sending follow-up requests, preserve and resend935 phase on all assistant messages — dropping it can degrade performance. Not used for user messages.936937 - `"commentary"`938939 - `"final_answer"`940941 - `type: optional "message"`942943 The type of the message input. Always `message`.944945 - `"message"`946947 - `Message object { content, role, status, type }`948949 A message input to the model with a role indicating instruction following950 hierarchy. Instructions given with the `developer` or `system` role take951 precedence over instructions given with the `user` role.952953 - `content: ResponseInputMessageContentList`954955 A list of one or many input items to the model, containing different content956 types.957958 - `role: "user" or "system" or "developer"`959960 The role of the message input. One of `user`, `system`, or `developer`.961962 - `"user"`963964 - `"system"`965966 - `"developer"`967968 - `status: optional "in_progress" or "completed" or "incomplete"`969970 The status of item. One of `in_progress`, `completed`, or971 `incomplete`. Populated when items are returned via API.972973 - `"in_progress"`974975 - `"completed"`976977 - `"incomplete"`978979 - `type: optional "message"`980981 The type of the message input. Always set to `message`.982983 - `"message"`984985 - `ResponseOutputMessage object { id, content, role, 3 more }`986987 An output message from the model.988989 - `id: string`990991 The unique ID of the output message.992993 - `content: array of ResponseOutputText or ResponseOutputRefusal`994995 The content of the output message.996997 - `ResponseOutputText object { annotations, logprobs, text, type }`998999 A text output from the model.10001001 - `annotations: array of object { file_id, filename, index, type } or object { end_index, start_index, title, 2 more } or object { container_id, end_index, file_id, 3 more } or object { file_id, index, type }`10021003 The annotations of the text output.10041005 - `FileCitation object { file_id, filename, index, type }`10061007 A citation to a file.10081009 - `file_id: string`10101011 The ID of the file.10121013 - `filename: string`10141015 The filename of the file cited.10161017 - `index: number`10181019 The index of the file in the list of files.10201021 - `type: "file_citation"`10221023 The type of the file citation. Always `file_citation`.10241025 - `"file_citation"`10261027 - `URLCitation object { end_index, start_index, title, 2 more }`10281029 A citation for a web resource used to generate a model response.10301031 - `end_index: number`10321033 The index of the last character of the URL citation in the message.10341035 - `start_index: number`10361037 The index of the first character of the URL citation in the message.10381039 - `title: string`10401041 The title of the web resource.10421043 - `type: "url_citation"`10441045 The type of the URL citation. Always `url_citation`.10461047 - `"url_citation"`10481049 - `url: string`10501051 The URL of the web resource.10521053 - `ContainerFileCitation object { container_id, end_index, file_id, 3 more }`10541055 A citation for a container file used to generate a model response.10561057 - `container_id: string`10581059 The ID of the container file.10601061 - `end_index: number`10621063 The index of the last character of the container file citation in the message.10641065 - `file_id: string`10661067 The ID of the file.10681069 - `filename: string`10701071 The filename of the container file cited.10721073 - `start_index: number`10741075 The index of the first character of the container file citation in the message.10761077 - `type: "container_file_citation"`10781079 The type of the container file citation. Always `container_file_citation`.10801081 - `"container_file_citation"`10821083 - `FilePath object { file_id, index, type }`10841085 A path to a file.10861087 - `file_id: string`10881089 The ID of the file.10901091 - `index: number`10921093 The index of the file in the list of files.10941095 - `type: "file_path"`10961097 The type of the file path. Always `file_path`.10981099 - `"file_path"`11001101 - `logprobs: array of object { token, bytes, logprob, top_logprobs }`11021103 - `token: string`11041105 - `bytes: array of number`11061107 - `logprob: number`11081109 - `top_logprobs: array of object { token, bytes, logprob }`11101111 - `token: string`11121113 - `bytes: array of number`11141115 - `logprob: number`11161117 - `text: string`11181119 The text output from the model.11201121 - `type: "output_text"`11221123 The type of the output text. Always `output_text`.11241125 - `"output_text"`11261127 - `ResponseOutputRefusal object { refusal, type }`11281129 A refusal from the model.11301131 - `refusal: string`11321133 The refusal explanation from the model.11341135 - `type: "refusal"`11361137 The type of the refusal. Always `refusal`.11381139 - `"refusal"`11401141 - `role: "assistant"`11421143 The role of the output message. Always `assistant`.11441145 - `"assistant"`11461147 - `status: "in_progress" or "completed" or "incomplete"`11481149 The status of the message input. One of `in_progress`, `completed`, or1150 `incomplete`. Populated when input items are returned via API.11511152 - `"in_progress"`11531154 - `"completed"`11551156 - `"incomplete"`11571158 - `type: "message"`11591160 The type of the output message. Always `message`.11611162 - `"message"`11631164 - `phase: optional "commentary" or "final_answer" or null`11651166 Labels an `assistant` message as intermediate commentary (`commentary`) or the final answer (`final_answer`).1167 For models like `gpt-5.3-codex` and beyond, when sending follow-up requests, preserve and resend1168 phase on all assistant messages — dropping it can degrade performance. Not used for user messages.11691170 - `"commentary"`11711172 - `"final_answer"`11731174 - `FileSearchCall object { id, queries, status, 2 more }`11751176 The results of a file search tool call. See the1177 [file search guide](https://developers.openai.com/api/docs/guides/tools-file-search) for more information.11781179 - `id: string`11801181 The unique ID of the file search tool call.11821183 - `queries: array of string`11841185 The queries used to search for files.11861187 - `status: "in_progress" or "searching" or "completed" or 2 more`11881189 The status of the file search tool call. One of `in_progress`,1190 `searching`, `incomplete` or `failed`,11911192 - `"in_progress"`11931194 - `"searching"`11951196 - `"completed"`11971198 - `"incomplete"`11991200 - `"failed"`12011202 - `type: "file_search_call"`12031204 The type of the file search tool call. Always `file_search_call`.12051206 - `"file_search_call"`12071208 - `results: optional array of object { attributes, file_id, filename, 2 more } or null`12091210 The results of the file search tool call.12111212 - `attributes: optional map[string or number or boolean] or null`12131214 Set of 16 key-value pairs that can be attached to an object. This can be1215 useful for storing additional information about the object in a structured1216 format, and querying for objects via API or the dashboard. Keys are strings1217 with a maximum length of 64 characters. Values are strings with a maximum1218 length of 512 characters, booleans, or numbers.12191220 - `string`12211222 - `number`12231224 - `boolean`12251226 - `file_id: optional string`12271228 The unique ID of the file.12291230 - `filename: optional string`12311232 The name of the file.12331234 - `score: optional number`12351236 The relevance score of the file - a value between 0 and 1.12371238 - `text: optional string`12391240 The text that was retrieved from the file.12411242 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`12431244 A tool call to a computer use tool. See the1245 [computer use guide](https://developers.openai.com/api/docs/guides/tools-computer-use) for more information.12461247 - `id: string`12481249 The unique ID of the computer call.12501251 - `call_id: string`12521253 An identifier used when responding to the tool call with output.12541255 - `pending_safety_checks: array of object { id, code, message }`12561257 The pending safety checks for the computer call.12581259 - `id: string`12601261 The ID of the pending safety check.12621263 - `code: optional string or null`12641265 The type of the pending safety check.12661267 - `message: optional string or null`12681269 Details about the pending safety check.12701271 - `status: "in_progress" or "completed" or "incomplete"`12721273 The status of the item. One of `in_progress`, `completed`, or1274 `incomplete`. Populated when items are returned via API.12751276 - `"in_progress"`12771278 - `"completed"`12791280 - `"incomplete"`12811282 - `type: "computer_call"`12831284 The type of the computer call. Always `computer_call`.12851286 - `"computer_call"`12871288 - `action: optional ComputerAction`12891290 A click action.12911292 - `Click object { button, type, x, 2 more }`12931294 A click action.12951296 - `button: "left" or "right" or "wheel" or 2 more`12971298 Indicates which mouse button was pressed during the click. One of `left`, `right`, `wheel`, `back`, or `forward`.12991300 - `"left"`13011302 - `"right"`13031304 - `"wheel"`13051306 - `"back"`13071308 - `"forward"`13091310 - `type: "click"`13111312 Specifies the event type. For a click action, this property is always `click`.13131314 - `"click"`13151316 - `x: number`13171318 The x-coordinate where the click occurred.13191320 - `y: number`13211322 The y-coordinate where the click occurred.13231324 - `keys: optional array of string or null`13251326 The keys being held while clicking.13271328 - `DoubleClick object { keys, type, x, y }`13291330 A double click action.13311332 - `keys: array of string or null`13331334 The keys being held while double-clicking.13351336 - `type: "double_click"`13371338 Specifies the event type. For a double click action, this property is always set to `double_click`.13391340 - `"double_click"`13411342 - `x: number`13431344 The x-coordinate where the double click occurred.13451346 - `y: number`13471348 The y-coordinate where the double click occurred.13491350 - `Drag object { path, type, keys }`13511352 A drag action.13531354 - `path: array of object { x, y }`13551356 An array of coordinates representing the path of the drag action. Coordinates will appear as an array of objects, eg13571358 ```1359 [1360 { x: 100, y: 200 },1361 { x: 200, y: 300 }1362 ]1363 ```13641365 - `x: number`13661367 The x-coordinate.13681369 - `y: number`13701371 The y-coordinate.13721373 - `type: "drag"`13741375 Specifies the event type. For a drag action, this property is always set to `drag`.13761377 - `"drag"`13781379 - `keys: optional array of string or null`13801381 The keys being held while dragging the mouse.13821383 - `Keypress object { keys, type }`13841385 A collection of keypresses the model would like to perform.13861387 - `keys: array of string`13881389 The combination of keys the model is requesting to be pressed. This is an array of strings, each representing a key.13901391 - `type: "keypress"`13921393 Specifies the event type. For a keypress action, this property is always set to `keypress`.13941395 - `"keypress"`13961397 - `Move object { type, x, y, keys }`13981399 A mouse move action.14001401 - `type: "move"`14021403 Specifies the event type. For a move action, this property is always set to `move`.14041405 - `"move"`14061407 - `x: number`14081409 The x-coordinate to move to.14101411 - `y: number`14121413 The y-coordinate to move to.14141415 - `keys: optional array of string or null`14161417 The keys being held while moving the mouse.14181419 - `Screenshot object { type }`14201421 A screenshot action.14221423 - `type: "screenshot"`14241425 Specifies the event type. For a screenshot action, this property is always set to `screenshot`.14261427 - `"screenshot"`14281429 - `Scroll object { scroll_x, scroll_y, type, 3 more }`14301431 A scroll action.14321433 - `scroll_x: number`14341435 The horizontal scroll distance.14361437 - `scroll_y: number`14381439 The vertical scroll distance.14401441 - `type: "scroll"`14421443 Specifies the event type. For a scroll action, this property is always set to `scroll`.14441445 - `"scroll"`14461447 - `x: number`14481449 The x-coordinate where the scroll occurred.14501451 - `y: number`14521453 The y-coordinate where the scroll occurred.14541455 - `keys: optional array of string or null`14561457 The keys being held while scrolling.14581459 - `Type object { text, type }`14601461 An action to type in text.14621463 - `text: string`14641465 The text to type.14661467 - `type: "type"`14681469 Specifies the event type. For a type action, this property is always set to `type`.14701471 - `"type"`14721473 - `Wait object { type }`14741475 A wait action.14761477 - `type: "wait"`14781479 Specifies the event type. For a wait action, this property is always set to `wait`.14801481 - `"wait"`14821483 - `actions: optional ComputerActionList`14841485 Flattened batched actions for `computer_use`. Each action includes an1486 `type` discriminator and action-specific fields.14871488 - `Click object { button, type, x, 2 more }`14891490 A click action.14911492 - `DoubleClick object { keys, type, x, y }`14931494 A double click action.14951496 - `Drag object { path, type, keys }`14971498 A drag action.14991500 - `Keypress object { keys, type }`15011502 A collection of keypresses the model would like to perform.15031504 - `Move object { type, x, y, keys }`15051506 A mouse move action.15071508 - `Screenshot object { type }`15091510 A screenshot action.15111512 - `Scroll object { scroll_x, scroll_y, type, 3 more }`15131514 A scroll action.15151516 - `Type object { text, type }`15171518 An action to type in text.15191520 - `Wait object { type }`15211522 A wait action.15231524 - `ComputerCallOutput object { call_id, output, type, 3 more }`15251526 The output of a computer tool call.15271528 - `call_id: string`15291530 The ID of the computer tool call that produced the output.15311532 - `output: ResponseComputerToolCallOutputScreenshot`15331534 A computer screenshot image used with the computer use tool.15351536 - `type: "computer_screenshot"`15371538 Specifies the event type. For a computer screenshot, this property is1539 always set to `computer_screenshot`.15401541 - `"computer_screenshot"`15421543 - `file_id: optional string`15441545 The identifier of an uploaded file that contains the screenshot.15461547 - `image_url: optional string`15481549 The URL of the screenshot image.15501551 - `type: "computer_call_output"`15521553 The type of the computer tool call output. Always `computer_call_output`.15541555 - `"computer_call_output"`15561557 - `id: optional string or null`15581559 The ID of the computer tool call output.15601561 - `acknowledged_safety_checks: optional array of object { id, code, message } or null`15621563 The safety checks reported by the API that have been acknowledged by the developer.15641565 - `id: string`15661567 The ID of the pending safety check.15681569 - `code: optional string or null`15701571 The type of the pending safety check.15721573 - `message: optional string or null`15741575 Details about the pending safety check.15761577 - `status: optional "in_progress" or "completed" or "incomplete" or null`15781579 The status of the message input. One of `in_progress`, `completed`, or `incomplete`. Populated when input items are returned via API.15801581 - `"in_progress"`15821583 - `"completed"`15841585 - `"incomplete"`15861587 - `WebSearchCall object { id, action, status, type }`15881589 The results of a web search tool call. See the1590 [web search guide](https://developers.openai.com/api/docs/guides/tools-web-search) for more information.15911592 - `id: string`15931594 The unique ID of the web search tool call.15951596 - `action: object { type, queries, query, sources } or object { type, url } or object { pattern, type, url }`15971598 An object describing the specific action taken in this web search call.1599 Includes details on how the model used the web (search, open_page, find_in_page).16001601 - `Search object { type, queries, query, sources }`16021603 Action type "search" - Performs a web search query.16041605 - `type: "search"`16061607 The action type.16081609 - `"search"`16101611 - `queries: optional array of string`16121613 The search queries.16141615 - `query: optional string`16161617 The search query.16181619 - `sources: optional array of object { type, url }`16201621 The sources used in the search.16221623 - `type: "url"`16241625 The type of source. Always `url`.16261627 - `"url"`16281629 - `url: string`16301631 The URL of the source.16321633 - `OpenPage object { type, url }`16341635 Action type "open_page" - Opens a specific URL from search results.16361637 - `type: "open_page"`16381639 The action type.16401641 - `"open_page"`16421643 - `url: optional string or null`16441645 The URL opened by the model.16461647 - `FindInPage object { pattern, type, url }`16481649 Action type "find_in_page": Searches for a pattern within a loaded page.16501651 - `pattern: string`16521653 The pattern or text to search for within the page.16541655 - `type: "find_in_page"`16561657 The action type.16581659 - `"find_in_page"`16601661 - `url: string`16621663 The URL of the page searched for the pattern.16641665 - `status: "in_progress" or "searching" or "completed" or 2 more`16661667 The status of the web search tool call.16681669 - `"in_progress"`16701671 - `"searching"`16721673 - `"completed"`16741675 - `"failed"`16761677 - `"incomplete"`16781679 - `type: "web_search_call"`16801681 The type of the web search tool call. Always `web_search_call`.16821683 - `"web_search_call"`16841685 - `FunctionCall object { arguments, call_id, name, 6 more }`16861687 A tool call to run a function. See the1688 [function calling guide](https://developers.openai.com/api/docs/guides/function-calling) for more information.16891690 - `arguments: string`16911692 A JSON string of the arguments to pass to the function.16931694 - `call_id: string`16951696 The unique ID of the function tool call generated by the model.16971698 - `name: string`16991700 The name of the function to run.17011702 - `type: "function_call"`17031704 The type of the function tool call. Always `function_call`.17051706 - `"function_call"`17071708 - `id: optional string`17091710 The unique ID of the function tool call.17111712 - `async: optional boolean`17131714 Whether the function tool call runs asynchronously.17151716 - `caller: optional object { type } or object { caller_id, type } or null`17171718 The execution context that produced this tool call.17191720 - `Direct object { type }`17211722 - `type: "direct"`17231724 - `"direct"`17251726 - `Program object { caller_id, type }`17271728 - `caller_id: string`17291730 The call ID of the program item that produced this tool call.17311732 - `type: "program"`17331734 - `"program"`17351736 - `namespace: optional string`17371738 The namespace of the function to run.17391740 - `status: optional "in_progress" or "completed" or "incomplete"`17411742 The status of the item. One of `in_progress`, `completed`, or1743 `incomplete`. Populated when items are returned via API.17441745 - `"in_progress"`17461747 - `"completed"`17481749 - `"incomplete"`17501751 - `FunctionCallOutput object { output, type, id, 5 more }`17521753 The output of a function tool call.17541755 - `output: string or array of ResponseInputTextContent or ResponseInputImageContent or ResponseInputFileContent`17561757 Text, image, or file output of the function tool call.17581759 - `string`17601761 A JSON string of the output of the function tool call.17621763 - `array of ResponseInputTextContent or ResponseInputImageContent or ResponseInputFileContent`17641765 An array of content outputs (text, image, file) for the function tool call.17661767 - `ResponseInputTextContent object { text, type, prompt_cache_breakpoint }`17681769 A text input to the model.17701771 - `text: string`17721773 The text input to the model.17741775 - `type: "input_text"`17761777 The type of the input item. Always `input_text`.17781779 - `"input_text"`17801781 - `prompt_cache_breakpoint: optional object { mode } or null`17821783 Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.17841785 - `mode: "explicit"`17861787 The breakpoint mode. Always `explicit`.17881789 - `"explicit"`17901791 - `ResponseInputImageContent object { type, detail, file_id, 2 more }`17921793 An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision)17941795 - `type: "input_image"`17961797 The type of the input item. Always `input_image`.17981799 - `"input_image"`18001801 - `detail: optional ImageDetail or null`18021803 The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.18041805 - `file_id: optional string or null`18061807 The ID of the file to be sent to the model.18081809 - `image_url: optional string or null`18101811 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.18121813 - `prompt_cache_breakpoint: optional object { mode } or null`18141815 Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.18161817 - `mode: "explicit"`18181819 The breakpoint mode. Always `explicit`.18201821 - `"explicit"`18221823 - `ResponseInputFileContent object { type, detail, file_data, 4 more }`18241825 A file input to the model.18261827 - `type: "input_file"`18281829 The type of the input item. Always `input_file`.18301831 - `"input_file"`18321833 - `detail: optional "auto" or "low" or "high"`18341835 The detail level of the file to be sent to the model. Use `auto` to let the system select the detail level; for GPT-5.6 and later models, `auto` uses high-quality rendering, which may increase input token usage. Use `low` for lower-cost rendering, or `high` to render the file at higher quality. Defaults to `auto`.18361837 - `"auto"`18381839 - `"low"`18401841 - `"high"`18421843 - `file_data: optional string or null`18441845 The base64-encoded data of the file to be sent to the model.18461847 - `file_id: optional string or null`18481849 The ID of the file to be sent to the model.18501851 - `file_url: optional string or null`18521853 The URL of the file to be sent to the model.18541855 - `filename: optional string or null`18561857 The name of the file to be sent to the model.18581859 - `prompt_cache_breakpoint: optional object { mode } or null`18601861 Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.18621863 - `mode: "explicit"`18641865 The breakpoint mode. Always `explicit`.18661867 - `"explicit"`18681869 - `type: "function_call_output"`18701871 The type of the function tool call output. Always `function_call_output`.18721873 - `"function_call_output"`18741875 - `id: optional string or null`18761877 The unique ID of the function tool call output. Populated when this item is returned via API.18781879 - `call_id: optional string or null`18801881 The unique ID of the function tool call generated by the model.18821883 - `caller: optional object { type } or object { caller_id, type } or null`18841885 The execution context that produced this tool call.18861887 - `Direct object { type }`18881889 - `type: "direct"`18901891 The caller type. Always `direct`.18921893 - `"direct"`18941895 - `Program object { caller_id, type }`18961897 - `caller_id: string`18981899 The call ID of the program item that produced this tool call.19001901 - `type: "program"`19021903 The caller type. Always `program`.19041905 - `"program"`19061907 - `name: optional string or null`19081909 The name of the tool that produced the output.19101911 - `namespace: optional string or null`19121913 The namespace of the tool that produced the output.19141915 - `status: optional "in_progress" or "completed" or "incomplete" or null`19161917 The status of the item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API.19181919 - `"in_progress"`19201921 - `"completed"`19221923 - `"incomplete"`19241925 - `ToolSearchCall object { arguments, type, id, 3 more }`19261927 - `arguments: unknown`19281929 The arguments supplied to the tool search call.19301931 - `type: "tool_search_call"`19321933 The item type. Always `tool_search_call`.19341935 - `"tool_search_call"`19361937 - `id: optional string or null`19381939 The unique ID of this tool search call.19401941 - `call_id: optional string or null`19421943 The unique ID of the tool search call generated by the model.19441945 - `execution: optional "server" or "client"`19461947 Whether tool search was executed by the server or by the client.19481949 - `"server"`19501951 - `"client"`19521953 - `status: optional "in_progress" or "completed" or "incomplete" or null`19541955 The status of the tool search call.19561957 - `"in_progress"`19581959 - `"completed"`19601961 - `"incomplete"`19621963 - `ToolSearchOutput object { tools, type, id, 3 more }`19641965 - `tools: array of object { name, parameters, strict, 6 more } or object { type, vector_store_ids, filters, 2 more } or object { type } or 13 more`19661967 The loaded tool definitions returned by the tool search output.19681969 - `Function object { name, parameters, strict, 6 more }`19701971 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-calling).19721973 - `name: string`19741975 The name of the function to call.19761977 - `parameters: map[unknown] or null`19781979 A JSON schema object describing the parameters of the function.19801981 - `strict: boolean or null`19821983 Whether strict parameter validation is enforced for this function tool.19841985 - `type: "function"`19861987 The type of the function tool. Always `function`.19881989 - `"function"`19901991 - `allowed_callers: optional array of "direct" or "programmatic" or null`19921993 The tool invocation context(s).19941995 - `"direct"`19961997 - `"programmatic"`19981999 - `async: optional boolean`20002001 - `defer_loading: optional boolean`20022003 Whether this function is deferred and loaded via tool search.20042005 - `description: optional string or null`20062007 A description of the function. Used by the model to determine whether or not to call the function.20082009 - `output_schema: optional map[unknown] or null`20102011 A JSON schema object describing the JSON value encoded in string outputs for this function.20122013 - `FileSearch object { type, vector_store_ids, filters, 2 more }`20142015 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-search).20162017 - `type: "file_search"`20182019 The type of the file search tool. Always `file_search`.20202021 - `"file_search"`20222023 - `vector_store_ids: array of string`20242025 The IDs of the vector stores to search.20262027 - `filters: optional ComparisonFilter or CompoundFilter or null`20282029 A filter to apply.20302031 - `ComparisonFilter object { key, type, value }`20322033 A filter used to compare a specified attribute key to a given value using a defined comparison operation.20342035 - `key: string`20362037 The key to compare against the value.20382039 - `type: "eq" or "ne" or "gt" or 5 more`20402041 Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`, `in`, `nin`.20422043 - `eq`: equals2044 - `ne`: not equal2045 - `gt`: greater than2046 - `gte`: greater than or equal2047 - `lt`: less than2048 - `lte`: less than or equal2049 - `in`: in2050 - `nin`: not in20512052 - `"eq"`20532054 - `"ne"`20552056 - `"gt"`20572058 - `"gte"`20592060 - `"lt"`20612062 - `"lte"`20632064 - `"in"`20652066 - `"nin"`20672068 - `value: string or number or boolean or array of string or number`20692070 The value to compare against the attribute key; supports string, number, or boolean types.20712072 - `string`20732074 - `number`20752076 - `boolean`20772078 - `array of string or number`20792080 - `string`20812082 - `number`20832084 - `CompoundFilter object { filters, type }`20852086 Combine multiple filters using `and` or `or`.20872088 - `filters: array of ComparisonFilter or unknown`20892090 Array of filters to combine. Items can be `ComparisonFilter` or `CompoundFilter`.20912092 - `ComparisonFilter object { key, type, value }`20932094 A filter used to compare a specified attribute key to a given value using a defined comparison operation.20952096 - `unknown`20972098 - `type: "and" or "or"`20992100 Type of operation: `and` or `or`.21012102 - `"and"`21032104 - `"or"`21052106 - `max_num_results: optional number`21072108 The maximum number of results to return. This number should be between 1 and 50 inclusive.21092110 - `ranking_options: optional object { hybrid_search, ranker, score_threshold }`21112112 Ranking options for search.21132114 - `hybrid_search: optional object { embedding_weight, text_weight }`21152116 Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled.21172118 - `embedding_weight: number`21192120 The weight of the embedding in the reciprocal ranking fusion.21212122 - `text_weight: number`21232124 The weight of the text in the reciprocal ranking fusion.21252126 - `ranker: optional "auto" or "default-2024-11-15"`21272128 The ranker to use for the file search.21292130 - `"auto"`21312132 - `"default-2024-11-15"`21332134 - `score_threshold: optional number`21352136 The score threshold for the file search, a number between 0 and 1. Numbers closer to 1 will attempt to return only the most relevant results, but may return fewer results.21372138 - `Computer object { type }`21392140 A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use).21412142 - `type: "computer"`21432144 The type of the computer tool. Always `computer`.21452146 - `"computer"`21472148 - `ComputerUsePreview object { display_height, display_width, environment, type }`21492150 A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use).21512152 - `display_height: number`21532154 The height of the computer display.21552156 - `display_width: number`21572158 The width of the computer display.21592160 - `environment: "windows" or "mac" or "linux" or 2 more`21612162 The type of computer environment to control.21632164 - `"windows"`21652166 - `"mac"`21672168 - `"linux"`21692170 - `"ubuntu"`21712172 - `"browser"`21732174 - `type: "computer_use_preview"`21752176 The type of the computer use tool. Always `computer_use_preview`.21772178 - `"computer_use_preview"`21792180 - `WebSearch object { type, external_web_access, filters, 2 more }`21812182 Search the Internet for sources related to the prompt. Learn more about the2183 [web search tool](https://developers.openai.com/api/docs/guides/tools-web-search).21842185 - `type: "web_search" or "web_search_2025_08_26"`21862187 The type of the web search tool. One of `web_search` or `web_search_2025_08_26`.21882189 - `"web_search"`21902191 - `"web_search_2025_08_26"`21922193 - `external_web_access: optional boolean`21942195 Allow live internet access for web search. Defaults to true when omitted. When false, the web search tool runs in offline/cache-only mode and will not fetch new external content.21962197 - `filters: optional object { allowed_domains } or null`21982199 Filters for the search.22002201 - `allowed_domains: optional array of string or null`22022203 Allowed domains for the search. If not provided, all domains are allowed.2204 Subdomains of the provided domains are allowed as well.22052206 Example: `["pubmed.ncbi.nlm.nih.gov"]`22072208 - `search_context_size: optional "low" or "medium" or "high"`22092210 High level guidance for the amount of context window space to use for the search. One of `low`, `medium`, or `high`. `medium` is the default.22112212 - `"low"`22132214 - `"medium"`22152216 - `"high"`22172218 - `user_location: optional object { city, country, region, 2 more } or null`22192220 The approximate location of the user.22212222 - `city: optional string or null`22232224 Free text input for the city of the user, e.g. `San Francisco`.22252226 - `country: optional string or null`22272228 The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.22292230 - `region: optional string or null`22312232 Free text input for the region of the user, e.g. `California`.22332234 - `timezone: optional string or null`22352236 The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.22372238 - `type: optional "approximate"`22392240 The type of location approximation. Always `approximate`.22412242 - `"approximate"`22432244 - `Mcp object { server_label, type, allowed_callers, 9 more }`22452246 Give the model access to additional tools via remote Model Context Protocol2247 (MCP) servers. [Learn more about MCP](https://developers.openai.com/api/docs/guides/tools-connectors-mcp).22482249 - `server_label: string`22502251 A label for this MCP server, used to identify it in tool calls.22522253 - `type: "mcp"`22542255 The type of the MCP tool. Always `mcp`.22562257 - `"mcp"`22582259 - `allowed_callers: optional array of "direct" or "programmatic" or null`22602261 The tool invocation context(s).22622263 - `"direct"`22642265 - `"programmatic"`22662267 - `allowed_tools: optional array of string or object { read_only, tool_names } or null`22682269 List of allowed tool names or a filter object.22702271 - `McpAllowedTools = array of string`22722273 A string array of allowed tool names22742275 - `McpToolFilter object { read_only, tool_names }`22762277 A filter object to specify which tools are allowed.22782279 - `read_only: optional boolean`22802281 Indicates whether or not a tool modifies data or is read-only. If an2282 MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),2283 it will match this filter.22842285 - `tool_names: optional array of string`22862287 List of allowed tool names.22882289 - `authorization: optional string`22902291 An OAuth access token that can be used with a remote MCP server, either2292 with a custom MCP server URL or a service connector. Your application2293 must handle the OAuth authorization flow and provide the token here.22942295 - `connector_id: optional "connector_dropbox" or "connector_gmail" or "connector_googlecalendar" or 5 more`22962297 Identifier for service connectors, like those available in ChatGPT. One of2298 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more2299 about service connectors [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).23002301 This field is deprecated for models released after September 1, 2026.2302 Use `server_url` to connect to a remote MCP server, or `tunnel_id` to2303 connect through a Secure MCP Tunnel.23042305 Currently supported `connector_id` values are:23062307 - Dropbox: `connector_dropbox`2308 - Gmail: `connector_gmail`2309 - Google Calendar: `connector_googlecalendar`2310 - Google Drive: `connector_googledrive`2311 - Microsoft Teams: `connector_microsoftteams`2312 - Outlook Calendar: `connector_outlookcalendar`2313 - Outlook Email: `connector_outlookemail`2314 - SharePoint: `connector_sharepoint`23152316 - `"connector_dropbox"`23172318 - `"connector_gmail"`23192320 - `"connector_googlecalendar"`23212322 - `"connector_googledrive"`23232324 - `"connector_microsoftteams"`23252326 - `"connector_outlookcalendar"`23272328 - `"connector_outlookemail"`23292330 - `"connector_sharepoint"`23312332 - `defer_loading: optional boolean`23332334 Whether this MCP tool is deferred and discovered via tool search.23352336 - `headers: optional map[string] or null`23372338 Optional HTTP headers to send to the MCP server. Use for authentication2339 or other purposes.23402341 - `require_approval: optional object { always, never } or "always" or "never" or null`23422343 Specify which of the MCP server's tools require approval.23442345 - `McpToolApprovalFilter object { always, never }`23462347 Specify which of the MCP server's tools require approval. Can be2348 `always`, `never`, or a filter object associated with tools2349 that require approval.23502351 - `always: optional object { read_only, tool_names }`23522353 A filter object to specify which tools are allowed.23542355 - `read_only: optional boolean`23562357 Indicates whether or not a tool modifies data or is read-only. If an2358 MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),2359 it will match this filter.23602361 - `tool_names: optional array of string`23622363 List of allowed tool names.23642365 - `never: optional object { read_only, tool_names }`23662367 A filter object to specify which tools are allowed.23682369 - `read_only: optional boolean`23702371 Indicates whether or not a tool modifies data or is read-only. If an2372 MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),2373 it will match this filter.23742375 - `tool_names: optional array of string`23762377 List of allowed tool names.23782379 - `McpToolApprovalSetting = "always" or "never"`23802381 Specify a single approval policy for all tools. One of `always` or2382 `never`. When set to `always`, all tools will require approval. When2383 set to `never`, all tools will not require approval.23842385 - `"always"`23862387 - `"never"`23882389 - `server_description: optional string`23902391 Optional description of the MCP server, used to provide more context.23922393 - `server_url: optional string`23942395 The URL for the MCP server. One of `server_url`, `connector_id`, or2396 `tunnel_id` must be provided.23972398 - `tunnel_id: optional string`23992400 The Secure MCP Tunnel ID to use instead of a direct server URL. One of2401 `server_url`, `connector_id`, or `tunnel_id` must be provided.24022403 - `CodeInterpreter object { container, type, allowed_callers }`24042405 A tool that runs Python code to help generate a response to a prompt.24062407 - `container: string or object { type, file_ids, memory_limit, network_policy }`24082409 The code interpreter container. Can be a container ID or an object that2410 specifies uploaded file IDs to make available to your code, along with an2411 optional `memory_limit` setting.24122413 - `string`24142415 The container ID.24162417 - `CodeInterpreterToolAuto object { type, file_ids, memory_limit, network_policy }`24182419 Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.24202421 - `type: "auto"`24222423 Always `auto`.24242425 - `"auto"`24262427 - `file_ids: optional array of string`24282429 An optional list of uploaded files to make available to your code.24302431 - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`24322433 The memory limit for the code interpreter container.24342435 - `"1g"`24362437 - `"4g"`24382439 - `"16g"`24402441 - `"64g"`24422443 - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`24442445 Network access policy for the container.24462447 - `ContainerNetworkPolicyDisabled object { type }`24482449 - `type: "disabled"`24502451 Disable outbound network access. Always `disabled`.24522453 - `"disabled"`24542455 - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`24562457 - `allowed_domains: array of string`24582459 A list of allowed domains when type is `allowlist`.24602461 - `type: "allowlist"`24622463 Allow outbound network access only to specified domains. Always `allowlist`.24642465 - `"allowlist"`24662467 - `domain_secrets: optional array of ContainerNetworkPolicyDomainSecret`24682469 Optional domain-scoped secrets for allowlisted domains.24702471 - `domain: string`24722473 The domain associated with the secret.24742475 - `name: string`24762477 The name of the secret to inject for the domain.24782479 - `value: string`24802481 The secret value to inject for the domain.24822483 - `type: "code_interpreter"`24842485 The type of the code interpreter tool. Always `code_interpreter`.24862487 - `"code_interpreter"`24882489 - `allowed_callers: optional array of "direct" or "programmatic" or null`24902491 The tool invocation context(s).24922493 - `"direct"`24942495 - `"programmatic"`24962497 - `ProgrammaticToolCalling object { type }`24982499 - `type: "programmatic_tool_calling"`25002501 The type of the tool. Always `programmatic_tool_calling`.25022503 - `"programmatic_tool_calling"`25042505 - `ImageGeneration object { type, action, background, 9 more }`25062507 A tool that generates images using the GPT image models.25082509 - `type: "image_generation"`25102511 The type of the image generation tool. Always `image_generation`.25122513 - `"image_generation"`25142515 - `action: optional "generate" or "edit" or "auto"`25162517 Whether to generate a new image or edit an existing image. Default: `auto`.25182519 - `"generate"`25202521 - `"edit"`25222523 - `"auto"`25242525 - `background: optional "transparent" or "opaque" or "auto"`25262527 Set the background of the generated image. One of `transparent`, `opaque`,2528 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including2529 their `2026-09-08` snapshots, support `opaque` and `transparent`2530 backgrounds. Transparent backgrounds are available for supported GPT Image2531 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in2532 preview. When using `transparent`, set the output format to `png` or `webp`.2533 Default: `auto`.25342535 - `"transparent"`25362537 - `"opaque"`25382539 - `"auto"`25402541 - `input_fidelity: optional "high" or "low" or null`25422543 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 `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.25442545 - `"high"`25462547 - `"low"`25482549 - `input_image_mask: optional object { file_id, image_url }`25502551 Optional mask for inpainting. Contains `image_url`2552 (string, optional) and `file_id` (string, optional).25532554 - `file_id: optional string`25552556 File ID for the mask image.25572558 - `image_url: optional string`25592560 Base64-encoded mask image.25612562 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`25632564 The image generation model to use. One of `gpt-image-1`,2565 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2566 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2567 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2568 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2569 `gpt-image-1`.25702571 - `string`25722573 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`25742575 The image generation model to use. One of `gpt-image-1`,2576 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2577 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2578 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2579 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2580 `gpt-image-1`.25812582 - `"gpt-image-1"`25832584 - `"gpt-image-1-mini"`25852586 - `"gpt-image-1.5"`25872588 - `"gpt-image-2"`25892590 - `"gpt-image-2-2026-04-21"`25912592 - `"gpt-image-2.5-sunburst"`25932594 - `"gpt-image-2.5-sunburst-2026-09-08"`25952596 - `"gpt-image-2.5-flare"`25972598 - `"gpt-image-2.5-flare-2026-09-08"`25992600 - `moderation: optional "auto" or "low"`26012602 Moderation level for the generated image. Default: `auto`.26032604 - `"auto"`26052606 - `"low"`26072608 - `output_compression: optional number`26092610 Compression level for the output image. Default: 100.26112612 - `output_format: optional "png" or "webp" or "jpeg"`26132614 The output format of the generated image. One of `png`, `webp`, or2615 `jpeg`. Default: `png`.26162617 - `"png"`26182619 - `"webp"`26202621 - `"jpeg"`26222623 - `partial_images: optional number`26242625 Number of partial images to generate in streaming mode, from 0 (default value) to 3.26262627 - `quality: optional "low" or "medium" or "high" or 3 more`26282629 The quality of the generated image. The GPT image models support `low`,2630 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,2631 including their `2026-09-08` snapshots, also support `xhigh` and `max`.2632 Default: `auto`.26332634 - `"low"`26352636 - `"medium"`26372638 - `"high"`26392640 - `"xhigh"`26412642 - `"max"`26432644 - `"auto"`26452646 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`26472648 The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`, and `gpt-image-2.5-flare-2026-09-08`, arbitrary resolutions are supported as `WIDTHxHEIGHT` strings, for example `1536x864`. Width and height must both be divisible by 16 and the requested aspect ratio must be between 1:3 and 3:1. Resolutions above `2560x1440` are experimental, and the maximum supported resolution is `3840x2160`. The requested size must also satisfy the model's current pixel and edge limits. The standard sizes `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models; `auto` is supported for models that allow automatic sizing. For `dall-e-2`, use one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of `1024x1024`, `1792x1024`, or `1024x1792`.26492650 - `string`26512652 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`26532654 The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`, and `gpt-image-2.5-flare-2026-09-08`, arbitrary resolutions are supported as `WIDTHxHEIGHT` strings, for example `1536x864`. Width and height must both be divisible by 16 and the requested aspect ratio must be between 1:3 and 3:1. Resolutions above `2560x1440` are experimental, and the maximum supported resolution is `3840x2160`. The requested size must also satisfy the model's current pixel and edge limits. The standard sizes `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models; `auto` is supported for models that allow automatic sizing. For `dall-e-2`, use one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of `1024x1024`, `1792x1024`, or `1024x1792`.26552656 - `"1024x1024"`26572658 - `"1024x1536"`26592660 - `"1536x1024"`26612662 - `"auto"`26632664 - `LocalShell object { type }`26652666 A tool that allows the model to execute shell commands in a local environment.26672668 - `type: "local_shell"`26692670 The type of the local shell tool. Always `local_shell`.26712672 - `"local_shell"`26732674 - `Shell object { type, allowed_callers, environment }`26752676 A tool that allows the model to execute shell commands.26772678 - `type: "shell"`26792680 The type of the shell tool. Always `shell`.26812682 - `"shell"`26832684 - `allowed_callers: optional array of "direct" or "programmatic" or null`26852686 The tool invocation context(s).26872688 - `"direct"`26892690 - `"programmatic"`26912692 - `environment: optional ContainerAuto or LocalEnvironment or ContainerReference or null`26932694 - `ContainerAuto object { type, file_ids, memory_limit, 2 more }`26952696 - `type: "container_auto"`26972698 Automatically creates a container for this request26992700 - `"container_auto"`27012702 - `file_ids: optional array of string`27032704 An optional list of uploaded files to make available to your code.27052706 - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`27072708 The memory limit for the container.27092710 - `"1g"`27112712 - `"4g"`27132714 - `"16g"`27152716 - `"64g"`27172718 - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`27192720 Network access policy for the container.27212722 - `ContainerNetworkPolicyDisabled object { type }`27232724 - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`27252726 - `skills: optional array of SkillReference or InlineSkill`27272728 An optional list of skills referenced by id or inline data.27292730 - `SkillReference object { skill_id, type, version }`27312732 - `skill_id: string`27332734 The ID of the referenced skill.27352736 - `type: "skill_reference"`27372738 References a skill created with the /v1/skills endpoint.27392740 - `"skill_reference"`27412742 - `version: optional string`27432744 Optional skill version. Use a positive integer or 'latest'. Omit for default.27452746 - `InlineSkill object { description, name, source, type }`27472748 - `description: string`27492750 The description of the skill.27512752 - `name: string`27532754 The name of the skill.27552756 - `source: InlineSkillSource`27572758 Inline skill payload27592760 - `data: string`27612762 Base64-encoded skill zip bundle.27632764 - `media_type: "application/zip"`27652766 The media type of the inline skill payload. Must be `application/zip`.27672768 - `"application/zip"`27692770 - `type: "base64"`27712772 The type of the inline skill source. Must be `base64`.27732774 - `"base64"`27752776 - `type: "inline"`27772778 Defines an inline skill for this request.27792780 - `"inline"`27812782 - `LocalEnvironment object { type, skills }`27832784 - `type: "local"`27852786 Use a local computer environment.27872788 - `"local"`27892790 - `skills: optional array of LocalSkill`27912792 An optional list of skills.27932794 - `description: string`27952796 The description of the skill.27972798 - `name: string`27992800 The name of the skill.28012802 - `path: string`28032804 The path to the directory containing the skill.28052806 - `ContainerReference object { container_id, type }`28072808 - `container_id: string`28092810 The ID of the referenced container.28112812 - `type: "container_reference"`28132814 References a container created with the /v1/containers endpoint28152816 - `"container_reference"`28172818 - `Custom object { name, type, allowed_callers, 4 more }`28192820 A custom tool that processes input using a specified format. Learn more about [custom tools](https://developers.openai.com/api/docs/guides/function-calling#custom-tools)28212822 - `name: string`28232824 The name of the custom tool, used to identify it in tool calls.28252826 - `type: "custom"`28272828 The type of the custom tool. Always `custom`.28292830 - `"custom"`28312832 - `allowed_callers: optional array of "direct" or "programmatic" or null`28332834 The tool invocation context(s).28352836 - `"direct"`28372838 - `"programmatic"`28392840 - `async: optional boolean`28412842 Whether the tool response can be returned asynchronously versus immediately returned on next response creation.28432844 - `defer_loading: optional boolean`28452846 Whether this tool should be deferred and discovered via tool search.28472848 - `description: optional string`28492850 Optional description of the custom tool, used to provide more context.28512852 - `format: optional CustomToolInputFormat`28532854 The input format for the custom tool. Default is unconstrained text.28552856 - `Text object { type }`28572858 Unconstrained free-form text.28592860 - `type: "text"`28612862 Unconstrained text format. Always `text`.28632864 - `"text"`28652866 - `Grammar object { definition, syntax, type }`28672868 A grammar defined by the user.28692870 - `definition: string`28712872 The grammar definition.28732874 - `syntax: "lark" or "regex"`28752876 The syntax of the grammar definition. One of `lark` or `regex`.28772878 - `"lark"`28792880 - `"regex"`28812882 - `type: "grammar"`28832884 Grammar format. Always `grammar`.28852886 - `"grammar"`28872888 - `Namespace object { description, name, tools, type }`28892890 Groups function/custom tools under a shared namespace.28912892 - `description: string`28932894 A description of the namespace shown to the model.28952896 - `name: string`28972898 The namespace name used in tool calls (for example, `crm`).28992900 - `tools: array of object { name, type, allowed_callers, 6 more } or object { name, type, allowed_callers, 4 more }`29012902 The function/custom tools available inside this namespace.29032904 - `Function object { name, type, allowed_callers, 6 more }`29052906 - `name: string`29072908 - `type: "function"`29092910 - `"function"`29112912 - `allowed_callers: optional array of "direct" or "programmatic" or null`29132914 The tool invocation context(s).29152916 - `"direct"`29172918 - `"programmatic"`29192920 - `async: optional boolean`29212922 Whether the tool response can be returned asynchronously versus immediately returned on next response creation.29232924 - `defer_loading: optional boolean`29252926 Whether this function should be deferred and discovered via tool search.29272928 - `description: optional string or null`29292930 - `output_schema: optional map[unknown] or null`29312932 A JSON Schema describing the JSON value encoded in string outputs for this function tool. This does not describe content-array outputs.29332934 - `parameters: optional unknown or null`29352936 - `strict: optional boolean or null`29372938 Whether to enforce strict parameter validation. If omitted, Responses attempts to use strict validation when the schema is compatible, and falls back to non-strict validation otherwise.29392940 - `Custom object { name, type, allowed_callers, 4 more }`29412942 A custom tool that processes input using a specified format. Learn more about [custom tools](https://developers.openai.com/api/docs/guides/function-calling#custom-tools)29432944 - `name: string`29452946 The name of the custom tool, used to identify it in tool calls.29472948 - `type: "custom"`29492950 The type of the custom tool. Always `custom`.29512952 - `"custom"`29532954 - `allowed_callers: optional array of "direct" or "programmatic" or null`29552956 The tool invocation context(s).29572958 - `"direct"`29592960 - `"programmatic"`29612962 - `async: optional boolean`29632964 Whether the tool response can be returned asynchronously versus immediately returned on next response creation.29652966 - `defer_loading: optional boolean`29672968 Whether this tool should be deferred and discovered via tool search.29692970 - `description: optional string`29712972 Optional description of the custom tool, used to provide more context.29732974 - `format: optional CustomToolInputFormat`29752976 The input format for the custom tool. Default is unconstrained text.29772978 - `type: "namespace"`29792980 The type of the tool. Always `namespace`.29812982 - `"namespace"`29832984 - `ToolSearch object { type, description, execution, parameters }`29852986 Hosted or BYOT tool search configuration for deferred tools.29872988 - `type: "tool_search"`29892990 The type of the tool. Always `tool_search`.29912992 - `"tool_search"`29932994 - `description: optional string or null`29952996 Description shown to the model for a client-executed tool search tool.29972998 - `execution: optional "server" or "client"`29993000 Whether tool search is executed by the server or by the client.30013002 - `"server"`30033004 - `"client"`30053006 - `parameters: optional unknown or null`30073008 Parameter schema for a client-executed tool search tool.30093010 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`30113012 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/tools-web-search).30133014 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`30153016 The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.30173018 - `"web_search_preview"`30193020 - `"web_search_preview_2025_03_11"`30213022 - `search_content_types: optional array of "text" or "image"`30233024 - `"text"`30253026 - `"image"`30273028 - `search_context_size: optional "low" or "medium" or "high"`30293030 High level guidance for the amount of context window space to use for the search. One of `low`, `medium`, or `high`. `medium` is the default.30313032 - `"low"`30333034 - `"medium"`30353036 - `"high"`30373038 - `user_location: optional object { type, city, country, 2 more } or null`30393040 The user's location.30413042 - `type: "approximate"`30433044 The type of location approximation. Always `approximate`.30453046 - `"approximate"`30473048 - `city: optional string or null`30493050 Free text input for the city of the user, e.g. `San Francisco`.30513052 - `country: optional string or null`30533054 The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.30553056 - `region: optional string or null`30573058 Free text input for the region of the user, e.g. `California`.30593060 - `timezone: optional string or null`30613062 The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.30633064 - `ApplyPatch object { type, allowed_callers }`30653066 Allows the assistant to create, delete, or update files using unified diffs.30673068 - `type: "apply_patch"`30693070 The type of the tool. Always `apply_patch`.30713072 - `"apply_patch"`30733074 - `allowed_callers: optional array of "direct" or "programmatic" or null`30753076 The tool invocation context(s).30773078 - `"direct"`30793080 - `"programmatic"`30813082 - `type: "tool_search_output"`30833084 The item type. Always `tool_search_output`.30853086 - `"tool_search_output"`30873088 - `id: optional string or null`30893090 The unique ID of this tool search output.30913092 - `call_id: optional string or null`30933094 The unique ID of the tool search call generated by the model.30953096 - `execution: optional "server" or "client"`30973098 Whether tool search was executed by the server or by the client.30993100 - `"server"`31013102 - `"client"`31033104 - `status: optional "in_progress" or "completed" or "incomplete" or null`31053106 The status of the tool search output.31073108 - `"in_progress"`31093110 - `"completed"`31113112 - `"incomplete"`31133114 - `AdditionalTools object { role, tools, type, id }`31153116 - `role: "developer"`31173118 The role that provided the additional tools. Only `developer` is supported.31193120 - `"developer"`31213122 - `tools: array of object { name, parameters, strict, 6 more } or object { type, vector_store_ids, filters, 2 more } or object { type } or 13 more`31233124 A list of additional tools made available at this item.31253126 - `Function object { name, parameters, strict, 6 more }`31273128 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-calling).31293130 - `name: string`31313132 The name of the function to call.31333134 - `parameters: map[unknown] or null`31353136 A JSON schema object describing the parameters of the function.31373138 - `strict: boolean or null`31393140 Whether strict parameter validation is enforced for this function tool.31413142 - `type: "function"`31433144 The type of the function tool. Always `function`.31453146 - `"function"`31473148 - `allowed_callers: optional array of "direct" or "programmatic" or null`31493150 The tool invocation context(s).31513152 - `"direct"`31533154 - `"programmatic"`31553156 - `async: optional boolean`31573158 - `defer_loading: optional boolean`31593160 Whether this function is deferred and loaded via tool search.31613162 - `description: optional string or null`31633164 A description of the function. Used by the model to determine whether or not to call the function.31653166 - `output_schema: optional map[unknown] or null`31673168 A JSON schema object describing the JSON value encoded in string outputs for this function.31693170 - `FileSearch object { type, vector_store_ids, filters, 2 more }`31713172 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-search).31733174 - `type: "file_search"`31753176 The type of the file search tool. Always `file_search`.31773178 - `"file_search"`31793180 - `vector_store_ids: array of string`31813182 The IDs of the vector stores to search.31833184 - `filters: optional ComparisonFilter or CompoundFilter or null`31853186 A filter to apply.31873188 - `ComparisonFilter object { key, type, value }`31893190 A filter used to compare a specified attribute key to a given value using a defined comparison operation.31913192 - `CompoundFilter object { filters, type }`31933194 Combine multiple filters using `and` or `or`.31953196 - `max_num_results: optional number`31973198 The maximum number of results to return. This number should be between 1 and 50 inclusive.31993200 - `ranking_options: optional object { hybrid_search, ranker, score_threshold }`32013202 Ranking options for search.32033204 - `hybrid_search: optional object { embedding_weight, text_weight }`32053206 Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled.32073208 - `embedding_weight: number`32093210 The weight of the embedding in the reciprocal ranking fusion.32113212 - `text_weight: number`32133214 The weight of the text in the reciprocal ranking fusion.32153216 - `ranker: optional "auto" or "default-2024-11-15"`32173218 The ranker to use for the file search.32193220 - `"auto"`32213222 - `"default-2024-11-15"`32233224 - `score_threshold: optional number`32253226 The score threshold for the file search, a number between 0 and 1. Numbers closer to 1 will attempt to return only the most relevant results, but may return fewer results.32273228 - `Computer object { type }`32293230 A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use).32313232 - `type: "computer"`32333234 The type of the computer tool. Always `computer`.32353236 - `"computer"`32373238 - `ComputerUsePreview object { display_height, display_width, environment, type }`32393240 A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use).32413242 - `display_height: number`32433244 The height of the computer display.32453246 - `display_width: number`32473248 The width of the computer display.32493250 - `environment: "windows" or "mac" or "linux" or 2 more`32513252 The type of computer environment to control.32533254 - `"windows"`32553256 - `"mac"`32573258 - `"linux"`32593260 - `"ubuntu"`32613262 - `"browser"`32633264 - `type: "computer_use_preview"`32653266 The type of the computer use tool. Always `computer_use_preview`.32673268 - `"computer_use_preview"`32693270 - `WebSearch object { type, external_web_access, filters, 2 more }`32713272 Search the Internet for sources related to the prompt. Learn more about the3273 [web search tool](https://developers.openai.com/api/docs/guides/tools-web-search).32743275 - `type: "web_search" or "web_search_2025_08_26"`32763277 The type of the web search tool. One of `web_search` or `web_search_2025_08_26`.32783279 - `"web_search"`32803281 - `"web_search_2025_08_26"`32823283 - `external_web_access: optional boolean`32843285 Allow live internet access for web search. Defaults to true when omitted. When false, the web search tool runs in offline/cache-only mode and will not fetch new external content.32863287 - `filters: optional object { allowed_domains } or null`32883289 Filters for the search.32903291 - `allowed_domains: optional array of string or null`32923293 Allowed domains for the search. If not provided, all domains are allowed.3294 Subdomains of the provided domains are allowed as well.32953296 Example: `["pubmed.ncbi.nlm.nih.gov"]`32973298 - `search_context_size: optional "low" or "medium" or "high"`32993300 High level guidance for the amount of context window space to use for the search. One of `low`, `medium`, or `high`. `medium` is the default.33013302 - `"low"`33033304 - `"medium"`33053306 - `"high"`33073308 - `user_location: optional object { city, country, region, 2 more } or null`33093310 The approximate location of the user.33113312 - `city: optional string or null`33133314 Free text input for the city of the user, e.g. `San Francisco`.33153316 - `country: optional string or null`33173318 The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.33193320 - `region: optional string or null`33213322 Free text input for the region of the user, e.g. `California`.33233324 - `timezone: optional string or null`33253326 The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.33273328 - `type: optional "approximate"`33293330 The type of location approximation. Always `approximate`.33313332 - `"approximate"`33333334 - `Mcp object { server_label, type, allowed_callers, 9 more }`33353336 Give the model access to additional tools via remote Model Context Protocol3337 (MCP) servers. [Learn more about MCP](https://developers.openai.com/api/docs/guides/tools-connectors-mcp).33383339 - `server_label: string`33403341 A label for this MCP server, used to identify it in tool calls.33423343 - `type: "mcp"`33443345 The type of the MCP tool. Always `mcp`.33463347 - `"mcp"`33483349 - `allowed_callers: optional array of "direct" or "programmatic" or null`33503351 The tool invocation context(s).33523353 - `"direct"`33543355 - `"programmatic"`33563357 - `allowed_tools: optional array of string or object { read_only, tool_names } or null`33583359 List of allowed tool names or a filter object.33603361 - `McpAllowedTools = array of string`33623363 A string array of allowed tool names33643365 - `McpToolFilter object { read_only, tool_names }`33663367 A filter object to specify which tools are allowed.33683369 - `read_only: optional boolean`33703371 Indicates whether or not a tool modifies data or is read-only. If an3372 MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),3373 it will match this filter.33743375 - `tool_names: optional array of string`33763377 List of allowed tool names.33783379 - `authorization: optional string`33803381 An OAuth access token that can be used with a remote MCP server, either3382 with a custom MCP server URL or a service connector. Your application3383 must handle the OAuth authorization flow and provide the token here.33843385 - `connector_id: optional "connector_dropbox" or "connector_gmail" or "connector_googlecalendar" or 5 more`33863387 Identifier for service connectors, like those available in ChatGPT. One of3388 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more3389 about service connectors [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).33903391 This field is deprecated for models released after September 1, 2026.3392 Use `server_url` to connect to a remote MCP server, or `tunnel_id` to3393 connect through a Secure MCP Tunnel.33943395 Currently supported `connector_id` values are:33963397 - Dropbox: `connector_dropbox`3398 - Gmail: `connector_gmail`3399 - Google Calendar: `connector_googlecalendar`3400 - Google Drive: `connector_googledrive`3401 - Microsoft Teams: `connector_microsoftteams`3402 - Outlook Calendar: `connector_outlookcalendar`3403 - Outlook Email: `connector_outlookemail`3404 - SharePoint: `connector_sharepoint`34053406 - `"connector_dropbox"`34073408 - `"connector_gmail"`34093410 - `"connector_googlecalendar"`34113412 - `"connector_googledrive"`34133414 - `"connector_microsoftteams"`34153416 - `"connector_outlookcalendar"`34173418 - `"connector_outlookemail"`34193420 - `"connector_sharepoint"`34213422 - `defer_loading: optional boolean`34233424 Whether this MCP tool is deferred and discovered via tool search.34253426 - `headers: optional map[string] or null`34273428 Optional HTTP headers to send to the MCP server. Use for authentication3429 or other purposes.34303431 - `require_approval: optional object { always, never } or "always" or "never" or null`34323433 Specify which of the MCP server's tools require approval.34343435 - `McpToolApprovalFilter object { always, never }`34363437 Specify which of the MCP server's tools require approval. Can be3438 `always`, `never`, or a filter object associated with tools3439 that require approval.34403441 - `always: optional object { read_only, tool_names }`34423443 A filter object to specify which tools are allowed.34443445 - `read_only: optional boolean`34463447 Indicates whether or not a tool modifies data or is read-only. If an3448 MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),3449 it will match this filter.34503451 - `tool_names: optional array of string`34523453 List of allowed tool names.34543455 - `never: optional object { read_only, tool_names }`34563457 A filter object to specify which tools are allowed.34583459 - `read_only: optional boolean`34603461 Indicates whether or not a tool modifies data or is read-only. If an3462 MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),3463 it will match this filter.34643465 - `tool_names: optional array of string`34663467 List of allowed tool names.34683469 - `McpToolApprovalSetting = "always" or "never"`34703471 Specify a single approval policy for all tools. One of `always` or3472 `never`. When set to `always`, all tools will require approval. When3473 set to `never`, all tools will not require approval.34743475 - `"always"`34763477 - `"never"`34783479 - `server_description: optional string`34803481 Optional description of the MCP server, used to provide more context.34823483 - `server_url: optional string`34843485 The URL for the MCP server. One of `server_url`, `connector_id`, or3486 `tunnel_id` must be provided.34873488 - `tunnel_id: optional string`34893490 The Secure MCP Tunnel ID to use instead of a direct server URL. One of3491 `server_url`, `connector_id`, or `tunnel_id` must be provided.34923493 - `CodeInterpreter object { container, type, allowed_callers }`34943495 A tool that runs Python code to help generate a response to a prompt.34963497 - `container: string or object { type, file_ids, memory_limit, network_policy }`34983499 The code interpreter container. Can be a container ID or an object that3500 specifies uploaded file IDs to make available to your code, along with an3501 optional `memory_limit` setting.35023503 - `string`35043505 The container ID.35063507 - `CodeInterpreterToolAuto object { type, file_ids, memory_limit, network_policy }`35083509 Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.35103511 - `type: "auto"`35123513 Always `auto`.35143515 - `"auto"`35163517 - `file_ids: optional array of string`35183519 An optional list of uploaded files to make available to your code.35203521 - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`35223523 The memory limit for the code interpreter container.35243525 - `"1g"`35263527 - `"4g"`35283529 - `"16g"`35303531 - `"64g"`35323533 - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`35343535 Network access policy for the container.35363537 - `ContainerNetworkPolicyDisabled object { type }`35383539 - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`35403541 - `type: "code_interpreter"`35423543 The type of the code interpreter tool. Always `code_interpreter`.35443545 - `"code_interpreter"`35463547 - `allowed_callers: optional array of "direct" or "programmatic" or null`35483549 The tool invocation context(s).35503551 - `"direct"`35523553 - `"programmatic"`35543555 - `ProgrammaticToolCalling object { type }`35563557 - `type: "programmatic_tool_calling"`35583559 The type of the tool. Always `programmatic_tool_calling`.35603561 - `"programmatic_tool_calling"`35623563 - `ImageGeneration object { type, action, background, 9 more }`35643565 A tool that generates images using the GPT image models.35663567 - `type: "image_generation"`35683569 The type of the image generation tool. Always `image_generation`.35703571 - `"image_generation"`35723573 - `action: optional "generate" or "edit" or "auto"`35743575 Whether to generate a new image or edit an existing image. Default: `auto`.35763577 - `"generate"`35783579 - `"edit"`35803581 - `"auto"`35823583 - `background: optional "transparent" or "opaque" or "auto"`35843585 Set the background of the generated image. One of `transparent`, `opaque`,3586 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including3587 their `2026-09-08` snapshots, support `opaque` and `transparent`3588 backgrounds. Transparent backgrounds are available for supported GPT Image3589 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in3590 preview. When using `transparent`, set the output format to `png` or `webp`.3591 Default: `auto`.35923593 - `"transparent"`35943595 - `"opaque"`35963597 - `"auto"`35983599 - `input_fidelity: optional "high" or "low" or null`36003601 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 `gpt-image-1` and `gpt-image-1.5` and later models, unsupported for `gpt-image-1-mini`. Supports `high` and `low`. Defaults to `low`.36023603 - `"high"`36043605 - `"low"`36063607 - `input_image_mask: optional object { file_id, image_url }`36083609 Optional mask for inpainting. Contains `image_url`3610 (string, optional) and `file_id` (string, optional).36113612 - `file_id: optional string`36133614 File ID for the mask image.36153616 - `image_url: optional string`36173618 Base64-encoded mask image.36193620 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`36213622 The image generation model to use. One of `gpt-image-1`,3623 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,3624 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3625 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3626 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3627 `gpt-image-1`.36283629 - `string`36303631 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`36323633 The image generation model to use. One of `gpt-image-1`,3634 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,3635 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3636 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3637 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3638 `gpt-image-1`.36393640 - `"gpt-image-1"`36413642 - `"gpt-image-1-mini"`36433644 - `"gpt-image-1.5"`36453646 - `"gpt-image-2"`36473648 - `"gpt-image-2-2026-04-21"`36493650 - `"gpt-image-2.5-sunburst"`36513652 - `"gpt-image-2.5-sunburst-2026-09-08"`36533654 - `"gpt-image-2.5-flare"`36553656 - `"gpt-image-2.5-flare-2026-09-08"`36573658 - `moderation: optional "auto" or "low"`36593660 Moderation level for the generated image. Default: `auto`.36613662 - `"auto"`36633664 - `"low"`36653666 - `output_compression: optional number`36673668 Compression level for the output image. Default: 100.36693670 - `output_format: optional "png" or "webp" or "jpeg"`36713672 The output format of the generated image. One of `png`, `webp`, or3673 `jpeg`. Default: `png`.36743675 - `"png"`36763677 - `"webp"`36783679 - `"jpeg"`36803681 - `partial_images: optional number`36823683 Number of partial images to generate in streaming mode, from 0 (default value) to 3.36843685 - `quality: optional "low" or "medium" or "high" or 3 more`36863687 The quality of the generated image. The GPT image models support `low`,3688 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,3689 including their `2026-09-08` snapshots, also support `xhigh` and `max`.3690 Default: `auto`.36913692 - `"low"`36933694 - `"medium"`36953696 - `"high"`36973698 - `"xhigh"`36993700 - `"max"`37013702 - `"auto"`37033704 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`37053706 The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`, and `gpt-image-2.5-flare-2026-09-08`, arbitrary resolutions are supported as `WIDTHxHEIGHT` strings, for example `1536x864`. Width and height must both be divisible by 16 and the requested aspect ratio must be between 1:3 and 3:1. Resolutions above `2560x1440` are experimental, and the maximum supported resolution is `3840x2160`. The requested size must also satisfy the model's current pixel and edge limits. The standard sizes `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models; `auto` is supported for models that allow automatic sizing. For `dall-e-2`, use one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of `1024x1024`, `1792x1024`, or `1024x1792`.37073708 - `string`37093710 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`37113712 The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`, and `gpt-image-2.5-flare-2026-09-08`, arbitrary resolutions are supported as `WIDTHxHEIGHT` strings, for example `1536x864`. Width and height must both be divisible by 16 and the requested aspect ratio must be between 1:3 and 3:1. Resolutions above `2560x1440` are experimental, and the maximum supported resolution is `3840x2160`. The requested size must also satisfy the model's current pixel and edge limits. The standard sizes `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models; `auto` is supported for models that allow automatic sizing. For `dall-e-2`, use one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of `1024x1024`, `1792x1024`, or `1024x1792`.37133714 - `"1024x1024"`37153716 - `"1024x1536"`37173718 - `"1536x1024"`37193720 - `"auto"`37213722 - `LocalShell object { type }`37233724 A tool that allows the model to execute shell commands in a local environment.37253726 - `type: "local_shell"`37273728 The type of the local shell tool. Always `local_shell`.37293730 - `"local_shell"`37313732 - `Shell object { type, allowed_callers, environment }`37333734 A tool that allows the model to execute shell commands.37353736 - `type: "shell"`37373738 The type of the shell tool. Always `shell`.37393740 - `"shell"`37413742 - `allowed_callers: optional array of "direct" or "programmatic" or null`37433744 The tool invocation context(s).37453746 - `"direct"`37473748 - `"programmatic"`37493750 - `environment: optional ContainerAuto or LocalEnvironment or ContainerReference or null`37513752 - `ContainerAuto object { type, file_ids, memory_limit, 2 more }`37533754 - `LocalEnvironment object { type, skills }`37553756 - `ContainerReference object { container_id, type }`37573758 - `Custom object { name, type, allowed_callers, 4 more }`37593760 A custom tool that processes input using a specified format. Learn more about [custom tools](https://developers.openai.com/api/docs/guides/function-calling#custom-tools)37613762 - `name: string`37633764 The name of the custom tool, used to identify it in tool calls.37653766 - `type: "custom"`37673768 The type of the custom tool. Always `custom`.37693770 - `"custom"`37713772 - `allowed_callers: optional array of "direct" or "programmatic" or null`37733774 The tool invocation context(s).37753776 - `"direct"`37773778 - `"programmatic"`37793780 - `async: optional boolean`37813782 Whether the tool response can be returned asynchronously versus immediately returned on next response creation.37833784 - `defer_loading: optional boolean`37853786 Whether this tool should be deferred and discovered via tool search.37873788 - `description: optional string`37893790 Optional description of the custom tool, used to provide more context.37913792 - `format: optional CustomToolInputFormat`37933794 The input format for the custom tool. Default is unconstrained text.37953796 - `Namespace object { description, name, tools, type }`37973798 Groups function/custom tools under a shared namespace.37993800 - `description: string`38013802 A description of the namespace shown to the model.38033804 - `name: string`38053806 The namespace name used in tool calls (for example, `crm`).38073808 - `tools: array of object { name, type, allowed_callers, 6 more } or object { name, type, allowed_callers, 4 more }`38093810 The function/custom tools available inside this namespace.38113812 - `Function object { name, type, allowed_callers, 6 more }`38133814 - `name: string`38153816 - `type: "function"`38173818 - `"function"`38193820 - `allowed_callers: optional array of "direct" or "programmatic" or null`38213822 The tool invocation context(s).38233824 - `"direct"`38253826 - `"programmatic"`38273828 - `async: optional boolean`38293830 Whether the tool response can be returned asynchronously versus immediately returned on next response creation.38313832 - `defer_loading: optional boolean`38333834 Whether this function should be deferred and discovered via tool search.38353836 - `description: optional string or null`38373838 - `output_schema: optional map[unknown] or null`38393840 A JSON Schema describing the JSON value encoded in string outputs for this function tool. This does not describe content-array outputs.38413842 - `parameters: optional unknown or null`38433844 - `strict: optional boolean or null`38453846 Whether to enforce strict parameter validation. If omitted, Responses attempts to use strict validation when the schema is compatible, and falls back to non-strict validation otherwise.38473848 - `Custom object { name, type, allowed_callers, 4 more }`38493850 A custom tool that processes input using a specified format. Learn more about [custom tools](https://developers.openai.com/api/docs/guides/function-calling#custom-tools)38513852 - `name: string`38533854 The name of the custom tool, used to identify it in tool calls.38553856 - `type: "custom"`38573858 The type of the custom tool. Always `custom`.38593860 - `"custom"`38613862 - `allowed_callers: optional array of "direct" or "programmatic" or null`38633864 The tool invocation context(s).38653866 - `"direct"`38673868 - `"programmatic"`38693870 - `async: optional boolean`38713872 Whether the tool response can be returned asynchronously versus immediately returned on next response creation.38733874 - `defer_loading: optional boolean`38753876 Whether this tool should be deferred and discovered via tool search.38773878 - `description: optional string`38793880 Optional description of the custom tool, used to provide more context.38813882 - `format: optional CustomToolInputFormat`38833884 The input format for the custom tool. Default is unconstrained text.38853886 - `type: "namespace"`38873888 The type of the tool. Always `namespace`.38893890 - `"namespace"`38913892 - `ToolSearch object { type, description, execution, parameters }`38933894 Hosted or BYOT tool search configuration for deferred tools.38953896 - `type: "tool_search"`38973898 The type of the tool. Always `tool_search`.38993900 - `"tool_search"`39013902 - `description: optional string or null`39033904 Description shown to the model for a client-executed tool search tool.39053906 - `execution: optional "server" or "client"`39073908 Whether tool search is executed by the server or by the client.39093910 - `"server"`39113912 - `"client"`39133914 - `parameters: optional unknown or null`39153916 Parameter schema for a client-executed tool search tool.39173918 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`39193920 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/tools-web-search).39213922 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`39233924 The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.39253926 - `"web_search_preview"`39273928 - `"web_search_preview_2025_03_11"`39293930 - `search_content_types: optional array of "text" or "image"`39313932 - `"text"`39333934 - `"image"`39353936 - `search_context_size: optional "low" or "medium" or "high"`39373938 High level guidance for the amount of context window space to use for the search. One of `low`, `medium`, or `high`. `medium` is the default.39393940 - `"low"`39413942 - `"medium"`39433944 - `"high"`39453946 - `user_location: optional object { type, city, country, 2 more } or null`39473948 The user's location.39493950 - `type: "approximate"`39513952 The type of location approximation. Always `approximate`.39533954 - `"approximate"`39553956 - `city: optional string or null`39573958 Free text input for the city of the user, e.g. `San Francisco`.39593960 - `country: optional string or null`39613962 The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.39633964 - `region: optional string or null`39653966 Free text input for the region of the user, e.g. `California`.39673968 - `timezone: optional string or null`39693970 The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.39713972 - `ApplyPatch object { type, allowed_callers }`39733974 Allows the assistant to create, delete, or update files using unified diffs.39753976 - `type: "apply_patch"`39773978 The type of the tool. Always `apply_patch`.39793980 - `"apply_patch"`39813982 - `allowed_callers: optional array of "direct" or "programmatic" or null`39833984 The tool invocation context(s).39853986 - `"direct"`39873988 - `"programmatic"`39893990 - `type: "additional_tools"`39913992 The item type. Always `additional_tools`.39933994 - `"additional_tools"`39953996 - `id: optional string or null`39973998 The unique ID of this additional tools item.39994000 - `ConfigurationUpdate object { type, id, reasoning }`40014002 An update to the conversation's response configuration. The configuration4003 remains in effect for subsequent responses until it is replaced by another4004 configuration update.40054006 - `type: "configuration_update"`40074008 The item type. Always `configuration_update`.40094010 - `"configuration_update"`40114012 - `id: optional string or null`40134014 The unique ID of the configuration update item.40154016 - `reasoning: optional object { effort }`40174018 Updates to reasoning configuration. Only effort is supported.40194020 - `effort: optional ReasoningEffort or null`40214022 The reasoning effort to use for subsequent responses until another4023 configuration update replaces it.40244025 - `"none"`40264027 - `"minimal"`40284029 - `"low"`40304031 - `"medium"`40324033 - `"high"`40344035 - `"xhigh"`40364037 - `"max"`40384039 - `Reasoning object { id, summary, type, 3 more }`40404041 A description of the chain of thought used by a reasoning model while generating4042 a response. Be sure to include these items in your `input` to the Responses API4043 for subsequent turns of a conversation if you are manually4044 [managing context](https://developers.openai.com/api/docs/guides/conversation-state).40454046 - `id: string`40474048 The unique identifier of the reasoning content.40494050 - `summary: array of SummaryTextContent`40514052 Reasoning summary content.40534054 - `text: string`40554056 A summary of the reasoning output from the model so far.40574058 - `type: "summary_text"`40594060 The type of the object. Always `summary_text`.40614062 - `"summary_text"`40634064 - `type: "reasoning"`40654066 The type of the object. Always `reasoning`.40674068 - `"reasoning"`40694070 - `content: optional array of object { text, type }`40714072 Reasoning text content.40734074 - `text: string`40754076 The reasoning text from the model.40774078 - `type: "reasoning_text"`40794080 The type of the reasoning text. Always `reasoning_text`.40814082 - `"reasoning_text"`40834084 - `encrypted_content: optional string or null`40854086 The encrypted content of the reasoning item. This is populated by default4087 for reasoning items returned by `POST /v1/responses` and WebSocket4088 `response.create` requests.40894090 When streaming, use the completed reasoning item and its4091 `encrypted_content` from the `response.output_item.done` event in4092 subsequent requests. The `encrypted_content` in4093 `response.output_item.added` may be incomplete. This is especially4094 important when `store` is `false` or when using Zero Data Retention.40954096 - `status: optional "in_progress" or "completed" or "incomplete"`40974098 The status of the item. One of `in_progress`, `completed`, or4099 `incomplete`. Populated when items are returned via API.41004101 - `"in_progress"`41024103 - `"completed"`41044105 - `"incomplete"`41064107 - `Compaction object { encrypted_content, type, id }`41084109 A compaction item generated by the [`v1/responses/compact` API](https://developers.openai.com/api/reference/resources/responses/methods/compact).41104111 - `encrypted_content: string`41124113 The encrypted content of the compaction summary.41144115 - `type: "compaction"`41164117 The type of the item. Always `compaction`.41184119 - `"compaction"`41204121 - `id: optional string or null`41224123 The ID of the compaction item.41244125 - `ImageGenerationCall object { id, result, status, 7 more }`41264127 An image generation request made by the model.41284129 - `id: string`41304131 The unique ID of the image generation call.41324133 - `result: string or null`41344135 The generated image encoded in base64.41364137 - `status: "in_progress" or "completed" or "generating" or "failed"`41384139 The status of the image generation call.41404141 - `"in_progress"`41424143 - `"completed"`41444145 - `"generating"`41464147 - `"failed"`41484149 - `type: "image_generation_call"`41504151 The type of the image generation call. Always `image_generation_call`.41524153 - `"image_generation_call"`41544155 - `action: optional "generate" or "edit" or "auto" or null`41564157 The action used for image generation.41584159 - `"generate"`41604161 - `"edit"`41624163 - `"auto"`41644165 - `background: optional "transparent" or "opaque" or "auto" or null`41664167 The background setting used for generation.41684169 - `"transparent"`41704171 - `"opaque"`41724173 - `"auto"`41744175 - `output_format: optional "png" or "webp" or "jpeg" or null`41764177 The output format used for generation.41784179 - `"png"`41804181 - `"webp"`41824183 - `"jpeg"`41844185 - `quality: optional "low" or "medium" or "high" or 3 more or null`41864187 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.41884189 - `"low"`41904191 - `"medium"`41924193 - `"high"`41944195 - `"xhigh"`41964197 - `"max"`41984199 - `"auto"`42004201 - `revised_prompt: optional string or null`42024203 The prompt that was used after any model prompt rewriting.42044205 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`42064207 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.42084209 - `string`42104211 - `"1024x1024" or "1024x1536" or "1536x1024"`42124213 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.42144215 - `"1024x1024"`42164217 - `"1024x1536"`42184219 - `"1536x1024"`42204221 - `CodeInterpreterCall object { id, code, container_id, 3 more }`42224223 A tool call to run code.42244225 - `id: string`42264227 The unique ID of the code interpreter tool call.42284229 - `code: string or null`42304231 The code to run, or null if not available.42324233 - `container_id: string`42344235 The ID of the container used to run the code.42364237 - `outputs: array of object { logs, type } or object { type, url } or null`42384239 The outputs generated by the code interpreter, such as logs or images.4240 Can be null if no outputs are available.42414242 - `Logs object { logs, type }`42434244 The logs output from the code interpreter.42454246 - `logs: string`42474248 The logs output from the code interpreter.42494250 - `type: "logs"`42514252 The type of the output. Always `logs`.42534254 - `"logs"`42554256 - `Image object { type, url }`42574258 The image output from the code interpreter.42594260 - `type: "image"`42614262 The type of the output. Always `image`.42634264 - `"image"`42654266 - `url: string`42674268 The URL of the image output from the code interpreter.42694270 - `status: "in_progress" or "completed" or "incomplete" or 2 more`42714272 The status of the code interpreter tool call. Valid values are `in_progress`, `completed`, `incomplete`, `interpreting`, and `failed`.42734274 - `"in_progress"`42754276 - `"completed"`42774278 - `"incomplete"`42794280 - `"interpreting"`42814282 - `"failed"`42834284 - `type: "code_interpreter_call"`42854286 The type of the code interpreter tool call. Always `code_interpreter_call`.42874288 - `"code_interpreter_call"`42894290 - `LocalShellCall object { id, action, call_id, 2 more }`42914292 A tool call to run a command on the local shell.42934294 - `id: string`42954296 The unique ID of the local shell call.42974298 - `action: object { command, env, type, 3 more }`42994300 Execute a shell command on the server.43014302 - `command: array of string`43034304 The command to run.43054306 - `env: map[string]`43074308 Environment variables to set for the command.43094310 - `type: "exec"`43114312 The type of the local shell action. Always `exec`.43134314 - `"exec"`43154316 - `timeout_ms: optional number or null`43174318 Optional timeout in milliseconds for the command.43194320 - `user: optional string or null`43214322 Optional user to run the command as.43234324 - `working_directory: optional string or null`43254326 Optional working directory to run the command in.43274328 - `call_id: string`43294330 The unique ID of the local shell tool call generated by the model.43314332 - `status: "in_progress" or "completed" or "incomplete"`43334334 The status of the local shell call.43354336 - `"in_progress"`43374338 - `"completed"`43394340 - `"incomplete"`43414342 - `type: "local_shell_call"`43434344 The type of the local shell call. Always `local_shell_call`.43454346 - `"local_shell_call"`43474348 - `LocalShellCallOutput object { id, output, type, status }`43494350 The output of a local shell tool call.43514352 - `id: string`43534354 The unique ID of the local shell tool call generated by the model.43554356 - `output: string`43574358 A JSON string of the output of the local shell tool call.43594360 - `type: "local_shell_call_output"`43614362 The type of the local shell tool call output. Always `local_shell_call_output`.43634364 - `"local_shell_call_output"`43654366 - `status: optional "in_progress" or "completed" or "incomplete" or null`43674368 The status of the item. One of `in_progress`, `completed`, or `incomplete`.43694370 - `"in_progress"`43714372 - `"completed"`43734374 - `"incomplete"`43754376 - `ShellCall object { action, call_id, type, 4 more }`43774378 A tool representing a request to execute one or more shell commands.43794380 - `action: object { commands, max_output_length, timeout_ms }`43814382 The shell commands and limits that describe how to run the tool call.43834384 - `commands: array of string`43854386 Ordered shell commands for the execution environment to run.43874388 - `max_output_length: optional number or null`43894390 Maximum number of UTF-8 characters to capture from combined stdout and stderr output.43914392 - `timeout_ms: optional number or null`43934394 Maximum wall-clock time in milliseconds to allow the shell commands to run.43954396 - `call_id: string`43974398 The unique ID of the shell tool call generated by the model.43994400 - `type: "shell_call"`44014402 The type of the item. Always `shell_call`.44034404 - `"shell_call"`44054406 - `id: optional string or null`44074408 The unique ID of the shell tool call. Populated when this item is returned via API.44094410 - `caller: optional object { type } or object { caller_id, type } or null`44114412 The execution context that produced this tool call.44134414 - `Direct object { type }`44154416 - `type: "direct"`44174418 The caller type. Always `direct`.44194420 - `"direct"`44214422 - `Program object { caller_id, type }`44234424 - `caller_id: string`44254426 The call ID of the program item that produced this tool call.44274428 - `type: "program"`44294430 The caller type. Always `program`.44314432 - `"program"`44334434 - `environment: optional LocalEnvironment or ContainerReference or null`44354436 The environment to execute the shell commands in.44374438 - `LocalEnvironment object { type, skills }`44394440 - `ContainerReference object { container_id, type }`44414442 - `status: optional "in_progress" or "completed" or "incomplete" or null`44434444 The status of the shell call. One of `in_progress`, `completed`, or `incomplete`.44454446 - `"in_progress"`44474448 - `"completed"`44494450 - `"incomplete"`44514452 - `ShellCallOutput object { call_id, output, type, 4 more }`44534454 The streamed output items emitted by a shell tool call.44554456 - `call_id: string`44574458 The unique ID of the shell tool call generated by the model.44594460 - `output: array of ResponseFunctionShellCallOutputContent`44614462 Captured chunks of stdout and stderr output, along with their associated outcomes.44634464 - `outcome: object { type } or object { exit_code, type }`44654466 The exit or timeout outcome associated with this shell call.44674468 - `Timeout object { type }`44694470 Indicates that the shell call exceeded its configured time limit.44714472 - `type: "timeout"`44734474 The outcome type. Always `timeout`.44754476 - `"timeout"`44774478 - `Exit object { exit_code, type }`44794480 Indicates that the shell commands finished and returned an exit code.44814482 - `exit_code: number`44834484 The exit code returned by the shell process.44854486 - `type: "exit"`44874488 The outcome type. Always `exit`.44894490 - `"exit"`44914492 - `stderr: string`44934494 Captured stderr output for the shell call.44954496 - `stdout: string`44974498 Captured stdout output for the shell call.44994500 - `type: "shell_call_output"`45014502 The type of the item. Always `shell_call_output`.45034504 - `"shell_call_output"`45054506 - `id: optional string or null`45074508 The unique ID of the shell tool call output. Populated when this item is returned via API.45094510 - `caller: optional object { type } or object { caller_id, type } or null`45114512 The execution context that produced this tool call.45134514 - `Direct object { type }`45154516 - `type: "direct"`45174518 The caller type. Always `direct`.45194520 - `"direct"`45214522 - `Program object { caller_id, type }`45234524 - `caller_id: string`45254526 The call ID of the program item that produced this tool call.45274528 - `type: "program"`45294530 The caller type. Always `program`.45314532 - `"program"`45334534 - `max_output_length: optional number or null`45354536 The maximum number of UTF-8 characters captured for this shell call's combined output.45374538 - `status: optional "in_progress" or "completed" or "incomplete" or null`45394540 The status of the shell call output.45414542 - `"in_progress"`45434544 - `"completed"`45454546 - `"incomplete"`45474548 - `ApplyPatchCall object { call_id, operation, status, 3 more }`45494550 A tool call representing a request to create, delete, or update files using diff patches.45514552 - `call_id: string`45534554 The unique ID of the apply patch tool call generated by the model.45554556 - `operation: object { diff, path, type } or object { path, type } or object { diff, path, type }`45574558 The specific create, delete, or update instruction for the apply_patch tool call.45594560 - `CreateFile object { diff, path, type }`45614562 Instruction for creating a new file via the apply_patch tool.45634564 - `diff: string`45654566 Unified diff content to apply when creating the file.45674568 - `path: string`45694570 Path of the file to create relative to the workspace root.45714572 - `type: "create_file"`45734574 The operation type. Always `create_file`.45754576 - `"create_file"`45774578 - `DeleteFile object { path, type }`45794580 Instruction for deleting an existing file via the apply_patch tool.45814582 - `path: string`45834584 Path of the file to delete relative to the workspace root.45854586 - `type: "delete_file"`45874588 The operation type. Always `delete_file`.45894590 - `"delete_file"`45914592 - `UpdateFile object { diff, path, type }`45934594 Instruction for updating an existing file via the apply_patch tool.45954596 - `diff: string`45974598 Unified diff content to apply to the existing file.45994600 - `path: string`46014602 Path of the file to update relative to the workspace root.46034604 - `type: "update_file"`46054606 The operation type. Always `update_file`.46074608 - `"update_file"`46094610 - `status: "in_progress" or "completed"`46114612 The status of the apply patch tool call. One of `in_progress` or `completed`.46134614 - `"in_progress"`46154616 - `"completed"`46174618 - `type: "apply_patch_call"`46194620 The type of the item. Always `apply_patch_call`.46214622 - `"apply_patch_call"`46234624 - `id: optional string or null`46254626 The unique ID of the apply patch tool call. Populated when this item is returned via API.46274628 - `caller: optional object { type } or object { caller_id, type } or null`46294630 The execution context that produced this tool call.46314632 - `Direct object { type }`46334634 - `type: "direct"`46354636 The caller type. Always `direct`.46374638 - `"direct"`46394640 - `Program object { caller_id, type }`46414642 - `caller_id: string`46434644 The call ID of the program item that produced this tool call.46454646 - `type: "program"`46474648 The caller type. Always `program`.46494650 - `"program"`46514652 - `ApplyPatchCallOutput object { call_id, status, type, 3 more }`46534654 The streamed output emitted by an apply patch tool call.46554656 - `call_id: string`46574658 The unique ID of the apply patch tool call generated by the model.46594660 - `status: "completed" or "failed"`46614662 The status of the apply patch tool call output. One of `completed` or `failed`.46634664 - `"completed"`46654666 - `"failed"`46674668 - `type: "apply_patch_call_output"`46694670 The type of the item. Always `apply_patch_call_output`.46714672 - `"apply_patch_call_output"`46734674 - `id: optional string or null`46754676 The unique ID of the apply patch tool call output. Populated when this item is returned via API.46774678 - `caller: optional object { type } or object { caller_id, type } or null`46794680 The execution context that produced this tool call.46814682 - `Direct object { type }`46834684 - `type: "direct"`46854686 The caller type. Always `direct`.46874688 - `"direct"`46894690 - `Program object { caller_id, type }`46914692 - `caller_id: string`46934694 The call ID of the program item that produced this tool call.46954696 - `type: "program"`46974698 The caller type. Always `program`.46994700 - `"program"`47014702 - `output: optional string or null`47034704 Optional human-readable log text from the apply patch tool (e.g., patch results or errors).47054706 - `McpListTools object { id, server_label, tools, 2 more }`47074708 A list of tools available on an MCP server.47094710 - `id: string`47114712 The unique ID of the list.47134714 - `server_label: string`47154716 The label of the MCP server.47174718 - `tools: array of object { input_schema, name, annotations, description }`47194720 The tools available on the server.47214722 - `input_schema: unknown`47234724 The JSON schema describing the tool's input.47254726 - `name: string`47274728 The name of the tool.47294730 - `annotations: optional unknown or null`47314732 Additional annotations about the tool.47334734 - `description: optional string or null`47354736 The description of the tool.47374738 - `type: "mcp_list_tools"`47394740 The type of the item. Always `mcp_list_tools`.47414742 - `"mcp_list_tools"`47434744 - `error: optional string or null`47454746 Error message if the server could not list tools.47474748 - `McpApprovalRequest object { id, arguments, name, 2 more }`47494750 A request for human approval of a tool invocation.47514752 - `id: string`47534754 The unique ID of the approval request.47554756 - `arguments: string`47574758 A JSON string of arguments for the tool.47594760 - `name: string`47614762 The name of the tool to run.47634764 - `server_label: string`47654766 The label of the MCP server making the request.47674768 - `type: "mcp_approval_request"`47694770 The type of the item. Always `mcp_approval_request`.47714772 - `"mcp_approval_request"`47734774 - `McpApprovalResponse object { approval_request_id, approve, type, 2 more }`47754776 A response to an MCP approval request.47774778 - `approval_request_id: string`47794780 The ID of the approval request being answered.47814782 - `approve: boolean`47834784 Whether the request was approved.47854786 - `type: "mcp_approval_response"`47874788 The type of the item. Always `mcp_approval_response`.47894790 - `"mcp_approval_response"`47914792 - `id: optional string or null`47934794 The unique ID of the approval response47954796 - `reason: optional string or null`47974798 Optional reason for the decision.47994800 - `McpCall object { id, arguments, name, 6 more }`48014802 An invocation of a tool on an MCP server.48034804 - `id: string`48054806 The unique ID of the tool call.48074808 - `arguments: string`48094810 A JSON string of the arguments passed to the tool.48114812 - `name: string`48134814 The name of the tool that was run.48154816 - `server_label: string`48174818 The label of the MCP server running the tool.48194820 - `type: "mcp_call"`48214822 The type of the item. Always `mcp_call`.48234824 - `"mcp_call"`48254826 - `approval_request_id: optional string or null`48274828 Unique identifier for the MCP tool call approval request.4829 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.48304831 - `error: optional McpToolCallError or null`48324833 The error from the tool call, if any.48344835 - `McpProtocolError object { code, message, type }`48364837 - `code: number`48384839 - `message: string`48404841 - `type: "mcp_protocol_error"`48424843 - `"mcp_protocol_error"`48444845 - `McpToolExecutionError object { content, type }`48464847 - `content: unknown`48484849 - `type: "mcp_tool_execution_error"`48504851 - `"mcp_tool_execution_error"`48524853 - `HTTPError object { code, message, type }`48544855 - `code: number`48564857 - `message: string`48584859 - `type: "http_error"`48604861 - `"http_error"`48624863 - `output: optional string or null`48644865 The output from the tool call.48664867 - `status: optional "in_progress" or "completed" or "incomplete" or 2 more`48684869 The status of the tool call. One of `in_progress`, `completed`, `incomplete`, `calling`, or `failed`.48704871 - `"in_progress"`48724873 - `"completed"`48744875 - `"incomplete"`48764877 - `"calling"`48784879 - `"failed"`48804881 - `CustomToolCallOutput object { call_id, output, type, 2 more }`48824883 The output of a custom tool call from your code, being sent back to the model.48844885 - `call_id: string`48864887 The call ID, used to map this custom tool call output to a custom tool call.48884889 - `output: string or array of ResponseInputText or ResponseInputImage or ResponseInputFile`48904891 The output from the custom tool call generated by your code.4892 Can be a string or an list of output content.48934894 - `StringOutput = string`48954896 A string of the output of the custom tool call.48974898 - `OutputContentList = array of ResponseInputText or ResponseInputImage or ResponseInputFile`48994900 Text, image, or file output of the custom tool call.49014902 - `ResponseInputText object { text, type, prompt_cache_breakpoint }`49034904 A text input to the model.49054906 - `ResponseInputImage object { detail, type, file_id, 2 more }`49074908 An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision).49094910 - `ResponseInputFile object { type, detail, file_data, 4 more }`49114912 A file input to the model.49134914 - `type: "custom_tool_call_output"`49154916 The type of the custom tool call output. Always `custom_tool_call_output`.49174918 - `"custom_tool_call_output"`49194920 - `id: optional string`49214922 The unique ID of the custom tool call output in the OpenAI platform.49234924 - `caller: optional object { type } or object { caller_id, type } or null`49254926 The execution context that produced this tool call.49274928 - `Direct object { type }`49294930 - `type: "direct"`49314932 The caller type. Always `direct`.49334934 - `"direct"`49354936 - `Program object { caller_id, type }`49374938 - `caller_id: string`49394940 The call ID of the program item that produced this tool call.49414942 - `type: "program"`49434944 The caller type. Always `program`.49454946 - `"program"`49474948 - `CustomToolCall object { call_id, input, name, 5 more }`49494950 A call to a custom tool created by the model.49514952 - `call_id: string`49534954 An identifier used to map this custom tool call to a tool call output.49554956 - `input: string`49574958 The input for the custom tool call generated by the model.49594960 - `name: string`49614962 The name of the custom tool being called.49634964 - `type: "custom_tool_call"`49654966 The type of the custom tool call. Always `custom_tool_call`.49674968 - `"custom_tool_call"`49694970 - `id: optional string`49714972 The unique ID of the custom tool call in the OpenAI platform.49734974 - `async: optional boolean`49754976 Whether the custom tool call runs asynchronously.49774978 - `caller: optional object { type } or object { caller_id, type } or null`49794980 The execution context that produced this tool call.49814982 - `Direct object { type }`49834984 - `type: "direct"`49854986 - `"direct"`49874988 - `Program object { caller_id, type }`49894990 - `caller_id: string`49914992 The call ID of the program item that produced this tool call.49934994 - `type: "program"`49954996 - `"program"`49974998 - `namespace: optional string`49995000 The namespace of the custom tool being called.50015002 - `CompactionTrigger object { type, id }`50035004 Compacts the current context. Must be the final input item.50055006 - `type: "compaction_trigger"`50075008 The type of the item. Always `compaction_trigger`.50095010 - `"compaction_trigger"`50115012 - `id: optional string or null`50135014 The unique ID of this compaction trigger.50155016 - `ItemReference object { id, type }`50175018 An internal identifier for an item to reference.50195020 - `id: string`50215022 The ID of the item to reference.50235024 - `type: optional "item_reference" or null`50255026 The type of item to reference. Always `item_reference`.50275028 - `"item_reference"`50295030 - `Program object { id, call_id, code, 2 more }`50315032 - `id: string`50335034 The unique ID of this program item.50355036 - `call_id: string`50375038 The stable call ID of the program item.50395040 - `code: string`50415042 The JavaScript source executed by programmatic tool calling.50435044 - `fingerprint: string`50455046 Opaque program replay fingerprint that must be round-tripped.50475048 - `type: "program"`50495050 The item type. Always `program`.50515052 - `"program"`50535054 - `ProgramOutput object { id, call_id, result, 2 more }`50555056 - `id: string`50575058 The unique ID of this program output item.50595060 - `call_id: string`50615062 The call ID of the program item.50635064 - `result: string`50655066 The result produced by the program item.50675068 - `status: "completed" or "incomplete"`50695070 The terminal status of the program output.50715072 - `"completed"`50735074 - `"incomplete"`50755076 - `type: "program_output"`50775078 The item type. Always `program_output`.50795080 - `"program_output"`50815082- `type: "response.item.create"`50835084 The Live client event type. Always `response.item.create`.50855086 - `"response.item.create"`50875088- `event_id: optional string or null`50895090 Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.50915092#### Example50935094```json5095{5096 "type": "response.item.create",5097 "event_id": "evt_item_001",5098 "item": {5099 "type": "message",5100 "role": "user",5101 "content": [5102 {5103 "type": "input_text",5104 "text": "Please check for a table for two at 7 PM."5105 }5106 ]5107 }5108}5109```51105111<a id="response.create"></a>51125113### response.create51145115Request a response from the Live session’s Responses backend, or continue a delegated response waiting for tool results. Requires Responses delegation.51165117#### Schema51185119Schema name: `LiveResponseCreateParam`51205121- `type: "response.create"`51225123 The Live client event type. Always `response.create`.51245125 - `"response.create"`51265127- `event_id: optional string or null`51285129 Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.51305131#### Example51325133```json5134{5135 "type": "response.create",5136 "event_id": "evt_response_001"5137}5138```51395140<a id="session.close"></a>51415142### session.close51435144Request that the Live session close. The terminal `session.closed` event contains the close reason and final usage.51455146#### Schema51475148Schema name: `LiveSessionCloseParam`51495150- `type: "session.close"`51515152 The Live client event type. Always `session.close`.51535154 - `"session.close"`51555156- `event_id: optional string or null`51575158 Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.51595160#### Example51615162```json5163{5164 "type": "session.close",5165 "event_id": "evt_close_001"5166}5167```51685169<a id="server-events"></a>51705171## Server events51725173<a id="session.started"></a>51745175### session.started51765177Returned when a Live session has started. Contains the resolved session configuration, including server defaults.51785179#### Schema51805181Schema name: `LiveSessionStarted`51825183- `event_id: string`51845185 The unique ID of the Live server event.51865187- `session: SessionResource`51885189 The resolved Live session configuration and server-assigned session metadata.51905191 - `id: string`51925193 The unique ID of the Live session. Use this ID for sideband connections, forking, and recording download.51945195 - `expires_at: number`51965197 The Unix timestamp, in seconds, at which the Live session expires.51985199 - `model: string or "gpt-live-1"`52005201 The Live model. Required in the session configuration for every transport; do not pass it as a URL query parameter.52025203 - `string`52045205 - `"gpt-live-1"`52065207 The Live model. Required in the session configuration for every transport; do not pass it as a URL query parameter.52085209 - `"gpt-live-1"`52105211 - `status: "active"`52125213 The status of the session snapshot. Always `active`, including the final snapshot in session.closed; use the event type to determine that the session has closed.52145215 - `"active"`52165217 - `audio: optional object { format, output }`52185219 Startup audio configuration. Only primary WebSockets accept audio.format; WebRTC and SIP negotiate their media format. Voice and format are immutable after startup.52205221 - `format: optional AudioFormat`52225223 Audio encoding and sample rate for audio sent and received over a Live WebSocket connection. WebRTC and SIP negotiate their media format separately.52245225 - `AudioPCM object { rate, type }`52265227 Raw, mono 16-bit little-endian PCM audio for a Live WebSocket connection.52285229 - `rate: 16000 or 24000`52305231 Audio sample rate in hertz. Live WebSocket PCM audio supports 16000 or 24000 Hz.52325233 - `16000`52345235 - `24000`52365237 - `type: "audio/pcm"`52385239 The audio encoding. Always `audio/pcm`.52405241 - `"audio/pcm"`52425243 - `AudioPCMU object { rate, type }`52445245 Raw, mono G.711 μ-law audio for a Live WebSocket connection.52465247 - `rate: number`52485249 Audio sample rate in hertz. G.711 audio uses 8000 Hz.52505251 - `type: "audio/pcmu"`52525253 The audio encoding. Always `audio/pcmu`.52545255 - `"audio/pcmu"`52565257 - `AudioPCMA object { rate, type }`52585259 Raw, mono G.711 A-law audio for a Live WebSocket connection.52605261 - `rate: number`52625263 Audio sample rate in hertz. G.711 audio uses 8000 Hz.52645265 - `type: "audio/pcma"`52665267 The audio encoding. Always `audio/pcma`.52685269 - `"audio/pcma"`52705271 - `output: optional object { voice }`52725273 The voice used for speech generated by the Live model.52745275 - `voice: optional string or "alloy" or "ash" or "ballad" or 19 more or CustomVoice`52765277 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.52785279 - `string`52805281 - `"alloy" or "ash" or "ballad" or 19 more`52825283 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.52845285 - `"alloy"`52865287 - `"ash"`52885289 - `"ballad"`52905291 - `"beacon"`52925293 - `"bossa"`52945295 - `"cedar"`52965297 - `"cinder"`52985299 - `"coral"`53005301 - `"delta"`53025303 - `"echo"`53045305 - `"gleam"`53065307 - `"marin"`53085309 - `"meridian"`53105311 - `"quartz"`53125313 - `"ripple"`53145315 - `"sage"`53165317 - `"shimmer"`53185319 - `"stone"`53205321 - `"tempo"`53225323 - `"verse"`53245325 - `"vesper"`53265327 - `"willow"`53285329 - `CustomVoice object { id }`53305331 - `id: string`53325333 - `client: optional ClientConfig`53345335 Startup-only capabilities for an untrusted frontend attached to a unified WebRTC session. Trusted sideband connections are unaffected.53365337 - `data_channel: DataChannelConfig`53385339 Client and server event permissions for the WebRTC frontend data channel.53405341 - `allowed_client_events: optional "all" or array of string`53425343 Client event types that the frontend data channel may send. Use 'all' to allow every client event; an empty array allows none. Omission preserves the existing allow-all behavior.53445345 - `"all"`53465347 - `"all"`53485349 - `array of string`53505351 - `allowed_server_events: optional "all" or array of ServerEventSelector`53525353 Server events that may be sent to the frontend data channel. Use 'all' to allow every server event; an empty array allows none. Omission preserves the existing allow-all behavior. Responses events use an object with type 'response.event' and a response_event selector.53545355 - `"all"`53565357 - `"all"`53585359 - `array of ServerEventSelector`53605361 - `type: string`53625363 The outer Live server event type. Use 'response.event' for Responses events.53645365 - `response_event: optional string`53665367 The nested Responses event type. Required when type is 'response.event'; forbidden for other event types.53685369 - `delegation: optional ClientDelegation or object { responses, type } or null`53705371 Who handles tasks delegated by the Live model. Omitted or null selects your application; use `responses` to let the API manage a Responses backend.53725373 - `ClientDelegation object { type }`53745375 Delegate tasks to your application. The Live session emits delegation events that your backend handles.53765377 - `type: "client"`53785379 The delegation owner. Always `client` for tasks handled by your application.53805381 - `"client"`53825383 - `Responses object { responses, type }`53845385 Delegate tasks to a Responses model managed by the Live session.53865387 - `responses: ResponsesDelegationConfig`53885389 Backend model, prompt, and tools used when the Live session delegates a task to Responses.53905391 - `model: string`53925393 The model used for server-owned Responses delegations.53945395 - `instructions: optional string or null`53965397 Instructions for the delegated Responses model, separate from Live instructions. See [backend prompting](https://developers.openai.com/api/docs/guides/live-delegation#start-with-your-existing-backend-prompt).53985399 - `max_output_tokens: optional number or null`54005401 Maximum number of output tokens for each delegated response.54025403 - `parallel_tool_calls: optional boolean or null`54045405 Whether the delegated Responses model may request multiple tool calls in a single response.54065407 - `reasoning: optional object { effort, summary } or null`54085409 Reasoning settings passed to each delegated Responses request.54105411 - `effort: optional "none" or "minimal" or "low" or 3 more or null`54125413 How much reasoning effort the delegated Responses model should use. Supported values depend on the backend model.54145415 - `"none"`54165417 - `"minimal"`54185419 - `"low"`54205421 - `"medium"`54225423 - `"high"`54245425 - `"xhigh"`54265427 - `summary: optional "concise" or "detailed" or "auto" or null`54285429 The reasoning summary to request from the delegated Responses model, when supported.54305431 - `"concise"`54325433 - `"detailed"`54345435 - `"auto"`54365437 - `service_tier: optional "auto" or "default" or "fast_tier_temp_pilot" or 3 more or null`54385439 Service tier for delegated Responses requests.54405441 - `"auto"`54425443 - `"default"`54445445 - `"fast_tier_temp_pilot"`54465447 - `"flex"`54485449 - `"priority"`54505451 - `"ultrafast"`54525453 - `text: optional object { verbosity } or null`54545455 Text generation settings passed to each delegated Responses request.54565457 - `verbosity: optional "low" or "medium" or "high" or null`54585459 The amount of detail in text generated by the Responses backend. This does not configure the Live model’s spoken delivery.54605461 - `"low"`54625463 - `"medium"`54645465 - `"high"`54665467 - `tool_choice: optional "auto" or "none" or "required" or object { name, type } or object { name, server_label, type }`54685469 Controls which tool the Responses backend uses when handling a task delegated by the Live model.54705471 - `LiveToolChoiceEnum = "auto" or "none" or "required"`54725473 - `"auto"`54745475 - `"none"`54765477 - `"required"`54785479 - `LiveFunctionToolChoiceParam object { name, type }`54805481 - `name: string`54825483 - `type: "function"`54845485 - `"function"`54865487 - `LiveMCPToolChoiceParam object { name, server_label, type }`54885489 - `name: string`54905491 - `server_label: string`54925493 - `type: "mcp"`54945495 - `"mcp"`54965497 - `tools: optional array of FunctionTool or object { type }`54985499 Tools available to the Responses backend while it handles tasks delegated by the Live model.55005501 - `FunctionTool object { name, type, description, 2 more }`55025503 A function tool available to the Responses backend when the Live model delegates a task.55045505 - `name: string`55065507 The name the delegated Responses model uses when calling this function.55085509 - `type: "function"`55105511 The tool type. Always `function`.55125513 - `"function"`55145515 - `description: optional string or null`55165517 What the function does and when the delegated Responses model should call it.55185519 - `parameters: optional map[unknown] or null`55205521 A JSON Schema object describing the arguments accepted by the function.55225523 - `strict: optional boolean or null`55245525 Whether the delegated Responses model must follow the function’s parameter schema exactly.55265527 - `WebSearch object { type }`55285529 A web search tool available to the Live session’s Responses backend.55305531 - `type: "web_search"`55325533 The tool type. Always `web_search`.55345535 - `"web_search"`55365537 - `type: "responses"`55385539 The delegation owner. Always `responses` for tasks handled by the Responses API.55405541 - `"responses"`55425543 - `input: optional array of InitialItem`55445545 Ordered text-only history supplied before startup. Supports developer, user, and assistant messages with one text part each; at most 128 messages and 8,192 rendered tokens in total.55465547 - `Developer object { content, role, id, 2 more }`55485549 A developer message included in the initial text history of a Live session.55505551 - `content: array of object { text, type }`55525553 The message content. Supply exactly one text part for the initial Live conversation history.55545555 - `text: string`55565557 The message text to include in the Live session’s initial conversation history.55585559 - `type: optional "input_text"`55605561 The text content type. Always `input_text`.55625563 - `"input_text"`55645565 - `role: "developer"`55665567 The author of this history message. Always `developer`.55685569 - `"developer"`55705571 - `id: optional string or null`55725573 An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.55745575 - `status: optional "incomplete" or "completed" or null`55765577 The supplied message’s status. Live uses its text as history and does not resume an incomplete message.55785579 - `"incomplete"`55805581 - `"completed"`55825583 - `type: optional "message"`55845585 The history item type. Always `message`.55865587 - `"message"`55885589 - `User object { content, role, id, 2 more }`55905591 A user message included in the initial text history of a Live session.55925593 - `content: array of object { text, type }`55945595 The message content. Supply exactly one text part for the initial Live conversation history.55965597 - `text: string`55985599 The message text to include in the Live session’s initial conversation history.56005601 - `type: optional "input_text"`56025603 The text content type. Always `input_text`.56045605 - `"input_text"`56065607 - `role: "user"`56085609 The author of this history message. Always `user`.56105611 - `"user"`56125613 - `id: optional string or null`56145615 An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.56165617 - `status: optional "incomplete" or "completed" or null`56185619 The supplied message’s status. Live uses its text as history and does not resume an incomplete message.56205621 - `"incomplete"`56225623 - `"completed"`56245625 - `type: optional "message"`56265627 The history item type. Always `message`.56285629 - `"message"`56305631 - `Assistant object { content, role, id, 2 more }`56325633 An assistant message included in the initial text history of a Live session.56345635 - `content: array of object { text, type } or object { text, type }`56365637 The message content. Supply exactly one text part for the initial Live conversation history.56385639 - `Text object { text, type }`56405641 Assistant text supplied as conversation history when starting a Live session.56425643 - `text: string`56445645 The message text to include in the Live session’s initial conversation history.56465647 - `type: optional "text"`56485649 The text content type. Always `text`.56505651 - `"text"`56525653 - `OutputText object { text, type }`56545655 Assistant output text supplied as conversation history when starting a Live session.56565657 - `text: string`56585659 The message text to include in the Live session’s initial conversation history.56605661 - `type: "output_text"`56625663 The text content type. Always `output_text`.56645665 - `"output_text"`56665667 - `role: "assistant"`56685669 The author of this history message. Always `assistant`.56705671 - `"assistant"`56725673 - `id: optional string or null`56745675 An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.56765677 - `status: optional "incomplete" or "completed" or null`56785679 The supplied message’s status. Live uses its text as history and does not resume an incomplete message.56805681 - `"incomplete"`56825683 - `"completed"`56845685 - `type: optional "message"`56865687 The history item type. Always `message`.56885689 - `"message"`56905691 - `instructions: optional string or null`56925693 Frontend instructions for voice, conversation, interruptions, and when to delegate. Start with the [Live prompting guide](https://developers.openai.com/api/docs/guides/live-prompting); put business rules and tool workflows in a separate [backend prompt](https://developers.openai.com/api/docs/guides/live-delegation#start-with-your-existing-backend-prompt). Limited to 16,384 client-supplied tokens. Omitted or blank instructions use server defaults. Immutable after startup.56945695 - `store: optional boolean`56965697 Whether to store the session for later forking and recording download. Defaults to false for new sessions.56985699- `type: "session.started"`57005701 The event type, always `session.started`.57025703 - `"session.started"`57045705- `client_event_id: optional string`57065707 The event_id of the client command associated with this server event, when supplied.57085709#### Example57105711```json5712{5713 "type": "session.started",5714 "event_id": "evt_started_001",5715 "client_event_id": "evt_start_001",5716 "session": {5717 "id": "live_abc123",5718 "model": "gpt-live-1",5719 "status": "active",5720 "expires_at": 1788555600,5721 "instructions": "Help the caller plan a restaurant reservation. Confirm details before booking.",5722 "input": [],5723 "audio": {5724 "format": {5725 "type": "audio/pcm",5726 "rate": 240005727 },5728 "output": {5729 "voice": "marin"5730 }5731 },5732 "delegation": {5733 "type": "client"5734 }5735 }5736}5737```57385739<a id="session.updated"></a>57405741### session.updated57425743Returned when a Live session update is accepted. Contains the resolved session configuration after the update.57445745#### Schema57465747Schema name: `LiveSessionUpdated`57485749- `event_id: string`57505751 The unique ID of the Live server event.57525753- `session: SessionResource`57545755 The resolved Live session configuration and server-assigned session metadata.57565757 - `id: string`57585759 The unique ID of the Live session. Use this ID for sideband connections, forking, and recording download.57605761 - `expires_at: number`57625763 The Unix timestamp, in seconds, at which the Live session expires.57645765 - `model: string or "gpt-live-1"`57665767 The Live model. Required in the session configuration for every transport; do not pass it as a URL query parameter.57685769 - `string`57705771 - `"gpt-live-1"`57725773 The Live model. Required in the session configuration for every transport; do not pass it as a URL query parameter.57745775 - `"gpt-live-1"`57765777 - `status: "active"`57785779 The status of the session snapshot. Always `active`, including the final snapshot in session.closed; use the event type to determine that the session has closed.57805781 - `"active"`57825783 - `audio: optional object { format, output }`57845785 Startup audio configuration. Only primary WebSockets accept audio.format; WebRTC and SIP negotiate their media format. Voice and format are immutable after startup.57865787 - `format: optional AudioFormat`57885789 Audio encoding and sample rate for audio sent and received over a Live WebSocket connection. WebRTC and SIP negotiate their media format separately.57905791 - `AudioPCM object { rate, type }`57925793 Raw, mono 16-bit little-endian PCM audio for a Live WebSocket connection.57945795 - `rate: 16000 or 24000`57965797 Audio sample rate in hertz. Live WebSocket PCM audio supports 16000 or 24000 Hz.57985799 - `16000`58005801 - `24000`58025803 - `type: "audio/pcm"`58045805 The audio encoding. Always `audio/pcm`.58065807 - `"audio/pcm"`58085809 - `AudioPCMU object { rate, type }`58105811 Raw, mono G.711 μ-law audio for a Live WebSocket connection.58125813 - `rate: number`58145815 Audio sample rate in hertz. G.711 audio uses 8000 Hz.58165817 - `type: "audio/pcmu"`58185819 The audio encoding. Always `audio/pcmu`.58205821 - `"audio/pcmu"`58225823 - `AudioPCMA object { rate, type }`58245825 Raw, mono G.711 A-law audio for a Live WebSocket connection.58265827 - `rate: number`58285829 Audio sample rate in hertz. G.711 audio uses 8000 Hz.58305831 - `type: "audio/pcma"`58325833 The audio encoding. Always `audio/pcma`.58345835 - `"audio/pcma"`58365837 - `output: optional object { voice }`58385839 The voice used for speech generated by the Live model.58405841 - `voice: optional string or "alloy" or "ash" or "ballad" or 19 more or CustomVoice`58425843 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.58445845 - `string`58465847 - `"alloy" or "ash" or "ballad" or 19 more`58485849 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.58505851 - `"alloy"`58525853 - `"ash"`58545855 - `"ballad"`58565857 - `"beacon"`58585859 - `"bossa"`58605861 - `"cedar"`58625863 - `"cinder"`58645865 - `"coral"`58665867 - `"delta"`58685869 - `"echo"`58705871 - `"gleam"`58725873 - `"marin"`58745875 - `"meridian"`58765877 - `"quartz"`58785879 - `"ripple"`58805881 - `"sage"`58825883 - `"shimmer"`58845885 - `"stone"`58865887 - `"tempo"`58885889 - `"verse"`58905891 - `"vesper"`58925893 - `"willow"`58945895 - `CustomVoice object { id }`58965897 - `id: string`58985899 - `client: optional ClientConfig`59005901 Startup-only capabilities for an untrusted frontend attached to a unified WebRTC session. Trusted sideband connections are unaffected.59025903 - `data_channel: DataChannelConfig`59045905 Client and server event permissions for the WebRTC frontend data channel.59065907 - `allowed_client_events: optional "all" or array of string`59085909 Client event types that the frontend data channel may send. Use 'all' to allow every client event; an empty array allows none. Omission preserves the existing allow-all behavior.59105911 - `"all"`59125913 - `"all"`59145915 - `array of string`59165917 - `allowed_server_events: optional "all" or array of ServerEventSelector`59185919 Server events that may be sent to the frontend data channel. Use 'all' to allow every server event; an empty array allows none. Omission preserves the existing allow-all behavior. Responses events use an object with type 'response.event' and a response_event selector.59205921 - `"all"`59225923 - `"all"`59245925 - `array of ServerEventSelector`59265927 - `type: string`59285929 The outer Live server event type. Use 'response.event' for Responses events.59305931 - `response_event: optional string`59325933 The nested Responses event type. Required when type is 'response.event'; forbidden for other event types.59345935 - `delegation: optional ClientDelegation or object { responses, type } or null`59365937 Who handles tasks delegated by the Live model. Omitted or null selects your application; use `responses` to let the API manage a Responses backend.59385939 - `ClientDelegation object { type }`59405941 Delegate tasks to your application. The Live session emits delegation events that your backend handles.59425943 - `type: "client"`59445945 The delegation owner. Always `client` for tasks handled by your application.59465947 - `"client"`59485949 - `Responses object { responses, type }`59505951 Delegate tasks to a Responses model managed by the Live session.59525953 - `responses: ResponsesDelegationConfig`59545955 Backend model, prompt, and tools used when the Live session delegates a task to Responses.59565957 - `model: string`59585959 The model used for server-owned Responses delegations.59605961 - `instructions: optional string or null`59625963 Instructions for the delegated Responses model, separate from Live instructions. See [backend prompting](https://developers.openai.com/api/docs/guides/live-delegation#start-with-your-existing-backend-prompt).59645965 - `max_output_tokens: optional number or null`59665967 Maximum number of output tokens for each delegated response.59685969 - `parallel_tool_calls: optional boolean or null`59705971 Whether the delegated Responses model may request multiple tool calls in a single response.59725973 - `reasoning: optional object { effort, summary } or null`59745975 Reasoning settings passed to each delegated Responses request.59765977 - `effort: optional "none" or "minimal" or "low" or 3 more or null`59785979 How much reasoning effort the delegated Responses model should use. Supported values depend on the backend model.59805981 - `"none"`59825983 - `"minimal"`59845985 - `"low"`59865987 - `"medium"`59885989 - `"high"`59905991 - `"xhigh"`59925993 - `summary: optional "concise" or "detailed" or "auto" or null`59945995 The reasoning summary to request from the delegated Responses model, when supported.59965997 - `"concise"`59985999 - `"detailed"`60006001 - `"auto"`60026003 - `service_tier: optional "auto" or "default" or "fast_tier_temp_pilot" or 3 more or null`60046005 Service tier for delegated Responses requests.60066007 - `"auto"`60086009 - `"default"`60106011 - `"fast_tier_temp_pilot"`60126013 - `"flex"`60146015 - `"priority"`60166017 - `"ultrafast"`60186019 - `text: optional object { verbosity } or null`60206021 Text generation settings passed to each delegated Responses request.60226023 - `verbosity: optional "low" or "medium" or "high" or null`60246025 The amount of detail in text generated by the Responses backend. This does not configure the Live model’s spoken delivery.60266027 - `"low"`60286029 - `"medium"`60306031 - `"high"`60326033 - `tool_choice: optional "auto" or "none" or "required" or object { name, type } or object { name, server_label, type }`60346035 Controls which tool the Responses backend uses when handling a task delegated by the Live model.60366037 - `LiveToolChoiceEnum = "auto" or "none" or "required"`60386039 - `"auto"`60406041 - `"none"`60426043 - `"required"`60446045 - `LiveFunctionToolChoiceParam object { name, type }`60466047 - `name: string`60486049 - `type: "function"`60506051 - `"function"`60526053 - `LiveMCPToolChoiceParam object { name, server_label, type }`60546055 - `name: string`60566057 - `server_label: string`60586059 - `type: "mcp"`60606061 - `"mcp"`60626063 - `tools: optional array of FunctionTool or object { type }`60646065 Tools available to the Responses backend while it handles tasks delegated by the Live model.60666067 - `FunctionTool object { name, type, description, 2 more }`60686069 A function tool available to the Responses backend when the Live model delegates a task.60706071 - `name: string`60726073 The name the delegated Responses model uses when calling this function.60746075 - `type: "function"`60766077 The tool type. Always `function`.60786079 - `"function"`60806081 - `description: optional string or null`60826083 What the function does and when the delegated Responses model should call it.60846085 - `parameters: optional map[unknown] or null`60866087 A JSON Schema object describing the arguments accepted by the function.60886089 - `strict: optional boolean or null`60906091 Whether the delegated Responses model must follow the function’s parameter schema exactly.60926093 - `WebSearch object { type }`60946095 A web search tool available to the Live session’s Responses backend.60966097 - `type: "web_search"`60986099 The tool type. Always `web_search`.61006101 - `"web_search"`61026103 - `type: "responses"`61046105 The delegation owner. Always `responses` for tasks handled by the Responses API.61066107 - `"responses"`61086109 - `input: optional array of InitialItem`61106111 Ordered text-only history supplied before startup. Supports developer, user, and assistant messages with one text part each; at most 128 messages and 8,192 rendered tokens in total.61126113 - `Developer object { content, role, id, 2 more }`61146115 A developer message included in the initial text history of a Live session.61166117 - `content: array of object { text, type }`61186119 The message content. Supply exactly one text part for the initial Live conversation history.61206121 - `text: string`61226123 The message text to include in the Live session’s initial conversation history.61246125 - `type: optional "input_text"`61266127 The text content type. Always `input_text`.61286129 - `"input_text"`61306131 - `role: "developer"`61326133 The author of this history message. Always `developer`.61346135 - `"developer"`61366137 - `id: optional string or null`61386139 An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.61406141 - `status: optional "incomplete" or "completed" or null`61426143 The supplied message’s status. Live uses its text as history and does not resume an incomplete message.61446145 - `"incomplete"`61466147 - `"completed"`61486149 - `type: optional "message"`61506151 The history item type. Always `message`.61526153 - `"message"`61546155 - `User object { content, role, id, 2 more }`61566157 A user message included in the initial text history of a Live session.61586159 - `content: array of object { text, type }`61606161 The message content. Supply exactly one text part for the initial Live conversation history.61626163 - `text: string`61646165 The message text to include in the Live session’s initial conversation history.61666167 - `type: optional "input_text"`61686169 The text content type. Always `input_text`.61706171 - `"input_text"`61726173 - `role: "user"`61746175 The author of this history message. Always `user`.61766177 - `"user"`61786179 - `id: optional string or null`61806181 An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.61826183 - `status: optional "incomplete" or "completed" or null`61846185 The supplied message’s status. Live uses its text as history and does not resume an incomplete message.61866187 - `"incomplete"`61886189 - `"completed"`61906191 - `type: optional "message"`61926193 The history item type. Always `message`.61946195 - `"message"`61966197 - `Assistant object { content, role, id, 2 more }`61986199 An assistant message included in the initial text history of a Live session.62006201 - `content: array of object { text, type } or object { text, type }`62026203 The message content. Supply exactly one text part for the initial Live conversation history.62046205 - `Text object { text, type }`62066207 Assistant text supplied as conversation history when starting a Live session.62086209 - `text: string`62106211 The message text to include in the Live session’s initial conversation history.62126213 - `type: optional "text"`62146215 The text content type. Always `text`.62166217 - `"text"`62186219 - `OutputText object { text, type }`62206221 Assistant output text supplied as conversation history when starting a Live session.62226223 - `text: string`62246225 The message text to include in the Live session’s initial conversation history.62266227 - `type: "output_text"`62286229 The text content type. Always `output_text`.62306231 - `"output_text"`62326233 - `role: "assistant"`62346235 The author of this history message. Always `assistant`.62366237 - `"assistant"`62386239 - `id: optional string or null`62406241 An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.62426243 - `status: optional "incomplete" or "completed" or null`62446245 The supplied message’s status. Live uses its text as history and does not resume an incomplete message.62466247 - `"incomplete"`62486249 - `"completed"`62506251 - `type: optional "message"`62526253 The history item type. Always `message`.62546255 - `"message"`62566257 - `instructions: optional string or null`62586259 Frontend instructions for voice, conversation, interruptions, and when to delegate. Start with the [Live prompting guide](https://developers.openai.com/api/docs/guides/live-prompting); put business rules and tool workflows in a separate [backend prompt](https://developers.openai.com/api/docs/guides/live-delegation#start-with-your-existing-backend-prompt). Limited to 16,384 client-supplied tokens. Omitted or blank instructions use server defaults. Immutable after startup.62606261 - `store: optional boolean`62626263 Whether to store the session for later forking and recording download. Defaults to false for new sessions.62646265- `type: "session.updated"`62666267 The event type, always `session.updated`.62686269 - `"session.updated"`62706271- `client_event_id: optional string`62726273 The event_id of the client command associated with this server event, when supplied.62746275#### Example62766277```json6278{6279 "type": "session.updated",6280 "event_id": "evt_updated_001",6281 "client_event_id": "evt_update_001",6282 "session": {6283 "id": "live_def456",6284 "model": "gpt-live-1",6285 "status": "active",6286 "expires_at": 1788555600,6287 "instructions": "Help the caller plan a restaurant reservation. Confirm details before booking.",6288 "input": [],6289 "audio": {6290 "format": {6291 "type": "audio/pcm",6292 "rate": 240006293 },6294 "output": {6295 "voice": "marin"6296 }6297 },6298 "delegation": {6299 "type": "responses",6300 "responses": {6301 "model": "gpt-6-astra",6302 "instructions": "Check restaurant availability. Ask before confirming a booking.",6303 "max_output_tokens": 1024,6304 "tools": []6305 }6306 }6307 }6308}6309```63106311<a id="session.input_audio.muted"></a>63126313### session.input_audio.muted63146315Returned when a session.input_audio.mute command is accepted. Input audio is no longer sent to the model; sideband audio reflection continues.63166317#### Schema63186319Schema name: `LiveInputAudioMuted`63206321- `event_id: string`63226323 The unique ID of the Live server event.63246325- `type: "session.input_audio.muted"`63266327 The event type, always `session.input_audio.muted`.63286329 - `"session.input_audio.muted"`63306331- `client_event_id: optional string`63326333 The event_id of the client command associated with this server event, when supplied.63346335#### Example63366337```json6338{6339 "type": "session.input_audio.muted",6340 "event_id": "evt_muted_001",6341 "client_event_id": "evt_mute_001"6342}6343```63446345<a id="session.input_audio.unmuted"></a>63466347### session.input_audio.unmuted63486349Returned when a session.input_audio.unmute command is accepted. Input audio is sent to the model again.63506351#### Schema63526353Schema name: `LiveInputAudioUnmuted`63546355- `event_id: string`63566357 The unique ID of the Live server event.63586359- `type: "session.input_audio.unmuted"`63606361 The event type, always `session.input_audio.unmuted`.63626363 - `"session.input_audio.unmuted"`63646365- `client_event_id: optional string`63666367 The event_id of the client command associated with this server event, when supplied.63686369#### Example63706371```json6372{6373 "type": "session.input_audio.unmuted",6374 "event_id": "evt_unmuted_001",6375 "client_event_id": "evt_unmute_001"6376}6377```63786379<a id="session.instructions.appended"></a>63806381### session.instructions.appended63826383Returned when a session.instructions.append command is accepted into the Live session timeline. Acknowledges the appended instructions without guaranteeing that the model has acted on them.63846385#### Schema63866387Schema name: `LiveInstructionsAppended`63886389- `end_ms: number`63906391 The end of this event on the Live session timeline, in milliseconds from the beginning of the session. For appended context, this can equal start_ms.63926393- `event_id: string`63946395 The unique ID of the Live server event.63966397- `start_ms: number`63986399 The start of this event on the Live session timeline, in milliseconds from the beginning of the session.64006401- `type: "session.instructions.appended"`64026403 The event type, always `session.instructions.appended`.64046405 - `"session.instructions.appended"`64066407- `client_event_id: optional string`64086409 The event_id of the client command associated with this server event, when supplied.64106411#### Example64126413```json6414{6415 "type": "session.instructions.appended",6416 "event_id": "evt_instructions_002",6417 "client_event_id": "evt_instructions_001",6418 "start_ms": 1200,6419 "end_ms": 14006420}6421```64226423<a id="session.thinking.appended"></a>64246425### session.thinking.appended64266427Returned when a session.thinking.append command is accepted into the Live session timeline. Acknowledges the added reasoning context without guaranteeing any spoken output.64286429#### Schema64306431Schema name: `LiveThinkingAppended`64326433- `end_ms: number`64346435 The end of this event on the Live session timeline, in milliseconds from the beginning of the session. For appended context, this can equal start_ms.64366437- `event_id: string`64386439 The unique ID of the Live server event.64406441- `start_ms: number`64426443 The start of this event on the Live session timeline, in milliseconds from the beginning of the session.64446445- `type: "session.thinking.appended"`64466447 The event type, always `session.thinking.appended`.64486449 - `"session.thinking.appended"`64506451- `client_event_id: optional string`64526453 The event_id of the client command associated with this server event, when supplied.64546455#### Example64566457```json6458{6459 "type": "session.thinking.appended",6460 "event_id": "evt_thinking_002",6461 "client_event_id": "evt_thinking_001",6462 "start_ms": 4600,6463 "end_ms": 48006464}6465```64666467<a id="session.commentary.appended"></a>64686469### session.commentary.appended64706471Returned when a session.commentary.append command is accepted into the Live session timeline. Acknowledges the added commentary without guaranteeing exact wording or completed audio playback.64726473#### Schema64746475Schema name: `LiveCommentaryAppended`64766477- `end_ms: number`64786479 The end of this event on the Live session timeline, in milliseconds from the beginning of the session. For appended context, this can equal start_ms.64806481- `event_id: string`64826483 The unique ID of the Live server event.64846485- `start_ms: number`64866487 The start of this event on the Live session timeline, in milliseconds from the beginning of the session.64886489- `type: "session.commentary.appended"`64906491 The event type, always `session.commentary.appended`.64926493 - `"session.commentary.appended"`64946495- `client_event_id: optional string`64966497 The event_id of the client command associated with this server event, when supplied.64986499#### Example65006501```json6502{6503 "type": "session.commentary.appended",6504 "event_id": "evt_commentary_002",6505 "client_event_id": "evt_commentary_001",6506 "start_ms": 5200,6507 "end_ms": 54006508}6509```65106511<a id="session.output_audio.delta"></a>65126513### session.output_audio.delta65146515An audio chunk generated by the Live model. Decode and play primary WebSocket chunks in delivery order using the configured session audio format. Sideband connections receive reflected output audio with timestamps.65166517#### Schema65186519Schema name: `LiveOutputAudioDelta`65206521- `delta: string`65226523 Base64-encoded raw audio. Primary WebSocket events use the session's configured format; reflected sideband events use mono PCM16LE at 24 kHz.65246525- `type: "session.output_audio.delta"`65266527 The event type, always `session.output_audio.delta`.65286529 - `"session.output_audio.delta"`65306531- `end_ms: optional number`65326533 Exclusive session-relative end in milliseconds. Required on reflected sideband events; omitted on the primary WebSocket. Dropped output frames leave gaps between reflected ranges.65346535- `start_ms: optional number`65366537 Inclusive session-relative start in milliseconds. Required on reflected sideband events; omitted on the primary WebSocket.65386539#### Example65406541```json6542{6543 "type": "session.output_audio.delta",6544 "delta": "AACAAIAAAIAAAP9/AIAAgA==",6545 "start_ms": 1000,6546 "end_ms": 12006547}6548```65496550<a id="session.input_transcript.delta"></a>65516552### session.input_transcript.delta65536554A transcript fragment for user input audio in the Live session. Accumulate fragments in delivery order; these events do not define complete turns or include a transcript-done event.65556556#### Schema65576558Schema name: `LiveInputTranscriptDelta`65596560- `delta: string`65616562 The transcript text fragment for the audio in this time range. Append fragments in delivery order to build the transcript.65636564- `end_ms: number`65656566 The end of this event on the Live session timeline, in milliseconds from the beginning of the session. For appended context, this can equal start_ms.65676568- `event_id: string`65696570 The unique ID of the Live server event.65716572- `start_ms: number`65736574 The start of this event on the Live session timeline, in milliseconds from the beginning of the session.65756576- `type: "session.input_transcript.delta"`65776578 The event type, always `session.input_transcript.delta`.65796580 - `"session.input_transcript.delta"`65816582- `client_event_id: optional string`65836584 The event_id of the client command associated with this server event, when supplied.65856586#### Example65876588```json6589{6590 "type": "session.input_transcript.delta",6591 "event_id": "evt_input_transcript_001",6592 "delta": "A table for two at seven, please.",6593 "start_ms": 1600,6594 "end_ms": 34006595}6596```65976598<a id="session.output_transcript.delta"></a>65996600### session.output_transcript.delta66016602A transcript fragment for assistant output audio in the Live session. Accumulate fragments in delivery order; these events do not define complete turns or include a transcript-done event.66036604#### Schema66056606Schema name: `LiveOutputTranscriptDelta`66076608- `delta: string`66096610 The transcript text fragment for the audio in this time range. Append fragments in delivery order to build the transcript.66116612- `end_ms: number`66136614 The end of this event on the Live session timeline, in milliseconds from the beginning of the session. For appended context, this can equal start_ms.66156616- `event_id: string`66176618 The unique ID of the Live server event.66196620- `start_ms: number`66216622 The start of this event on the Live session timeline, in milliseconds from the beginning of the session.66236624- `type: "session.output_transcript.delta"`66256626 The event type, always `session.output_transcript.delta`.66276628 - `"session.output_transcript.delta"`66296630- `client_event_id: optional string`66316632 The event_id of the client command associated with this server event, when supplied.66336634#### Example66356636```json6637{6638 "type": "session.output_transcript.delta",6639 "event_id": "evt_output_transcript_001",6640 "delta": "Would you like me to reserve that table?",6641 "start_ms": 5400,6642 "end_ms": 72006643}6644```66456646<a id="session.delegation.created"></a>66476648### session.delegation.created66496650Returned when the Live model delegates work to your application or a Responses backend. Contains delegation metadata and the position on the session timeline where the work was delegated.66516652#### Schema66536654Schema name: `LiveDelegationCreated`66556656- `delegation: object { id, target, type, response_id }`66576658 The delegated work identifier and destination. This object contains metadata, not the task text.66596660 - `id: string`66616662 The unique ID of the delegation. Use this as delegation_id when replying to client-owned work or correlating Responses events.66636664 - `target: "client" or "responses"`66656666 Where the Live model delegated the work: `client` for your application, or `responses` for the configured Responses backend.66676668 - `"client" or "responses"`66696670 Where the Live model delegated the work: `client` for your application, or `responses` for the configured Responses backend.66716672 - `"client"`66736674 - `"responses"`66756676 - `type: "delegation"`66776678 The object type, always `delegation`.66796680 - `"delegation"`66816682 - `response_id: optional string`66836684 The ID of the Responses API response associated with a Responses delegation. Omitted for client delegations.66856686- `event_id: string`66876688 The unique ID of the Live server event.66896690- `offset_ms: number`66916692 The position on the Live session timeline where the delegation was created, in milliseconds from the beginning of the session.66936694- `type: "session.delegation.created"`66956696 The event type, always `session.delegation.created`.66976698 - `"session.delegation.created"`66996700- `client_event_id: optional string`67016702 The event_id of the client command associated with this server event, when supplied.67036704#### Example67056706```json6707{6708 "type": "session.delegation.created",6709 "event_id": "evt_delegation_001",6710 "offset_ms": 3600,6711 "delegation": {6712 "id": "del_abc123",6713 "type": "delegation",6714 "target": "client"6715 }6716}6717```67186719<a id="response.event"></a>67206721### response.event67226723A streaming Responses API event from a backend delegated to by the Live session. Use the outer delegation_id to associate the nested stream with its Live delegation.67246725#### Schema67266727Schema name: `LiveResponseEvent`67286729- `event: map[unknown]`67306731 The nested Responses streaming event. Dispatch on its type field. Response lifecycle snapshots omit input and clear instructions, tools, and output to keep messages small; consume granular output events for the generated content.67326733- `event_id: string`67346735 The unique ID of the Live server event.67366737- `type: "response.event"`67386739 The event type, always `response.event`.67406741 - `"response.event"`67426743- `client_event_id: optional string`67446745 The event_id of the client command associated with this server event, when supplied.67466747- `delegation_id: optional string or null`67486749 The Live delegation associated with the nested Responses event. May be null or omitted when the event cannot be correlated with a delegation.67506751#### Example67526753```json6754{6755 "type": "response.event",6756 "event_id": "evt_response_002",6757 "delegation_id": "del_responses123",6758 "event": {6759 "type": "response.output_text.delta",6760 "item_id": "msg_abc123",6761 "output_index": 0,6762 "content_index": 0,6763 "delta": "An outdoor table is available at 7 PM.",6764 "sequence_number": 3,6765 "logprobs": []6766 }6767}6768```67696770<a id="session.usage.updated"></a>67716772### session.usage.updated67736774Reports cumulative Live audio usage and, when available, the most recent context-window usage. Delegated Responses token usage is reported separately in response.event events.67756776#### Schema67776778Schema name: `LiveSessionUsageUpdated`67796780- `event_id: string`67816782 The unique ID of the Live server event.67836784- `type: "session.usage.updated"`67856786 The event type, always `session.usage.updated`.67876788 - `"session.usage.updated"`67896790- `usage: SessionUsage`67916792 The cumulative Live audio usage so far.67936794 - `seconds: number`67956796 The cumulative Live audio duration in seconds. Do not sum this value across usage events.67976798- `client_event_id: optional string`67996800 The event_id of the client command associated with this server event, when supplied.68016802- `context_window: optional object { usage_ratio }`68036804 The latest measured Live context-window usage. Omitted when the context limit is unknown.68056806 - `usage_ratio: number`68076808 The latest active context token count divided by the Live model context limit. Can decrease after compaction and may lag between measured audio frames.68096810#### Example68116812```json6813{6814 "type": "session.usage.updated",6815 "event_id": "evt_usage_001",6816 "usage": {6817 "seconds": 32.56818 },6819 "context_window": {6820 "usage_ratio": 0.126821 }6822}6823```68246825<a id="session.closed"></a>68266827### session.closed68286829Returned after the Live session finishes finalizing, with the close reason, final session snapshot, and cumulative audio usage. A connection closing without this event does not confirm successful finalization.68306831#### Schema68326833Schema name: `LiveSessionClosed`68346835- `event_id: string`68366837 The unique ID of the Live server event.68386839- `reason: "close_requested" or "expired" or "content" or 2 more`68406841 Why the Live session ended: `close_requested` for an application close or hangup request, `expired` for the session duration limit, `content` for a safety filter, `remote_hangup` for a graceful remote disconnect, or `connection_lost` for an unexpected primary or upstream disconnection.68426843 - `"close_requested" or "expired" or "content" or 2 more`68446845 Why the Live session ended: `close_requested` for an application close or hangup request, `expired` for the session duration limit, `content` for a safety filter, `remote_hangup` for a graceful remote disconnect, or `connection_lost` for an unexpected primary or upstream disconnection.68466847 - `"close_requested"`68486849 - `"expired"`68506851 - `"content"`68526853 - `"remote_hangup"`68546855 - `"connection_lost"`68566857- `session: SessionResource`68586859 The resolved Live session configuration and server-assigned session metadata.68606861 - `id: string`68626863 The unique ID of the Live session. Use this ID for sideband connections, forking, and recording download.68646865 - `expires_at: number`68666867 The Unix timestamp, in seconds, at which the Live session expires.68686869 - `model: string or "gpt-live-1"`68706871 The Live model. Required in the session configuration for every transport; do not pass it as a URL query parameter.68726873 - `string`68746875 - `"gpt-live-1"`68766877 The Live model. Required in the session configuration for every transport; do not pass it as a URL query parameter.68786879 - `"gpt-live-1"`68806881 - `status: "active"`68826883 The status of the session snapshot. Always `active`, including the final snapshot in session.closed; use the event type to determine that the session has closed.68846885 - `"active"`68866887 - `audio: optional object { format, output }`68886889 Startup audio configuration. Only primary WebSockets accept audio.format; WebRTC and SIP negotiate their media format. Voice and format are immutable after startup.68906891 - `format: optional AudioFormat`68926893 Audio encoding and sample rate for audio sent and received over a Live WebSocket connection. WebRTC and SIP negotiate their media format separately.68946895 - `AudioPCM object { rate, type }`68966897 Raw, mono 16-bit little-endian PCM audio for a Live WebSocket connection.68986899 - `rate: 16000 or 24000`69006901 Audio sample rate in hertz. Live WebSocket PCM audio supports 16000 or 24000 Hz.69026903 - `16000`69046905 - `24000`69066907 - `type: "audio/pcm"`69086909 The audio encoding. Always `audio/pcm`.69106911 - `"audio/pcm"`69126913 - `AudioPCMU object { rate, type }`69146915 Raw, mono G.711 μ-law audio for a Live WebSocket connection.69166917 - `rate: number`69186919 Audio sample rate in hertz. G.711 audio uses 8000 Hz.69206921 - `type: "audio/pcmu"`69226923 The audio encoding. Always `audio/pcmu`.69246925 - `"audio/pcmu"`69266927 - `AudioPCMA object { rate, type }`69286929 Raw, mono G.711 A-law audio for a Live WebSocket connection.69306931 - `rate: number`69326933 Audio sample rate in hertz. G.711 audio uses 8000 Hz.69346935 - `type: "audio/pcma"`69366937 The audio encoding. Always `audio/pcma`.69386939 - `"audio/pcma"`69406941 - `output: optional object { voice }`69426943 The voice used for speech generated by the Live model.69446945 - `voice: optional string or "alloy" or "ash" or "ballad" or 19 more or CustomVoice`69466947 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.69486949 - `string`69506951 - `"alloy" or "ash" or "ballad" or 19 more`69526953 The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.69546955 - `"alloy"`69566957 - `"ash"`69586959 - `"ballad"`69606961 - `"beacon"`69626963 - `"bossa"`69646965 - `"cedar"`69666967 - `"cinder"`69686969 - `"coral"`69706971 - `"delta"`69726973 - `"echo"`69746975 - `"gleam"`69766977 - `"marin"`69786979 - `"meridian"`69806981 - `"quartz"`69826983 - `"ripple"`69846985 - `"sage"`69866987 - `"shimmer"`69886989 - `"stone"`69906991 - `"tempo"`69926993 - `"verse"`69946995 - `"vesper"`69966997 - `"willow"`69986999 - `CustomVoice object { id }`70007001 - `id: string`70027003 - `client: optional ClientConfig`70047005 Startup-only capabilities for an untrusted frontend attached to a unified WebRTC session. Trusted sideband connections are unaffected.70067007 - `data_channel: DataChannelConfig`70087009 Client and server event permissions for the WebRTC frontend data channel.70107011 - `allowed_client_events: optional "all" or array of string`70127013 Client event types that the frontend data channel may send. Use 'all' to allow every client event; an empty array allows none. Omission preserves the existing allow-all behavior.70147015 - `"all"`70167017 - `"all"`70187019 - `array of string`70207021 - `allowed_server_events: optional "all" or array of ServerEventSelector`70227023 Server events that may be sent to the frontend data channel. Use 'all' to allow every server event; an empty array allows none. Omission preserves the existing allow-all behavior. Responses events use an object with type 'response.event' and a response_event selector.70247025 - `"all"`70267027 - `"all"`70287029 - `array of ServerEventSelector`70307031 - `type: string`70327033 The outer Live server event type. Use 'response.event' for Responses events.70347035 - `response_event: optional string`70367037 The nested Responses event type. Required when type is 'response.event'; forbidden for other event types.70387039 - `delegation: optional ClientDelegation or object { responses, type } or null`70407041 Who handles tasks delegated by the Live model. Omitted or null selects your application; use `responses` to let the API manage a Responses backend.70427043 - `ClientDelegation object { type }`70447045 Delegate tasks to your application. The Live session emits delegation events that your backend handles.70467047 - `type: "client"`70487049 The delegation owner. Always `client` for tasks handled by your application.70507051 - `"client"`70527053 - `Responses object { responses, type }`70547055 Delegate tasks to a Responses model managed by the Live session.70567057 - `responses: ResponsesDelegationConfig`70587059 Backend model, prompt, and tools used when the Live session delegates a task to Responses.70607061 - `model: string`70627063 The model used for server-owned Responses delegations.70647065 - `instructions: optional string or null`70667067 Instructions for the delegated Responses model, separate from Live instructions. See [backend prompting](https://developers.openai.com/api/docs/guides/live-delegation#start-with-your-existing-backend-prompt).70687069 - `max_output_tokens: optional number or null`70707071 Maximum number of output tokens for each delegated response.70727073 - `parallel_tool_calls: optional boolean or null`70747075 Whether the delegated Responses model may request multiple tool calls in a single response.70767077 - `reasoning: optional object { effort, summary } or null`70787079 Reasoning settings passed to each delegated Responses request.70807081 - `effort: optional "none" or "minimal" or "low" or 3 more or null`70827083 How much reasoning effort the delegated Responses model should use. Supported values depend on the backend model.70847085 - `"none"`70867087 - `"minimal"`70887089 - `"low"`70907091 - `"medium"`70927093 - `"high"`70947095 - `"xhigh"`70967097 - `summary: optional "concise" or "detailed" or "auto" or null`70987099 The reasoning summary to request from the delegated Responses model, when supported.71007101 - `"concise"`71027103 - `"detailed"`71047105 - `"auto"`71067107 - `service_tier: optional "auto" or "default" or "fast_tier_temp_pilot" or 3 more or null`71087109 Service tier for delegated Responses requests.71107111 - `"auto"`71127113 - `"default"`71147115 - `"fast_tier_temp_pilot"`71167117 - `"flex"`71187119 - `"priority"`71207121 - `"ultrafast"`71227123 - `text: optional object { verbosity } or null`71247125 Text generation settings passed to each delegated Responses request.71267127 - `verbosity: optional "low" or "medium" or "high" or null`71287129 The amount of detail in text generated by the Responses backend. This does not configure the Live model’s spoken delivery.71307131 - `"low"`71327133 - `"medium"`71347135 - `"high"`71367137 - `tool_choice: optional "auto" or "none" or "required" or object { name, type } or object { name, server_label, type }`71387139 Controls which tool the Responses backend uses when handling a task delegated by the Live model.71407141 - `LiveToolChoiceEnum = "auto" or "none" or "required"`71427143 - `"auto"`71447145 - `"none"`71467147 - `"required"`71487149 - `LiveFunctionToolChoiceParam object { name, type }`71507151 - `name: string`71527153 - `type: "function"`71547155 - `"function"`71567157 - `LiveMCPToolChoiceParam object { name, server_label, type }`71587159 - `name: string`71607161 - `server_label: string`71627163 - `type: "mcp"`71647165 - `"mcp"`71667167 - `tools: optional array of FunctionTool or object { type }`71687169 Tools available to the Responses backend while it handles tasks delegated by the Live model.71707171 - `FunctionTool object { name, type, description, 2 more }`71727173 A function tool available to the Responses backend when the Live model delegates a task.71747175 - `name: string`71767177 The name the delegated Responses model uses when calling this function.71787179 - `type: "function"`71807181 The tool type. Always `function`.71827183 - `"function"`71847185 - `description: optional string or null`71867187 What the function does and when the delegated Responses model should call it.71887189 - `parameters: optional map[unknown] or null`71907191 A JSON Schema object describing the arguments accepted by the function.71927193 - `strict: optional boolean or null`71947195 Whether the delegated Responses model must follow the function’s parameter schema exactly.71967197 - `WebSearch object { type }`71987199 A web search tool available to the Live session’s Responses backend.72007201 - `type: "web_search"`72027203 The tool type. Always `web_search`.72047205 - `"web_search"`72067207 - `type: "responses"`72087209 The delegation owner. Always `responses` for tasks handled by the Responses API.72107211 - `"responses"`72127213 - `input: optional array of InitialItem`72147215 Ordered text-only history supplied before startup. Supports developer, user, and assistant messages with one text part each; at most 128 messages and 8,192 rendered tokens in total.72167217 - `Developer object { content, role, id, 2 more }`72187219 A developer message included in the initial text history of a Live session.72207221 - `content: array of object { text, type }`72227223 The message content. Supply exactly one text part for the initial Live conversation history.72247225 - `text: string`72267227 The message text to include in the Live session’s initial conversation history.72287229 - `type: optional "input_text"`72307231 The text content type. Always `input_text`.72327233 - `"input_text"`72347235 - `role: "developer"`72367237 The author of this history message. Always `developer`.72387239 - `"developer"`72407241 - `id: optional string or null`72427243 An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.72447245 - `status: optional "incomplete" or "completed" or null`72467247 The supplied message’s status. Live uses its text as history and does not resume an incomplete message.72487249 - `"incomplete"`72507251 - `"completed"`72527253 - `type: optional "message"`72547255 The history item type. Always `message`.72567257 - `"message"`72587259 - `User object { content, role, id, 2 more }`72607261 A user message included in the initial text history of a Live session.72627263 - `content: array of object { text, type }`72647265 The message content. Supply exactly one text part for the initial Live conversation history.72667267 - `text: string`72687269 The message text to include in the Live session’s initial conversation history.72707271 - `type: optional "input_text"`72727273 The text content type. Always `input_text`.72747275 - `"input_text"`72767277 - `role: "user"`72787279 The author of this history message. Always `user`.72807281 - `"user"`72827283 - `id: optional string or null`72847285 An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.72867287 - `status: optional "incomplete" or "completed" or null`72887289 The supplied message’s status. Live uses its text as history and does not resume an incomplete message.72907291 - `"incomplete"`72927293 - `"completed"`72947295 - `type: optional "message"`72967297 The history item type. Always `message`.72987299 - `"message"`73007301 - `Assistant object { content, role, id, 2 more }`73027303 An assistant message included in the initial text history of a Live session.73047305 - `content: array of object { text, type } or object { text, type }`73067307 The message content. Supply exactly one text part for the initial Live conversation history.73087309 - `Text object { text, type }`73107311 Assistant text supplied as conversation history when starting a Live session.73127313 - `text: string`73147315 The message text to include in the Live session’s initial conversation history.73167317 - `type: optional "text"`73187319 The text content type. Always `text`.73207321 - `"text"`73227323 - `OutputText object { text, type }`73247325 Assistant output text supplied as conversation history when starting a Live session.73267327 - `text: string`73287329 The message text to include in the Live session’s initial conversation history.73307331 - `type: "output_text"`73327333 The text content type. Always `output_text`.73347335 - `"output_text"`73367337 - `role: "assistant"`73387339 The author of this history message. Always `assistant`.73407341 - `"assistant"`73427343 - `id: optional string or null`73447345 An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.73467347 - `status: optional "incomplete" or "completed" or null`73487349 The supplied message’s status. Live uses its text as history and does not resume an incomplete message.73507351 - `"incomplete"`73527353 - `"completed"`73547355 - `type: optional "message"`73567357 The history item type. Always `message`.73587359 - `"message"`73607361 - `instructions: optional string or null`73627363 Frontend instructions for voice, conversation, interruptions, and when to delegate. Start with the [Live prompting guide](https://developers.openai.com/api/docs/guides/live-prompting); put business rules and tool workflows in a separate [backend prompt](https://developers.openai.com/api/docs/guides/live-delegation#start-with-your-existing-backend-prompt). Limited to 16,384 client-supplied tokens. Omitted or blank instructions use server defaults. Immutable after startup.73647365 - `store: optional boolean`73667367 Whether to store the session for later forking and recording download. Defaults to false for new sessions.73687369- `type: "session.closed"`73707371 The event type, always `session.closed`.73727373 - `"session.closed"`73747375- `usage: SessionUsage`73767377 The final cumulative Live audio usage after session finalization.73787379 - `seconds: number`73807381 The cumulative Live audio duration in seconds. Do not sum this value across usage events.73827383- `client_event_id: optional string`73847385 The event_id of the client command associated with this server event, when supplied.73867387#### Example73887389```json7390{7391 "type": "session.closed",7392 "event_id": "evt_closed_001",7393 "client_event_id": "evt_close_001",7394 "reason": "close_requested",7395 "session": {7396 "id": "live_abc123",7397 "model": "gpt-live-1",7398 "status": "active",7399 "expires_at": 1788555600,7400 "instructions": "Help the caller plan a restaurant reservation. Confirm details before booking.",7401 "input": [],7402 "audio": {7403 "format": {7404 "type": "audio/pcm",7405 "rate": 240007406 },7407 "output": {7408 "voice": "marin"7409 }7410 },7411 "delegation": {7412 "type": "client"7413 }7414 },7415 "usage": {7416 "seconds": 45.87417 }7418}7419```74207421<a id="error"></a>74227423### error74247425Reports an error in the Live session, such as an invalid client command. Use error.client_event_id, when present, to identify the command that caused the error.74267427#### Schema74287429Schema name: `LiveErrorEvent`74307431- `error: Error`74327433 Details of the Live error and the client command that caused it, when known.74347435 - `code: string`74367437 A machine-readable code identifying the Live error, such as `unknown_parameter`.74387439 - `message: string`74407441 A human-readable explanation of the Live error.74427443 - `type: string`74447445 The category of error, such as `invalid_request_error` for an invalid Live client command.74467447 - `client_event_id: optional string`74487449 The event_id of the client command that caused the error, when supplied.74507451 - `param: optional string`74527453 The parameter that caused the error, when applicable, such as `session.voice`.74547455- `event_id: string`74567457 The unique ID of the Live server event.74587459- `type: "error"`74607461 The event type, always `error`.74627463 - `"error"`74647465- `client_event_id: optional string`74667467 The event_id of the client command associated with this server event, when supplied.74687469#### Example74707471```json7472{7473 "type": "error",7474 "event_id": "evt_error_001",7475 "error": {7476 "type": "invalid_request_error",7477 "code": "unknown_parameter",7478 "message": "Unknown parameter: 'session.voice'.",7479 "param": "session.voice",7480 "client_event_id": "evt_invalid_001"7481 }7482}7483```74847485<a id="info"></a>74867487### info74887489An informational notice about the Live session, such as the event permissions applied to a frontend data channel.74907491#### Schema74927493Schema name: `LiveInfoEvent`74947495- `code: string`74967497 A machine-readable code for the notice, such as `data_channel_permissions`.74987499- `event_id: string`75007501 The unique ID of the Live server event.75027503- `message: string`75047505 A human-readable explanation of the Live session notice.75067507- `type: "info"`75087509 The event type, always `info`.75107511 - `"info"`75127513- `client_event_id: optional string`75147515 The event_id of the client command associated with this server event, when supplied.75167517#### Example75187519```json7520{7521 "type": "info",7522 "event_id": "evt_info_001",7523 "code": "data_channel_permissions",7524 "message": "The frontend data channel is configured with restricted event permissions."7525}7526```75277528<a id="server-events-session.input_audio.append"></a>75297530### session.input_audio.append75317532Input audio received from the primary transport and reflected to a Live sideband connection before model-input muting.75337534#### Schema75357536Schema name: `LiveInputAudioAppend`75377538- `audio: string`75397540 Base64-encoded raw mono PCM16LE at 24 kHz received from the primary transport, reflected to the sideband before model-input muting. This server event uses the same audio key as the client command, but is not an acknowledgment of it.75417542- `type: "session.input_audio.append"`75437544 The event type, always `session.input_audio.append`.75457546 - `"session.input_audio.append"`75477548#### Example75497550```json7551{7552 "type": "session.input_audio.append",7553 "audio": "AACAAIAAAIAAAP9/AIAAgA=="7554}7555```75567557<a id="transport.dtmf.received"></a>75587559### transport.dtmf.received75607561A SIP DTMF keypress received from the caller. Delivered only to sideband observers.75627563#### Schema75647565Schema name: `LiveTransportDTMFReceived`75667567- `event: string`75687569- `event_id: string`75707571- `type: "transport.dtmf.received"`75727573 - `"transport.dtmf.received"`75747575#### Example75767577```json7578{7579 "type": "transport.dtmf.received",7580 "event_id": "event_dtmf_1",7581 "event": "5"7582}7583```75847585<a id="transport.dtmf.send"></a>75867587### transport.dtmf.send75887589A SIP DTMF keypress successfully sent by the hosted tool. Delivered only to sideband observers; this is not a client command.75907591#### Schema75927593Schema name: `LiveTransportDTMFSend`75947595- `event: string`75967597- `event_id: string`75987599- `type: "transport.dtmf.send"`76007601 - `"transport.dtmf.send"`76027603#### Example76047605```json7606{7607 "type": "transport.dtmf.send",7608 "event_id": "event_dtmf_2",7609 "event": "#"7610}7611```76127613<a id="transport.ringing"></a>76147615### transport.ringing76167617The outbound SIP provider leg is ringing or providing early media. Delivered only to sideband observers.76187619#### Schema76207621Schema name: `LiveTransportRinging`76227623- `event_id: string`76247625- `session_id: string`76267627 The canonical Live session ID.76287629- `type: "transport.ringing"`76307631 - `"transport.ringing"`76327633#### Example76347635```json7636{7637 "type": "transport.ringing",7638 "event_id": "event_call_1",7639 "session_id": "live_u0_123"7640}7641```76427643<a id="transport.answered"></a>76447645### transport.answered76467647The outbound SIP provider leg answered and media is established. Delivered only to sideband observers.76487649#### Schema76507651Schema name: `LiveTransportAnswered`76527653- `event_id: string`76547655- `session_id: string`76567657 The canonical Live session ID.76587659- `type: "transport.answered"`76607661 - `"transport.answered"`76627663#### Example76647665```json7666{7667 "type": "transport.answered",7668 "event_id": "event_call_2",7669 "session_id": "live_u0_123"7670}7671```76727673<a id="transport.failed"></a>76747675### transport.failed76767677An asynchronous outbound SIP setup failure. Delivered only to sideband observers.76787679#### Schema76807681Schema name: `LiveTransportFailed`76827683- `error: object { code, message, type, param }`76847685 - `code: string`76867687 The call setup failure code.76887689 - `message: string`76907691 - `type: "call_error"`76927693 - `"call_error"`76947695 - `param: optional string`76967697 The parameter related to the error, if any. Empty when no parameter applies.76987699- `event_id: string`77007701- `session_id: string`77027703 The canonical Live session ID.77047705- `type: "transport.failed"`77067707 - `"transport.failed"`77087709#### Example77107711```json7712{7713 "type": "transport.failed",7714 "event_id": "event_call_4",7715 "session_id": "live_u0_123",7716 "error": {7717 "type": "call_error",7718 "code": "provider_invite_failed",7719 "message": "provider rejected the call",7720 "param": ""7721 }7722}7723```7724