Repository Public
1# Primary 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.45Connect from your backend server with your OpenAI API key to start a Live session. Send and receive audio and control events on the same WebSocket connection.67WS `/v1/live/sessions`89## Connection1011`wss://api.openai.com/v1/live/sessions`1213Authenticate from your backend with your OpenAI API key in the `Authorization: Bearer $OPENAI_API_KEY` header. Keep the key on your server.1415No query parameters. After connecting, send session.start with your model and session configuration. Wait for session.started before sending audio.1617## Inputs1819Required once, immediately after connecting. Configure the session here, then send audio and other client events.2021### First message: session.start2223```json24{25 "type": "session.start",26 "event_id": "evt_start_001",27 "session": {28 "model": "gpt-live-1",29 "instructions": "Help the caller plan a restaurant reservation. Confirm details before booking.",30 "audio": {31 "format": {32 "type": "audio/pcm",33 "rate": 2400034 },35 "output": {36 "voice": "marin"37 }38 },39 "delegation": {40 "type": "client"41 }42 }43}44```4546[All client events](#client-events)4748## Outputs4950The server confirms the session has started. Audio, transcripts, and other server events follow as the session runs.5152### Session ready · excerpt: session.started5354```json55{56 "type": "session.started",57 "event_id": "event_started_1",58 "session": {59 "id": "live_123",60 "expires_at": 1788307200,61 "status": "active",62 "model": "gpt-live-1"63 }64}65```6667[All server events](#server-events)6869[Using WebRTC on the frontend? Attach a sideband WebSocket from your backend.](https://developers.openai.com/api/reference/resources/live/sideband-websocket)7071<a id="client-events"></a>7273## Client events7475<a id="session.start"></a>7677### session.start7879Start a Live session on a primary WebSocket. Send this event before other commands and wait for `session.started`.8081#### Schema8283Schema name: `LiveSessionStartEvent`8485- `session: SessionConfig`8687 Initial configuration for a primary WebSocket. Send session.start first and wait for session.started before application commands. WebRTC creation already starts the session; do not send this event again on its data channel.8889 - `model: string or "gpt-live-1"`9091 The Live model. Required in the session configuration for every transport; do not pass it as a URL query parameter.9293 - `string`9495 - `"gpt-live-1"`9697 The Live model. Required in the session configuration for every transport; do not pass it as a URL query parameter.9899 - `"gpt-live-1"`100101 - `audio: optional object { format, output }`102103 Startup audio configuration. Only primary WebSockets accept audio.format; WebRTC and SIP negotiate their media format. Voice and format are immutable after startup.104105 - `format: optional AudioFormat`106107 Audio encoding and sample rate for audio sent and received over a Live WebSocket connection. WebRTC and SIP negotiate their media format separately.108109 - `AudioPCM object { rate, type }`110111 Raw, mono 16-bit little-endian PCM audio for a Live WebSocket connection.112113 - `rate: 16000 or 24000`114115 Audio sample rate in hertz. Live WebSocket PCM audio supports 16000 or 24000 Hz.116117 - `16000`118119 - `24000`120121 - `type: "audio/pcm"`122123 The audio encoding. Always `audio/pcm`.124125 - `"audio/pcm"`126127 - `AudioPCMU object { rate, type }`128129 Raw, mono G.711 μ-law audio for a Live WebSocket connection.130131 - `rate: number`132133 Audio sample rate in hertz. G.711 audio uses 8000 Hz.134135 - `type: "audio/pcmu"`136137 The audio encoding. Always `audio/pcmu`.138139 - `"audio/pcmu"`140141 - `AudioPCMA object { rate, type }`142143 Raw, mono G.711 A-law audio for a Live WebSocket connection.144145 - `rate: number`146147 Audio sample rate in hertz. G.711 audio uses 8000 Hz.148149 - `type: "audio/pcma"`150151 The audio encoding. Always `audio/pcma`.152153 - `"audio/pcma"`154155 - `output: optional object { voice }`156157 The voice used for speech generated by the Live model.158159 - `voice: optional string or "alloy" or "ash" or "ballad" or 19 more or CustomVoice`160161 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.162163 - `string`164165 - `"alloy" or "ash" or "ballad" or 19 more`166167 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.168169 - `"alloy"`170171 - `"ash"`172173 - `"ballad"`174175 - `"beacon"`176177 - `"bossa"`178179 - `"cedar"`180181 - `"cinder"`182183 - `"coral"`184185 - `"delta"`186187 - `"echo"`188189 - `"gleam"`190191 - `"marin"`192193 - `"meridian"`194195 - `"quartz"`196197 - `"ripple"`198199 - `"sage"`200201 - `"shimmer"`202203 - `"stone"`204205 - `"tempo"`206207 - `"verse"`208209 - `"vesper"`210211 - `"willow"`212213 - `CustomVoice object { id }`214215 - `id: string`216217 - `client: optional ClientConfig`218219 Startup-only capabilities for an untrusted frontend attached to a unified WebRTC session. Trusted sideband connections are unaffected.220221 - `data_channel: DataChannelConfig`222223 Client and server event permissions for the WebRTC frontend data channel.224225 - `allowed_client_events: optional "all" or array of string`226227 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.228229 - `"all"`230231 - `"all"`232233 - `array of string`234235 - `allowed_server_events: optional "all" or array of ServerEventSelector`236237 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.238239 - `"all"`240241 - `"all"`242243 - `array of ServerEventSelector`244245 - `type: string`246247 The outer Live server event type. Use 'response.event' for Responses events.248249 - `response_event: optional string`250251 The nested Responses event type. Required when type is 'response.event'; forbidden for other event types.252253 - `delegation: optional ClientDelegation or object { responses, type } or null`254255 Who handles tasks delegated by the Live model. Omitted or null selects your application; use `responses` to let the API manage a Responses backend.256257 - `ClientDelegation object { type }`258259 Delegate tasks to your application. The Live session emits delegation events that your backend handles.260261 - `type: "client"`262263 The delegation owner. Always `client` for tasks handled by your application.264265 - `"client"`266267 - `Responses object { responses, type }`268269 Delegate tasks to a Responses model managed by the Live session.270271 - `responses: ResponsesDelegationConfig`272273 Backend model, prompt, and tools used when the Live session delegates a task to Responses.274275 - `model: string`276277 The model used for server-owned Responses delegations.278279 - `instructions: optional string or null`280281 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).282283 - `max_output_tokens: optional number or null`284285 Maximum number of output tokens for each delegated response.286287 - `parallel_tool_calls: optional boolean or null`288289 Whether the delegated Responses model may request multiple tool calls in a single response.290291 - `reasoning: optional object { effort, summary } or null`292293 Reasoning settings passed to each delegated Responses request.294295 - `effort: optional "none" or "minimal" or "low" or 3 more or null`296297 How much reasoning effort the delegated Responses model should use. Supported values depend on the backend model.298299 - `"none"`300301 - `"minimal"`302303 - `"low"`304305 - `"medium"`306307 - `"high"`308309 - `"xhigh"`310311 - `summary: optional "concise" or "detailed" or "auto" or null`312313 The reasoning summary to request from the delegated Responses model, when supported.314315 - `"concise"`316317 - `"detailed"`318319 - `"auto"`320321 - `service_tier: optional "auto" or "default" or "fast_tier_temp_pilot" or 3 more or null`322323 Service tier for delegated Responses requests.324325 - `"auto"`326327 - `"default"`328329 - `"fast_tier_temp_pilot"`330331 - `"flex"`332333 - `"priority"`334335 - `"ultrafast"`336337 - `text: optional object { verbosity } or null`338339 Text generation settings passed to each delegated Responses request.340341 - `verbosity: optional "low" or "medium" or "high" or null`342343 The amount of detail in text generated by the Responses backend. This does not configure the Live model’s spoken delivery.344345 - `"low"`346347 - `"medium"`348349 - `"high"`350351 - `tool_choice: optional "auto" or "none" or "required" or object { name, type } or object { name, server_label, type }`352353 Controls which tool the Responses backend uses when handling a task delegated by the Live model.354355 - `LiveToolChoiceEnum = "auto" or "none" or "required"`356357 - `"auto"`358359 - `"none"`360361 - `"required"`362363 - `LiveFunctionToolChoiceParam object { name, type }`364365 - `name: string`366367 - `type: "function"`368369 - `"function"`370371 - `LiveMCPToolChoiceParam object { name, server_label, type }`372373 - `name: string`374375 - `server_label: string`376377 - `type: "mcp"`378379 - `"mcp"`380381 - `tools: optional array of FunctionTool or object { type }`382383 Tools available to the Responses backend while it handles tasks delegated by the Live model.384385 - `FunctionTool object { name, type, description, 2 more }`386387 A function tool available to the Responses backend when the Live model delegates a task.388389 - `name: string`390391 The name the delegated Responses model uses when calling this function.392393 - `type: "function"`394395 The tool type. Always `function`.396397 - `"function"`398399 - `description: optional string or null`400401 What the function does and when the delegated Responses model should call it.402403 - `parameters: optional map[unknown] or null`404405 A JSON Schema object describing the arguments accepted by the function.406407 - `strict: optional boolean or null`408409 Whether the delegated Responses model must follow the function’s parameter schema exactly.410411 - `WebSearch object { type }`412413 A web search tool available to the Live session’s Responses backend.414415 - `type: "web_search"`416417 The tool type. Always `web_search`.418419 - `"web_search"`420421 - `type: "responses"`422423 The delegation owner. Always `responses` for tasks handled by the Responses API.424425 - `"responses"`426427 - `input: optional array of InitialItem`428429 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.430431 - `Developer object { content, role, id, 2 more }`432433 A developer message included in the initial text history of a Live session.434435 - `content: array of object { text, type }`436437 The message content. Supply exactly one text part for the initial Live conversation history.438439 - `text: string`440441 The message text to include in the Live session’s initial conversation history.442443 - `type: optional "input_text"`444445 The text content type. Always `input_text`.446447 - `"input_text"`448449 - `role: "developer"`450451 The author of this history message. Always `developer`.452453 - `"developer"`454455 - `id: optional string or null`456457 An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.458459 - `status: optional "incomplete" or "completed" or null`460461 The supplied message’s status. Live uses its text as history and does not resume an incomplete message.462463 - `"incomplete"`464465 - `"completed"`466467 - `type: optional "message"`468469 The history item type. Always `message`.470471 - `"message"`472473 - `User object { content, role, id, 2 more }`474475 A user message included in the initial text history of a Live session.476477 - `content: array of object { text, type }`478479 The message content. Supply exactly one text part for the initial Live conversation history.480481 - `text: string`482483 The message text to include in the Live session’s initial conversation history.484485 - `type: optional "input_text"`486487 The text content type. Always `input_text`.488489 - `"input_text"`490491 - `role: "user"`492493 The author of this history message. Always `user`.494495 - `"user"`496497 - `id: optional string or null`498499 An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.500501 - `status: optional "incomplete" or "completed" or null`502503 The supplied message’s status. Live uses its text as history and does not resume an incomplete message.504505 - `"incomplete"`506507 - `"completed"`508509 - `type: optional "message"`510511 The history item type. Always `message`.512513 - `"message"`514515 - `Assistant object { content, role, id, 2 more }`516517 An assistant message included in the initial text history of a Live session.518519 - `content: array of object { text, type } or object { text, type }`520521 The message content. Supply exactly one text part for the initial Live conversation history.522523 - `Text object { text, type }`524525 Assistant text supplied as conversation history when starting a Live session.526527 - `text: string`528529 The message text to include in the Live session’s initial conversation history.530531 - `type: optional "text"`532533 The text content type. Always `text`.534535 - `"text"`536537 - `OutputText object { text, type }`538539 Assistant output text supplied as conversation history when starting a Live session.540541 - `text: string`542543 The message text to include in the Live session’s initial conversation history.544545 - `type: "output_text"`546547 The text content type. Always `output_text`.548549 - `"output_text"`550551 - `role: "assistant"`552553 The author of this history message. Always `assistant`.554555 - `"assistant"`556557 - `id: optional string or null`558559 An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.560561 - `status: optional "incomplete" or "completed" or null`562563 The supplied message’s status. Live uses its text as history and does not resume an incomplete message.564565 - `"incomplete"`566567 - `"completed"`568569 - `type: optional "message"`570571 The history item type. Always `message`.572573 - `"message"`574575 - `instructions: optional string or null`576577 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.578579 - `store: optional boolean`580581 Whether to store the session for later forking and recording download. Defaults to false for new sessions.582583- `type: "session.start"`584585 The Live client event type. Always `session.start`.586587 - `"session.start"`588589- `event_id: optional string or null`590591 Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.592593#### Example594595```json596{597 "type": "session.start",598 "event_id": "evt_start_001",599 "session": {600 "model": "gpt-live-1",601 "instructions": "Help the caller plan a restaurant reservation. Confirm details before booking.",602 "audio": {603 "format": {604 "type": "audio/pcm",605 "rate": 24000606 },607 "output": {608 "voice": "marin"609 }610 },611 "delegation": {612 "type": "client"613 }614 }615}616```617618<a id="session.update"></a>619620### session.update621622Update the delegation settings of an active Live session. The server acknowledges accepted changes with `session.updated`.623624#### Schema625626Schema name: `LiveSessionUpdateParam`627628- `session: SessionUpdateConfig`629630 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.631632 - `delegation: optional ClientDelegation or object { type, responses } or null`633634 Delegation settings to update. The delegation type must match the current session; omitted settings retain their values.635636 - `ClientDelegation object { type }`637638 Delegate tasks to your application. The Live session emits delegation events that your backend handles.639640 - `type: "client"`641642 The delegation owner. Always `client` for tasks handled by your application.643644 - `"client"`645646 - `Responses object { type, responses }`647648 Update the Responses backend for an existing Live session without changing delegation ownership.649650 - `type: "responses"`651652 The delegation owner. Always `responses` for tasks handled by the Responses API.653654 - `"responses"`655656 - `responses: optional ResponsesDelegationUpdateConfig`657658 Responses backend settings to update. Omitted settings keep their existing values.659660 - `instructions: optional string or null`661662 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).663664 - `max_output_tokens: optional number or null`665666 Maximum number of output tokens for each delegated response.667668 - `model: optional string`669670 The Responses backend model to use for subsequent delegated requests. Omit to keep the current backend model.671672 - `parallel_tool_calls: optional boolean or null`673674 Whether the delegated Responses model may request multiple tool calls in a single response.675676 - `reasoning: optional object { effort, summary } or null`677678 Reasoning settings passed to each delegated Responses request.679680 - `effort: optional "none" or "minimal" or "low" or 3 more or null`681682 How much reasoning effort the delegated Responses model should use. Supported values depend on the backend model.683684 - `"none"`685686 - `"minimal"`687688 - `"low"`689690 - `"medium"`691692 - `"high"`693694 - `"xhigh"`695696 - `summary: optional "concise" or "detailed" or "auto" or null`697698 The reasoning summary to request from the delegated Responses model, when supported.699700 - `"concise"`701702 - `"detailed"`703704 - `"auto"`705706 - `service_tier: optional "auto" or "default" or "fast_tier_temp_pilot" or 3 more or null`707708 Service tier for delegated Responses requests.709710 - `"auto"`711712 - `"default"`713714 - `"fast_tier_temp_pilot"`715716 - `"flex"`717718 - `"priority"`719720 - `"ultrafast"`721722 - `text: optional object { verbosity } or null`723724 Text generation settings passed to each delegated Responses request.725726 - `verbosity: optional "low" or "medium" or "high" or null`727728 The amount of detail in text generated by the Responses backend. This does not configure the Live model’s spoken delivery.729730 - `"low"`731732 - `"medium"`733734 - `"high"`735736 - `tool_choice: optional "auto" or "none" or "required" or object { name, type } or object { name, server_label, type }`737738 Controls which tool the Responses backend uses when handling a task delegated by the Live model.739740 - `LiveToolChoiceEnum = "auto" or "none" or "required"`741742 - `"auto"`743744 - `"none"`745746 - `"required"`747748 - `LiveFunctionToolChoiceParam object { name, type }`749750 - `name: string`751752 - `type: "function"`753754 - `"function"`755756 - `LiveMCPToolChoiceParam object { name, server_label, type }`757758 - `name: string`759760 - `server_label: string`761762 - `type: "mcp"`763764 - `"mcp"`765766 - `tools: optional array of FunctionTool or object { type }`767768 Tools available to the Responses backend while it handles tasks delegated by the Live model.769770 - `FunctionTool object { name, type, description, 2 more }`771772 A function tool available to the Responses backend when the Live model delegates a task.773774 - `name: string`775776 The name the delegated Responses model uses when calling this function.777778 - `type: "function"`779780 The tool type. Always `function`.781782 - `"function"`783784 - `description: optional string or null`785786 What the function does and when the delegated Responses model should call it.787788 - `parameters: optional map[unknown] or null`789790 A JSON Schema object describing the arguments accepted by the function.791792 - `strict: optional boolean or null`793794 Whether the delegated Responses model must follow the function’s parameter schema exactly.795796 - `WebSearch object { type }`797798 A web search tool available to the Live session’s Responses backend.799800 - `type: "web_search"`801802 The tool type. Always `web_search`.803804 - `"web_search"`805806- `type: "session.update"`807808 The Live client event type. Always `session.update`.809810 - `"session.update"`811812- `event_id: optional string or null`813814 Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.815816#### Example817818```json819{820 "type": "session.update",821 "event_id": "evt_update_001",822 "session": {823 "delegation": {824 "type": "responses",825 "responses": {826 "instructions": "Check restaurant availability. Ask before confirming a booking.",827 "max_output_tokens": 1024828 }829 }830 }831}832```833834<a id="session.input_audio.append"></a>835836### session.input_audio.append837838Send audio to a Live session over its primary WebSocket. WebRTC and SIP sessions send audio over their media transport.839840#### Schema841842Schema name: `LiveInputAudioAppendEvent`843844- `audio: string`845846 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.847848- `type: "session.input_audio.append"`849850 The Live client event type. Always `session.input_audio.append`.851852 - `"session.input_audio.append"`853854- `event_id: optional string or null`855856 Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.857858#### Example859860```json861{862 "type": "session.input_audio.append",863 "audio": "AACAAIAAAIAAAP9/AIAAgA=="864}865```866867<a id="session.input_audio.mute"></a>868869### session.input_audio.mute870871Mute audio input to the Live model without closing the session. The server acknowledges with `session.input_audio.muted`.872873#### Schema874875Schema name: `LiveInputAudioMuteParam`876877- `type: "session.input_audio.mute"`878879 The Live client event type. Always `session.input_audio.mute`.880881 - `"session.input_audio.mute"`882883- `event_id: optional string or null`884885 Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.886887#### Example888889```json890{891 "type": "session.input_audio.mute",892 "event_id": "evt_mute_001"893}894```895896<a id="session.input_audio.unmute"></a>897898### session.input_audio.unmute899900Resume audio input to a Live model after muting it. The server acknowledges with `session.input_audio.unmuted`.901902#### Schema903904Schema name: `LiveInputAudioUnmuteParam`905906- `type: "session.input_audio.unmute"`907908 The Live client event type. Always `session.input_audio.unmute`.909910 - `"session.input_audio.unmute"`911912- `event_id: optional string or null`913914 Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.915916#### Example917918```json919{920 "type": "session.input_audio.unmute",921 "event_id": "evt_unmute_001"922}923```924925<a id="session.instructions.append"></a>926927### session.instructions.append928929Append instructions to the Live conversation while it is running, optionally associating them with an existing client delegation.930931#### Schema932933Schema name: `LiveInstructionsAppendParam`934935- `content: string`936937 Instruction text to append, limited to 500 tokens. This is a plain string, not an array of content parts.938939- `delegation_id: string or null`940941 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.942943- `type: "session.instructions.append"`944945 The Live client event type. Always `session.instructions.append`.946947 - `"session.instructions.append"`948949- `event_id: optional string or null`950951 Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.952953#### Example954955```json956{957 "type": "session.instructions.append",958 "event_id": "evt_instructions_001",959 "delegation_id": null,960 "content": "The caller prefers outdoor seating."961}962```963964<a id="session.thinking.append"></a>965966### session.thinking.append967968Provide silent reasoning or progress context to the Live model, optionally for an existing client delegation.969970#### Schema971972Schema name: `LiveThinkingAppendParam`973974- `content: string`975976 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.977978- `delegation_id: string or null`979980 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.981982- `type: "session.thinking.append"`983984 The Live client event type. Always `session.thinking.append`.985986 - `"session.thinking.append"`987988- `event_id: optional string or null`989990 Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.991992#### Example993994```json995{996 "type": "session.thinking.append",997 "event_id": "evt_thinking_001",998 "delegation_id": "del_abc123",999 "content": "Checking availability for two guests at 7 PM."1000}1001```10021003<a id="session.commentary.append"></a>10041005### session.commentary.append10061007Provide context the Live model can communicate to the user, optionally for an existing client delegation.10081009#### Schema10101011Schema name: `LiveCommentaryAppendParam`10121013- `content: string`10141015 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.10161017- `delegation_id: string or null`10181019 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.10201021- `type: "session.commentary.append"`10221023 The Live client event type. Always `session.commentary.append`.10241025 - `"session.commentary.append"`10261027- `event_id: optional string or null`10281029 Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.10301031#### Example10321033```json1034{1035 "type": "session.commentary.append",1036 "event_id": "evt_commentary_001",1037 "delegation_id": "del_abc123",1038 "content": "There is an outdoor table for two at 7 PM. Ask whether to reserve it."1039}1040```10411042<a id="response.item.create"></a>10431044### response.item.create10451046Add an input item to the Live session’s Responses backend. Requires Responses delegation; use `response.create` to request a response.10471048#### Schema10491050Schema name: `LiveResponseItemCreateParam`10511052- `item: EasyInputMessage or object { content, role, status, type } or ResponseOutputMessage or 30 more`10531054 An input item to append to the Responses backend conversation, such as a user message or a function tool result.10551056 - `EasyInputMessage object { content, role, phase, type }`10571058 A message input to the model with a role indicating instruction following1059 hierarchy. Instructions given with the `developer` or `system` role take1060 precedence over instructions given with the `user` role. Messages with the1061 `assistant` role are presumed to have been generated by the model in previous1062 interactions.10631064 - `content: string or ResponseInputMessageContentList`10651066 Text, image, or audio input to the model, used to generate a response.1067 Can also contain previous assistant responses.10681069 - `TextInput = string`10701071 A text input to the model.10721073 - `ResponseInputMessageContentList = array of ResponseInputContent`10741075 A list of one or many input items to the model, containing different content1076 types.10771078 - `ResponseInputText object { text, type, prompt_cache_breakpoint }`10791080 A text input to the model.10811082 - `text: string`10831084 The text input to the model.10851086 - `type: "input_text"`10871088 The type of the input item. Always `input_text`.10891090 - `"input_text"`10911092 - `prompt_cache_breakpoint: optional object { mode }`10931094 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.10951096 - `mode: "explicit"`10971098 The breakpoint mode. Always `explicit`.10991100 - `"explicit"`11011102 - `ResponseInputImage object { detail, type, file_id, 2 more }`11031104 An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision).11051106 - `detail: ImageDetail`11071108 The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.11091110 - `"low"`11111112 - `"high"`11131114 - `"auto"`11151116 - `"original"`11171118 - `type: "input_image"`11191120 The type of the input item. Always `input_image`.11211122 - `"input_image"`11231124 - `file_id: optional string or null`11251126 The ID of the file to be sent to the model.11271128 - `image_url: optional string or null`11291130 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.11311132 - `prompt_cache_breakpoint: optional object { mode }`11331134 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.11351136 - `mode: "explicit"`11371138 The breakpoint mode. Always `explicit`.11391140 - `"explicit"`11411142 - `ResponseInputFile object { type, detail, file_data, 4 more }`11431144 A file input to the model.11451146 - `type: "input_file"`11471148 The type of the input item. Always `input_file`.11491150 - `"input_file"`11511152 - `detail: optional "auto" or "low" or "high"`11531154 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`.11551156 - `"auto"`11571158 - `"low"`11591160 - `"high"`11611162 - `file_data: optional string`11631164 The content of the file to be sent to the model.11651166 - `file_id: optional string or null`11671168 The ID of the file to be sent to the model.11691170 - `file_url: optional string`11711172 The URL of the file to be sent to the model.11731174 - `filename: optional string`11751176 The name of the file to be sent to the model.11771178 - `prompt_cache_breakpoint: optional object { mode }`11791180 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.11811182 - `mode: "explicit"`11831184 The breakpoint mode. Always `explicit`.11851186 - `"explicit"`11871188 - `role: "user" or "assistant" or "system" or "developer"`11891190 The role of the message input. One of `user`, `assistant`, `system`, or1191 `developer`.11921193 - `"user"`11941195 - `"assistant"`11961197 - `"system"`11981199 - `"developer"`12001201 - `phase: optional "commentary" or "final_answer" or null`12021203 Labels an `assistant` message as intermediate commentary (`commentary`) or the final answer (`final_answer`).1204 For models like `gpt-5.3-codex` and beyond, when sending follow-up requests, preserve and resend1205 phase on all assistant messages — dropping it can degrade performance. Not used for user messages.12061207 - `"commentary"`12081209 - `"final_answer"`12101211 - `type: optional "message"`12121213 The type of the message input. Always `message`.12141215 - `"message"`12161217 - `Message object { content, role, status, type }`12181219 A message input to the model with a role indicating instruction following1220 hierarchy. Instructions given with the `developer` or `system` role take1221 precedence over instructions given with the `user` role.12221223 - `content: ResponseInputMessageContentList`12241225 A list of one or many input items to the model, containing different content1226 types.12271228 - `role: "user" or "system" or "developer"`12291230 The role of the message input. One of `user`, `system`, or `developer`.12311232 - `"user"`12331234 - `"system"`12351236 - `"developer"`12371238 - `status: optional "in_progress" or "completed" or "incomplete"`12391240 The status of item. One of `in_progress`, `completed`, or1241 `incomplete`. Populated when items are returned via API.12421243 - `"in_progress"`12441245 - `"completed"`12461247 - `"incomplete"`12481249 - `type: optional "message"`12501251 The type of the message input. Always set to `message`.12521253 - `"message"`12541255 - `ResponseOutputMessage object { id, content, role, 3 more }`12561257 An output message from the model.12581259 - `id: string`12601261 The unique ID of the output message.12621263 - `content: array of ResponseOutputText or ResponseOutputRefusal`12641265 The content of the output message.12661267 - `ResponseOutputText object { annotations, logprobs, text, type }`12681269 A text output from the model.12701271 - `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 }`12721273 The annotations of the text output.12741275 - `FileCitation object { file_id, filename, index, type }`12761277 A citation to a file.12781279 - `file_id: string`12801281 The ID of the file.12821283 - `filename: string`12841285 The filename of the file cited.12861287 - `index: number`12881289 The index of the file in the list of files.12901291 - `type: "file_citation"`12921293 The type of the file citation. Always `file_citation`.12941295 - `"file_citation"`12961297 - `URLCitation object { end_index, start_index, title, 2 more }`12981299 A citation for a web resource used to generate a model response.13001301 - `end_index: number`13021303 The index of the last character of the URL citation in the message.13041305 - `start_index: number`13061307 The index of the first character of the URL citation in the message.13081309 - `title: string`13101311 The title of the web resource.13121313 - `type: "url_citation"`13141315 The type of the URL citation. Always `url_citation`.13161317 - `"url_citation"`13181319 - `url: string`13201321 The URL of the web resource.13221323 - `ContainerFileCitation object { container_id, end_index, file_id, 3 more }`13241325 A citation for a container file used to generate a model response.13261327 - `container_id: string`13281329 The ID of the container file.13301331 - `end_index: number`13321333 The index of the last character of the container file citation in the message.13341335 - `file_id: string`13361337 The ID of the file.13381339 - `filename: string`13401341 The filename of the container file cited.13421343 - `start_index: number`13441345 The index of the first character of the container file citation in the message.13461347 - `type: "container_file_citation"`13481349 The type of the container file citation. Always `container_file_citation`.13501351 - `"container_file_citation"`13521353 - `FilePath object { file_id, index, type }`13541355 A path to a file.13561357 - `file_id: string`13581359 The ID of the file.13601361 - `index: number`13621363 The index of the file in the list of files.13641365 - `type: "file_path"`13661367 The type of the file path. Always `file_path`.13681369 - `"file_path"`13701371 - `logprobs: array of object { token, bytes, logprob, top_logprobs }`13721373 - `token: string`13741375 - `bytes: array of number`13761377 - `logprob: number`13781379 - `top_logprobs: array of object { token, bytes, logprob }`13801381 - `token: string`13821383 - `bytes: array of number`13841385 - `logprob: number`13861387 - `text: string`13881389 The text output from the model.13901391 - `type: "output_text"`13921393 The type of the output text. Always `output_text`.13941395 - `"output_text"`13961397 - `ResponseOutputRefusal object { refusal, type }`13981399 A refusal from the model.14001401 - `refusal: string`14021403 The refusal explanation from the model.14041405 - `type: "refusal"`14061407 The type of the refusal. Always `refusal`.14081409 - `"refusal"`14101411 - `role: "assistant"`14121413 The role of the output message. Always `assistant`.14141415 - `"assistant"`14161417 - `status: "in_progress" or "completed" or "incomplete"`14181419 The status of the message input. One of `in_progress`, `completed`, or1420 `incomplete`. Populated when input items are returned via API.14211422 - `"in_progress"`14231424 - `"completed"`14251426 - `"incomplete"`14271428 - `type: "message"`14291430 The type of the output message. Always `message`.14311432 - `"message"`14331434 - `phase: optional "commentary" or "final_answer" or null`14351436 Labels an `assistant` message as intermediate commentary (`commentary`) or the final answer (`final_answer`).1437 For models like `gpt-5.3-codex` and beyond, when sending follow-up requests, preserve and resend1438 phase on all assistant messages — dropping it can degrade performance. Not used for user messages.14391440 - `"commentary"`14411442 - `"final_answer"`14431444 - `FileSearchCall object { id, queries, status, 2 more }`14451446 The results of a file search tool call. See the1447 [file search guide](https://developers.openai.com/api/docs/guides/tools-file-search) for more information.14481449 - `id: string`14501451 The unique ID of the file search tool call.14521453 - `queries: array of string`14541455 The queries used to search for files.14561457 - `status: "in_progress" or "searching" or "completed" or 2 more`14581459 The status of the file search tool call. One of `in_progress`,1460 `searching`, `incomplete` or `failed`,14611462 - `"in_progress"`14631464 - `"searching"`14651466 - `"completed"`14671468 - `"incomplete"`14691470 - `"failed"`14711472 - `type: "file_search_call"`14731474 The type of the file search tool call. Always `file_search_call`.14751476 - `"file_search_call"`14771478 - `results: optional array of object { attributes, file_id, filename, 2 more } or null`14791480 The results of the file search tool call.14811482 - `attributes: optional map[string or number or boolean] or null`14831484 Set of 16 key-value pairs that can be attached to an object. This can be1485 useful for storing additional information about the object in a structured1486 format, and querying for objects via API or the dashboard. Keys are strings1487 with a maximum length of 64 characters. Values are strings with a maximum1488 length of 512 characters, booleans, or numbers.14891490 - `string`14911492 - `number`14931494 - `boolean`14951496 - `file_id: optional string`14971498 The unique ID of the file.14991500 - `filename: optional string`15011502 The name of the file.15031504 - `score: optional number`15051506 The relevance score of the file - a value between 0 and 1.15071508 - `text: optional string`15091510 The text that was retrieved from the file.15111512 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`15131514 A tool call to a computer use tool. See the1515 [computer use guide](https://developers.openai.com/api/docs/guides/tools-computer-use) for more information.15161517 - `id: string`15181519 The unique ID of the computer call.15201521 - `call_id: string`15221523 An identifier used when responding to the tool call with output.15241525 - `pending_safety_checks: array of object { id, code, message }`15261527 The pending safety checks for the computer call.15281529 - `id: string`15301531 The ID of the pending safety check.15321533 - `code: optional string or null`15341535 The type of the pending safety check.15361537 - `message: optional string or null`15381539 Details about the pending safety check.15401541 - `status: "in_progress" or "completed" or "incomplete"`15421543 The status of the item. One of `in_progress`, `completed`, or1544 `incomplete`. Populated when items are returned via API.15451546 - `"in_progress"`15471548 - `"completed"`15491550 - `"incomplete"`15511552 - `type: "computer_call"`15531554 The type of the computer call. Always `computer_call`.15551556 - `"computer_call"`15571558 - `action: optional ComputerAction`15591560 A click action.15611562 - `Click object { button, type, x, 2 more }`15631564 A click action.15651566 - `button: "left" or "right" or "wheel" or 2 more`15671568 Indicates which mouse button was pressed during the click. One of `left`, `right`, `wheel`, `back`, or `forward`.15691570 - `"left"`15711572 - `"right"`15731574 - `"wheel"`15751576 - `"back"`15771578 - `"forward"`15791580 - `type: "click"`15811582 Specifies the event type. For a click action, this property is always `click`.15831584 - `"click"`15851586 - `x: number`15871588 The x-coordinate where the click occurred.15891590 - `y: number`15911592 The y-coordinate where the click occurred.15931594 - `keys: optional array of string or null`15951596 The keys being held while clicking.15971598 - `DoubleClick object { keys, type, x, y }`15991600 A double click action.16011602 - `keys: array of string or null`16031604 The keys being held while double-clicking.16051606 - `type: "double_click"`16071608 Specifies the event type. For a double click action, this property is always set to `double_click`.16091610 - `"double_click"`16111612 - `x: number`16131614 The x-coordinate where the double click occurred.16151616 - `y: number`16171618 The y-coordinate where the double click occurred.16191620 - `Drag object { path, type, keys }`16211622 A drag action.16231624 - `path: array of object { x, y }`16251626 An array of coordinates representing the path of the drag action. Coordinates will appear as an array of objects, eg16271628 ```1629 [1630 { x: 100, y: 200 },1631 { x: 200, y: 300 }1632 ]1633 ```16341635 - `x: number`16361637 The x-coordinate.16381639 - `y: number`16401641 The y-coordinate.16421643 - `type: "drag"`16441645 Specifies the event type. For a drag action, this property is always set to `drag`.16461647 - `"drag"`16481649 - `keys: optional array of string or null`16501651 The keys being held while dragging the mouse.16521653 - `Keypress object { keys, type }`16541655 A collection of keypresses the model would like to perform.16561657 - `keys: array of string`16581659 The combination of keys the model is requesting to be pressed. This is an array of strings, each representing a key.16601661 - `type: "keypress"`16621663 Specifies the event type. For a keypress action, this property is always set to `keypress`.16641665 - `"keypress"`16661667 - `Move object { type, x, y, keys }`16681669 A mouse move action.16701671 - `type: "move"`16721673 Specifies the event type. For a move action, this property is always set to `move`.16741675 - `"move"`16761677 - `x: number`16781679 The x-coordinate to move to.16801681 - `y: number`16821683 The y-coordinate to move to.16841685 - `keys: optional array of string or null`16861687 The keys being held while moving the mouse.16881689 - `Screenshot object { type }`16901691 A screenshot action.16921693 - `type: "screenshot"`16941695 Specifies the event type. For a screenshot action, this property is always set to `screenshot`.16961697 - `"screenshot"`16981699 - `Scroll object { scroll_x, scroll_y, type, 3 more }`17001701 A scroll action.17021703 - `scroll_x: number`17041705 The horizontal scroll distance.17061707 - `scroll_y: number`17081709 The vertical scroll distance.17101711 - `type: "scroll"`17121713 Specifies the event type. For a scroll action, this property is always set to `scroll`.17141715 - `"scroll"`17161717 - `x: number`17181719 The x-coordinate where the scroll occurred.17201721 - `y: number`17221723 The y-coordinate where the scroll occurred.17241725 - `keys: optional array of string or null`17261727 The keys being held while scrolling.17281729 - `Type object { text, type }`17301731 An action to type in text.17321733 - `text: string`17341735 The text to type.17361737 - `type: "type"`17381739 Specifies the event type. For a type action, this property is always set to `type`.17401741 - `"type"`17421743 - `Wait object { type }`17441745 A wait action.17461747 - `type: "wait"`17481749 Specifies the event type. For a wait action, this property is always set to `wait`.17501751 - `"wait"`17521753 - `actions: optional ComputerActionList`17541755 Flattened batched actions for `computer_use`. Each action includes an1756 `type` discriminator and action-specific fields.17571758 - `Click object { button, type, x, 2 more }`17591760 A click action.17611762 - `DoubleClick object { keys, type, x, y }`17631764 A double click action.17651766 - `Drag object { path, type, keys }`17671768 A drag action.17691770 - `Keypress object { keys, type }`17711772 A collection of keypresses the model would like to perform.17731774 - `Move object { type, x, y, keys }`17751776 A mouse move action.17771778 - `Screenshot object { type }`17791780 A screenshot action.17811782 - `Scroll object { scroll_x, scroll_y, type, 3 more }`17831784 A scroll action.17851786 - `Type object { text, type }`17871788 An action to type in text.17891790 - `Wait object { type }`17911792 A wait action.17931794 - `ComputerCallOutput object { call_id, output, type, 3 more }`17951796 The output of a computer tool call.17971798 - `call_id: string`17991800 The ID of the computer tool call that produced the output.18011802 - `output: ResponseComputerToolCallOutputScreenshot`18031804 A computer screenshot image used with the computer use tool.18051806 - `type: "computer_screenshot"`18071808 Specifies the event type. For a computer screenshot, this property is1809 always set to `computer_screenshot`.18101811 - `"computer_screenshot"`18121813 - `file_id: optional string`18141815 The identifier of an uploaded file that contains the screenshot.18161817 - `image_url: optional string`18181819 The URL of the screenshot image.18201821 - `type: "computer_call_output"`18221823 The type of the computer tool call output. Always `computer_call_output`.18241825 - `"computer_call_output"`18261827 - `id: optional string or null`18281829 The ID of the computer tool call output.18301831 - `acknowledged_safety_checks: optional array of object { id, code, message } or null`18321833 The safety checks reported by the API that have been acknowledged by the developer.18341835 - `id: string`18361837 The ID of the pending safety check.18381839 - `code: optional string or null`18401841 The type of the pending safety check.18421843 - `message: optional string or null`18441845 Details about the pending safety check.18461847 - `status: optional "in_progress" or "completed" or "incomplete" or null`18481849 The status of the message input. One of `in_progress`, `completed`, or `incomplete`. Populated when input items are returned via API.18501851 - `"in_progress"`18521853 - `"completed"`18541855 - `"incomplete"`18561857 - `WebSearchCall object { id, action, status, type }`18581859 The results of a web search tool call. See the1860 [web search guide](https://developers.openai.com/api/docs/guides/tools-web-search) for more information.18611862 - `id: string`18631864 The unique ID of the web search tool call.18651866 - `action: object { type, queries, query, sources } or object { type, url } or object { pattern, type, url }`18671868 An object describing the specific action taken in this web search call.1869 Includes details on how the model used the web (search, open_page, find_in_page).18701871 - `Search object { type, queries, query, sources }`18721873 Action type "search" - Performs a web search query.18741875 - `type: "search"`18761877 The action type.18781879 - `"search"`18801881 - `queries: optional array of string`18821883 The search queries.18841885 - `query: optional string`18861887 The search query.18881889 - `sources: optional array of object { type, url }`18901891 The sources used in the search.18921893 - `type: "url"`18941895 The type of source. Always `url`.18961897 - `"url"`18981899 - `url: string`19001901 The URL of the source.19021903 - `OpenPage object { type, url }`19041905 Action type "open_page" - Opens a specific URL from search results.19061907 - `type: "open_page"`19081909 The action type.19101911 - `"open_page"`19121913 - `url: optional string or null`19141915 The URL opened by the model.19161917 - `FindInPage object { pattern, type, url }`19181919 Action type "find_in_page": Searches for a pattern within a loaded page.19201921 - `pattern: string`19221923 The pattern or text to search for within the page.19241925 - `type: "find_in_page"`19261927 The action type.19281929 - `"find_in_page"`19301931 - `url: string`19321933 The URL of the page searched for the pattern.19341935 - `status: "in_progress" or "searching" or "completed" or 2 more`19361937 The status of the web search tool call.19381939 - `"in_progress"`19401941 - `"searching"`19421943 - `"completed"`19441945 - `"failed"`19461947 - `"incomplete"`19481949 - `type: "web_search_call"`19501951 The type of the web search tool call. Always `web_search_call`.19521953 - `"web_search_call"`19541955 - `FunctionCall object { arguments, call_id, name, 6 more }`19561957 A tool call to run a function. See the1958 [function calling guide](https://developers.openai.com/api/docs/guides/function-calling) for more information.19591960 - `arguments: string`19611962 A JSON string of the arguments to pass to the function.19631964 - `call_id: string`19651966 The unique ID of the function tool call generated by the model.19671968 - `name: string`19691970 The name of the function to run.19711972 - `type: "function_call"`19731974 The type of the function tool call. Always `function_call`.19751976 - `"function_call"`19771978 - `id: optional string`19791980 The unique ID of the function tool call.19811982 - `async: optional boolean`19831984 Whether the function tool call runs asynchronously.19851986 - `caller: optional object { type } or object { caller_id, type } or null`19871988 The execution context that produced this tool call.19891990 - `Direct object { type }`19911992 - `type: "direct"`19931994 - `"direct"`19951996 - `Program object { caller_id, type }`19971998 - `caller_id: string`19992000 The call ID of the program item that produced this tool call.20012002 - `type: "program"`20032004 - `"program"`20052006 - `namespace: optional string`20072008 The namespace of the function to run.20092010 - `status: optional "in_progress" or "completed" or "incomplete"`20112012 The status of the item. One of `in_progress`, `completed`, or2013 `incomplete`. Populated when items are returned via API.20142015 - `"in_progress"`20162017 - `"completed"`20182019 - `"incomplete"`20202021 - `FunctionCallOutput object { output, type, id, 5 more }`20222023 The output of a function tool call.20242025 - `output: string or array of ResponseInputTextContent or ResponseInputImageContent or ResponseInputFileContent`20262027 Text, image, or file output of the function tool call.20282029 - `string`20302031 A JSON string of the output of the function tool call.20322033 - `array of ResponseInputTextContent or ResponseInputImageContent or ResponseInputFileContent`20342035 An array of content outputs (text, image, file) for the function tool call.20362037 - `ResponseInputTextContent object { text, type, prompt_cache_breakpoint }`20382039 A text input to the model.20402041 - `text: string`20422043 The text input to the model.20442045 - `type: "input_text"`20462047 The type of the input item. Always `input_text`.20482049 - `"input_text"`20502051 - `prompt_cache_breakpoint: optional object { mode } or null`20522053 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.20542055 - `mode: "explicit"`20562057 The breakpoint mode. Always `explicit`.20582059 - `"explicit"`20602061 - `ResponseInputImageContent object { type, detail, file_id, 2 more }`20622063 An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision)20642065 - `type: "input_image"`20662067 The type of the input item. Always `input_image`.20682069 - `"input_image"`20702071 - `detail: optional ImageDetail or null`20722073 The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.20742075 - `file_id: optional string or null`20762077 The ID of the file to be sent to the model.20782079 - `image_url: optional string or null`20802081 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.20822083 - `prompt_cache_breakpoint: optional object { mode } or null`20842085 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.20862087 - `mode: "explicit"`20882089 The breakpoint mode. Always `explicit`.20902091 - `"explicit"`20922093 - `ResponseInputFileContent object { type, detail, file_data, 4 more }`20942095 A file input to the model.20962097 - `type: "input_file"`20982099 The type of the input item. Always `input_file`.21002101 - `"input_file"`21022103 - `detail: optional "auto" or "low" or "high"`21042105 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`.21062107 - `"auto"`21082109 - `"low"`21102111 - `"high"`21122113 - `file_data: optional string or null`21142115 The base64-encoded data of the file to be sent to the model.21162117 - `file_id: optional string or null`21182119 The ID of the file to be sent to the model.21202121 - `file_url: optional string or null`21222123 The URL of the file to be sent to the model.21242125 - `filename: optional string or null`21262127 The name of the file to be sent to the model.21282129 - `prompt_cache_breakpoint: optional object { mode } or null`21302131 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.21322133 - `mode: "explicit"`21342135 The breakpoint mode. Always `explicit`.21362137 - `"explicit"`21382139 - `type: "function_call_output"`21402141 The type of the function tool call output. Always `function_call_output`.21422143 - `"function_call_output"`21442145 - `id: optional string or null`21462147 The unique ID of the function tool call output. Populated when this item is returned via API.21482149 - `call_id: optional string or null`21502151 The unique ID of the function tool call generated by the model.21522153 - `caller: optional object { type } or object { caller_id, type } or null`21542155 The execution context that produced this tool call.21562157 - `Direct object { type }`21582159 - `type: "direct"`21602161 The caller type. Always `direct`.21622163 - `"direct"`21642165 - `Program object { caller_id, type }`21662167 - `caller_id: string`21682169 The call ID of the program item that produced this tool call.21702171 - `type: "program"`21722173 The caller type. Always `program`.21742175 - `"program"`21762177 - `name: optional string or null`21782179 The name of the tool that produced the output.21802181 - `namespace: optional string or null`21822183 The namespace of the tool that produced the output.21842185 - `status: optional "in_progress" or "completed" or "incomplete" or null`21862187 The status of the item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API.21882189 - `"in_progress"`21902191 - `"completed"`21922193 - `"incomplete"`21942195 - `ToolSearchCall object { arguments, type, id, 3 more }`21962197 - `arguments: unknown`21982199 The arguments supplied to the tool search call.22002201 - `type: "tool_search_call"`22022203 The item type. Always `tool_search_call`.22042205 - `"tool_search_call"`22062207 - `id: optional string or null`22082209 The unique ID of this tool search call.22102211 - `call_id: optional string or null`22122213 The unique ID of the tool search call generated by the model.22142215 - `execution: optional "server" or "client"`22162217 Whether tool search was executed by the server or by the client.22182219 - `"server"`22202221 - `"client"`22222223 - `status: optional "in_progress" or "completed" or "incomplete" or null`22242225 The status of the tool search call.22262227 - `"in_progress"`22282229 - `"completed"`22302231 - `"incomplete"`22322233 - `ToolSearchOutput object { tools, type, id, 3 more }`22342235 - `tools: array of object { name, parameters, strict, 6 more } or object { type, vector_store_ids, filters, 2 more } or object { type } or 13 more`22362237 The loaded tool definitions returned by the tool search output.22382239 - `Function object { name, parameters, strict, 6 more }`22402241 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).22422243 - `name: string`22442245 The name of the function to call.22462247 - `parameters: map[unknown] or null`22482249 A JSON schema object describing the parameters of the function.22502251 - `strict: boolean or null`22522253 Whether strict parameter validation is enforced for this function tool.22542255 - `type: "function"`22562257 The type of the function tool. Always `function`.22582259 - `"function"`22602261 - `allowed_callers: optional array of "direct" or "programmatic" or null`22622263 The tool invocation context(s).22642265 - `"direct"`22662267 - `"programmatic"`22682269 - `async: optional boolean`22702271 - `defer_loading: optional boolean`22722273 Whether this function is deferred and loaded via tool search.22742275 - `description: optional string or null`22762277 A description of the function. Used by the model to determine whether or not to call the function.22782279 - `output_schema: optional map[unknown] or null`22802281 A JSON schema object describing the JSON value encoded in string outputs for this function.22822283 - `FileSearch object { type, vector_store_ids, filters, 2 more }`22842285 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).22862287 - `type: "file_search"`22882289 The type of the file search tool. Always `file_search`.22902291 - `"file_search"`22922293 - `vector_store_ids: array of string`22942295 The IDs of the vector stores to search.22962297 - `filters: optional ComparisonFilter or CompoundFilter or null`22982299 A filter to apply.23002301 - `ComparisonFilter object { key, type, value }`23022303 A filter used to compare a specified attribute key to a given value using a defined comparison operation.23042305 - `key: string`23062307 The key to compare against the value.23082309 - `type: "eq" or "ne" or "gt" or 5 more`23102311 Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`, `in`, `nin`.23122313 - `eq`: equals2314 - `ne`: not equal2315 - `gt`: greater than2316 - `gte`: greater than or equal2317 - `lt`: less than2318 - `lte`: less than or equal2319 - `in`: in2320 - `nin`: not in23212322 - `"eq"`23232324 - `"ne"`23252326 - `"gt"`23272328 - `"gte"`23292330 - `"lt"`23312332 - `"lte"`23332334 - `"in"`23352336 - `"nin"`23372338 - `value: string or number or boolean or array of string or number`23392340 The value to compare against the attribute key; supports string, number, or boolean types.23412342 - `string`23432344 - `number`23452346 - `boolean`23472348 - `array of string or number`23492350 - `string`23512352 - `number`23532354 - `CompoundFilter object { filters, type }`23552356 Combine multiple filters using `and` or `or`.23572358 - `filters: array of ComparisonFilter or unknown`23592360 Array of filters to combine. Items can be `ComparisonFilter` or `CompoundFilter`.23612362 - `ComparisonFilter object { key, type, value }`23632364 A filter used to compare a specified attribute key to a given value using a defined comparison operation.23652366 - `unknown`23672368 - `type: "and" or "or"`23692370 Type of operation: `and` or `or`.23712372 - `"and"`23732374 - `"or"`23752376 - `max_num_results: optional number`23772378 The maximum number of results to return. This number should be between 1 and 50 inclusive.23792380 - `ranking_options: optional object { hybrid_search, ranker, score_threshold }`23812382 Ranking options for search.23832384 - `hybrid_search: optional object { embedding_weight, text_weight }`23852386 Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled.23872388 - `embedding_weight: number`23892390 The weight of the embedding in the reciprocal ranking fusion.23912392 - `text_weight: number`23932394 The weight of the text in the reciprocal ranking fusion.23952396 - `ranker: optional "auto" or "default-2024-11-15"`23972398 The ranker to use for the file search.23992400 - `"auto"`24012402 - `"default-2024-11-15"`24032404 - `score_threshold: optional number`24052406 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.24072408 - `Computer object { type }`24092410 A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use).24112412 - `type: "computer"`24132414 The type of the computer tool. Always `computer`.24152416 - `"computer"`24172418 - `ComputerUsePreview object { display_height, display_width, environment, type }`24192420 A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use).24212422 - `display_height: number`24232424 The height of the computer display.24252426 - `display_width: number`24272428 The width of the computer display.24292430 - `environment: "windows" or "mac" or "linux" or 2 more`24312432 The type of computer environment to control.24332434 - `"windows"`24352436 - `"mac"`24372438 - `"linux"`24392440 - `"ubuntu"`24412442 - `"browser"`24432444 - `type: "computer_use_preview"`24452446 The type of the computer use tool. Always `computer_use_preview`.24472448 - `"computer_use_preview"`24492450 - `WebSearch object { type, external_web_access, filters, 2 more }`24512452 Search the Internet for sources related to the prompt. Learn more about the2453 [web search tool](https://developers.openai.com/api/docs/guides/tools-web-search).24542455 - `type: "web_search" or "web_search_2025_08_26"`24562457 The type of the web search tool. One of `web_search` or `web_search_2025_08_26`.24582459 - `"web_search"`24602461 - `"web_search_2025_08_26"`24622463 - `external_web_access: optional boolean`24642465 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.24662467 - `filters: optional object { allowed_domains } or null`24682469 Filters for the search.24702471 - `allowed_domains: optional array of string or null`24722473 Allowed domains for the search. If not provided, all domains are allowed.2474 Subdomains of the provided domains are allowed as well.24752476 Example: `["pubmed.ncbi.nlm.nih.gov"]`24772478 - `search_context_size: optional "low" or "medium" or "high"`24792480 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.24812482 - `"low"`24832484 - `"medium"`24852486 - `"high"`24872488 - `user_location: optional object { city, country, region, 2 more } or null`24892490 The approximate location of the user.24912492 - `city: optional string or null`24932494 Free text input for the city of the user, e.g. `San Francisco`.24952496 - `country: optional string or null`24972498 The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.24992500 - `region: optional string or null`25012502 Free text input for the region of the user, e.g. `California`.25032504 - `timezone: optional string or null`25052506 The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.25072508 - `type: optional "approximate"`25092510 The type of location approximation. Always `approximate`.25112512 - `"approximate"`25132514 - `Mcp object { server_label, type, allowed_callers, 9 more }`25152516 Give the model access to additional tools via remote Model Context Protocol2517 (MCP) servers. [Learn more about MCP](https://developers.openai.com/api/docs/guides/tools-connectors-mcp).25182519 - `server_label: string`25202521 A label for this MCP server, used to identify it in tool calls.25222523 - `type: "mcp"`25242525 The type of the MCP tool. Always `mcp`.25262527 - `"mcp"`25282529 - `allowed_callers: optional array of "direct" or "programmatic" or null`25302531 The tool invocation context(s).25322533 - `"direct"`25342535 - `"programmatic"`25362537 - `allowed_tools: optional array of string or object { read_only, tool_names } or null`25382539 List of allowed tool names or a filter object.25402541 - `McpAllowedTools = array of string`25422543 A string array of allowed tool names25442545 - `McpToolFilter object { read_only, tool_names }`25462547 A filter object to specify which tools are allowed.25482549 - `read_only: optional boolean`25502551 Indicates whether or not a tool modifies data or is read-only. If an2552 MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),2553 it will match this filter.25542555 - `tool_names: optional array of string`25562557 List of allowed tool names.25582559 - `authorization: optional string`25602561 An OAuth access token that can be used with a remote MCP server, either2562 with a custom MCP server URL or a service connector. Your application2563 must handle the OAuth authorization flow and provide the token here.25642565 - `connector_id: optional "connector_dropbox" or "connector_gmail" or "connector_googlecalendar" or 5 more`25662567 Identifier for service connectors, like those available in ChatGPT. One of2568 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more2569 about service connectors [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).25702571 This field is deprecated for models released after September 1, 2026.2572 Use `server_url` to connect to a remote MCP server, or `tunnel_id` to2573 connect through a Secure MCP Tunnel.25742575 Currently supported `connector_id` values are:25762577 - Dropbox: `connector_dropbox`2578 - Gmail: `connector_gmail`2579 - Google Calendar: `connector_googlecalendar`2580 - Google Drive: `connector_googledrive`2581 - Microsoft Teams: `connector_microsoftteams`2582 - Outlook Calendar: `connector_outlookcalendar`2583 - Outlook Email: `connector_outlookemail`2584 - SharePoint: `connector_sharepoint`25852586 - `"connector_dropbox"`25872588 - `"connector_gmail"`25892590 - `"connector_googlecalendar"`25912592 - `"connector_googledrive"`25932594 - `"connector_microsoftteams"`25952596 - `"connector_outlookcalendar"`25972598 - `"connector_outlookemail"`25992600 - `"connector_sharepoint"`26012602 - `defer_loading: optional boolean`26032604 Whether this MCP tool is deferred and discovered via tool search.26052606 - `headers: optional map[string] or null`26072608 Optional HTTP headers to send to the MCP server. Use for authentication2609 or other purposes.26102611 - `require_approval: optional object { always, never } or "always" or "never" or null`26122613 Specify which of the MCP server's tools require approval.26142615 - `McpToolApprovalFilter object { always, never }`26162617 Specify which of the MCP server's tools require approval. Can be2618 `always`, `never`, or a filter object associated with tools2619 that require approval.26202621 - `always: optional object { read_only, tool_names }`26222623 A filter object to specify which tools are allowed.26242625 - `read_only: optional boolean`26262627 Indicates whether or not a tool modifies data or is read-only. If an2628 MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),2629 it will match this filter.26302631 - `tool_names: optional array of string`26322633 List of allowed tool names.26342635 - `never: optional object { read_only, tool_names }`26362637 A filter object to specify which tools are allowed.26382639 - `read_only: optional boolean`26402641 Indicates whether or not a tool modifies data or is read-only. If an2642 MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),2643 it will match this filter.26442645 - `tool_names: optional array of string`26462647 List of allowed tool names.26482649 - `McpToolApprovalSetting = "always" or "never"`26502651 Specify a single approval policy for all tools. One of `always` or2652 `never`. When set to `always`, all tools will require approval. When2653 set to `never`, all tools will not require approval.26542655 - `"always"`26562657 - `"never"`26582659 - `server_description: optional string`26602661 Optional description of the MCP server, used to provide more context.26622663 - `server_url: optional string`26642665 The URL for the MCP server. One of `server_url`, `connector_id`, or2666 `tunnel_id` must be provided.26672668 - `tunnel_id: optional string`26692670 The Secure MCP Tunnel ID to use instead of a direct server URL. One of2671 `server_url`, `connector_id`, or `tunnel_id` must be provided.26722673 - `CodeInterpreter object { container, type, allowed_callers }`26742675 A tool that runs Python code to help generate a response to a prompt.26762677 - `container: string or object { type, file_ids, memory_limit, network_policy }`26782679 The code interpreter container. Can be a container ID or an object that2680 specifies uploaded file IDs to make available to your code, along with an2681 optional `memory_limit` setting.26822683 - `string`26842685 The container ID.26862687 - `CodeInterpreterToolAuto object { type, file_ids, memory_limit, network_policy }`26882689 Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.26902691 - `type: "auto"`26922693 Always `auto`.26942695 - `"auto"`26962697 - `file_ids: optional array of string`26982699 An optional list of uploaded files to make available to your code.27002701 - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`27022703 The memory limit for the code interpreter container.27042705 - `"1g"`27062707 - `"4g"`27082709 - `"16g"`27102711 - `"64g"`27122713 - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`27142715 Network access policy for the container.27162717 - `ContainerNetworkPolicyDisabled object { type }`27182719 - `type: "disabled"`27202721 Disable outbound network access. Always `disabled`.27222723 - `"disabled"`27242725 - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`27262727 - `allowed_domains: array of string`27282729 A list of allowed domains when type is `allowlist`.27302731 - `type: "allowlist"`27322733 Allow outbound network access only to specified domains. Always `allowlist`.27342735 - `"allowlist"`27362737 - `domain_secrets: optional array of ContainerNetworkPolicyDomainSecret`27382739 Optional domain-scoped secrets for allowlisted domains.27402741 - `domain: string`27422743 The domain associated with the secret.27442745 - `name: string`27462747 The name of the secret to inject for the domain.27482749 - `value: string`27502751 The secret value to inject for the domain.27522753 - `type: "code_interpreter"`27542755 The type of the code interpreter tool. Always `code_interpreter`.27562757 - `"code_interpreter"`27582759 - `allowed_callers: optional array of "direct" or "programmatic" or null`27602761 The tool invocation context(s).27622763 - `"direct"`27642765 - `"programmatic"`27662767 - `ProgrammaticToolCalling object { type }`27682769 - `type: "programmatic_tool_calling"`27702771 The type of the tool. Always `programmatic_tool_calling`.27722773 - `"programmatic_tool_calling"`27742775 - `ImageGeneration object { type, action, background, 9 more }`27762777 A tool that generates images using the GPT image models.27782779 - `type: "image_generation"`27802781 The type of the image generation tool. Always `image_generation`.27822783 - `"image_generation"`27842785 - `action: optional "generate" or "edit" or "auto"`27862787 Whether to generate a new image or edit an existing image. Default: `auto`.27882789 - `"generate"`27902791 - `"edit"`27922793 - `"auto"`27942795 - `background: optional "transparent" or "opaque" or "auto"`27962797 Set the background of the generated image. One of `transparent`, `opaque`,2798 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including2799 their `2026-09-08` snapshots, support `opaque` and `transparent`2800 backgrounds. Transparent backgrounds are available for supported GPT Image2801 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in2802 preview. When using `transparent`, set the output format to `png` or `webp`.2803 Default: `auto`.28042805 - `"transparent"`28062807 - `"opaque"`28082809 - `"auto"`28102811 - `input_fidelity: optional "high" or "low" or null`28122813 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`.28142815 - `"high"`28162817 - `"low"`28182819 - `input_image_mask: optional object { file_id, image_url }`28202821 Optional mask for inpainting. Contains `image_url`2822 (string, optional) and `file_id` (string, optional).28232824 - `file_id: optional string`28252826 File ID for the mask image.28272828 - `image_url: optional string`28292830 Base64-encoded mask image.28312832 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`28332834 The image generation model to use. One of `gpt-image-1`,2835 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2836 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2837 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2838 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2839 `gpt-image-1`.28402841 - `string`28422843 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`28442845 The image generation model to use. One of `gpt-image-1`,2846 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2847 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2848 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2849 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2850 `gpt-image-1`.28512852 - `"gpt-image-1"`28532854 - `"gpt-image-1-mini"`28552856 - `"gpt-image-1.5"`28572858 - `"gpt-image-2"`28592860 - `"gpt-image-2-2026-04-21"`28612862 - `"gpt-image-2.5-sunburst"`28632864 - `"gpt-image-2.5-sunburst-2026-09-08"`28652866 - `"gpt-image-2.5-flare"`28672868 - `"gpt-image-2.5-flare-2026-09-08"`28692870 - `moderation: optional "auto" or "low"`28712872 Moderation level for the generated image. Default: `auto`.28732874 - `"auto"`28752876 - `"low"`28772878 - `output_compression: optional number`28792880 Compression level for the output image. Default: 100.28812882 - `output_format: optional "png" or "webp" or "jpeg"`28832884 The output format of the generated image. One of `png`, `webp`, or2885 `jpeg`. Default: `png`.28862887 - `"png"`28882889 - `"webp"`28902891 - `"jpeg"`28922893 - `partial_images: optional number`28942895 Number of partial images to generate in streaming mode, from 0 (default value) to 3.28962897 - `quality: optional "low" or "medium" or "high" or 3 more`28982899 The quality of the generated image. The GPT image models support `low`,2900 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,2901 including their `2026-09-08` snapshots, also support `xhigh` and `max`.2902 Default: `auto`.29032904 - `"low"`29052906 - `"medium"`29072908 - `"high"`29092910 - `"xhigh"`29112912 - `"max"`29132914 - `"auto"`29152916 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`29172918 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`.29192920 - `string`29212922 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`29232924 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`.29252926 - `"1024x1024"`29272928 - `"1024x1536"`29292930 - `"1536x1024"`29312932 - `"auto"`29332934 - `LocalShell object { type }`29352936 A tool that allows the model to execute shell commands in a local environment.29372938 - `type: "local_shell"`29392940 The type of the local shell tool. Always `local_shell`.29412942 - `"local_shell"`29432944 - `Shell object { type, allowed_callers, environment }`29452946 A tool that allows the model to execute shell commands.29472948 - `type: "shell"`29492950 The type of the shell tool. Always `shell`.29512952 - `"shell"`29532954 - `allowed_callers: optional array of "direct" or "programmatic" or null`29552956 The tool invocation context(s).29572958 - `"direct"`29592960 - `"programmatic"`29612962 - `environment: optional ContainerAuto or LocalEnvironment or ContainerReference or null`29632964 - `ContainerAuto object { type, file_ids, memory_limit, 2 more }`29652966 - `type: "container_auto"`29672968 Automatically creates a container for this request29692970 - `"container_auto"`29712972 - `file_ids: optional array of string`29732974 An optional list of uploaded files to make available to your code.29752976 - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`29772978 The memory limit for the container.29792980 - `"1g"`29812982 - `"4g"`29832984 - `"16g"`29852986 - `"64g"`29872988 - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`29892990 Network access policy for the container.29912992 - `ContainerNetworkPolicyDisabled object { type }`29932994 - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`29952996 - `skills: optional array of SkillReference or InlineSkill`29972998 An optional list of skills referenced by id or inline data.29993000 - `SkillReference object { skill_id, type, version }`30013002 - `skill_id: string`30033004 The ID of the referenced skill.30053006 - `type: "skill_reference"`30073008 References a skill created with the /v1/skills endpoint.30093010 - `"skill_reference"`30113012 - `version: optional string`30133014 Optional skill version. Use a positive integer or 'latest'. Omit for default.30153016 - `InlineSkill object { description, name, source, type }`30173018 - `description: string`30193020 The description of the skill.30213022 - `name: string`30233024 The name of the skill.30253026 - `source: InlineSkillSource`30273028 Inline skill payload30293030 - `data: string`30313032 Base64-encoded skill zip bundle.30333034 - `media_type: "application/zip"`30353036 The media type of the inline skill payload. Must be `application/zip`.30373038 - `"application/zip"`30393040 - `type: "base64"`30413042 The type of the inline skill source. Must be `base64`.30433044 - `"base64"`30453046 - `type: "inline"`30473048 Defines an inline skill for this request.30493050 - `"inline"`30513052 - `LocalEnvironment object { type, skills }`30533054 - `type: "local"`30553056 Use a local computer environment.30573058 - `"local"`30593060 - `skills: optional array of LocalSkill`30613062 An optional list of skills.30633064 - `description: string`30653066 The description of the skill.30673068 - `name: string`30693070 The name of the skill.30713072 - `path: string`30733074 The path to the directory containing the skill.30753076 - `ContainerReference object { container_id, type }`30773078 - `container_id: string`30793080 The ID of the referenced container.30813082 - `type: "container_reference"`30833084 References a container created with the /v1/containers endpoint30853086 - `"container_reference"`30873088 - `Custom object { name, type, allowed_callers, 4 more }`30893090 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)30913092 - `name: string`30933094 The name of the custom tool, used to identify it in tool calls.30953096 - `type: "custom"`30973098 The type of the custom tool. Always `custom`.30993100 - `"custom"`31013102 - `allowed_callers: optional array of "direct" or "programmatic" or null`31033104 The tool invocation context(s).31053106 - `"direct"`31073108 - `"programmatic"`31093110 - `async: optional boolean`31113112 Whether the tool response can be returned asynchronously versus immediately returned on next response creation.31133114 - `defer_loading: optional boolean`31153116 Whether this tool should be deferred and discovered via tool search.31173118 - `description: optional string`31193120 Optional description of the custom tool, used to provide more context.31213122 - `format: optional CustomToolInputFormat`31233124 The input format for the custom tool. Default is unconstrained text.31253126 - `Text object { type }`31273128 Unconstrained free-form text.31293130 - `type: "text"`31313132 Unconstrained text format. Always `text`.31333134 - `"text"`31353136 - `Grammar object { definition, syntax, type }`31373138 A grammar defined by the user.31393140 - `definition: string`31413142 The grammar definition.31433144 - `syntax: "lark" or "regex"`31453146 The syntax of the grammar definition. One of `lark` or `regex`.31473148 - `"lark"`31493150 - `"regex"`31513152 - `type: "grammar"`31533154 Grammar format. Always `grammar`.31553156 - `"grammar"`31573158 - `Namespace object { description, name, tools, type }`31593160 Groups function/custom tools under a shared namespace.31613162 - `description: string`31633164 A description of the namespace shown to the model.31653166 - `name: string`31673168 The namespace name used in tool calls (for example, `crm`).31693170 - `tools: array of object { name, type, allowed_callers, 6 more } or object { name, type, allowed_callers, 4 more }`31713172 The function/custom tools available inside this namespace.31733174 - `Function object { name, type, allowed_callers, 6 more }`31753176 - `name: string`31773178 - `type: "function"`31793180 - `"function"`31813182 - `allowed_callers: optional array of "direct" or "programmatic" or null`31833184 The tool invocation context(s).31853186 - `"direct"`31873188 - `"programmatic"`31893190 - `async: optional boolean`31913192 Whether the tool response can be returned asynchronously versus immediately returned on next response creation.31933194 - `defer_loading: optional boolean`31953196 Whether this function should be deferred and discovered via tool search.31973198 - `description: optional string or null`31993200 - `output_schema: optional map[unknown] or null`32013202 A JSON Schema describing the JSON value encoded in string outputs for this function tool. This does not describe content-array outputs.32033204 - `parameters: optional unknown or null`32053206 - `strict: optional boolean or null`32073208 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.32093210 - `Custom object { name, type, allowed_callers, 4 more }`32113212 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)32133214 - `name: string`32153216 The name of the custom tool, used to identify it in tool calls.32173218 - `type: "custom"`32193220 The type of the custom tool. Always `custom`.32213222 - `"custom"`32233224 - `allowed_callers: optional array of "direct" or "programmatic" or null`32253226 The tool invocation context(s).32273228 - `"direct"`32293230 - `"programmatic"`32313232 - `async: optional boolean`32333234 Whether the tool response can be returned asynchronously versus immediately returned on next response creation.32353236 - `defer_loading: optional boolean`32373238 Whether this tool should be deferred and discovered via tool search.32393240 - `description: optional string`32413242 Optional description of the custom tool, used to provide more context.32433244 - `format: optional CustomToolInputFormat`32453246 The input format for the custom tool. Default is unconstrained text.32473248 - `type: "namespace"`32493250 The type of the tool. Always `namespace`.32513252 - `"namespace"`32533254 - `ToolSearch object { type, description, execution, parameters }`32553256 Hosted or BYOT tool search configuration for deferred tools.32573258 - `type: "tool_search"`32593260 The type of the tool. Always `tool_search`.32613262 - `"tool_search"`32633264 - `description: optional string or null`32653266 Description shown to the model for a client-executed tool search tool.32673268 - `execution: optional "server" or "client"`32693270 Whether tool search is executed by the server or by the client.32713272 - `"server"`32733274 - `"client"`32753276 - `parameters: optional unknown or null`32773278 Parameter schema for a client-executed tool search tool.32793280 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`32813282 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).32833284 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`32853286 The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.32873288 - `"web_search_preview"`32893290 - `"web_search_preview_2025_03_11"`32913292 - `search_content_types: optional array of "text" or "image"`32933294 - `"text"`32953296 - `"image"`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 { type, city, country, 2 more } or null`33093310 The user's location.33113312 - `type: "approximate"`33133314 The type of location approximation. Always `approximate`.33153316 - `"approximate"`33173318 - `city: optional string or null`33193320 Free text input for the city of the user, e.g. `San Francisco`.33213322 - `country: optional string or null`33233324 The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.33253326 - `region: optional string or null`33273328 Free text input for the region of the user, e.g. `California`.33293330 - `timezone: optional string or null`33313332 The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.33333334 - `ApplyPatch object { type, allowed_callers }`33353336 Allows the assistant to create, delete, or update files using unified diffs.33373338 - `type: "apply_patch"`33393340 The type of the tool. Always `apply_patch`.33413342 - `"apply_patch"`33433344 - `allowed_callers: optional array of "direct" or "programmatic" or null`33453346 The tool invocation context(s).33473348 - `"direct"`33493350 - `"programmatic"`33513352 - `type: "tool_search_output"`33533354 The item type. Always `tool_search_output`.33553356 - `"tool_search_output"`33573358 - `id: optional string or null`33593360 The unique ID of this tool search output.33613362 - `call_id: optional string or null`33633364 The unique ID of the tool search call generated by the model.33653366 - `execution: optional "server" or "client"`33673368 Whether tool search was executed by the server or by the client.33693370 - `"server"`33713372 - `"client"`33733374 - `status: optional "in_progress" or "completed" or "incomplete" or null`33753376 The status of the tool search output.33773378 - `"in_progress"`33793380 - `"completed"`33813382 - `"incomplete"`33833384 - `AdditionalTools object { role, tools, type, id }`33853386 - `role: "developer"`33873388 The role that provided the additional tools. Only `developer` is supported.33893390 - `"developer"`33913392 - `tools: array of object { name, parameters, strict, 6 more } or object { type, vector_store_ids, filters, 2 more } or object { type } or 13 more`33933394 A list of additional tools made available at this item.33953396 - `Function object { name, parameters, strict, 6 more }`33973398 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).33993400 - `name: string`34013402 The name of the function to call.34033404 - `parameters: map[unknown] or null`34053406 A JSON schema object describing the parameters of the function.34073408 - `strict: boolean or null`34093410 Whether strict parameter validation is enforced for this function tool.34113412 - `type: "function"`34133414 The type of the function tool. Always `function`.34153416 - `"function"`34173418 - `allowed_callers: optional array of "direct" or "programmatic" or null`34193420 The tool invocation context(s).34213422 - `"direct"`34233424 - `"programmatic"`34253426 - `async: optional boolean`34273428 - `defer_loading: optional boolean`34293430 Whether this function is deferred and loaded via tool search.34313432 - `description: optional string or null`34333434 A description of the function. Used by the model to determine whether or not to call the function.34353436 - `output_schema: optional map[unknown] or null`34373438 A JSON schema object describing the JSON value encoded in string outputs for this function.34393440 - `FileSearch object { type, vector_store_ids, filters, 2 more }`34413442 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).34433444 - `type: "file_search"`34453446 The type of the file search tool. Always `file_search`.34473448 - `"file_search"`34493450 - `vector_store_ids: array of string`34513452 The IDs of the vector stores to search.34533454 - `filters: optional ComparisonFilter or CompoundFilter or null`34553456 A filter to apply.34573458 - `ComparisonFilter object { key, type, value }`34593460 A filter used to compare a specified attribute key to a given value using a defined comparison operation.34613462 - `CompoundFilter object { filters, type }`34633464 Combine multiple filters using `and` or `or`.34653466 - `max_num_results: optional number`34673468 The maximum number of results to return. This number should be between 1 and 50 inclusive.34693470 - `ranking_options: optional object { hybrid_search, ranker, score_threshold }`34713472 Ranking options for search.34733474 - `hybrid_search: optional object { embedding_weight, text_weight }`34753476 Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled.34773478 - `embedding_weight: number`34793480 The weight of the embedding in the reciprocal ranking fusion.34813482 - `text_weight: number`34833484 The weight of the text in the reciprocal ranking fusion.34853486 - `ranker: optional "auto" or "default-2024-11-15"`34873488 The ranker to use for the file search.34893490 - `"auto"`34913492 - `"default-2024-11-15"`34933494 - `score_threshold: optional number`34953496 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.34973498 - `Computer object { type }`34993500 A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use).35013502 - `type: "computer"`35033504 The type of the computer tool. Always `computer`.35053506 - `"computer"`35073508 - `ComputerUsePreview object { display_height, display_width, environment, type }`35093510 A tool that controls a virtual computer. Learn more about the [computer tool](https://developers.openai.com/api/docs/guides/tools-computer-use).35113512 - `display_height: number`35133514 The height of the computer display.35153516 - `display_width: number`35173518 The width of the computer display.35193520 - `environment: "windows" or "mac" or "linux" or 2 more`35213522 The type of computer environment to control.35233524 - `"windows"`35253526 - `"mac"`35273528 - `"linux"`35293530 - `"ubuntu"`35313532 - `"browser"`35333534 - `type: "computer_use_preview"`35353536 The type of the computer use tool. Always `computer_use_preview`.35373538 - `"computer_use_preview"`35393540 - `WebSearch object { type, external_web_access, filters, 2 more }`35413542 Search the Internet for sources related to the prompt. Learn more about the3543 [web search tool](https://developers.openai.com/api/docs/guides/tools-web-search).35443545 - `type: "web_search" or "web_search_2025_08_26"`35463547 The type of the web search tool. One of `web_search` or `web_search_2025_08_26`.35483549 - `"web_search"`35503551 - `"web_search_2025_08_26"`35523553 - `external_web_access: optional boolean`35543555 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.35563557 - `filters: optional object { allowed_domains } or null`35583559 Filters for the search.35603561 - `allowed_domains: optional array of string or null`35623563 Allowed domains for the search. If not provided, all domains are allowed.3564 Subdomains of the provided domains are allowed as well.35653566 Example: `["pubmed.ncbi.nlm.nih.gov"]`35673568 - `search_context_size: optional "low" or "medium" or "high"`35693570 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.35713572 - `"low"`35733574 - `"medium"`35753576 - `"high"`35773578 - `user_location: optional object { city, country, region, 2 more } or null`35793580 The approximate location of the user.35813582 - `city: optional string or null`35833584 Free text input for the city of the user, e.g. `San Francisco`.35853586 - `country: optional string or null`35873588 The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.35893590 - `region: optional string or null`35913592 Free text input for the region of the user, e.g. `California`.35933594 - `timezone: optional string or null`35953596 The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.35973598 - `type: optional "approximate"`35993600 The type of location approximation. Always `approximate`.36013602 - `"approximate"`36033604 - `Mcp object { server_label, type, allowed_callers, 9 more }`36053606 Give the model access to additional tools via remote Model Context Protocol3607 (MCP) servers. [Learn more about MCP](https://developers.openai.com/api/docs/guides/tools-connectors-mcp).36083609 - `server_label: string`36103611 A label for this MCP server, used to identify it in tool calls.36123613 - `type: "mcp"`36143615 The type of the MCP tool. Always `mcp`.36163617 - `"mcp"`36183619 - `allowed_callers: optional array of "direct" or "programmatic" or null`36203621 The tool invocation context(s).36223623 - `"direct"`36243625 - `"programmatic"`36263627 - `allowed_tools: optional array of string or object { read_only, tool_names } or null`36283629 List of allowed tool names or a filter object.36303631 - `McpAllowedTools = array of string`36323633 A string array of allowed tool names36343635 - `McpToolFilter object { read_only, tool_names }`36363637 A filter object to specify which tools are allowed.36383639 - `read_only: optional boolean`36403641 Indicates whether or not a tool modifies data or is read-only. If an3642 MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),3643 it will match this filter.36443645 - `tool_names: optional array of string`36463647 List of allowed tool names.36483649 - `authorization: optional string`36503651 An OAuth access token that can be used with a remote MCP server, either3652 with a custom MCP server URL or a service connector. Your application3653 must handle the OAuth authorization flow and provide the token here.36543655 - `connector_id: optional "connector_dropbox" or "connector_gmail" or "connector_googlecalendar" or 5 more`36563657 Identifier for service connectors, like those available in ChatGPT. One of3658 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more3659 about service connectors [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).36603661 This field is deprecated for models released after September 1, 2026.3662 Use `server_url` to connect to a remote MCP server, or `tunnel_id` to3663 connect through a Secure MCP Tunnel.36643665 Currently supported `connector_id` values are:36663667 - Dropbox: `connector_dropbox`3668 - Gmail: `connector_gmail`3669 - Google Calendar: `connector_googlecalendar`3670 - Google Drive: `connector_googledrive`3671 - Microsoft Teams: `connector_microsoftteams`3672 - Outlook Calendar: `connector_outlookcalendar`3673 - Outlook Email: `connector_outlookemail`3674 - SharePoint: `connector_sharepoint`36753676 - `"connector_dropbox"`36773678 - `"connector_gmail"`36793680 - `"connector_googlecalendar"`36813682 - `"connector_googledrive"`36833684 - `"connector_microsoftteams"`36853686 - `"connector_outlookcalendar"`36873688 - `"connector_outlookemail"`36893690 - `"connector_sharepoint"`36913692 - `defer_loading: optional boolean`36933694 Whether this MCP tool is deferred and discovered via tool search.36953696 - `headers: optional map[string] or null`36973698 Optional HTTP headers to send to the MCP server. Use for authentication3699 or other purposes.37003701 - `require_approval: optional object { always, never } or "always" or "never" or null`37023703 Specify which of the MCP server's tools require approval.37043705 - `McpToolApprovalFilter object { always, never }`37063707 Specify which of the MCP server's tools require approval. Can be3708 `always`, `never`, or a filter object associated with tools3709 that require approval.37103711 - `always: optional object { read_only, tool_names }`37123713 A filter object to specify which tools are allowed.37143715 - `read_only: optional boolean`37163717 Indicates whether or not a tool modifies data or is read-only. If an3718 MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),3719 it will match this filter.37203721 - `tool_names: optional array of string`37223723 List of allowed tool names.37243725 - `never: optional object { read_only, tool_names }`37263727 A filter object to specify which tools are allowed.37283729 - `read_only: optional boolean`37303731 Indicates whether or not a tool modifies data or is read-only. If an3732 MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),3733 it will match this filter.37343735 - `tool_names: optional array of string`37363737 List of allowed tool names.37383739 - `McpToolApprovalSetting = "always" or "never"`37403741 Specify a single approval policy for all tools. One of `always` or3742 `never`. When set to `always`, all tools will require approval. When3743 set to `never`, all tools will not require approval.37443745 - `"always"`37463747 - `"never"`37483749 - `server_description: optional string`37503751 Optional description of the MCP server, used to provide more context.37523753 - `server_url: optional string`37543755 The URL for the MCP server. One of `server_url`, `connector_id`, or3756 `tunnel_id` must be provided.37573758 - `tunnel_id: optional string`37593760 The Secure MCP Tunnel ID to use instead of a direct server URL. One of3761 `server_url`, `connector_id`, or `tunnel_id` must be provided.37623763 - `CodeInterpreter object { container, type, allowed_callers }`37643765 A tool that runs Python code to help generate a response to a prompt.37663767 - `container: string or object { type, file_ids, memory_limit, network_policy }`37683769 The code interpreter container. Can be a container ID or an object that3770 specifies uploaded file IDs to make available to your code, along with an3771 optional `memory_limit` setting.37723773 - `string`37743775 The container ID.37763777 - `CodeInterpreterToolAuto object { type, file_ids, memory_limit, network_policy }`37783779 Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.37803781 - `type: "auto"`37823783 Always `auto`.37843785 - `"auto"`37863787 - `file_ids: optional array of string`37883789 An optional list of uploaded files to make available to your code.37903791 - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`37923793 The memory limit for the code interpreter container.37943795 - `"1g"`37963797 - `"4g"`37983799 - `"16g"`38003801 - `"64g"`38023803 - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`38043805 Network access policy for the container.38063807 - `ContainerNetworkPolicyDisabled object { type }`38083809 - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`38103811 - `type: "code_interpreter"`38123813 The type of the code interpreter tool. Always `code_interpreter`.38143815 - `"code_interpreter"`38163817 - `allowed_callers: optional array of "direct" or "programmatic" or null`38183819 The tool invocation context(s).38203821 - `"direct"`38223823 - `"programmatic"`38243825 - `ProgrammaticToolCalling object { type }`38263827 - `type: "programmatic_tool_calling"`38283829 The type of the tool. Always `programmatic_tool_calling`.38303831 - `"programmatic_tool_calling"`38323833 - `ImageGeneration object { type, action, background, 9 more }`38343835 A tool that generates images using the GPT image models.38363837 - `type: "image_generation"`38383839 The type of the image generation tool. Always `image_generation`.38403841 - `"image_generation"`38423843 - `action: optional "generate" or "edit" or "auto"`38443845 Whether to generate a new image or edit an existing image. Default: `auto`.38463847 - `"generate"`38483849 - `"edit"`38503851 - `"auto"`38523853 - `background: optional "transparent" or "opaque" or "auto"`38543855 Set the background of the generated image. One of `transparent`, `opaque`,3856 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including3857 their `2026-09-08` snapshots, support `opaque` and `transparent`3858 backgrounds. Transparent backgrounds are available for supported GPT Image3859 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in3860 preview. When using `transparent`, set the output format to `png` or `webp`.3861 Default: `auto`.38623863 - `"transparent"`38643865 - `"opaque"`38663867 - `"auto"`38683869 - `input_fidelity: optional "high" or "low" or null`38703871 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`.38723873 - `"high"`38743875 - `"low"`38763877 - `input_image_mask: optional object { file_id, image_url }`38783879 Optional mask for inpainting. Contains `image_url`3880 (string, optional) and `file_id` (string, optional).38813882 - `file_id: optional string`38833884 File ID for the mask image.38853886 - `image_url: optional string`38873888 Base64-encoded mask image.38893890 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`38913892 The image generation model to use. One of `gpt-image-1`,3893 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,3894 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3895 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3896 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3897 `gpt-image-1`.38983899 - `string`39003901 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`39023903 The image generation model to use. One of `gpt-image-1`,3904 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,3905 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3906 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3907 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3908 `gpt-image-1`.39093910 - `"gpt-image-1"`39113912 - `"gpt-image-1-mini"`39133914 - `"gpt-image-1.5"`39153916 - `"gpt-image-2"`39173918 - `"gpt-image-2-2026-04-21"`39193920 - `"gpt-image-2.5-sunburst"`39213922 - `"gpt-image-2.5-sunburst-2026-09-08"`39233924 - `"gpt-image-2.5-flare"`39253926 - `"gpt-image-2.5-flare-2026-09-08"`39273928 - `moderation: optional "auto" or "low"`39293930 Moderation level for the generated image. Default: `auto`.39313932 - `"auto"`39333934 - `"low"`39353936 - `output_compression: optional number`39373938 Compression level for the output image. Default: 100.39393940 - `output_format: optional "png" or "webp" or "jpeg"`39413942 The output format of the generated image. One of `png`, `webp`, or3943 `jpeg`. Default: `png`.39443945 - `"png"`39463947 - `"webp"`39483949 - `"jpeg"`39503951 - `partial_images: optional number`39523953 Number of partial images to generate in streaming mode, from 0 (default value) to 3.39543955 - `quality: optional "low" or "medium" or "high" or 3 more`39563957 The quality of the generated image. The GPT image models support `low`,3958 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,3959 including their `2026-09-08` snapshots, also support `xhigh` and `max`.3960 Default: `auto`.39613962 - `"low"`39633964 - `"medium"`39653966 - `"high"`39673968 - `"xhigh"`39693970 - `"max"`39713972 - `"auto"`39733974 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`39753976 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`.39773978 - `string`39793980 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`39813982 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`.39833984 - `"1024x1024"`39853986 - `"1024x1536"`39873988 - `"1536x1024"`39893990 - `"auto"`39913992 - `LocalShell object { type }`39933994 A tool that allows the model to execute shell commands in a local environment.39953996 - `type: "local_shell"`39973998 The type of the local shell tool. Always `local_shell`.39994000 - `"local_shell"`40014002 - `Shell object { type, allowed_callers, environment }`40034004 A tool that allows the model to execute shell commands.40054006 - `type: "shell"`40074008 The type of the shell tool. Always `shell`.40094010 - `"shell"`40114012 - `allowed_callers: optional array of "direct" or "programmatic" or null`40134014 The tool invocation context(s).40154016 - `"direct"`40174018 - `"programmatic"`40194020 - `environment: optional ContainerAuto or LocalEnvironment or ContainerReference or null`40214022 - `ContainerAuto object { type, file_ids, memory_limit, 2 more }`40234024 - `LocalEnvironment object { type, skills }`40254026 - `ContainerReference object { container_id, type }`40274028 - `Custom object { name, type, allowed_callers, 4 more }`40294030 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)40314032 - `name: string`40334034 The name of the custom tool, used to identify it in tool calls.40354036 - `type: "custom"`40374038 The type of the custom tool. Always `custom`.40394040 - `"custom"`40414042 - `allowed_callers: optional array of "direct" or "programmatic" or null`40434044 The tool invocation context(s).40454046 - `"direct"`40474048 - `"programmatic"`40494050 - `async: optional boolean`40514052 Whether the tool response can be returned asynchronously versus immediately returned on next response creation.40534054 - `defer_loading: optional boolean`40554056 Whether this tool should be deferred and discovered via tool search.40574058 - `description: optional string`40594060 Optional description of the custom tool, used to provide more context.40614062 - `format: optional CustomToolInputFormat`40634064 The input format for the custom tool. Default is unconstrained text.40654066 - `Namespace object { description, name, tools, type }`40674068 Groups function/custom tools under a shared namespace.40694070 - `description: string`40714072 A description of the namespace shown to the model.40734074 - `name: string`40754076 The namespace name used in tool calls (for example, `crm`).40774078 - `tools: array of object { name, type, allowed_callers, 6 more } or object { name, type, allowed_callers, 4 more }`40794080 The function/custom tools available inside this namespace.40814082 - `Function object { name, type, allowed_callers, 6 more }`40834084 - `name: string`40854086 - `type: "function"`40874088 - `"function"`40894090 - `allowed_callers: optional array of "direct" or "programmatic" or null`40914092 The tool invocation context(s).40934094 - `"direct"`40954096 - `"programmatic"`40974098 - `async: optional boolean`40994100 Whether the tool response can be returned asynchronously versus immediately returned on next response creation.41014102 - `defer_loading: optional boolean`41034104 Whether this function should be deferred and discovered via tool search.41054106 - `description: optional string or null`41074108 - `output_schema: optional map[unknown] or null`41094110 A JSON Schema describing the JSON value encoded in string outputs for this function tool. This does not describe content-array outputs.41114112 - `parameters: optional unknown or null`41134114 - `strict: optional boolean or null`41154116 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.41174118 - `Custom object { name, type, allowed_callers, 4 more }`41194120 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)41214122 - `name: string`41234124 The name of the custom tool, used to identify it in tool calls.41254126 - `type: "custom"`41274128 The type of the custom tool. Always `custom`.41294130 - `"custom"`41314132 - `allowed_callers: optional array of "direct" or "programmatic" or null`41334134 The tool invocation context(s).41354136 - `"direct"`41374138 - `"programmatic"`41394140 - `async: optional boolean`41414142 Whether the tool response can be returned asynchronously versus immediately returned on next response creation.41434144 - `defer_loading: optional boolean`41454146 Whether this tool should be deferred and discovered via tool search.41474148 - `description: optional string`41494150 Optional description of the custom tool, used to provide more context.41514152 - `format: optional CustomToolInputFormat`41534154 The input format for the custom tool. Default is unconstrained text.41554156 - `type: "namespace"`41574158 The type of the tool. Always `namespace`.41594160 - `"namespace"`41614162 - `ToolSearch object { type, description, execution, parameters }`41634164 Hosted or BYOT tool search configuration for deferred tools.41654166 - `type: "tool_search"`41674168 The type of the tool. Always `tool_search`.41694170 - `"tool_search"`41714172 - `description: optional string or null`41734174 Description shown to the model for a client-executed tool search tool.41754176 - `execution: optional "server" or "client"`41774178 Whether tool search is executed by the server or by the client.41794180 - `"server"`41814182 - `"client"`41834184 - `parameters: optional unknown or null`41854186 Parameter schema for a client-executed tool search tool.41874188 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`41894190 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).41914192 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`41934194 The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.41954196 - `"web_search_preview"`41974198 - `"web_search_preview_2025_03_11"`41994200 - `search_content_types: optional array of "text" or "image"`42014202 - `"text"`42034204 - `"image"`42054206 - `search_context_size: optional "low" or "medium" or "high"`42074208 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.42094210 - `"low"`42114212 - `"medium"`42134214 - `"high"`42154216 - `user_location: optional object { type, city, country, 2 more } or null`42174218 The user's location.42194220 - `type: "approximate"`42214222 The type of location approximation. Always `approximate`.42234224 - `"approximate"`42254226 - `city: optional string or null`42274228 Free text input for the city of the user, e.g. `San Francisco`.42294230 - `country: optional string or null`42314232 The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.42334234 - `region: optional string or null`42354236 Free text input for the region of the user, e.g. `California`.42374238 - `timezone: optional string or null`42394240 The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.42414242 - `ApplyPatch object { type, allowed_callers }`42434244 Allows the assistant to create, delete, or update files using unified diffs.42454246 - `type: "apply_patch"`42474248 The type of the tool. Always `apply_patch`.42494250 - `"apply_patch"`42514252 - `allowed_callers: optional array of "direct" or "programmatic" or null`42534254 The tool invocation context(s).42554256 - `"direct"`42574258 - `"programmatic"`42594260 - `type: "additional_tools"`42614262 The item type. Always `additional_tools`.42634264 - `"additional_tools"`42654266 - `id: optional string or null`42674268 The unique ID of this additional tools item.42694270 - `ConfigurationUpdate object { type, id, reasoning }`42714272 An update to the conversation's response configuration. The configuration4273 remains in effect for subsequent responses until it is replaced by another4274 configuration update.42754276 - `type: "configuration_update"`42774278 The item type. Always `configuration_update`.42794280 - `"configuration_update"`42814282 - `id: optional string or null`42834284 The unique ID of the configuration update item.42854286 - `reasoning: optional object { effort }`42874288 Updates to reasoning configuration. Only effort is supported.42894290 - `effort: optional ReasoningEffort or null`42914292 The reasoning effort to use for subsequent responses until another4293 configuration update replaces it.42944295 - `"none"`42964297 - `"minimal"`42984299 - `"low"`43004301 - `"medium"`43024303 - `"high"`43044305 - `"xhigh"`43064307 - `"max"`43084309 - `Reasoning object { id, summary, type, 3 more }`43104311 A description of the chain of thought used by a reasoning model while generating4312 a response. Be sure to include these items in your `input` to the Responses API4313 for subsequent turns of a conversation if you are manually4314 [managing context](https://developers.openai.com/api/docs/guides/conversation-state).43154316 - `id: string`43174318 The unique identifier of the reasoning content.43194320 - `summary: array of SummaryTextContent`43214322 Reasoning summary content.43234324 - `text: string`43254326 A summary of the reasoning output from the model so far.43274328 - `type: "summary_text"`43294330 The type of the object. Always `summary_text`.43314332 - `"summary_text"`43334334 - `type: "reasoning"`43354336 The type of the object. Always `reasoning`.43374338 - `"reasoning"`43394340 - `content: optional array of object { text, type }`43414342 Reasoning text content.43434344 - `text: string`43454346 The reasoning text from the model.43474348 - `type: "reasoning_text"`43494350 The type of the reasoning text. Always `reasoning_text`.43514352 - `"reasoning_text"`43534354 - `encrypted_content: optional string or null`43554356 The encrypted content of the reasoning item. This is populated by default4357 for reasoning items returned by `POST /v1/responses` and WebSocket4358 `response.create` requests.43594360 When streaming, use the completed reasoning item and its4361 `encrypted_content` from the `response.output_item.done` event in4362 subsequent requests. The `encrypted_content` in4363 `response.output_item.added` may be incomplete. This is especially4364 important when `store` is `false` or when using Zero Data Retention.43654366 - `status: optional "in_progress" or "completed" or "incomplete"`43674368 The status of the item. One of `in_progress`, `completed`, or4369 `incomplete`. Populated when items are returned via API.43704371 - `"in_progress"`43724373 - `"completed"`43744375 - `"incomplete"`43764377 - `Compaction object { encrypted_content, type, id }`43784379 A compaction item generated by the [`v1/responses/compact` API](https://developers.openai.com/api/reference/resources/responses/methods/compact).43804381 - `encrypted_content: string`43824383 The encrypted content of the compaction summary.43844385 - `type: "compaction"`43864387 The type of the item. Always `compaction`.43884389 - `"compaction"`43904391 - `id: optional string or null`43924393 The ID of the compaction item.43944395 - `ImageGenerationCall object { id, result, status, 7 more }`43964397 An image generation request made by the model.43984399 - `id: string`44004401 The unique ID of the image generation call.44024403 - `result: string or null`44044405 The generated image encoded in base64.44064407 - `status: "in_progress" or "completed" or "generating" or "failed"`44084409 The status of the image generation call.44104411 - `"in_progress"`44124413 - `"completed"`44144415 - `"generating"`44164417 - `"failed"`44184419 - `type: "image_generation_call"`44204421 The type of the image generation call. Always `image_generation_call`.44224423 - `"image_generation_call"`44244425 - `action: optional "generate" or "edit" or "auto" or null`44264427 The action used for image generation.44284429 - `"generate"`44304431 - `"edit"`44324433 - `"auto"`44344435 - `background: optional "transparent" or "opaque" or "auto" or null`44364437 The background setting used for generation.44384439 - `"transparent"`44404441 - `"opaque"`44424443 - `"auto"`44444445 - `output_format: optional "png" or "webp" or "jpeg" or null`44464447 The output format used for generation.44484449 - `"png"`44504451 - `"webp"`44524453 - `"jpeg"`44544455 - `quality: optional "low" or "medium" or "high" or 3 more or null`44564457 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.44584459 - `"low"`44604461 - `"medium"`44624463 - `"high"`44644465 - `"xhigh"`44664467 - `"max"`44684469 - `"auto"`44704471 - `revised_prompt: optional string or null`44724473 The prompt that was used after any model prompt rewriting.44744475 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`44764477 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.44784479 - `string`44804481 - `"1024x1024" or "1024x1536" or "1536x1024"`44824483 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.44844485 - `"1024x1024"`44864487 - `"1024x1536"`44884489 - `"1536x1024"`44904491 - `CodeInterpreterCall object { id, code, container_id, 3 more }`44924493 A tool call to run code.44944495 - `id: string`44964497 The unique ID of the code interpreter tool call.44984499 - `code: string or null`45004501 The code to run, or null if not available.45024503 - `container_id: string`45044505 The ID of the container used to run the code.45064507 - `outputs: array of object { logs, type } or object { type, url } or null`45084509 The outputs generated by the code interpreter, such as logs or images.4510 Can be null if no outputs are available.45114512 - `Logs object { logs, type }`45134514 The logs output from the code interpreter.45154516 - `logs: string`45174518 The logs output from the code interpreter.45194520 - `type: "logs"`45214522 The type of the output. Always `logs`.45234524 - `"logs"`45254526 - `Image object { type, url }`45274528 The image output from the code interpreter.45294530 - `type: "image"`45314532 The type of the output. Always `image`.45334534 - `"image"`45354536 - `url: string`45374538 The URL of the image output from the code interpreter.45394540 - `status: "in_progress" or "completed" or "incomplete" or 2 more`45414542 The status of the code interpreter tool call. Valid values are `in_progress`, `completed`, `incomplete`, `interpreting`, and `failed`.45434544 - `"in_progress"`45454546 - `"completed"`45474548 - `"incomplete"`45494550 - `"interpreting"`45514552 - `"failed"`45534554 - `type: "code_interpreter_call"`45554556 The type of the code interpreter tool call. Always `code_interpreter_call`.45574558 - `"code_interpreter_call"`45594560 - `LocalShellCall object { id, action, call_id, 2 more }`45614562 A tool call to run a command on the local shell.45634564 - `id: string`45654566 The unique ID of the local shell call.45674568 - `action: object { command, env, type, 3 more }`45694570 Execute a shell command on the server.45714572 - `command: array of string`45734574 The command to run.45754576 - `env: map[string]`45774578 Environment variables to set for the command.45794580 - `type: "exec"`45814582 The type of the local shell action. Always `exec`.45834584 - `"exec"`45854586 - `timeout_ms: optional number or null`45874588 Optional timeout in milliseconds for the command.45894590 - `user: optional string or null`45914592 Optional user to run the command as.45934594 - `working_directory: optional string or null`45954596 Optional working directory to run the command in.45974598 - `call_id: string`45994600 The unique ID of the local shell tool call generated by the model.46014602 - `status: "in_progress" or "completed" or "incomplete"`46034604 The status of the local shell call.46054606 - `"in_progress"`46074608 - `"completed"`46094610 - `"incomplete"`46114612 - `type: "local_shell_call"`46134614 The type of the local shell call. Always `local_shell_call`.46154616 - `"local_shell_call"`46174618 - `LocalShellCallOutput object { id, output, type, status }`46194620 The output of a local shell tool call.46214622 - `id: string`46234624 The unique ID of the local shell tool call generated by the model.46254626 - `output: string`46274628 A JSON string of the output of the local shell tool call.46294630 - `type: "local_shell_call_output"`46314632 The type of the local shell tool call output. Always `local_shell_call_output`.46334634 - `"local_shell_call_output"`46354636 - `status: optional "in_progress" or "completed" or "incomplete" or null`46374638 The status of the item. One of `in_progress`, `completed`, or `incomplete`.46394640 - `"in_progress"`46414642 - `"completed"`46434644 - `"incomplete"`46454646 - `ShellCall object { action, call_id, type, 4 more }`46474648 A tool representing a request to execute one or more shell commands.46494650 - `action: object { commands, max_output_length, timeout_ms }`46514652 The shell commands and limits that describe how to run the tool call.46534654 - `commands: array of string`46554656 Ordered shell commands for the execution environment to run.46574658 - `max_output_length: optional number or null`46594660 Maximum number of UTF-8 characters to capture from combined stdout and stderr output.46614662 - `timeout_ms: optional number or null`46634664 Maximum wall-clock time in milliseconds to allow the shell commands to run.46654666 - `call_id: string`46674668 The unique ID of the shell tool call generated by the model.46694670 - `type: "shell_call"`46714672 The type of the item. Always `shell_call`.46734674 - `"shell_call"`46754676 - `id: optional string or null`46774678 The unique ID of the shell tool call. Populated when this item is returned via API.46794680 - `caller: optional object { type } or object { caller_id, type } or null`46814682 The execution context that produced this tool call.46834684 - `Direct object { type }`46854686 - `type: "direct"`46874688 The caller type. Always `direct`.46894690 - `"direct"`46914692 - `Program object { caller_id, type }`46934694 - `caller_id: string`46954696 The call ID of the program item that produced this tool call.46974698 - `type: "program"`46994700 The caller type. Always `program`.47014702 - `"program"`47034704 - `environment: optional LocalEnvironment or ContainerReference or null`47054706 The environment to execute the shell commands in.47074708 - `LocalEnvironment object { type, skills }`47094710 - `ContainerReference object { container_id, type }`47114712 - `status: optional "in_progress" or "completed" or "incomplete" or null`47134714 The status of the shell call. One of `in_progress`, `completed`, or `incomplete`.47154716 - `"in_progress"`47174718 - `"completed"`47194720 - `"incomplete"`47214722 - `ShellCallOutput object { call_id, output, type, 4 more }`47234724 The streamed output items emitted by a shell tool call.47254726 - `call_id: string`47274728 The unique ID of the shell tool call generated by the model.47294730 - `output: array of ResponseFunctionShellCallOutputContent`47314732 Captured chunks of stdout and stderr output, along with their associated outcomes.47334734 - `outcome: object { type } or object { exit_code, type }`47354736 The exit or timeout outcome associated with this shell call.47374738 - `Timeout object { type }`47394740 Indicates that the shell call exceeded its configured time limit.47414742 - `type: "timeout"`47434744 The outcome type. Always `timeout`.47454746 - `"timeout"`47474748 - `Exit object { exit_code, type }`47494750 Indicates that the shell commands finished and returned an exit code.47514752 - `exit_code: number`47534754 The exit code returned by the shell process.47554756 - `type: "exit"`47574758 The outcome type. Always `exit`.47594760 - `"exit"`47614762 - `stderr: string`47634764 Captured stderr output for the shell call.47654766 - `stdout: string`47674768 Captured stdout output for the shell call.47694770 - `type: "shell_call_output"`47714772 The type of the item. Always `shell_call_output`.47734774 - `"shell_call_output"`47754776 - `id: optional string or null`47774778 The unique ID of the shell tool call output. Populated when this item is returned via API.47794780 - `caller: optional object { type } or object { caller_id, type } or null`47814782 The execution context that produced this tool call.47834784 - `Direct object { type }`47854786 - `type: "direct"`47874788 The caller type. Always `direct`.47894790 - `"direct"`47914792 - `Program object { caller_id, type }`47934794 - `caller_id: string`47954796 The call ID of the program item that produced this tool call.47974798 - `type: "program"`47994800 The caller type. Always `program`.48014802 - `"program"`48034804 - `max_output_length: optional number or null`48054806 The maximum number of UTF-8 characters captured for this shell call's combined output.48074808 - `status: optional "in_progress" or "completed" or "incomplete" or null`48094810 The status of the shell call output.48114812 - `"in_progress"`48134814 - `"completed"`48154816 - `"incomplete"`48174818 - `ApplyPatchCall object { call_id, operation, status, 3 more }`48194820 A tool call representing a request to create, delete, or update files using diff patches.48214822 - `call_id: string`48234824 The unique ID of the apply patch tool call generated by the model.48254826 - `operation: object { diff, path, type } or object { path, type } or object { diff, path, type }`48274828 The specific create, delete, or update instruction for the apply_patch tool call.48294830 - `CreateFile object { diff, path, type }`48314832 Instruction for creating a new file via the apply_patch tool.48334834 - `diff: string`48354836 Unified diff content to apply when creating the file.48374838 - `path: string`48394840 Path of the file to create relative to the workspace root.48414842 - `type: "create_file"`48434844 The operation type. Always `create_file`.48454846 - `"create_file"`48474848 - `DeleteFile object { path, type }`48494850 Instruction for deleting an existing file via the apply_patch tool.48514852 - `path: string`48534854 Path of the file to delete relative to the workspace root.48554856 - `type: "delete_file"`48574858 The operation type. Always `delete_file`.48594860 - `"delete_file"`48614862 - `UpdateFile object { diff, path, type }`48634864 Instruction for updating an existing file via the apply_patch tool.48654866 - `diff: string`48674868 Unified diff content to apply to the existing file.48694870 - `path: string`48714872 Path of the file to update relative to the workspace root.48734874 - `type: "update_file"`48754876 The operation type. Always `update_file`.48774878 - `"update_file"`48794880 - `status: "in_progress" or "completed"`48814882 The status of the apply patch tool call. One of `in_progress` or `completed`.48834884 - `"in_progress"`48854886 - `"completed"`48874888 - `type: "apply_patch_call"`48894890 The type of the item. Always `apply_patch_call`.48914892 - `"apply_patch_call"`48934894 - `id: optional string or null`48954896 The unique ID of the apply patch tool call. Populated when this item is returned via API.48974898 - `caller: optional object { type } or object { caller_id, type } or null`48994900 The execution context that produced this tool call.49014902 - `Direct object { type }`49034904 - `type: "direct"`49054906 The caller type. Always `direct`.49074908 - `"direct"`49094910 - `Program object { caller_id, type }`49114912 - `caller_id: string`49134914 The call ID of the program item that produced this tool call.49154916 - `type: "program"`49174918 The caller type. Always `program`.49194920 - `"program"`49214922 - `ApplyPatchCallOutput object { call_id, status, type, 3 more }`49234924 The streamed output emitted by an apply patch tool call.49254926 - `call_id: string`49274928 The unique ID of the apply patch tool call generated by the model.49294930 - `status: "completed" or "failed"`49314932 The status of the apply patch tool call output. One of `completed` or `failed`.49334934 - `"completed"`49354936 - `"failed"`49374938 - `type: "apply_patch_call_output"`49394940 The type of the item. Always `apply_patch_call_output`.49414942 - `"apply_patch_call_output"`49434944 - `id: optional string or null`49454946 The unique ID of the apply patch tool call output. Populated when this item is returned via API.49474948 - `caller: optional object { type } or object { caller_id, type } or null`49494950 The execution context that produced this tool call.49514952 - `Direct object { type }`49534954 - `type: "direct"`49554956 The caller type. Always `direct`.49574958 - `"direct"`49594960 - `Program object { caller_id, type }`49614962 - `caller_id: string`49634964 The call ID of the program item that produced this tool call.49654966 - `type: "program"`49674968 The caller type. Always `program`.49694970 - `"program"`49714972 - `output: optional string or null`49734974 Optional human-readable log text from the apply patch tool (e.g., patch results or errors).49754976 - `McpListTools object { id, server_label, tools, 2 more }`49774978 A list of tools available on an MCP server.49794980 - `id: string`49814982 The unique ID of the list.49834984 - `server_label: string`49854986 The label of the MCP server.49874988 - `tools: array of object { input_schema, name, annotations, description }`49894990 The tools available on the server.49914992 - `input_schema: unknown`49934994 The JSON schema describing the tool's input.49954996 - `name: string`49974998 The name of the tool.49995000 - `annotations: optional unknown or null`50015002 Additional annotations about the tool.50035004 - `description: optional string or null`50055006 The description of the tool.50075008 - `type: "mcp_list_tools"`50095010 The type of the item. Always `mcp_list_tools`.50115012 - `"mcp_list_tools"`50135014 - `error: optional string or null`50155016 Error message if the server could not list tools.50175018 - `McpApprovalRequest object { id, arguments, name, 2 more }`50195020 A request for human approval of a tool invocation.50215022 - `id: string`50235024 The unique ID of the approval request.50255026 - `arguments: string`50275028 A JSON string of arguments for the tool.50295030 - `name: string`50315032 The name of the tool to run.50335034 - `server_label: string`50355036 The label of the MCP server making the request.50375038 - `type: "mcp_approval_request"`50395040 The type of the item. Always `mcp_approval_request`.50415042 - `"mcp_approval_request"`50435044 - `McpApprovalResponse object { approval_request_id, approve, type, 2 more }`50455046 A response to an MCP approval request.50475048 - `approval_request_id: string`50495050 The ID of the approval request being answered.50515052 - `approve: boolean`50535054 Whether the request was approved.50555056 - `type: "mcp_approval_response"`50575058 The type of the item. Always `mcp_approval_response`.50595060 - `"mcp_approval_response"`50615062 - `id: optional string or null`50635064 The unique ID of the approval response50655066 - `reason: optional string or null`50675068 Optional reason for the decision.50695070 - `McpCall object { id, arguments, name, 6 more }`50715072 An invocation of a tool on an MCP server.50735074 - `id: string`50755076 The unique ID of the tool call.50775078 - `arguments: string`50795080 A JSON string of the arguments passed to the tool.50815082 - `name: string`50835084 The name of the tool that was run.50855086 - `server_label: string`50875088 The label of the MCP server running the tool.50895090 - `type: "mcp_call"`50915092 The type of the item. Always `mcp_call`.50935094 - `"mcp_call"`50955096 - `approval_request_id: optional string or null`50975098 Unique identifier for the MCP tool call approval request.5099 Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.51005101 - `error: optional McpToolCallError or null`51025103 The error from the tool call, if any.51045105 - `McpProtocolError object { code, message, type }`51065107 - `code: number`51085109 - `message: string`51105111 - `type: "mcp_protocol_error"`51125113 - `"mcp_protocol_error"`51145115 - `McpToolExecutionError object { content, type }`51165117 - `content: unknown`51185119 - `type: "mcp_tool_execution_error"`51205121 - `"mcp_tool_execution_error"`51225123 - `HTTPError object { code, message, type }`51245125 - `code: number`51265127 - `message: string`51285129 - `type: "http_error"`51305131 - `"http_error"`51325133 - `output: optional string or null`51345135 The output from the tool call.51365137 - `status: optional "in_progress" or "completed" or "incomplete" or 2 more`51385139 The status of the tool call. One of `in_progress`, `completed`, `incomplete`, `calling`, or `failed`.51405141 - `"in_progress"`51425143 - `"completed"`51445145 - `"incomplete"`51465147 - `"calling"`51485149 - `"failed"`51505151 - `CustomToolCallOutput object { call_id, output, type, 2 more }`51525153 The output of a custom tool call from your code, being sent back to the model.51545155 - `call_id: string`51565157 The call ID, used to map this custom tool call output to a custom tool call.51585159 - `output: string or array of ResponseInputText or ResponseInputImage or ResponseInputFile`51605161 The output from the custom tool call generated by your code.5162 Can be a string or an list of output content.51635164 - `StringOutput = string`51655166 A string of the output of the custom tool call.51675168 - `OutputContentList = array of ResponseInputText or ResponseInputImage or ResponseInputFile`51695170 Text, image, or file output of the custom tool call.51715172 - `ResponseInputText object { text, type, prompt_cache_breakpoint }`51735174 A text input to the model.51755176 - `ResponseInputImage object { detail, type, file_id, 2 more }`51775178 An image input to the model. Learn about [image inputs](https://developers.openai.com/api/docs/guides/images-vision).51795180 - `ResponseInputFile object { type, detail, file_data, 4 more }`51815182 A file input to the model.51835184 - `type: "custom_tool_call_output"`51855186 The type of the custom tool call output. Always `custom_tool_call_output`.51875188 - `"custom_tool_call_output"`51895190 - `id: optional string`51915192 The unique ID of the custom tool call output in the OpenAI platform.51935194 - `caller: optional object { type } or object { caller_id, type } or null`51955196 The execution context that produced this tool call.51975198 - `Direct object { type }`51995200 - `type: "direct"`52015202 The caller type. Always `direct`.52035204 - `"direct"`52055206 - `Program object { caller_id, type }`52075208 - `caller_id: string`52095210 The call ID of the program item that produced this tool call.52115212 - `type: "program"`52135214 The caller type. Always `program`.52155216 - `"program"`52175218 - `CustomToolCall object { call_id, input, name, 5 more }`52195220 A call to a custom tool created by the model.52215222 - `call_id: string`52235224 An identifier used to map this custom tool call to a tool call output.52255226 - `input: string`52275228 The input for the custom tool call generated by the model.52295230 - `name: string`52315232 The name of the custom tool being called.52335234 - `type: "custom_tool_call"`52355236 The type of the custom tool call. Always `custom_tool_call`.52375238 - `"custom_tool_call"`52395240 - `id: optional string`52415242 The unique ID of the custom tool call in the OpenAI platform.52435244 - `async: optional boolean`52455246 Whether the custom tool call runs asynchronously.52475248 - `caller: optional object { type } or object { caller_id, type } or null`52495250 The execution context that produced this tool call.52515252 - `Direct object { type }`52535254 - `type: "direct"`52555256 - `"direct"`52575258 - `Program object { caller_id, type }`52595260 - `caller_id: string`52615262 The call ID of the program item that produced this tool call.52635264 - `type: "program"`52655266 - `"program"`52675268 - `namespace: optional string`52695270 The namespace of the custom tool being called.52715272 - `CompactionTrigger object { type, id }`52735274 Compacts the current context. Must be the final input item.52755276 - `type: "compaction_trigger"`52775278 The type of the item. Always `compaction_trigger`.52795280 - `"compaction_trigger"`52815282 - `id: optional string or null`52835284 The unique ID of this compaction trigger.52855286 - `ItemReference object { id, type }`52875288 An internal identifier for an item to reference.52895290 - `id: string`52915292 The ID of the item to reference.52935294 - `type: optional "item_reference" or null`52955296 The type of item to reference. Always `item_reference`.52975298 - `"item_reference"`52995300 - `Program object { id, call_id, code, 2 more }`53015302 - `id: string`53035304 The unique ID of this program item.53055306 - `call_id: string`53075308 The stable call ID of the program item.53095310 - `code: string`53115312 The JavaScript source executed by programmatic tool calling.53135314 - `fingerprint: string`53155316 Opaque program replay fingerprint that must be round-tripped.53175318 - `type: "program"`53195320 The item type. Always `program`.53215322 - `"program"`53235324 - `ProgramOutput object { id, call_id, result, 2 more }`53255326 - `id: string`53275328 The unique ID of this program output item.53295330 - `call_id: string`53315332 The call ID of the program item.53335334 - `result: string`53355336 The result produced by the program item.53375338 - `status: "completed" or "incomplete"`53395340 The terminal status of the program output.53415342 - `"completed"`53435344 - `"incomplete"`53455346 - `type: "program_output"`53475348 The item type. Always `program_output`.53495350 - `"program_output"`53515352- `type: "response.item.create"`53535354 The Live client event type. Always `response.item.create`.53555356 - `"response.item.create"`53575358- `event_id: optional string or null`53595360 Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.53615362#### Example53635364```json5365{5366 "type": "response.item.create",5367 "event_id": "evt_item_001",5368 "item": {5369 "type": "message",5370 "role": "user",5371 "content": [5372 {5373 "type": "input_text",5374 "text": "Please check for a table for two at 7 PM."5375 }5376 ]5377 }5378}5379```53805381<a id="response.create"></a>53825383### response.create53845385Request a response from the Live session’s Responses backend, or continue a delegated response waiting for tool results. Requires Responses delegation.53865387#### Schema53885389Schema name: `LiveResponseCreateParam`53905391- `type: "response.create"`53925393 The Live client event type. Always `response.create`.53945395 - `"response.create"`53965397- `event_id: optional string or null`53985399 Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.54005401#### Example54025403```json5404{5405 "type": "response.create",5406 "event_id": "evt_response_001"5407}5408```54095410<a id="session.close"></a>54115412### session.close54135414Request that the Live session close. The terminal `session.closed` event contains the close reason and final usage.54155416#### Schema54175418Schema name: `LiveSessionCloseParam`54195420- `type: "session.close"`54215422 The Live client event type. Always `session.close`.54235424 - `"session.close"`54255426- `event_id: optional string or null`54275428 Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.54295430#### Example54315432```json5433{5434 "type": "session.close",5435 "event_id": "evt_close_001"5436}5437```54385439<a id="server-events"></a>54405441## Server events54425443<a id="session.started"></a>54445445### session.started54465447Returned when a Live session has started. Contains the resolved session configuration, including server defaults.54485449#### Schema54505451Schema name: `LiveSessionStarted`54525453- `event_id: string`54545455 The unique ID of the Live server event.54565457- `session: SessionResource`54585459 The resolved Live session configuration and server-assigned session metadata.54605461 - `id: string`54625463 The unique ID of the Live session. Use this ID for sideband connections, forking, and recording download.54645465 - `expires_at: number`54665467 The Unix timestamp, in seconds, at which the Live session expires.54685469 - `model: string or "gpt-live-1"`54705471 The Live model. Required in the session configuration for every transport; do not pass it as a URL query parameter.54725473 - `string`54745475 - `"gpt-live-1"`54765477 The Live model. Required in the session configuration for every transport; do not pass it as a URL query parameter.54785479 - `"gpt-live-1"`54805481 - `status: "active"`54825483 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.54845485 - `"active"`54865487 - `audio: optional object { format, output }`54885489 Startup audio configuration. Only primary WebSockets accept audio.format; WebRTC and SIP negotiate their media format. Voice and format are immutable after startup.54905491 - `format: optional AudioFormat`54925493 Audio encoding and sample rate for audio sent and received over a Live WebSocket connection. WebRTC and SIP negotiate their media format separately.54945495 - `AudioPCM object { rate, type }`54965497 Raw, mono 16-bit little-endian PCM audio for a Live WebSocket connection.54985499 - `rate: 16000 or 24000`55005501 Audio sample rate in hertz. Live WebSocket PCM audio supports 16000 or 24000 Hz.55025503 - `16000`55045505 - `24000`55065507 - `type: "audio/pcm"`55085509 The audio encoding. Always `audio/pcm`.55105511 - `"audio/pcm"`55125513 - `AudioPCMU object { rate, type }`55145515 Raw, mono G.711 μ-law audio for a Live WebSocket connection.55165517 - `rate: number`55185519 Audio sample rate in hertz. G.711 audio uses 8000 Hz.55205521 - `type: "audio/pcmu"`55225523 The audio encoding. Always `audio/pcmu`.55245525 - `"audio/pcmu"`55265527 - `AudioPCMA object { rate, type }`55285529 Raw, mono G.711 A-law audio for a Live WebSocket connection.55305531 - `rate: number`55325533 Audio sample rate in hertz. G.711 audio uses 8000 Hz.55345535 - `type: "audio/pcma"`55365537 The audio encoding. Always `audio/pcma`.55385539 - `"audio/pcma"`55405541 - `output: optional object { voice }`55425543 The voice used for speech generated by the Live model.55445545 - `voice: optional string or "alloy" or "ash" or "ballad" or 19 more or CustomVoice`55465547 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.55485549 - `string`55505551 - `"alloy" or "ash" or "ballad" or 19 more`55525553 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.55545555 - `"alloy"`55565557 - `"ash"`55585559 - `"ballad"`55605561 - `"beacon"`55625563 - `"bossa"`55645565 - `"cedar"`55665567 - `"cinder"`55685569 - `"coral"`55705571 - `"delta"`55725573 - `"echo"`55745575 - `"gleam"`55765577 - `"marin"`55785579 - `"meridian"`55805581 - `"quartz"`55825583 - `"ripple"`55845585 - `"sage"`55865587 - `"shimmer"`55885589 - `"stone"`55905591 - `"tempo"`55925593 - `"verse"`55945595 - `"vesper"`55965597 - `"willow"`55985599 - `CustomVoice object { id }`56005601 - `id: string`56025603 - `client: optional ClientConfig`56045605 Startup-only capabilities for an untrusted frontend attached to a unified WebRTC session. Trusted sideband connections are unaffected.56065607 - `data_channel: DataChannelConfig`56085609 Client and server event permissions for the WebRTC frontend data channel.56105611 - `allowed_client_events: optional "all" or array of string`56125613 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.56145615 - `"all"`56165617 - `"all"`56185619 - `array of string`56205621 - `allowed_server_events: optional "all" or array of ServerEventSelector`56225623 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.56245625 - `"all"`56265627 - `"all"`56285629 - `array of ServerEventSelector`56305631 - `type: string`56325633 The outer Live server event type. Use 'response.event' for Responses events.56345635 - `response_event: optional string`56365637 The nested Responses event type. Required when type is 'response.event'; forbidden for other event types.56385639 - `delegation: optional ClientDelegation or object { responses, type } or null`56405641 Who handles tasks delegated by the Live model. Omitted or null selects your application; use `responses` to let the API manage a Responses backend.56425643 - `ClientDelegation object { type }`56445645 Delegate tasks to your application. The Live session emits delegation events that your backend handles.56465647 - `type: "client"`56485649 The delegation owner. Always `client` for tasks handled by your application.56505651 - `"client"`56525653 - `Responses object { responses, type }`56545655 Delegate tasks to a Responses model managed by the Live session.56565657 - `responses: ResponsesDelegationConfig`56585659 Backend model, prompt, and tools used when the Live session delegates a task to Responses.56605661 - `model: string`56625663 The model used for server-owned Responses delegations.56645665 - `instructions: optional string or null`56665667 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).56685669 - `max_output_tokens: optional number or null`56705671 Maximum number of output tokens for each delegated response.56725673 - `parallel_tool_calls: optional boolean or null`56745675 Whether the delegated Responses model may request multiple tool calls in a single response.56765677 - `reasoning: optional object { effort, summary } or null`56785679 Reasoning settings passed to each delegated Responses request.56805681 - `effort: optional "none" or "minimal" or "low" or 3 more or null`56825683 How much reasoning effort the delegated Responses model should use. Supported values depend on the backend model.56845685 - `"none"`56865687 - `"minimal"`56885689 - `"low"`56905691 - `"medium"`56925693 - `"high"`56945695 - `"xhigh"`56965697 - `summary: optional "concise" or "detailed" or "auto" or null`56985699 The reasoning summary to request from the delegated Responses model, when supported.57005701 - `"concise"`57025703 - `"detailed"`57045705 - `"auto"`57065707 - `service_tier: optional "auto" or "default" or "fast_tier_temp_pilot" or 3 more or null`57085709 Service tier for delegated Responses requests.57105711 - `"auto"`57125713 - `"default"`57145715 - `"fast_tier_temp_pilot"`57165717 - `"flex"`57185719 - `"priority"`57205721 - `"ultrafast"`57225723 - `text: optional object { verbosity } or null`57245725 Text generation settings passed to each delegated Responses request.57265727 - `verbosity: optional "low" or "medium" or "high" or null`57285729 The amount of detail in text generated by the Responses backend. This does not configure the Live model’s spoken delivery.57305731 - `"low"`57325733 - `"medium"`57345735 - `"high"`57365737 - `tool_choice: optional "auto" or "none" or "required" or object { name, type } or object { name, server_label, type }`57385739 Controls which tool the Responses backend uses when handling a task delegated by the Live model.57405741 - `LiveToolChoiceEnum = "auto" or "none" or "required"`57425743 - `"auto"`57445745 - `"none"`57465747 - `"required"`57485749 - `LiveFunctionToolChoiceParam object { name, type }`57505751 - `name: string`57525753 - `type: "function"`57545755 - `"function"`57565757 - `LiveMCPToolChoiceParam object { name, server_label, type }`57585759 - `name: string`57605761 - `server_label: string`57625763 - `type: "mcp"`57645765 - `"mcp"`57665767 - `tools: optional array of FunctionTool or object { type }`57685769 Tools available to the Responses backend while it handles tasks delegated by the Live model.57705771 - `FunctionTool object { name, type, description, 2 more }`57725773 A function tool available to the Responses backend when the Live model delegates a task.57745775 - `name: string`57765777 The name the delegated Responses model uses when calling this function.57785779 - `type: "function"`57805781 The tool type. Always `function`.57825783 - `"function"`57845785 - `description: optional string or null`57865787 What the function does and when the delegated Responses model should call it.57885789 - `parameters: optional map[unknown] or null`57905791 A JSON Schema object describing the arguments accepted by the function.57925793 - `strict: optional boolean or null`57945795 Whether the delegated Responses model must follow the function’s parameter schema exactly.57965797 - `WebSearch object { type }`57985799 A web search tool available to the Live session’s Responses backend.58005801 - `type: "web_search"`58025803 The tool type. Always `web_search`.58045805 - `"web_search"`58065807 - `type: "responses"`58085809 The delegation owner. Always `responses` for tasks handled by the Responses API.58105811 - `"responses"`58125813 - `input: optional array of InitialItem`58145815 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.58165817 - `Developer object { content, role, id, 2 more }`58185819 A developer message included in the initial text history of a Live session.58205821 - `content: array of object { text, type }`58225823 The message content. Supply exactly one text part for the initial Live conversation history.58245825 - `text: string`58265827 The message text to include in the Live session’s initial conversation history.58285829 - `type: optional "input_text"`58305831 The text content type. Always `input_text`.58325833 - `"input_text"`58345835 - `role: "developer"`58365837 The author of this history message. Always `developer`.58385839 - `"developer"`58405841 - `id: optional string or null`58425843 An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.58445845 - `status: optional "incomplete" or "completed" or null`58465847 The supplied message’s status. Live uses its text as history and does not resume an incomplete message.58485849 - `"incomplete"`58505851 - `"completed"`58525853 - `type: optional "message"`58545855 The history item type. Always `message`.58565857 - `"message"`58585859 - `User object { content, role, id, 2 more }`58605861 A user message included in the initial text history of a Live session.58625863 - `content: array of object { text, type }`58645865 The message content. Supply exactly one text part for the initial Live conversation history.58665867 - `text: string`58685869 The message text to include in the Live session’s initial conversation history.58705871 - `type: optional "input_text"`58725873 The text content type. Always `input_text`.58745875 - `"input_text"`58765877 - `role: "user"`58785879 The author of this history message. Always `user`.58805881 - `"user"`58825883 - `id: optional string or null`58845885 An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.58865887 - `status: optional "incomplete" or "completed" or null`58885889 The supplied message’s status. Live uses its text as history and does not resume an incomplete message.58905891 - `"incomplete"`58925893 - `"completed"`58945895 - `type: optional "message"`58965897 The history item type. Always `message`.58985899 - `"message"`59005901 - `Assistant object { content, role, id, 2 more }`59025903 An assistant message included in the initial text history of a Live session.59045905 - `content: array of object { text, type } or object { text, type }`59065907 The message content. Supply exactly one text part for the initial Live conversation history.59085909 - `Text object { text, type }`59105911 Assistant text supplied as conversation history when starting a Live session.59125913 - `text: string`59145915 The message text to include in the Live session’s initial conversation history.59165917 - `type: optional "text"`59185919 The text content type. Always `text`.59205921 - `"text"`59225923 - `OutputText object { text, type }`59245925 Assistant output text supplied as conversation history when starting a Live session.59265927 - `text: string`59285929 The message text to include in the Live session’s initial conversation history.59305931 - `type: "output_text"`59325933 The text content type. Always `output_text`.59345935 - `"output_text"`59365937 - `role: "assistant"`59385939 The author of this history message. Always `assistant`.59405941 - `"assistant"`59425943 - `id: optional string or null`59445945 An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.59465947 - `status: optional "incomplete" or "completed" or null`59485949 The supplied message’s status. Live uses its text as history and does not resume an incomplete message.59505951 - `"incomplete"`59525953 - `"completed"`59545955 - `type: optional "message"`59565957 The history item type. Always `message`.59585959 - `"message"`59605961 - `instructions: optional string or null`59625963 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.59645965 - `store: optional boolean`59665967 Whether to store the session for later forking and recording download. Defaults to false for new sessions.59685969- `type: "session.started"`59705971 The event type, always `session.started`.59725973 - `"session.started"`59745975- `client_event_id: optional string`59765977 The event_id of the client command associated with this server event, when supplied.59785979#### Example59805981```json5982{5983 "type": "session.started",5984 "event_id": "evt_started_001",5985 "client_event_id": "evt_start_001",5986 "session": {5987 "id": "live_abc123",5988 "model": "gpt-live-1",5989 "status": "active",5990 "expires_at": 1788555600,5991 "instructions": "Help the caller plan a restaurant reservation. Confirm details before booking.",5992 "input": [],5993 "audio": {5994 "format": {5995 "type": "audio/pcm",5996 "rate": 240005997 },5998 "output": {5999 "voice": "marin"6000 }6001 },6002 "delegation": {6003 "type": "client"6004 }6005 }6006}6007```60086009<a id="session.updated"></a>60106011### session.updated60126013Returned when a Live session update is accepted. Contains the resolved session configuration after the update.60146015#### Schema60166017Schema name: `LiveSessionUpdated`60186019- `event_id: string`60206021 The unique ID of the Live server event.60226023- `session: SessionResource`60246025 The resolved Live session configuration and server-assigned session metadata.60266027 - `id: string`60286029 The unique ID of the Live session. Use this ID for sideband connections, forking, and recording download.60306031 - `expires_at: number`60326033 The Unix timestamp, in seconds, at which the Live session expires.60346035 - `model: string or "gpt-live-1"`60366037 The Live model. Required in the session configuration for every transport; do not pass it as a URL query parameter.60386039 - `string`60406041 - `"gpt-live-1"`60426043 The Live model. Required in the session configuration for every transport; do not pass it as a URL query parameter.60446045 - `"gpt-live-1"`60466047 - `status: "active"`60486049 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.60506051 - `"active"`60526053 - `audio: optional object { format, output }`60546055 Startup audio configuration. Only primary WebSockets accept audio.format; WebRTC and SIP negotiate their media format. Voice and format are immutable after startup.60566057 - `format: optional AudioFormat`60586059 Audio encoding and sample rate for audio sent and received over a Live WebSocket connection. WebRTC and SIP negotiate their media format separately.60606061 - `AudioPCM object { rate, type }`60626063 Raw, mono 16-bit little-endian PCM audio for a Live WebSocket connection.60646065 - `rate: 16000 or 24000`60666067 Audio sample rate in hertz. Live WebSocket PCM audio supports 16000 or 24000 Hz.60686069 - `16000`60706071 - `24000`60726073 - `type: "audio/pcm"`60746075 The audio encoding. Always `audio/pcm`.60766077 - `"audio/pcm"`60786079 - `AudioPCMU object { rate, type }`60806081 Raw, mono G.711 μ-law audio for a Live WebSocket connection.60826083 - `rate: number`60846085 Audio sample rate in hertz. G.711 audio uses 8000 Hz.60866087 - `type: "audio/pcmu"`60886089 The audio encoding. Always `audio/pcmu`.60906091 - `"audio/pcmu"`60926093 - `AudioPCMA object { rate, type }`60946095 Raw, mono G.711 A-law audio for a Live WebSocket connection.60966097 - `rate: number`60986099 Audio sample rate in hertz. G.711 audio uses 8000 Hz.61006101 - `type: "audio/pcma"`61026103 The audio encoding. Always `audio/pcma`.61046105 - `"audio/pcma"`61066107 - `output: optional object { voice }`61086109 The voice used for speech generated by the Live model.61106111 - `voice: optional string or "alloy" or "ash" or "ballad" or 19 more or CustomVoice`61126113 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.61146115 - `string`61166117 - `"alloy" or "ash" or "ballad" or 19 more`61186119 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.61206121 - `"alloy"`61226123 - `"ash"`61246125 - `"ballad"`61266127 - `"beacon"`61286129 - `"bossa"`61306131 - `"cedar"`61326133 - `"cinder"`61346135 - `"coral"`61366137 - `"delta"`61386139 - `"echo"`61406141 - `"gleam"`61426143 - `"marin"`61446145 - `"meridian"`61466147 - `"quartz"`61486149 - `"ripple"`61506151 - `"sage"`61526153 - `"shimmer"`61546155 - `"stone"`61566157 - `"tempo"`61586159 - `"verse"`61606161 - `"vesper"`61626163 - `"willow"`61646165 - `CustomVoice object { id }`61666167 - `id: string`61686169 - `client: optional ClientConfig`61706171 Startup-only capabilities for an untrusted frontend attached to a unified WebRTC session. Trusted sideband connections are unaffected.61726173 - `data_channel: DataChannelConfig`61746175 Client and server event permissions for the WebRTC frontend data channel.61766177 - `allowed_client_events: optional "all" or array of string`61786179 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.61806181 - `"all"`61826183 - `"all"`61846185 - `array of string`61866187 - `allowed_server_events: optional "all" or array of ServerEventSelector`61886189 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.61906191 - `"all"`61926193 - `"all"`61946195 - `array of ServerEventSelector`61966197 - `type: string`61986199 The outer Live server event type. Use 'response.event' for Responses events.62006201 - `response_event: optional string`62026203 The nested Responses event type. Required when type is 'response.event'; forbidden for other event types.62046205 - `delegation: optional ClientDelegation or object { responses, type } or null`62066207 Who handles tasks delegated by the Live model. Omitted or null selects your application; use `responses` to let the API manage a Responses backend.62086209 - `ClientDelegation object { type }`62106211 Delegate tasks to your application. The Live session emits delegation events that your backend handles.62126213 - `type: "client"`62146215 The delegation owner. Always `client` for tasks handled by your application.62166217 - `"client"`62186219 - `Responses object { responses, type }`62206221 Delegate tasks to a Responses model managed by the Live session.62226223 - `responses: ResponsesDelegationConfig`62246225 Backend model, prompt, and tools used when the Live session delegates a task to Responses.62266227 - `model: string`62286229 The model used for server-owned Responses delegations.62306231 - `instructions: optional string or null`62326233 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).62346235 - `max_output_tokens: optional number or null`62366237 Maximum number of output tokens for each delegated response.62386239 - `parallel_tool_calls: optional boolean or null`62406241 Whether the delegated Responses model may request multiple tool calls in a single response.62426243 - `reasoning: optional object { effort, summary } or null`62446245 Reasoning settings passed to each delegated Responses request.62466247 - `effort: optional "none" or "minimal" or "low" or 3 more or null`62486249 How much reasoning effort the delegated Responses model should use. Supported values depend on the backend model.62506251 - `"none"`62526253 - `"minimal"`62546255 - `"low"`62566257 - `"medium"`62586259 - `"high"`62606261 - `"xhigh"`62626263 - `summary: optional "concise" or "detailed" or "auto" or null`62646265 The reasoning summary to request from the delegated Responses model, when supported.62666267 - `"concise"`62686269 - `"detailed"`62706271 - `"auto"`62726273 - `service_tier: optional "auto" or "default" or "fast_tier_temp_pilot" or 3 more or null`62746275 Service tier for delegated Responses requests.62766277 - `"auto"`62786279 - `"default"`62806281 - `"fast_tier_temp_pilot"`62826283 - `"flex"`62846285 - `"priority"`62866287 - `"ultrafast"`62886289 - `text: optional object { verbosity } or null`62906291 Text generation settings passed to each delegated Responses request.62926293 - `verbosity: optional "low" or "medium" or "high" or null`62946295 The amount of detail in text generated by the Responses backend. This does not configure the Live model’s spoken delivery.62966297 - `"low"`62986299 - `"medium"`63006301 - `"high"`63026303 - `tool_choice: optional "auto" or "none" or "required" or object { name, type } or object { name, server_label, type }`63046305 Controls which tool the Responses backend uses when handling a task delegated by the Live model.63066307 - `LiveToolChoiceEnum = "auto" or "none" or "required"`63086309 - `"auto"`63106311 - `"none"`63126313 - `"required"`63146315 - `LiveFunctionToolChoiceParam object { name, type }`63166317 - `name: string`63186319 - `type: "function"`63206321 - `"function"`63226323 - `LiveMCPToolChoiceParam object { name, server_label, type }`63246325 - `name: string`63266327 - `server_label: string`63286329 - `type: "mcp"`63306331 - `"mcp"`63326333 - `tools: optional array of FunctionTool or object { type }`63346335 Tools available to the Responses backend while it handles tasks delegated by the Live model.63366337 - `FunctionTool object { name, type, description, 2 more }`63386339 A function tool available to the Responses backend when the Live model delegates a task.63406341 - `name: string`63426343 The name the delegated Responses model uses when calling this function.63446345 - `type: "function"`63466347 The tool type. Always `function`.63486349 - `"function"`63506351 - `description: optional string or null`63526353 What the function does and when the delegated Responses model should call it.63546355 - `parameters: optional map[unknown] or null`63566357 A JSON Schema object describing the arguments accepted by the function.63586359 - `strict: optional boolean or null`63606361 Whether the delegated Responses model must follow the function’s parameter schema exactly.63626363 - `WebSearch object { type }`63646365 A web search tool available to the Live session’s Responses backend.63666367 - `type: "web_search"`63686369 The tool type. Always `web_search`.63706371 - `"web_search"`63726373 - `type: "responses"`63746375 The delegation owner. Always `responses` for tasks handled by the Responses API.63766377 - `"responses"`63786379 - `input: optional array of InitialItem`63806381 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.63826383 - `Developer object { content, role, id, 2 more }`63846385 A developer message included in the initial text history of a Live session.63866387 - `content: array of object { text, type }`63886389 The message content. Supply exactly one text part for the initial Live conversation history.63906391 - `text: string`63926393 The message text to include in the Live session’s initial conversation history.63946395 - `type: optional "input_text"`63966397 The text content type. Always `input_text`.63986399 - `"input_text"`64006401 - `role: "developer"`64026403 The author of this history message. Always `developer`.64046405 - `"developer"`64066407 - `id: optional string or null`64086409 An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.64106411 - `status: optional "incomplete" or "completed" or null`64126413 The supplied message’s status. Live uses its text as history and does not resume an incomplete message.64146415 - `"incomplete"`64166417 - `"completed"`64186419 - `type: optional "message"`64206421 The history item type. Always `message`.64226423 - `"message"`64246425 - `User object { content, role, id, 2 more }`64266427 A user message included in the initial text history of a Live session.64286429 - `content: array of object { text, type }`64306431 The message content. Supply exactly one text part for the initial Live conversation history.64326433 - `text: string`64346435 The message text to include in the Live session’s initial conversation history.64366437 - `type: optional "input_text"`64386439 The text content type. Always `input_text`.64406441 - `"input_text"`64426443 - `role: "user"`64446445 The author of this history message. Always `user`.64466447 - `"user"`64486449 - `id: optional string or null`64506451 An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.64526453 - `status: optional "incomplete" or "completed" or null`64546455 The supplied message’s status. Live uses its text as history and does not resume an incomplete message.64566457 - `"incomplete"`64586459 - `"completed"`64606461 - `type: optional "message"`64626463 The history item type. Always `message`.64646465 - `"message"`64666467 - `Assistant object { content, role, id, 2 more }`64686469 An assistant message included in the initial text history of a Live session.64706471 - `content: array of object { text, type } or object { text, type }`64726473 The message content. Supply exactly one text part for the initial Live conversation history.64746475 - `Text object { text, type }`64766477 Assistant text supplied as conversation history when starting a Live session.64786479 - `text: string`64806481 The message text to include in the Live session’s initial conversation history.64826483 - `type: optional "text"`64846485 The text content type. Always `text`.64866487 - `"text"`64886489 - `OutputText object { text, type }`64906491 Assistant output text supplied as conversation history when starting a Live session.64926493 - `text: string`64946495 The message text to include in the Live session’s initial conversation history.64966497 - `type: "output_text"`64986499 The text content type. Always `output_text`.65006501 - `"output_text"`65026503 - `role: "assistant"`65046505 The author of this history message. Always `assistant`.65066507 - `"assistant"`65086509 - `id: optional string or null`65106511 An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.65126513 - `status: optional "incomplete" or "completed" or null`65146515 The supplied message’s status. Live uses its text as history and does not resume an incomplete message.65166517 - `"incomplete"`65186519 - `"completed"`65206521 - `type: optional "message"`65226523 The history item type. Always `message`.65246525 - `"message"`65266527 - `instructions: optional string or null`65286529 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.65306531 - `store: optional boolean`65326533 Whether to store the session for later forking and recording download. Defaults to false for new sessions.65346535- `type: "session.updated"`65366537 The event type, always `session.updated`.65386539 - `"session.updated"`65406541- `client_event_id: optional string`65426543 The event_id of the client command associated with this server event, when supplied.65446545#### Example65466547```json6548{6549 "type": "session.updated",6550 "event_id": "evt_updated_001",6551 "client_event_id": "evt_update_001",6552 "session": {6553 "id": "live_def456",6554 "model": "gpt-live-1",6555 "status": "active",6556 "expires_at": 1788555600,6557 "instructions": "Help the caller plan a restaurant reservation. Confirm details before booking.",6558 "input": [],6559 "audio": {6560 "format": {6561 "type": "audio/pcm",6562 "rate": 240006563 },6564 "output": {6565 "voice": "marin"6566 }6567 },6568 "delegation": {6569 "type": "responses",6570 "responses": {6571 "model": "gpt-6-astra",6572 "instructions": "Check restaurant availability. Ask before confirming a booking.",6573 "max_output_tokens": 1024,6574 "tools": []6575 }6576 }6577 }6578}6579```65806581<a id="session.input_audio.muted"></a>65826583### session.input_audio.muted65846585Returned when a session.input_audio.mute command is accepted. Input audio is no longer sent to the model; sideband audio reflection continues.65866587#### Schema65886589Schema name: `LiveInputAudioMuted`65906591- `event_id: string`65926593 The unique ID of the Live server event.65946595- `type: "session.input_audio.muted"`65966597 The event type, always `session.input_audio.muted`.65986599 - `"session.input_audio.muted"`66006601- `client_event_id: optional string`66026603 The event_id of the client command associated with this server event, when supplied.66046605#### Example66066607```json6608{6609 "type": "session.input_audio.muted",6610 "event_id": "evt_muted_001",6611 "client_event_id": "evt_mute_001"6612}6613```66146615<a id="session.input_audio.unmuted"></a>66166617### session.input_audio.unmuted66186619Returned when a session.input_audio.unmute command is accepted. Input audio is sent to the model again.66206621#### Schema66226623Schema name: `LiveInputAudioUnmuted`66246625- `event_id: string`66266627 The unique ID of the Live server event.66286629- `type: "session.input_audio.unmuted"`66306631 The event type, always `session.input_audio.unmuted`.66326633 - `"session.input_audio.unmuted"`66346635- `client_event_id: optional string`66366637 The event_id of the client command associated with this server event, when supplied.66386639#### Example66406641```json6642{6643 "type": "session.input_audio.unmuted",6644 "event_id": "evt_unmuted_001",6645 "client_event_id": "evt_unmute_001"6646}6647```66486649<a id="session.instructions.appended"></a>66506651### session.instructions.appended66526653Returned 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.66546655#### Schema66566657Schema name: `LiveInstructionsAppended`66586659- `end_ms: number`66606661 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.66626663- `event_id: string`66646665 The unique ID of the Live server event.66666667- `start_ms: number`66686669 The start of this event on the Live session timeline, in milliseconds from the beginning of the session.66706671- `type: "session.instructions.appended"`66726673 The event type, always `session.instructions.appended`.66746675 - `"session.instructions.appended"`66766677- `client_event_id: optional string`66786679 The event_id of the client command associated with this server event, when supplied.66806681#### Example66826683```json6684{6685 "type": "session.instructions.appended",6686 "event_id": "evt_instructions_002",6687 "client_event_id": "evt_instructions_001",6688 "start_ms": 1200,6689 "end_ms": 14006690}6691```66926693<a id="session.thinking.appended"></a>66946695### session.thinking.appended66966697Returned when a session.thinking.append command is accepted into the Live session timeline. Acknowledges the added reasoning context without guaranteeing any spoken output.66986699#### Schema67006701Schema name: `LiveThinkingAppended`67026703- `end_ms: number`67046705 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.67066707- `event_id: string`67086709 The unique ID of the Live server event.67106711- `start_ms: number`67126713 The start of this event on the Live session timeline, in milliseconds from the beginning of the session.67146715- `type: "session.thinking.appended"`67166717 The event type, always `session.thinking.appended`.67186719 - `"session.thinking.appended"`67206721- `client_event_id: optional string`67226723 The event_id of the client command associated with this server event, when supplied.67246725#### Example67266727```json6728{6729 "type": "session.thinking.appended",6730 "event_id": "evt_thinking_002",6731 "client_event_id": "evt_thinking_001",6732 "start_ms": 4600,6733 "end_ms": 48006734}6735```67366737<a id="session.commentary.appended"></a>67386739### session.commentary.appended67406741Returned 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.67426743#### Schema67446745Schema name: `LiveCommentaryAppended`67466747- `end_ms: number`67486749 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.67506751- `event_id: string`67526753 The unique ID of the Live server event.67546755- `start_ms: number`67566757 The start of this event on the Live session timeline, in milliseconds from the beginning of the session.67586759- `type: "session.commentary.appended"`67606761 The event type, always `session.commentary.appended`.67626763 - `"session.commentary.appended"`67646765- `client_event_id: optional string`67666767 The event_id of the client command associated with this server event, when supplied.67686769#### Example67706771```json6772{6773 "type": "session.commentary.appended",6774 "event_id": "evt_commentary_002",6775 "client_event_id": "evt_commentary_001",6776 "start_ms": 5200,6777 "end_ms": 54006778}6779```67806781<a id="session.output_audio.delta"></a>67826783### session.output_audio.delta67846785An 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.67866787#### Schema67886789Schema name: `LiveOutputAudioDelta`67906791- `delta: string`67926793 Base64-encoded raw audio. Primary WebSocket events use the session's configured format; reflected sideband events use mono PCM16LE at 24 kHz.67946795- `type: "session.output_audio.delta"`67966797 The event type, always `session.output_audio.delta`.67986799 - `"session.output_audio.delta"`68006801- `end_ms: optional number`68026803 Exclusive session-relative end in milliseconds. Required on reflected sideband events; omitted on the primary WebSocket. Dropped output frames leave gaps between reflected ranges.68046805- `start_ms: optional number`68066807 Inclusive session-relative start in milliseconds. Required on reflected sideband events; omitted on the primary WebSocket.68086809#### Example68106811```json6812{6813 "type": "session.output_audio.delta",6814 "delta": "AACAAIAAAIAAAP9/AIAAgA==",6815 "start_ms": 1000,6816 "end_ms": 12006817}6818```68196820<a id="session.input_transcript.delta"></a>68216822### session.input_transcript.delta68236824A 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.68256826#### Schema68276828Schema name: `LiveInputTranscriptDelta`68296830- `delta: string`68316832 The transcript text fragment for the audio in this time range. Append fragments in delivery order to build the transcript.68336834- `end_ms: number`68356836 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.68376838- `event_id: string`68396840 The unique ID of the Live server event.68416842- `start_ms: number`68436844 The start of this event on the Live session timeline, in milliseconds from the beginning of the session.68456846- `type: "session.input_transcript.delta"`68476848 The event type, always `session.input_transcript.delta`.68496850 - `"session.input_transcript.delta"`68516852- `client_event_id: optional string`68536854 The event_id of the client command associated with this server event, when supplied.68556856#### Example68576858```json6859{6860 "type": "session.input_transcript.delta",6861 "event_id": "evt_input_transcript_001",6862 "delta": "A table for two at seven, please.",6863 "start_ms": 1600,6864 "end_ms": 34006865}6866```68676868<a id="session.output_transcript.delta"></a>68696870### session.output_transcript.delta68716872A 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.68736874#### Schema68756876Schema name: `LiveOutputTranscriptDelta`68776878- `delta: string`68796880 The transcript text fragment for the audio in this time range. Append fragments in delivery order to build the transcript.68816882- `end_ms: number`68836884 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.68856886- `event_id: string`68876888 The unique ID of the Live server event.68896890- `start_ms: number`68916892 The start of this event on the Live session timeline, in milliseconds from the beginning of the session.68936894- `type: "session.output_transcript.delta"`68956896 The event type, always `session.output_transcript.delta`.68976898 - `"session.output_transcript.delta"`68996900- `client_event_id: optional string`69016902 The event_id of the client command associated with this server event, when supplied.69036904#### Example69056906```json6907{6908 "type": "session.output_transcript.delta",6909 "event_id": "evt_output_transcript_001",6910 "delta": "Would you like me to reserve that table?",6911 "start_ms": 5400,6912 "end_ms": 72006913}6914```69156916<a id="session.delegation.created"></a>69176918### session.delegation.created69196920Returned 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.69216922#### Schema69236924Schema name: `LiveDelegationCreated`69256926- `delegation: object { id, target, type, response_id }`69276928 The delegated work identifier and destination. This object contains metadata, not the task text.69296930 - `id: string`69316932 The unique ID of the delegation. Use this as delegation_id when replying to client-owned work or correlating Responses events.69336934 - `target: "client" or "responses"`69356936 Where the Live model delegated the work: `client` for your application, or `responses` for the configured Responses backend.69376938 - `"client" or "responses"`69396940 Where the Live model delegated the work: `client` for your application, or `responses` for the configured Responses backend.69416942 - `"client"`69436944 - `"responses"`69456946 - `type: "delegation"`69476948 The object type, always `delegation`.69496950 - `"delegation"`69516952 - `response_id: optional string`69536954 The ID of the Responses API response associated with a Responses delegation. Omitted for client delegations.69556956- `event_id: string`69576958 The unique ID of the Live server event.69596960- `offset_ms: number`69616962 The position on the Live session timeline where the delegation was created, in milliseconds from the beginning of the session.69636964- `type: "session.delegation.created"`69656966 The event type, always `session.delegation.created`.69676968 - `"session.delegation.created"`69696970- `client_event_id: optional string`69716972 The event_id of the client command associated with this server event, when supplied.69736974#### Example69756976```json6977{6978 "type": "session.delegation.created",6979 "event_id": "evt_delegation_001",6980 "offset_ms": 3600,6981 "delegation": {6982 "id": "del_abc123",6983 "type": "delegation",6984 "target": "client"6985 }6986}6987```69886989<a id="response.event"></a>69906991### response.event69926993A 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.69946995#### Schema69966997Schema name: `LiveResponseEvent`69986999- `event: map[unknown]`70007001 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.70027003- `event_id: string`70047005 The unique ID of the Live server event.70067007- `type: "response.event"`70087009 The event type, always `response.event`.70107011 - `"response.event"`70127013- `client_event_id: optional string`70147015 The event_id of the client command associated with this server event, when supplied.70167017- `delegation_id: optional string or null`70187019 The Live delegation associated with the nested Responses event. May be null or omitted when the event cannot be correlated with a delegation.70207021#### Example70227023```json7024{7025 "type": "response.event",7026 "event_id": "evt_response_002",7027 "delegation_id": "del_responses123",7028 "event": {7029 "type": "response.output_text.delta",7030 "item_id": "msg_abc123",7031 "output_index": 0,7032 "content_index": 0,7033 "delta": "An outdoor table is available at 7 PM.",7034 "sequence_number": 3,7035 "logprobs": []7036 }7037}7038```70397040<a id="session.usage.updated"></a>70417042### session.usage.updated70437044Reports cumulative Live audio usage and, when available, the most recent context-window usage. Delegated Responses token usage is reported separately in response.event events.70457046#### Schema70477048Schema name: `LiveSessionUsageUpdated`70497050- `event_id: string`70517052 The unique ID of the Live server event.70537054- `type: "session.usage.updated"`70557056 The event type, always `session.usage.updated`.70577058 - `"session.usage.updated"`70597060- `usage: SessionUsage`70617062 The cumulative Live audio usage so far.70637064 - `seconds: number`70657066 The cumulative Live audio duration in seconds. Do not sum this value across usage events.70677068- `client_event_id: optional string`70697070 The event_id of the client command associated with this server event, when supplied.70717072- `context_window: optional object { usage_ratio }`70737074 The latest measured Live context-window usage. Omitted when the context limit is unknown.70757076 - `usage_ratio: number`70777078 The latest active context token count divided by the Live model context limit. Can decrease after compaction and may lag between measured audio frames.70797080#### Example70817082```json7083{7084 "type": "session.usage.updated",7085 "event_id": "evt_usage_001",7086 "usage": {7087 "seconds": 32.57088 },7089 "context_window": {7090 "usage_ratio": 0.127091 }7092}7093```70947095<a id="session.closed"></a>70967097### session.closed70987099Returned 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.71007101#### Schema71027103Schema name: `LiveSessionClosed`71047105- `event_id: string`71067107 The unique ID of the Live server event.71087109- `reason: "close_requested" or "expired" or "content" or 2 more`71107111 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.71127113 - `"close_requested" or "expired" or "content" or 2 more`71147115 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.71167117 - `"close_requested"`71187119 - `"expired"`71207121 - `"content"`71227123 - `"remote_hangup"`71247125 - `"connection_lost"`71267127- `session: SessionResource`71287129 The resolved Live session configuration and server-assigned session metadata.71307131 - `id: string`71327133 The unique ID of the Live session. Use this ID for sideband connections, forking, and recording download.71347135 - `expires_at: number`71367137 The Unix timestamp, in seconds, at which the Live session expires.71387139 - `model: string or "gpt-live-1"`71407141 The Live model. Required in the session configuration for every transport; do not pass it as a URL query parameter.71427143 - `string`71447145 - `"gpt-live-1"`71467147 The Live model. Required in the session configuration for every transport; do not pass it as a URL query parameter.71487149 - `"gpt-live-1"`71507151 - `status: "active"`71527153 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.71547155 - `"active"`71567157 - `audio: optional object { format, output }`71587159 Startup audio configuration. Only primary WebSockets accept audio.format; WebRTC and SIP negotiate their media format. Voice and format are immutable after startup.71607161 - `format: optional AudioFormat`71627163 Audio encoding and sample rate for audio sent and received over a Live WebSocket connection. WebRTC and SIP negotiate their media format separately.71647165 - `AudioPCM object { rate, type }`71667167 Raw, mono 16-bit little-endian PCM audio for a Live WebSocket connection.71687169 - `rate: 16000 or 24000`71707171 Audio sample rate in hertz. Live WebSocket PCM audio supports 16000 or 24000 Hz.71727173 - `16000`71747175 - `24000`71767177 - `type: "audio/pcm"`71787179 The audio encoding. Always `audio/pcm`.71807181 - `"audio/pcm"`71827183 - `AudioPCMU object { rate, type }`71847185 Raw, mono G.711 μ-law audio for a Live WebSocket connection.71867187 - `rate: number`71887189 Audio sample rate in hertz. G.711 audio uses 8000 Hz.71907191 - `type: "audio/pcmu"`71927193 The audio encoding. Always `audio/pcmu`.71947195 - `"audio/pcmu"`71967197 - `AudioPCMA object { rate, type }`71987199 Raw, mono G.711 A-law audio for a Live WebSocket connection.72007201 - `rate: number`72027203 Audio sample rate in hertz. G.711 audio uses 8000 Hz.72047205 - `type: "audio/pcma"`72067207 The audio encoding. Always `audio/pcma`.72087209 - `"audio/pcma"`72107211 - `output: optional object { voice }`72127213 The voice used for speech generated by the Live model.72147215 - `voice: optional string or "alloy" or "ash" or "ballad" or 19 more or CustomVoice`72167217 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.72187219 - `string`72207221 - `"alloy" or "ash" or "ballad" or 19 more`72227223 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.72247225 - `"alloy"`72267227 - `"ash"`72287229 - `"ballad"`72307231 - `"beacon"`72327233 - `"bossa"`72347235 - `"cedar"`72367237 - `"cinder"`72387239 - `"coral"`72407241 - `"delta"`72427243 - `"echo"`72447245 - `"gleam"`72467247 - `"marin"`72487249 - `"meridian"`72507251 - `"quartz"`72527253 - `"ripple"`72547255 - `"sage"`72567257 - `"shimmer"`72587259 - `"stone"`72607261 - `"tempo"`72627263 - `"verse"`72647265 - `"vesper"`72667267 - `"willow"`72687269 - `CustomVoice object { id }`72707271 - `id: string`72727273 - `client: optional ClientConfig`72747275 Startup-only capabilities for an untrusted frontend attached to a unified WebRTC session. Trusted sideband connections are unaffected.72767277 - `data_channel: DataChannelConfig`72787279 Client and server event permissions for the WebRTC frontend data channel.72807281 - `allowed_client_events: optional "all" or array of string`72827283 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.72847285 - `"all"`72867287 - `"all"`72887289 - `array of string`72907291 - `allowed_server_events: optional "all" or array of ServerEventSelector`72927293 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.72947295 - `"all"`72967297 - `"all"`72987299 - `array of ServerEventSelector`73007301 - `type: string`73027303 The outer Live server event type. Use 'response.event' for Responses events.73047305 - `response_event: optional string`73067307 The nested Responses event type. Required when type is 'response.event'; forbidden for other event types.73087309 - `delegation: optional ClientDelegation or object { responses, type } or null`73107311 Who handles tasks delegated by the Live model. Omitted or null selects your application; use `responses` to let the API manage a Responses backend.73127313 - `ClientDelegation object { type }`73147315 Delegate tasks to your application. The Live session emits delegation events that your backend handles.73167317 - `type: "client"`73187319 The delegation owner. Always `client` for tasks handled by your application.73207321 - `"client"`73227323 - `Responses object { responses, type }`73247325 Delegate tasks to a Responses model managed by the Live session.73267327 - `responses: ResponsesDelegationConfig`73287329 Backend model, prompt, and tools used when the Live session delegates a task to Responses.73307331 - `model: string`73327333 The model used for server-owned Responses delegations.73347335 - `instructions: optional string or null`73367337 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).73387339 - `max_output_tokens: optional number or null`73407341 Maximum number of output tokens for each delegated response.73427343 - `parallel_tool_calls: optional boolean or null`73447345 Whether the delegated Responses model may request multiple tool calls in a single response.73467347 - `reasoning: optional object { effort, summary } or null`73487349 Reasoning settings passed to each delegated Responses request.73507351 - `effort: optional "none" or "minimal" or "low" or 3 more or null`73527353 How much reasoning effort the delegated Responses model should use. Supported values depend on the backend model.73547355 - `"none"`73567357 - `"minimal"`73587359 - `"low"`73607361 - `"medium"`73627363 - `"high"`73647365 - `"xhigh"`73667367 - `summary: optional "concise" or "detailed" or "auto" or null`73687369 The reasoning summary to request from the delegated Responses model, when supported.73707371 - `"concise"`73727373 - `"detailed"`73747375 - `"auto"`73767377 - `service_tier: optional "auto" or "default" or "fast_tier_temp_pilot" or 3 more or null`73787379 Service tier for delegated Responses requests.73807381 - `"auto"`73827383 - `"default"`73847385 - `"fast_tier_temp_pilot"`73867387 - `"flex"`73887389 - `"priority"`73907391 - `"ultrafast"`73927393 - `text: optional object { verbosity } or null`73947395 Text generation settings passed to each delegated Responses request.73967397 - `verbosity: optional "low" or "medium" or "high" or null`73987399 The amount of detail in text generated by the Responses backend. This does not configure the Live model’s spoken delivery.74007401 - `"low"`74027403 - `"medium"`74047405 - `"high"`74067407 - `tool_choice: optional "auto" or "none" or "required" or object { name, type } or object { name, server_label, type }`74087409 Controls which tool the Responses backend uses when handling a task delegated by the Live model.74107411 - `LiveToolChoiceEnum = "auto" or "none" or "required"`74127413 - `"auto"`74147415 - `"none"`74167417 - `"required"`74187419 - `LiveFunctionToolChoiceParam object { name, type }`74207421 - `name: string`74227423 - `type: "function"`74247425 - `"function"`74267427 - `LiveMCPToolChoiceParam object { name, server_label, type }`74287429 - `name: string`74307431 - `server_label: string`74327433 - `type: "mcp"`74347435 - `"mcp"`74367437 - `tools: optional array of FunctionTool or object { type }`74387439 Tools available to the Responses backend while it handles tasks delegated by the Live model.74407441 - `FunctionTool object { name, type, description, 2 more }`74427443 A function tool available to the Responses backend when the Live model delegates a task.74447445 - `name: string`74467447 The name the delegated Responses model uses when calling this function.74487449 - `type: "function"`74507451 The tool type. Always `function`.74527453 - `"function"`74547455 - `description: optional string or null`74567457 What the function does and when the delegated Responses model should call it.74587459 - `parameters: optional map[unknown] or null`74607461 A JSON Schema object describing the arguments accepted by the function.74627463 - `strict: optional boolean or null`74647465 Whether the delegated Responses model must follow the function’s parameter schema exactly.74667467 - `WebSearch object { type }`74687469 A web search tool available to the Live session’s Responses backend.74707471 - `type: "web_search"`74727473 The tool type. Always `web_search`.74747475 - `"web_search"`74767477 - `type: "responses"`74787479 The delegation owner. Always `responses` for tasks handled by the Responses API.74807481 - `"responses"`74827483 - `input: optional array of InitialItem`74847485 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.74867487 - `Developer object { content, role, id, 2 more }`74887489 A developer message included in the initial text history of a Live session.74907491 - `content: array of object { text, type }`74927493 The message content. Supply exactly one text part for the initial Live conversation history.74947495 - `text: string`74967497 The message text to include in the Live session’s initial conversation history.74987499 - `type: optional "input_text"`75007501 The text content type. Always `input_text`.75027503 - `"input_text"`75047505 - `role: "developer"`75067507 The author of this history message. Always `developer`.75087509 - `"developer"`75107511 - `id: optional string or null`75127513 An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.75147515 - `status: optional "incomplete" or "completed" or null`75167517 The supplied message’s status. Live uses its text as history and does not resume an incomplete message.75187519 - `"incomplete"`75207521 - `"completed"`75227523 - `type: optional "message"`75247525 The history item type. Always `message`.75267527 - `"message"`75287529 - `User object { content, role, id, 2 more }`75307531 A user message included in the initial text history of a Live session.75327533 - `content: array of object { text, type }`75347535 The message content. Supply exactly one text part for the initial Live conversation history.75367537 - `text: string`75387539 The message text to include in the Live session’s initial conversation history.75407541 - `type: optional "input_text"`75427543 The text content type. Always `input_text`.75447545 - `"input_text"`75467547 - `role: "user"`75487549 The author of this history message. Always `user`.75507551 - `"user"`75527553 - `id: optional string or null`75547555 An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.75567557 - `status: optional "incomplete" or "completed" or null`75587559 The supplied message’s status. Live uses its text as history and does not resume an incomplete message.75607561 - `"incomplete"`75627563 - `"completed"`75647565 - `type: optional "message"`75667567 The history item type. Always `message`.75687569 - `"message"`75707571 - `Assistant object { content, role, id, 2 more }`75727573 An assistant message included in the initial text history of a Live session.75747575 - `content: array of object { text, type } or object { text, type }`75767577 The message content. Supply exactly one text part for the initial Live conversation history.75787579 - `Text object { text, type }`75807581 Assistant text supplied as conversation history when starting a Live session.75827583 - `text: string`75847585 The message text to include in the Live session’s initial conversation history.75867587 - `type: optional "text"`75887589 The text content type. Always `text`.75907591 - `"text"`75927593 - `OutputText object { text, type }`75947595 Assistant output text supplied as conversation history when starting a Live session.75967597 - `text: string`75987599 The message text to include in the Live session’s initial conversation history.76007601 - `type: "output_text"`76027603 The text content type. Always `output_text`.76047605 - `"output_text"`76067607 - `role: "assistant"`76087609 The author of this history message. Always `assistant`.76107611 - `"assistant"`76127613 - `id: optional string or null`76147615 An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.76167617 - `status: optional "incomplete" or "completed" or null`76187619 The supplied message’s status. Live uses its text as history and does not resume an incomplete message.76207621 - `"incomplete"`76227623 - `"completed"`76247625 - `type: optional "message"`76267627 The history item type. Always `message`.76287629 - `"message"`76307631 - `instructions: optional string or null`76327633 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.76347635 - `store: optional boolean`76367637 Whether to store the session for later forking and recording download. Defaults to false for new sessions.76387639- `type: "session.closed"`76407641 The event type, always `session.closed`.76427643 - `"session.closed"`76447645- `usage: SessionUsage`76467647 The final cumulative Live audio usage after session finalization.76487649 - `seconds: number`76507651 The cumulative Live audio duration in seconds. Do not sum this value across usage events.76527653- `client_event_id: optional string`76547655 The event_id of the client command associated with this server event, when supplied.76567657#### Example76587659```json7660{7661 "type": "session.closed",7662 "event_id": "evt_closed_001",7663 "client_event_id": "evt_close_001",7664 "reason": "close_requested",7665 "session": {7666 "id": "live_abc123",7667 "model": "gpt-live-1",7668 "status": "active",7669 "expires_at": 1788555600,7670 "instructions": "Help the caller plan a restaurant reservation. Confirm details before booking.",7671 "input": [],7672 "audio": {7673 "format": {7674 "type": "audio/pcm",7675 "rate": 240007676 },7677 "output": {7678 "voice": "marin"7679 }7680 },7681 "delegation": {7682 "type": "client"7683 }7684 },7685 "usage": {7686 "seconds": 45.87687 }7688}7689```76907691<a id="error"></a>76927693### error76947695Reports 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.76967697#### Schema76987699Schema name: `LiveErrorEvent`77007701- `error: Error`77027703 Details of the Live error and the client command that caused it, when known.77047705 - `code: string`77067707 A machine-readable code identifying the Live error, such as `unknown_parameter`.77087709 - `message: string`77107711 A human-readable explanation of the Live error.77127713 - `type: string`77147715 The category of error, such as `invalid_request_error` for an invalid Live client command.77167717 - `client_event_id: optional string`77187719 The event_id of the client command that caused the error, when supplied.77207721 - `param: optional string`77227723 The parameter that caused the error, when applicable, such as `session.voice`.77247725- `event_id: string`77267727 The unique ID of the Live server event.77287729- `type: "error"`77307731 The event type, always `error`.77327733 - `"error"`77347735- `client_event_id: optional string`77367737 The event_id of the client command associated with this server event, when supplied.77387739#### Example77407741```json7742{7743 "type": "error",7744 "event_id": "evt_error_001",7745 "error": {7746 "type": "invalid_request_error",7747 "code": "unknown_parameter",7748 "message": "Unknown parameter: 'session.voice'.",7749 "param": "session.voice",7750 "client_event_id": "evt_invalid_001"7751 }7752}7753```77547755<a id="info"></a>77567757### info77587759An informational notice about the Live session, such as the event permissions applied to a frontend data channel.77607761#### Schema77627763Schema name: `LiveInfoEvent`77647765- `code: string`77667767 A machine-readable code for the notice, such as `data_channel_permissions`.77687769- `event_id: string`77707771 The unique ID of the Live server event.77727773- `message: string`77747775 A human-readable explanation of the Live session notice.77767777- `type: "info"`77787779 The event type, always `info`.77807781 - `"info"`77827783- `client_event_id: optional string`77847785 The event_id of the client command associated with this server event, when supplied.77867787#### Example77887789```json7790{7791 "type": "info",7792 "event_id": "evt_info_001",7793 "code": "data_channel_permissions",7794 "message": "The frontend data channel is configured with restricted event permissions."7795}7796```77977798<a id="server-events-session.input_audio.append"></a>77997800### session.input_audio.append78017802Input audio received from the primary transport and reflected to a Live sideband connection before model-input muting.78037804#### Schema78057806Schema name: `LiveInputAudioAppend`78077808- `audio: string`78097810 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.78117812- `type: "session.input_audio.append"`78137814 The event type, always `session.input_audio.append`.78157816 - `"session.input_audio.append"`78177818#### Example78197820```json7821{7822 "type": "session.input_audio.append",7823 "audio": "AACAAIAAAIAAAP9/AIAAgA=="7824}7825```78267827<a id="transport.dtmf.received"></a>78287829### transport.dtmf.received78307831A SIP DTMF keypress received from the caller. Delivered only to sideband observers.78327833#### Schema78347835Schema name: `LiveTransportDTMFReceived`78367837- `event: string`78387839- `event_id: string`78407841- `type: "transport.dtmf.received"`78427843 - `"transport.dtmf.received"`78447845#### Example78467847```json7848{7849 "type": "transport.dtmf.received",7850 "event_id": "event_dtmf_1",7851 "event": "5"7852}7853```78547855<a id="transport.dtmf.send"></a>78567857### transport.dtmf.send78587859A SIP DTMF keypress successfully sent by the hosted tool. Delivered only to sideband observers; this is not a client command.78607861#### Schema78627863Schema name: `LiveTransportDTMFSend`78647865- `event: string`78667867- `event_id: string`78687869- `type: "transport.dtmf.send"`78707871 - `"transport.dtmf.send"`78727873#### Example78747875```json7876{7877 "type": "transport.dtmf.send",7878 "event_id": "event_dtmf_2",7879 "event": "#"7880}7881```78827883<a id="transport.ringing"></a>78847885### transport.ringing78867887The outbound SIP provider leg is ringing or providing early media. Delivered only to sideband observers.78887889#### Schema78907891Schema name: `LiveTransportRinging`78927893- `event_id: string`78947895- `session_id: string`78967897 The canonical Live session ID.78987899- `type: "transport.ringing"`79007901 - `"transport.ringing"`79027903#### Example79047905```json7906{7907 "type": "transport.ringing",7908 "event_id": "event_call_1",7909 "session_id": "live_u0_123"7910}7911```79127913<a id="transport.answered"></a>79147915### transport.answered79167917The outbound SIP provider leg answered and media is established. Delivered only to sideband observers.79187919#### Schema79207921Schema name: `LiveTransportAnswered`79227923- `event_id: string`79247925- `session_id: string`79267927 The canonical Live session ID.79287929- `type: "transport.answered"`79307931 - `"transport.answered"`79327933#### Example79347935```json7936{7937 "type": "transport.answered",7938 "event_id": "event_call_2",7939 "session_id": "live_u0_123"7940}7941```79427943<a id="transport.failed"></a>79447945### transport.failed79467947An asynchronous outbound SIP setup failure. Delivered only to sideband observers.79487949#### Schema79507951Schema name: `LiveTransportFailed`79527953- `error: object { code, message, type, param }`79547955 - `code: string`79567957 The call setup failure code.79587959 - `message: string`79607961 - `type: "call_error"`79627963 - `"call_error"`79647965 - `param: optional string`79667967 The parameter related to the error, if any. Empty when no parameter applies.79687969- `event_id: string`79707971- `session_id: string`79727973 The canonical Live session ID.79747975- `type: "transport.failed"`79767977 - `"transport.failed"`79787979#### Example79807981```json7982{7983 "type": "transport.failed",7984 "event_id": "event_call_4",7985 "session_id": "live_u0_123",7986 "error": {7987 "type": "call_error",7988 "code": "provider_invite_failed",7989 "message": "provider rejected the call",7990 "param": ""7991 }7992}7993```7994