SPB Git

Repository Public

conversations.md 854.1 KB 31,044 lines markdown

1# Conversations23> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.45## Create a conversation67**post** `/conversations`89Create a conversation.1011### Body Parameters1213- `items: optional array of EasyInputMessage or object { content, role, status, type }  or ResponseOutputMessage or 30 more or null`1415  Initial items to include in the conversation context. You may add up to 20 items at a time.1617  - `EasyInputMessage object { content, role, phase, type }`1819    A message input to the model with a role indicating instruction following20    hierarchy. Instructions given with the `developer` or `system` role take21    precedence over instructions given with the `user` role. Messages with the22    `assistant` role are presumed to have been generated by the model in previous23    interactions.2425    - `content: string or ResponseInputMessageContentList`2627      Text, image, or audio input to the model, used to generate a response.28      Can also contain previous assistant responses.2930      - `TextInput = string`3132        A text input to the model.3334      - `ResponseInputMessageContentList = array of ResponseInputContent`3536        A list of one or many input items to the model, containing different content37        types.3839        - `ResponseInputText object { text, type, prompt_cache_breakpoint }`4041          A text input to the model.4243          - `text: string`4445            The text input to the model.4647          - `type: "input_text"`4849            The type of the input item. Always `input_text`.5051            - `"input_text"`5253          - `prompt_cache_breakpoint: optional object { mode }`5455            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.5657            - `mode: "explicit"`5859              The breakpoint mode. Always `explicit`.6061              - `"explicit"`6263        - `ResponseInputImage object { detail, type, file_id, 2 more }`6465          An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).6667          - `detail: ImageDetail`6869            The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.7071            - `"low"`7273            - `"high"`7475            - `"auto"`7677            - `"original"`7879          - `type: "input_image"`8081            The type of the input item. Always `input_image`.8283            - `"input_image"`8485          - `file_id: optional string or null`8687            The ID of the file to be sent to the model.8889          - `image_url: optional string or null`9091            The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.9293          - `prompt_cache_breakpoint: optional object { mode }`9495            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.9697            - `mode: "explicit"`9899              The breakpoint mode. Always `explicit`.100101              - `"explicit"`102103        - `ResponseInputFile object { type, detail, file_data, 4 more }`104105          A file input to the model.106107          - `type: "input_file"`108109            The type of the input item. Always `input_file`.110111            - `"input_file"`112113          - `detail: optional "auto" or "low" or "high"`114115            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`.116117            - `"auto"`118119            - `"low"`120121            - `"high"`122123          - `file_data: optional string`124125            The content of the file to be sent to the model.126127          - `file_id: optional string or null`128129            The ID of the file to be sent to the model.130131          - `file_url: optional string`132133            The URL of the file to be sent to the model.134135          - `filename: optional string`136137            The name of the file to be sent to the model.138139          - `prompt_cache_breakpoint: optional object { mode }`140141            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.142143            - `mode: "explicit"`144145              The breakpoint mode. Always `explicit`.146147              - `"explicit"`148149    - `role: "user" or "assistant" or "system" or "developer"`150151      The role of the message input. One of `user`, `assistant`, `system`, or152      `developer`.153154      - `"user"`155156      - `"assistant"`157158      - `"system"`159160      - `"developer"`161162    - `phase: optional "commentary" or "final_answer" or null`163164      Labels an `assistant` message as intermediate commentary (`commentary`) or the final answer (`final_answer`).165      For models like `gpt-5.3-codex` and beyond, when sending follow-up requests, preserve and resend166      phase on all assistant messages — dropping it can degrade performance. Not used for user messages.167168      - `"commentary"`169170      - `"final_answer"`171172    - `type: optional "message"`173174      The type of the message input. Always `message`.175176      - `"message"`177178  - `Message object { content, role, status, type }`179180    A message input to the model with a role indicating instruction following181    hierarchy. Instructions given with the `developer` or `system` role take182    precedence over instructions given with the `user` role.183184    - `content: ResponseInputMessageContentList`185186      A list of one or many input items to the model, containing different content187      types.188189    - `role: "user" or "system" or "developer"`190191      The role of the message input. One of `user`, `system`, or `developer`.192193      - `"user"`194195      - `"system"`196197      - `"developer"`198199    - `status: optional "in_progress" or "completed" or "incomplete"`200201      The status of item. One of `in_progress`, `completed`, or202      `incomplete`. Populated when items are returned via API.203204      - `"in_progress"`205206      - `"completed"`207208      - `"incomplete"`209210    - `type: optional "message"`211212      The type of the message input. Always set to `message`.213214      - `"message"`215216  - `ResponseOutputMessage object { id, content, role, 3 more }`217218    An output message from the model.219220    - `id: string`221222      The unique ID of the output message.223224    - `content: array of ResponseOutputText or ResponseOutputRefusal`225226      The content of the output message.227228      - `ResponseOutputText object { annotations, logprobs, text, type }`229230        A text output from the model.231232        - `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 }`233234          The annotations of the text output.235236          - `FileCitation object { file_id, filename, index, type }`237238            A citation to a file.239240            - `file_id: string`241242              The ID of the file.243244            - `filename: string`245246              The filename of the file cited.247248            - `index: number`249250              The index of the file in the list of files.251252            - `type: "file_citation"`253254              The type of the file citation. Always `file_citation`.255256              - `"file_citation"`257258          - `URLCitation object { end_index, start_index, title, 2 more }`259260            A citation for a web resource used to generate a model response.261262            - `end_index: number`263264              The index of the last character of the URL citation in the message.265266            - `start_index: number`267268              The index of the first character of the URL citation in the message.269270            - `title: string`271272              The title of the web resource.273274            - `type: "url_citation"`275276              The type of the URL citation. Always `url_citation`.277278              - `"url_citation"`279280            - `url: string`281282              The URL of the web resource.283284          - `ContainerFileCitation object { container_id, end_index, file_id, 3 more }`285286            A citation for a container file used to generate a model response.287288            - `container_id: string`289290              The ID of the container file.291292            - `end_index: number`293294              The index of the last character of the container file citation in the message.295296            - `file_id: string`297298              The ID of the file.299300            - `filename: string`301302              The filename of the container file cited.303304            - `start_index: number`305306              The index of the first character of the container file citation in the message.307308            - `type: "container_file_citation"`309310              The type of the container file citation. Always `container_file_citation`.311312              - `"container_file_citation"`313314          - `FilePath object { file_id, index, type }`315316            A path to a file.317318            - `file_id: string`319320              The ID of the file.321322            - `index: number`323324              The index of the file in the list of files.325326            - `type: "file_path"`327328              The type of the file path. Always `file_path`.329330              - `"file_path"`331332        - `logprobs: array of object { token, bytes, logprob, top_logprobs }`333334          - `token: string`335336          - `bytes: array of number`337338          - `logprob: number`339340          - `top_logprobs: array of object { token, bytes, logprob }`341342            - `token: string`343344            - `bytes: array of number`345346            - `logprob: number`347348        - `text: string`349350          The text output from the model.351352        - `type: "output_text"`353354          The type of the output text. Always `output_text`.355356          - `"output_text"`357358      - `ResponseOutputRefusal object { refusal, type }`359360        A refusal from the model.361362        - `refusal: string`363364          The refusal explanation from the model.365366        - `type: "refusal"`367368          The type of the refusal. Always `refusal`.369370          - `"refusal"`371372    - `role: "assistant"`373374      The role of the output message. Always `assistant`.375376      - `"assistant"`377378    - `status: "in_progress" or "completed" or "incomplete"`379380      The status of the message input. One of `in_progress`, `completed`, or381      `incomplete`. Populated when input items are returned via API.382383      - `"in_progress"`384385      - `"completed"`386387      - `"incomplete"`388389    - `type: "message"`390391      The type of the output message. Always `message`.392393      - `"message"`394395    - `phase: optional "commentary" or "final_answer" or null`396397      Labels an `assistant` message as intermediate commentary (`commentary`) or the final answer (`final_answer`).398      For models like `gpt-5.3-codex` and beyond, when sending follow-up requests, preserve and resend399      phase on all assistant messages — dropping it can degrade performance. Not used for user messages.400401      - `"commentary"`402403      - `"final_answer"`404405  - `FileSearchCall object { id, queries, status, 2 more }`406407    The results of a file search tool call. See the408    [file search guide](/api/docs/guides/tools-file-search) for more information.409410    - `id: string`411412      The unique ID of the file search tool call.413414    - `queries: array of string`415416      The queries used to search for files.417418    - `status: "in_progress" or "searching" or "completed" or 2 more`419420      The status of the file search tool call. One of `in_progress`,421      `searching`, `incomplete` or `failed`,422423      - `"in_progress"`424425      - `"searching"`426427      - `"completed"`428429      - `"incomplete"`430431      - `"failed"`432433    - `type: "file_search_call"`434435      The type of the file search tool call. Always `file_search_call`.436437      - `"file_search_call"`438439    - `results: optional array of object { attributes, file_id, filename, 2 more }  or null`440441      The results of the file search tool call.442443      - `attributes: optional map[string or number or boolean] or null`444445        Set of 16 key-value pairs that can be attached to an object. This can be446        useful for storing additional information about the object in a structured447        format, and querying for objects via API or the dashboard. Keys are strings448        with a maximum length of 64 characters. Values are strings with a maximum449        length of 512 characters, booleans, or numbers.450451        - `string`452453        - `number`454455        - `boolean`456457      - `file_id: optional string`458459        The unique ID of the file.460461      - `filename: optional string`462463        The name of the file.464465      - `score: optional number`466467        The relevance score of the file - a value between 0 and 1.468469      - `text: optional string`470471        The text that was retrieved from the file.472473  - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`474475    A tool call to a computer use tool. See the476    [computer use guide](/api/docs/guides/tools-computer-use) for more information.477478    - `id: string`479480      The unique ID of the computer call.481482    - `call_id: string`483484      An identifier used when responding to the tool call with output.485486    - `pending_safety_checks: array of object { id, code, message }`487488      The pending safety checks for the computer call.489490      - `id: string`491492        The ID of the pending safety check.493494      - `code: optional string or null`495496        The type of the pending safety check.497498      - `message: optional string or null`499500        Details about the pending safety check.501502    - `status: "in_progress" or "completed" or "incomplete"`503504      The status of the item. One of `in_progress`, `completed`, or505      `incomplete`. Populated when items are returned via API.506507      - `"in_progress"`508509      - `"completed"`510511      - `"incomplete"`512513    - `type: "computer_call"`514515      The type of the computer call. Always `computer_call`.516517      - `"computer_call"`518519    - `action: optional ComputerAction`520521      A click action.522523      - `Click object { button, type, x, 2 more }`524525        A click action.526527        - `button: "left" or "right" or "wheel" or 2 more`528529          Indicates which mouse button was pressed during the click. One of `left`, `right`, `wheel`, `back`, or `forward`.530531          - `"left"`532533          - `"right"`534535          - `"wheel"`536537          - `"back"`538539          - `"forward"`540541        - `type: "click"`542543          Specifies the event type. For a click action, this property is always `click`.544545          - `"click"`546547        - `x: number`548549          The x-coordinate where the click occurred.550551        - `y: number`552553          The y-coordinate where the click occurred.554555        - `keys: optional array of string or null`556557          The keys being held while clicking.558559      - `DoubleClick object { keys, type, x, y }`560561        A double click action.562563        - `keys: array of string or null`564565          The keys being held while double-clicking.566567        - `type: "double_click"`568569          Specifies the event type. For a double click action, this property is always set to `double_click`.570571          - `"double_click"`572573        - `x: number`574575          The x-coordinate where the double click occurred.576577        - `y: number`578579          The y-coordinate where the double click occurred.580581      - `Drag object { path, type, keys }`582583        A drag action.584585        - `path: array of object { x, y }`586587          An array of coordinates representing the path of the drag action. Coordinates will appear as an array of objects, eg588589          ```590          [591            { x: 100, y: 200 },592            { x: 200, y: 300 }593          ]594          ```595596          - `x: number`597598            The x-coordinate.599600          - `y: number`601602            The y-coordinate.603604        - `type: "drag"`605606          Specifies the event type. For a drag action, this property is always set to `drag`.607608          - `"drag"`609610        - `keys: optional array of string or null`611612          The keys being held while dragging the mouse.613614      - `Keypress object { keys, type }`615616        A collection of keypresses the model would like to perform.617618        - `keys: array of string`619620          The combination of keys the model is requesting to be pressed. This is an array of strings, each representing a key.621622        - `type: "keypress"`623624          Specifies the event type. For a keypress action, this property is always set to `keypress`.625626          - `"keypress"`627628      - `Move object { type, x, y, keys }`629630        A mouse move action.631632        - `type: "move"`633634          Specifies the event type. For a move action, this property is always set to `move`.635636          - `"move"`637638        - `x: number`639640          The x-coordinate to move to.641642        - `y: number`643644          The y-coordinate to move to.645646        - `keys: optional array of string or null`647648          The keys being held while moving the mouse.649650      - `Screenshot object { type }`651652        A screenshot action.653654        - `type: "screenshot"`655656          Specifies the event type. For a screenshot action, this property is always set to `screenshot`.657658          - `"screenshot"`659660      - `Scroll object { scroll_x, scroll_y, type, 3 more }`661662        A scroll action.663664        - `scroll_x: number`665666          The horizontal scroll distance.667668        - `scroll_y: number`669670          The vertical scroll distance.671672        - `type: "scroll"`673674          Specifies the event type. For a scroll action, this property is always set to `scroll`.675676          - `"scroll"`677678        - `x: number`679680          The x-coordinate where the scroll occurred.681682        - `y: number`683684          The y-coordinate where the scroll occurred.685686        - `keys: optional array of string or null`687688          The keys being held while scrolling.689690      - `Type object { text, type }`691692        An action to type in text.693694        - `text: string`695696          The text to type.697698        - `type: "type"`699700          Specifies the event type. For a type action, this property is always set to `type`.701702          - `"type"`703704      - `Wait object { type }`705706        A wait action.707708        - `type: "wait"`709710          Specifies the event type. For a wait action, this property is always set to `wait`.711712          - `"wait"`713714    - `actions: optional ComputerActionList`715716      Flattened batched actions for `computer_use`. Each action includes an717      `type` discriminator and action-specific fields.718719      - `Click object { button, type, x, 2 more }`720721        A click action.722723      - `DoubleClick object { keys, type, x, y }`724725        A double click action.726727      - `Drag object { path, type, keys }`728729        A drag action.730731      - `Keypress object { keys, type }`732733        A collection of keypresses the model would like to perform.734735      - `Move object { type, x, y, keys }`736737        A mouse move action.738739      - `Screenshot object { type }`740741        A screenshot action.742743      - `Scroll object { scroll_x, scroll_y, type, 3 more }`744745        A scroll action.746747      - `Type object { text, type }`748749        An action to type in text.750751      - `Wait object { type }`752753        A wait action.754755  - `ComputerCallOutput object { call_id, output, type, 3 more }`756757    The output of a computer tool call.758759    - `call_id: string`760761      The ID of the computer tool call that produced the output.762763    - `output: ResponseComputerToolCallOutputScreenshot`764765      A computer screenshot image used with the computer use tool.766767      - `type: "computer_screenshot"`768769        Specifies the event type. For a computer screenshot, this property is770        always set to `computer_screenshot`.771772        - `"computer_screenshot"`773774      - `file_id: optional string`775776        The identifier of an uploaded file that contains the screenshot.777778      - `image_url: optional string`779780        The URL of the screenshot image.781782    - `type: "computer_call_output"`783784      The type of the computer tool call output. Always `computer_call_output`.785786      - `"computer_call_output"`787788    - `id: optional string or null`789790      The ID of the computer tool call output.791792    - `acknowledged_safety_checks: optional array of object { id, code, message }  or null`793794      The safety checks reported by the API that have been acknowledged by the developer.795796      - `id: string`797798        The ID of the pending safety check.799800      - `code: optional string or null`801802        The type of the pending safety check.803804      - `message: optional string or null`805806        Details about the pending safety check.807808    - `status: optional "in_progress" or "completed" or "incomplete" or null`809810      The status of the message input. One of `in_progress`, `completed`, or `incomplete`. Populated when input items are returned via API.811812      - `"in_progress"`813814      - `"completed"`815816      - `"incomplete"`817818  - `WebSearchCall object { id, action, status, type }`819820    The results of a web search tool call. See the821    [web search guide](/api/docs/guides/tools-web-search) for more information.822823    - `id: string`824825      The unique ID of the web search tool call.826827    - `action: object { type, queries, query, sources }  or object { type, url }  or object { pattern, type, url }`828829      An object describing the specific action taken in this web search call.830      Includes details on how the model used the web (search, open_page, find_in_page).831832      - `Search object { type, queries, query, sources }`833834        Action type "search" - Performs a web search query.835836        - `type: "search"`837838          The action type.839840          - `"search"`841842        - `queries: optional array of string`843844          The search queries.845846        - `query: optional string`847848          The search query.849850        - `sources: optional array of object { type, url }`851852          The sources used in the search.853854          - `type: "url"`855856            The type of source. Always `url`.857858            - `"url"`859860          - `url: string`861862            The URL of the source.863864      - `OpenPage object { type, url }`865866        Action type "open_page" - Opens a specific URL from search results.867868        - `type: "open_page"`869870          The action type.871872          - `"open_page"`873874        - `url: optional string or null`875876          The URL opened by the model.877878      - `FindInPage object { pattern, type, url }`879880        Action type "find_in_page": Searches for a pattern within a loaded page.881882        - `pattern: string`883884          The pattern or text to search for within the page.885886        - `type: "find_in_page"`887888          The action type.889890          - `"find_in_page"`891892        - `url: string`893894          The URL of the page searched for the pattern.895896    - `status: "in_progress" or "searching" or "completed" or 2 more`897898      The status of the web search tool call.899900      - `"in_progress"`901902      - `"searching"`903904      - `"completed"`905906      - `"failed"`907908      - `"incomplete"`909910    - `type: "web_search_call"`911912      The type of the web search tool call. Always `web_search_call`.913914      - `"web_search_call"`915916  - `FunctionCall object { arguments, call_id, name, 6 more }`917918    A tool call to run a function. See the919    [function calling guide](/api/docs/guides/function-calling) for more information.920921    - `arguments: string`922923      A JSON string of the arguments to pass to the function.924925    - `call_id: string`926927      The unique ID of the function tool call generated by the model.928929    - `name: string`930931      The name of the function to run.932933    - `type: "function_call"`934935      The type of the function tool call. Always `function_call`.936937      - `"function_call"`938939    - `id: optional string`940941      The unique ID of the function tool call.942943    - `async: optional boolean`944945      Whether the function tool call runs asynchronously.946947    - `caller: optional object { type }  or object { caller_id, type }  or null`948949      The execution context that produced this tool call.950951      - `Direct object { type }`952953        - `type: "direct"`954955          - `"direct"`956957      - `Program object { caller_id, type }`958959        - `caller_id: string`960961          The call ID of the program item that produced this tool call.962963        - `type: "program"`964965          - `"program"`966967    - `namespace: optional string`968969      The namespace of the function to run.970971    - `status: optional "in_progress" or "completed" or "incomplete"`972973      The status of the item. One of `in_progress`, `completed`, or974      `incomplete`. Populated when items are returned via API.975976      - `"in_progress"`977978      - `"completed"`979980      - `"incomplete"`981982  - `FunctionCallOutput object { output, type, id, 5 more }`983984    The output of a function tool call.985986    - `output: string or array of ResponseInputTextContent or ResponseInputImageContent or ResponseInputFileContent`987988      Text, image, or file output of the function tool call.989990      - `string`991992        A JSON string of the output of the function tool call.993994      - `array of ResponseInputTextContent or ResponseInputImageContent or ResponseInputFileContent`995996        An array of content outputs (text, image, file) for the function tool call.997998        - `ResponseInputTextContent object { text, type, prompt_cache_breakpoint }`9991000          A text input to the model.10011002          - `text: string`10031004            The text input to the model.10051006          - `type: "input_text"`10071008            The type of the input item. Always `input_text`.10091010            - `"input_text"`10111012          - `prompt_cache_breakpoint: optional object { mode }  or null`10131014            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.10151016            - `mode: "explicit"`10171018              The breakpoint mode. Always `explicit`.10191020              - `"explicit"`10211022        - `ResponseInputImageContent object { type, detail, file_id, 2 more }`10231024          An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision)10251026          - `type: "input_image"`10271028            The type of the input item. Always `input_image`.10291030            - `"input_image"`10311032          - `detail: optional ImageDetail or null`10331034            The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.10351036          - `file_id: optional string or null`10371038            The ID of the file to be sent to the model.10391040          - `image_url: optional string or null`10411042            The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.10431044          - `prompt_cache_breakpoint: optional object { mode }  or null`10451046            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.10471048            - `mode: "explicit"`10491050              The breakpoint mode. Always `explicit`.10511052              - `"explicit"`10531054        - `ResponseInputFileContent object { type, detail, file_data, 4 more }`10551056          A file input to the model.10571058          - `type: "input_file"`10591060            The type of the input item. Always `input_file`.10611062            - `"input_file"`10631064          - `detail: optional "auto" or "low" or "high"`10651066            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`.10671068            - `"auto"`10691070            - `"low"`10711072            - `"high"`10731074          - `file_data: optional string or null`10751076            The base64-encoded data of the file to be sent to the model.10771078          - `file_id: optional string or null`10791080            The ID of the file to be sent to the model.10811082          - `file_url: optional string or null`10831084            The URL of the file to be sent to the model.10851086          - `filename: optional string or null`10871088            The name of the file to be sent to the model.10891090          - `prompt_cache_breakpoint: optional object { mode }  or null`10911092            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.10931094            - `mode: "explicit"`10951096              The breakpoint mode. Always `explicit`.10971098              - `"explicit"`10991100    - `type: "function_call_output"`11011102      The type of the function tool call output. Always `function_call_output`.11031104      - `"function_call_output"`11051106    - `id: optional string or null`11071108      The unique ID of the function tool call output. Populated when this item is returned via API.11091110    - `call_id: optional string or null`11111112      The unique ID of the function tool call generated by the model.11131114    - `caller: optional object { type }  or object { caller_id, type }  or null`11151116      The execution context that produced this tool call.11171118      - `Direct object { type }`11191120        - `type: "direct"`11211122          The caller type. Always `direct`.11231124          - `"direct"`11251126      - `Program object { caller_id, type }`11271128        - `caller_id: string`11291130          The call ID of the program item that produced this tool call.11311132        - `type: "program"`11331134          The caller type. Always `program`.11351136          - `"program"`11371138    - `name: optional string or null`11391140      The name of the tool that produced the output.11411142    - `namespace: optional string or null`11431144      The namespace of the tool that produced the output.11451146    - `status: optional "in_progress" or "completed" or "incomplete" or null`11471148      The status of the item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API.11491150      - `"in_progress"`11511152      - `"completed"`11531154      - `"incomplete"`11551156  - `ToolSearchCall object { arguments, type, id, 3 more }`11571158    - `arguments: unknown`11591160      The arguments supplied to the tool search call.11611162    - `type: "tool_search_call"`11631164      The item type. Always `tool_search_call`.11651166      - `"tool_search_call"`11671168    - `id: optional string or null`11691170      The unique ID of this tool search call.11711172    - `call_id: optional string or null`11731174      The unique ID of the tool search call generated by the model.11751176    - `execution: optional "server" or "client"`11771178      Whether tool search was executed by the server or by the client.11791180      - `"server"`11811182      - `"client"`11831184    - `status: optional "in_progress" or "completed" or "incomplete" or null`11851186      The status of the tool search call.11871188      - `"in_progress"`11891190      - `"completed"`11911192      - `"incomplete"`11931194  - `ToolSearchOutput object { tools, type, id, 3 more }`11951196    - `tools: array of object { name, parameters, strict, 6 more }  or object { type, vector_store_ids, filters, 2 more }  or object { type }  or 13 more`11971198      The loaded tool definitions returned by the tool search output.11991200      - `Function object { name, parameters, strict, 6 more }`12011202        Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).12031204        - `name: string`12051206          The name of the function to call.12071208        - `parameters: map[unknown] or null`12091210          A JSON schema object describing the parameters of the function.12111212        - `strict: boolean or null`12131214          Whether strict parameter validation is enforced for this function tool.12151216        - `type: "function"`12171218          The type of the function tool. Always `function`.12191220          - `"function"`12211222        - `allowed_callers: optional array of "direct" or "programmatic" or null`12231224          The tool invocation context(s).12251226          - `"direct"`12271228          - `"programmatic"`12291230        - `async: optional boolean`12311232        - `defer_loading: optional boolean`12331234          Whether this function is deferred and loaded via tool search.12351236        - `description: optional string or null`12371238          A description of the function. Used by the model to determine whether or not to call the function.12391240        - `output_schema: optional map[unknown] or null`12411242          A JSON schema object describing the JSON value encoded in string outputs for this function.12431244      - `FileSearch object { type, vector_store_ids, filters, 2 more }`12451246        A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).12471248        - `type: "file_search"`12491250          The type of the file search tool. Always `file_search`.12511252          - `"file_search"`12531254        - `vector_store_ids: array of string`12551256          The IDs of the vector stores to search.12571258        - `filters: optional ComparisonFilter or CompoundFilter or null`12591260          A filter to apply.12611262          - `ComparisonFilter object { key, type, value }`12631264            A filter used to compare a specified attribute key to a given value using a defined comparison operation.12651266            - `key: string`12671268              The key to compare against the value.12691270            - `type: "eq" or "ne" or "gt" or 5 more`12711272              Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`, `in`, `nin`.12731274              - `eq`: equals1275              - `ne`: not equal1276              - `gt`: greater than1277              - `gte`: greater than or equal1278              - `lt`: less than1279              - `lte`: less than or equal1280              - `in`: in1281              - `nin`: not in12821283              - `"eq"`12841285              - `"ne"`12861287              - `"gt"`12881289              - `"gte"`12901291              - `"lt"`12921293              - `"lte"`12941295              - `"in"`12961297              - `"nin"`12981299            - `value: string or number or boolean or array of string or number`13001301              The value to compare against the attribute key; supports string, number, or boolean types.13021303              - `string`13041305              - `number`13061307              - `boolean`13081309              - `array of string or number`13101311                - `string`13121313                - `number`13141315          - `CompoundFilter object { filters, type }`13161317            Combine multiple filters using `and` or `or`.13181319            - `filters: array of ComparisonFilter or unknown`13201321              Array of filters to combine. Items can be `ComparisonFilter` or `CompoundFilter`.13221323              - `ComparisonFilter object { key, type, value }`13241325                A filter used to compare a specified attribute key to a given value using a defined comparison operation.13261327              - `unknown`13281329            - `type: "and" or "or"`13301331              Type of operation: `and` or `or`.13321333              - `"and"`13341335              - `"or"`13361337        - `max_num_results: optional number`13381339          The maximum number of results to return. This number should be between 1 and 50 inclusive.13401341        - `ranking_options: optional object { hybrid_search, ranker, score_threshold }`13421343          Ranking options for search.13441345          - `hybrid_search: optional object { embedding_weight, text_weight }`13461347            Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled.13481349            - `embedding_weight: number`13501351              The weight of the embedding in the reciprocal ranking fusion.13521353            - `text_weight: number`13541355              The weight of the text in the reciprocal ranking fusion.13561357          - `ranker: optional "auto" or "default-2024-11-15"`13581359            The ranker to use for the file search.13601361            - `"auto"`13621363            - `"default-2024-11-15"`13641365          - `score_threshold: optional number`13661367            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.13681369      - `Computer object { type }`13701371        A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).13721373        - `type: "computer"`13741375          The type of the computer tool. Always `computer`.13761377          - `"computer"`13781379      - `ComputerUsePreview object { display_height, display_width, environment, type }`13801381        A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).13821383        - `display_height: number`13841385          The height of the computer display.13861387        - `display_width: number`13881389          The width of the computer display.13901391        - `environment: "windows" or "mac" or "linux" or 2 more`13921393          The type of computer environment to control.13941395          - `"windows"`13961397          - `"mac"`13981399          - `"linux"`14001401          - `"ubuntu"`14021403          - `"browser"`14041405        - `type: "computer_use_preview"`14061407          The type of the computer use tool. Always `computer_use_preview`.14081409          - `"computer_use_preview"`14101411      - `WebSearch object { type, external_web_access, filters, 2 more }`14121413        Search the Internet for sources related to the prompt. Learn more about the1414        [web search tool](/api/docs/guides/tools-web-search).14151416        - `type: "web_search" or "web_search_2025_08_26"`14171418          The type of the web search tool. One of `web_search` or `web_search_2025_08_26`.14191420          - `"web_search"`14211422          - `"web_search_2025_08_26"`14231424        - `external_web_access: optional boolean`14251426          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.14271428        - `filters: optional object { allowed_domains }  or null`14291430          Filters for the search.14311432          - `allowed_domains: optional array of string or null`14331434            Allowed domains for the search. If not provided, all domains are allowed.1435            Subdomains of the provided domains are allowed as well.14361437            Example: `["pubmed.ncbi.nlm.nih.gov"]`14381439        - `search_context_size: optional "low" or "medium" or "high"`14401441          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.14421443          - `"low"`14441445          - `"medium"`14461447          - `"high"`14481449        - `user_location: optional object { city, country, region, 2 more }  or null`14501451          The approximate location of the user.14521453          - `city: optional string or null`14541455            Free text input for the city of the user, e.g. `San Francisco`.14561457          - `country: optional string or null`14581459            The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.14601461          - `region: optional string or null`14621463            Free text input for the region of the user, e.g. `California`.14641465          - `timezone: optional string or null`14661467            The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.14681469          - `type: optional "approximate"`14701471            The type of location approximation. Always `approximate`.14721473            - `"approximate"`14741475      - `Mcp object { server_label, type, allowed_callers, 9 more }`14761477        Give the model access to additional tools via remote Model Context Protocol1478        (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).14791480        - `server_label: string`14811482          A label for this MCP server, used to identify it in tool calls.14831484        - `type: "mcp"`14851486          The type of the MCP tool. Always `mcp`.14871488          - `"mcp"`14891490        - `allowed_callers: optional array of "direct" or "programmatic" or null`14911492          The tool invocation context(s).14931494          - `"direct"`14951496          - `"programmatic"`14971498        - `allowed_tools: optional array of string or object { read_only, tool_names }  or null`14991500          List of allowed tool names or a filter object.15011502          - `McpAllowedTools = array of string`15031504            A string array of allowed tool names15051506          - `McpToolFilter object { read_only, tool_names }`15071508            A filter object to specify which tools are allowed.15091510            - `read_only: optional boolean`15111512              Indicates whether or not a tool modifies data or is read-only. If an1513              MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),1514              it will match this filter.15151516            - `tool_names: optional array of string`15171518              List of allowed tool names.15191520        - `authorization: optional string`15211522          An OAuth access token that can be used with a remote MCP server, either1523          with a custom MCP server URL or a service connector. Your application1524          must handle the OAuth authorization flow and provide the token here.15251526        - `connector_id: optional "connector_dropbox" or "connector_gmail" or "connector_googlecalendar" or 5 more`15271528          Identifier for service connectors, like those available in ChatGPT. One of1529          `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more1530          about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).15311532          This field is deprecated for models released after September 1, 2026.1533          Use `server_url` to connect to a remote MCP server, or `tunnel_id` to1534          connect through a Secure MCP Tunnel.15351536          Currently supported `connector_id` values are:15371538          - Dropbox: `connector_dropbox`1539          - Gmail: `connector_gmail`1540          - Google Calendar: `connector_googlecalendar`1541          - Google Drive: `connector_googledrive`1542          - Microsoft Teams: `connector_microsoftteams`1543          - Outlook Calendar: `connector_outlookcalendar`1544          - Outlook Email: `connector_outlookemail`1545          - SharePoint: `connector_sharepoint`15461547          - `"connector_dropbox"`15481549          - `"connector_gmail"`15501551          - `"connector_googlecalendar"`15521553          - `"connector_googledrive"`15541555          - `"connector_microsoftteams"`15561557          - `"connector_outlookcalendar"`15581559          - `"connector_outlookemail"`15601561          - `"connector_sharepoint"`15621563        - `defer_loading: optional boolean`15641565          Whether this MCP tool is deferred and discovered via tool search.15661567        - `headers: optional map[string] or null`15681569          Optional HTTP headers to send to the MCP server. Use for authentication1570          or other purposes.15711572        - `require_approval: optional object { always, never }  or "always" or "never" or null`15731574          Specify which of the MCP server's tools require approval.15751576          - `McpToolApprovalFilter object { always, never }`15771578            Specify which of the MCP server's tools require approval. Can be1579            `always`, `never`, or a filter object associated with tools1580            that require approval.15811582            - `always: optional object { read_only, tool_names }`15831584              A filter object to specify which tools are allowed.15851586              - `read_only: optional boolean`15871588                Indicates whether or not a tool modifies data or is read-only. If an1589                MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),1590                it will match this filter.15911592              - `tool_names: optional array of string`15931594                List of allowed tool names.15951596            - `never: optional object { read_only, tool_names }`15971598              A filter object to specify which tools are allowed.15991600              - `read_only: optional boolean`16011602                Indicates whether or not a tool modifies data or is read-only. If an1603                MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),1604                it will match this filter.16051606              - `tool_names: optional array of string`16071608                List of allowed tool names.16091610          - `McpToolApprovalSetting = "always" or "never"`16111612            Specify a single approval policy for all tools. One of `always` or1613            `never`. When set to `always`, all tools will require approval. When1614            set to `never`, all tools will not require approval.16151616            - `"always"`16171618            - `"never"`16191620        - `server_description: optional string`16211622          Optional description of the MCP server, used to provide more context.16231624        - `server_url: optional string`16251626          The URL for the MCP server. One of `server_url`, `connector_id`, or1627          `tunnel_id` must be provided.16281629        - `tunnel_id: optional string`16301631          The Secure MCP Tunnel ID to use instead of a direct server URL. One of1632          `server_url`, `connector_id`, or `tunnel_id` must be provided.16331634      - `CodeInterpreter object { container, type, allowed_callers }`16351636        A tool that runs Python code to help generate a response to a prompt.16371638        - `container: string or object { type, file_ids, memory_limit, network_policy }`16391640          The code interpreter container. Can be a container ID or an object that1641          specifies uploaded file IDs to make available to your code, along with an1642          optional `memory_limit` setting.16431644          - `string`16451646            The container ID.16471648          - `CodeInterpreterToolAuto object { type, file_ids, memory_limit, network_policy }`16491650            Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.16511652            - `type: "auto"`16531654              Always `auto`.16551656              - `"auto"`16571658            - `file_ids: optional array of string`16591660              An optional list of uploaded files to make available to your code.16611662            - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`16631664              The memory limit for the code interpreter container.16651666              - `"1g"`16671668              - `"4g"`16691670              - `"16g"`16711672              - `"64g"`16731674            - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`16751676              Network access policy for the container.16771678              - `ContainerNetworkPolicyDisabled object { type }`16791680                - `type: "disabled"`16811682                  Disable outbound network access. Always `disabled`.16831684                  - `"disabled"`16851686              - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`16871688                - `allowed_domains: array of string`16891690                  A list of allowed domains when type is `allowlist`.16911692                - `type: "allowlist"`16931694                  Allow outbound network access only to specified domains. Always `allowlist`.16951696                  - `"allowlist"`16971698                - `domain_secrets: optional array of ContainerNetworkPolicyDomainSecret`16991700                  Optional domain-scoped secrets for allowlisted domains.17011702                  - `domain: string`17031704                    The domain associated with the secret.17051706                  - `name: string`17071708                    The name of the secret to inject for the domain.17091710                  - `value: string`17111712                    The secret value to inject for the domain.17131714        - `type: "code_interpreter"`17151716          The type of the code interpreter tool. Always `code_interpreter`.17171718          - `"code_interpreter"`17191720        - `allowed_callers: optional array of "direct" or "programmatic" or null`17211722          The tool invocation context(s).17231724          - `"direct"`17251726          - `"programmatic"`17271728      - `ProgrammaticToolCalling object { type }`17291730        - `type: "programmatic_tool_calling"`17311732          The type of the tool. Always `programmatic_tool_calling`.17331734          - `"programmatic_tool_calling"`17351736      - `ImageGeneration object { type, action, background, 9 more }`17371738        A tool that generates images using the GPT image models.17391740        - `type: "image_generation"`17411742          The type of the image generation tool. Always `image_generation`.17431744          - `"image_generation"`17451746        - `action: optional "generate" or "edit" or "auto"`17471748          Whether to generate a new image or edit an existing image. Default: `auto`.17491750          - `"generate"`17511752          - `"edit"`17531754          - `"auto"`17551756        - `background: optional "transparent" or "opaque" or "auto"`17571758          Set the background of the generated image. One of `transparent`, `opaque`,1759          or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including1760          their `2026-09-08` snapshots, support `opaque` and `transparent`1761          backgrounds. Transparent backgrounds are available for supported GPT Image1762          models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in1763          preview. When using `transparent`, set the output format to `png` or `webp`.1764          Default: `auto`.17651766          - `"transparent"`17671768          - `"opaque"`17691770          - `"auto"`17711772        - `input_fidelity: optional "high" or "low" or null`17731774          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`.17751776          - `"high"`17771778          - `"low"`17791780        - `input_image_mask: optional object { file_id, image_url }`17811782          Optional mask for inpainting. Contains `image_url`1783          (string, optional) and `file_id` (string, optional).17841785          - `file_id: optional string`17861787            File ID for the mask image.17881789          - `image_url: optional string`17901791            Base64-encoded mask image.17921793        - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`17941795          The image generation model to use. One of `gpt-image-1`,1796          `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1797          `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,1798          `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,1799          `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:1800          `gpt-image-1`.18011802          - `string`18031804          - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`18051806            The image generation model to use. One of `gpt-image-1`,1807            `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1808            `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,1809            `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,1810            `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:1811            `gpt-image-1`.18121813            - `"gpt-image-1"`18141815            - `"gpt-image-1-mini"`18161817            - `"gpt-image-1.5"`18181819            - `"gpt-image-2"`18201821            - `"gpt-image-2-2026-04-21"`18221823            - `"gpt-image-2.5-sunburst"`18241825            - `"gpt-image-2.5-sunburst-2026-09-08"`18261827            - `"gpt-image-2.5-flare"`18281829            - `"gpt-image-2.5-flare-2026-09-08"`18301831        - `moderation: optional "auto" or "low"`18321833          Moderation level for the generated image. Default: `auto`.18341835          - `"auto"`18361837          - `"low"`18381839        - `output_compression: optional number`18401841          Compression level for the output image. Default: 100.18421843        - `output_format: optional "png" or "webp" or "jpeg"`18441845          The output format of the generated image. One of `png`, `webp`, or1846          `jpeg`. Default: `png`.18471848          - `"png"`18491850          - `"webp"`18511852          - `"jpeg"`18531854        - `partial_images: optional number`18551856          Number of partial images to generate in streaming mode, from 0 (default value) to 3.18571858        - `quality: optional "low" or "medium" or "high" or 3 more`18591860          The quality of the generated image. The GPT image models support `low`,1861          `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,1862          including their `2026-09-08` snapshots, also support `xhigh` and `max`.1863          Default: `auto`.18641865          - `"low"`18661867          - `"medium"`18681869          - `"high"`18701871          - `"xhigh"`18721873          - `"max"`18741875          - `"auto"`18761877        - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`18781879          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`.18801881          - `string`18821883          - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`18841885            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`.18861887            - `"1024x1024"`18881889            - `"1024x1536"`18901891            - `"1536x1024"`18921893            - `"auto"`18941895      - `LocalShell object { type }`18961897        A tool that allows the model to execute shell commands in a local environment.18981899        - `type: "local_shell"`19001901          The type of the local shell tool. Always `local_shell`.19021903          - `"local_shell"`19041905      - `Shell object { type, allowed_callers, environment }`19061907        A tool that allows the model to execute shell commands.19081909        - `type: "shell"`19101911          The type of the shell tool. Always `shell`.19121913          - `"shell"`19141915        - `allowed_callers: optional array of "direct" or "programmatic" or null`19161917          The tool invocation context(s).19181919          - `"direct"`19201921          - `"programmatic"`19221923        - `environment: optional ContainerAuto or LocalEnvironment or ContainerReference or null`19241925          - `ContainerAuto object { type, file_ids, memory_limit, 2 more }`19261927            - `type: "container_auto"`19281929              Automatically creates a container for this request19301931              - `"container_auto"`19321933            - `file_ids: optional array of string`19341935              An optional list of uploaded files to make available to your code.19361937            - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`19381939              The memory limit for the container.19401941              - `"1g"`19421943              - `"4g"`19441945              - `"16g"`19461947              - `"64g"`19481949            - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`19501951              Network access policy for the container.19521953              - `ContainerNetworkPolicyDisabled object { type }`19541955              - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`19561957            - `skills: optional array of SkillReference or InlineSkill`19581959              An optional list of skills referenced by id or inline data.19601961              - `SkillReference object { skill_id, type, version }`19621963                - `skill_id: string`19641965                  The ID of the referenced skill.19661967                - `type: "skill_reference"`19681969                  References a skill created with the /v1/skills endpoint.19701971                  - `"skill_reference"`19721973                - `version: optional string`19741975                  Optional skill version. Use a positive integer or 'latest'. Omit for default.19761977              - `InlineSkill object { description, name, source, type }`19781979                - `description: string`19801981                  The description of the skill.19821983                - `name: string`19841985                  The name of the skill.19861987                - `source: InlineSkillSource`19881989                  Inline skill payload19901991                  - `data: string`19921993                    Base64-encoded skill zip bundle.19941995                  - `media_type: "application/zip"`19961997                    The media type of the inline skill payload. Must be `application/zip`.19981999                    - `"application/zip"`20002001                  - `type: "base64"`20022003                    The type of the inline skill source. Must be `base64`.20042005                    - `"base64"`20062007                - `type: "inline"`20082009                  Defines an inline skill for this request.20102011                  - `"inline"`20122013          - `LocalEnvironment object { type, skills }`20142015            - `type: "local"`20162017              Use a local computer environment.20182019              - `"local"`20202021            - `skills: optional array of LocalSkill`20222023              An optional list of skills.20242025              - `description: string`20262027                The description of the skill.20282029              - `name: string`20302031                The name of the skill.20322033              - `path: string`20342035                The path to the directory containing the skill.20362037          - `ContainerReference object { container_id, type }`20382039            - `container_id: string`20402041              The ID of the referenced container.20422043            - `type: "container_reference"`20442045              References a container created with the /v1/containers endpoint20462047              - `"container_reference"`20482049      - `Custom object { name, type, allowed_callers, 4 more }`20502051        A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)20522053        - `name: string`20542055          The name of the custom tool, used to identify it in tool calls.20562057        - `type: "custom"`20582059          The type of the custom tool. Always `custom`.20602061          - `"custom"`20622063        - `allowed_callers: optional array of "direct" or "programmatic" or null`20642065          The tool invocation context(s).20662067          - `"direct"`20682069          - `"programmatic"`20702071        - `async: optional boolean`20722073          Whether the tool response can be returned asynchronously versus immediately returned on next response creation.20742075        - `defer_loading: optional boolean`20762077          Whether this tool should be deferred and discovered via tool search.20782079        - `description: optional string`20802081          Optional description of the custom tool, used to provide more context.20822083        - `format: optional CustomToolInputFormat`20842085          The input format for the custom tool. Default is unconstrained text.20862087          - `Text object { type }`20882089            Unconstrained free-form text.20902091            - `type: "text"`20922093              Unconstrained text format. Always `text`.20942095              - `"text"`20962097          - `Grammar object { definition, syntax, type }`20982099            A grammar defined by the user.21002101            - `definition: string`21022103              The grammar definition.21042105            - `syntax: "lark" or "regex"`21062107              The syntax of the grammar definition. One of `lark` or `regex`.21082109              - `"lark"`21102111              - `"regex"`21122113            - `type: "grammar"`21142115              Grammar format. Always `grammar`.21162117              - `"grammar"`21182119      - `Namespace object { description, name, tools, type }`21202121        Groups function/custom tools under a shared namespace.21222123        - `description: string`21242125          A description of the namespace shown to the model.21262127        - `name: string`21282129          The namespace name used in tool calls (for example, `crm`).21302131        - `tools: array of object { name, type, allowed_callers, 6 more }  or object { name, type, allowed_callers, 4 more }`21322133          The function/custom tools available inside this namespace.21342135          - `Function object { name, type, allowed_callers, 6 more }`21362137            - `name: string`21382139            - `type: "function"`21402141              - `"function"`21422143            - `allowed_callers: optional array of "direct" or "programmatic" or null`21442145              The tool invocation context(s).21462147              - `"direct"`21482149              - `"programmatic"`21502151            - `async: optional boolean`21522153              Whether the tool response can be returned asynchronously versus immediately returned on next response creation.21542155            - `defer_loading: optional boolean`21562157              Whether this function should be deferred and discovered via tool search.21582159            - `description: optional string or null`21602161            - `output_schema: optional map[unknown] or null`21622163              A JSON Schema describing the JSON value encoded in string outputs for this function tool. This does not describe content-array outputs.21642165            - `parameters: optional unknown or null`21662167            - `strict: optional boolean or null`21682169              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.21702171          - `Custom object { name, type, allowed_callers, 4 more }`21722173            A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)21742175            - `name: string`21762177              The name of the custom tool, used to identify it in tool calls.21782179            - `type: "custom"`21802181              The type of the custom tool. Always `custom`.21822183              - `"custom"`21842185            - `allowed_callers: optional array of "direct" or "programmatic" or null`21862187              The tool invocation context(s).21882189              - `"direct"`21902191              - `"programmatic"`21922193            - `async: optional boolean`21942195              Whether the tool response can be returned asynchronously versus immediately returned on next response creation.21962197            - `defer_loading: optional boolean`21982199              Whether this tool should be deferred and discovered via tool search.22002201            - `description: optional string`22022203              Optional description of the custom tool, used to provide more context.22042205            - `format: optional CustomToolInputFormat`22062207              The input format for the custom tool. Default is unconstrained text.22082209        - `type: "namespace"`22102211          The type of the tool. Always `namespace`.22122213          - `"namespace"`22142215      - `ToolSearch object { type, description, execution, parameters }`22162217        Hosted or BYOT tool search configuration for deferred tools.22182219        - `type: "tool_search"`22202221          The type of the tool. Always `tool_search`.22222223          - `"tool_search"`22242225        - `description: optional string or null`22262227          Description shown to the model for a client-executed tool search tool.22282229        - `execution: optional "server" or "client"`22302231          Whether tool search is executed by the server or by the client.22322233          - `"server"`22342235          - `"client"`22362237        - `parameters: optional unknown or null`22382239          Parameter schema for a client-executed tool search tool.22402241      - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`22422243        This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](/api/docs/guides/tools-web-search).22442245        - `type: "web_search_preview" or "web_search_preview_2025_03_11"`22462247          The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.22482249          - `"web_search_preview"`22502251          - `"web_search_preview_2025_03_11"`22522253        - `search_content_types: optional array of "text" or "image"`22542255          - `"text"`22562257          - `"image"`22582259        - `search_context_size: optional "low" or "medium" or "high"`22602261          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.22622263          - `"low"`22642265          - `"medium"`22662267          - `"high"`22682269        - `user_location: optional object { type, city, country, 2 more }  or null`22702271          The user's location.22722273          - `type: "approximate"`22742275            The type of location approximation. Always `approximate`.22762277            - `"approximate"`22782279          - `city: optional string or null`22802281            Free text input for the city of the user, e.g. `San Francisco`.22822283          - `country: optional string or null`22842285            The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.22862287          - `region: optional string or null`22882289            Free text input for the region of the user, e.g. `California`.22902291          - `timezone: optional string or null`22922293            The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.22942295      - `ApplyPatch object { type, allowed_callers }`22962297        Allows the assistant to create, delete, or update files using unified diffs.22982299        - `type: "apply_patch"`23002301          The type of the tool. Always `apply_patch`.23022303          - `"apply_patch"`23042305        - `allowed_callers: optional array of "direct" or "programmatic" or null`23062307          The tool invocation context(s).23082309          - `"direct"`23102311          - `"programmatic"`23122313    - `type: "tool_search_output"`23142315      The item type. Always `tool_search_output`.23162317      - `"tool_search_output"`23182319    - `id: optional string or null`23202321      The unique ID of this tool search output.23222323    - `call_id: optional string or null`23242325      The unique ID of the tool search call generated by the model.23262327    - `execution: optional "server" or "client"`23282329      Whether tool search was executed by the server or by the client.23302331      - `"server"`23322333      - `"client"`23342335    - `status: optional "in_progress" or "completed" or "incomplete" or null`23362337      The status of the tool search output.23382339      - `"in_progress"`23402341      - `"completed"`23422343      - `"incomplete"`23442345  - `AdditionalTools object { role, tools, type, id }`23462347    - `role: "developer"`23482349      The role that provided the additional tools. Only `developer` is supported.23502351      - `"developer"`23522353    - `tools: array of object { name, parameters, strict, 6 more }  or object { type, vector_store_ids, filters, 2 more }  or object { type }  or 13 more`23542355      A list of additional tools made available at this item.23562357      - `Function object { name, parameters, strict, 6 more }`23582359        Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).23602361        - `name: string`23622363          The name of the function to call.23642365        - `parameters: map[unknown] or null`23662367          A JSON schema object describing the parameters of the function.23682369        - `strict: boolean or null`23702371          Whether strict parameter validation is enforced for this function tool.23722373        - `type: "function"`23742375          The type of the function tool. Always `function`.23762377          - `"function"`23782379        - `allowed_callers: optional array of "direct" or "programmatic" or null`23802381          The tool invocation context(s).23822383          - `"direct"`23842385          - `"programmatic"`23862387        - `async: optional boolean`23882389        - `defer_loading: optional boolean`23902391          Whether this function is deferred and loaded via tool search.23922393        - `description: optional string or null`23942395          A description of the function. Used by the model to determine whether or not to call the function.23962397        - `output_schema: optional map[unknown] or null`23982399          A JSON schema object describing the JSON value encoded in string outputs for this function.24002401      - `FileSearch object { type, vector_store_ids, filters, 2 more }`24022403        A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).24042405        - `type: "file_search"`24062407          The type of the file search tool. Always `file_search`.24082409          - `"file_search"`24102411        - `vector_store_ids: array of string`24122413          The IDs of the vector stores to search.24142415        - `filters: optional ComparisonFilter or CompoundFilter or null`24162417          A filter to apply.24182419          - `ComparisonFilter object { key, type, value }`24202421            A filter used to compare a specified attribute key to a given value using a defined comparison operation.24222423          - `CompoundFilter object { filters, type }`24242425            Combine multiple filters using `and` or `or`.24262427        - `max_num_results: optional number`24282429          The maximum number of results to return. This number should be between 1 and 50 inclusive.24302431        - `ranking_options: optional object { hybrid_search, ranker, score_threshold }`24322433          Ranking options for search.24342435          - `hybrid_search: optional object { embedding_weight, text_weight }`24362437            Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled.24382439            - `embedding_weight: number`24402441              The weight of the embedding in the reciprocal ranking fusion.24422443            - `text_weight: number`24442445              The weight of the text in the reciprocal ranking fusion.24462447          - `ranker: optional "auto" or "default-2024-11-15"`24482449            The ranker to use for the file search.24502451            - `"auto"`24522453            - `"default-2024-11-15"`24542455          - `score_threshold: optional number`24562457            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.24582459      - `Computer object { type }`24602461        A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).24622463        - `type: "computer"`24642465          The type of the computer tool. Always `computer`.24662467          - `"computer"`24682469      - `ComputerUsePreview object { display_height, display_width, environment, type }`24702471        A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).24722473        - `display_height: number`24742475          The height of the computer display.24762477        - `display_width: number`24782479          The width of the computer display.24802481        - `environment: "windows" or "mac" or "linux" or 2 more`24822483          The type of computer environment to control.24842485          - `"windows"`24862487          - `"mac"`24882489          - `"linux"`24902491          - `"ubuntu"`24922493          - `"browser"`24942495        - `type: "computer_use_preview"`24962497          The type of the computer use tool. Always `computer_use_preview`.24982499          - `"computer_use_preview"`25002501      - `WebSearch object { type, external_web_access, filters, 2 more }`25022503        Search the Internet for sources related to the prompt. Learn more about the2504        [web search tool](/api/docs/guides/tools-web-search).25052506        - `type: "web_search" or "web_search_2025_08_26"`25072508          The type of the web search tool. One of `web_search` or `web_search_2025_08_26`.25092510          - `"web_search"`25112512          - `"web_search_2025_08_26"`25132514        - `external_web_access: optional boolean`25152516          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.25172518        - `filters: optional object { allowed_domains }  or null`25192520          Filters for the search.25212522          - `allowed_domains: optional array of string or null`25232524            Allowed domains for the search. If not provided, all domains are allowed.2525            Subdomains of the provided domains are allowed as well.25262527            Example: `["pubmed.ncbi.nlm.nih.gov"]`25282529        - `search_context_size: optional "low" or "medium" or "high"`25302531          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.25322533          - `"low"`25342535          - `"medium"`25362537          - `"high"`25382539        - `user_location: optional object { city, country, region, 2 more }  or null`25402541          The approximate location of the user.25422543          - `city: optional string or null`25442545            Free text input for the city of the user, e.g. `San Francisco`.25462547          - `country: optional string or null`25482549            The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.25502551          - `region: optional string or null`25522553            Free text input for the region of the user, e.g. `California`.25542555          - `timezone: optional string or null`25562557            The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.25582559          - `type: optional "approximate"`25602561            The type of location approximation. Always `approximate`.25622563            - `"approximate"`25642565      - `Mcp object { server_label, type, allowed_callers, 9 more }`25662567        Give the model access to additional tools via remote Model Context Protocol2568        (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).25692570        - `server_label: string`25712572          A label for this MCP server, used to identify it in tool calls.25732574        - `type: "mcp"`25752576          The type of the MCP tool. Always `mcp`.25772578          - `"mcp"`25792580        - `allowed_callers: optional array of "direct" or "programmatic" or null`25812582          The tool invocation context(s).25832584          - `"direct"`25852586          - `"programmatic"`25872588        - `allowed_tools: optional array of string or object { read_only, tool_names }  or null`25892590          List of allowed tool names or a filter object.25912592          - `McpAllowedTools = array of string`25932594            A string array of allowed tool names25952596          - `McpToolFilter object { read_only, tool_names }`25972598            A filter object to specify which tools are allowed.25992600            - `read_only: optional boolean`26012602              Indicates whether or not a tool modifies data or is read-only. If an2603              MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),2604              it will match this filter.26052606            - `tool_names: optional array of string`26072608              List of allowed tool names.26092610        - `authorization: optional string`26112612          An OAuth access token that can be used with a remote MCP server, either2613          with a custom MCP server URL or a service connector. Your application2614          must handle the OAuth authorization flow and provide the token here.26152616        - `connector_id: optional "connector_dropbox" or "connector_gmail" or "connector_googlecalendar" or 5 more`26172618          Identifier for service connectors, like those available in ChatGPT. One of2619          `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more2620          about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).26212622          This field is deprecated for models released after September 1, 2026.2623          Use `server_url` to connect to a remote MCP server, or `tunnel_id` to2624          connect through a Secure MCP Tunnel.26252626          Currently supported `connector_id` values are:26272628          - Dropbox: `connector_dropbox`2629          - Gmail: `connector_gmail`2630          - Google Calendar: `connector_googlecalendar`2631          - Google Drive: `connector_googledrive`2632          - Microsoft Teams: `connector_microsoftteams`2633          - Outlook Calendar: `connector_outlookcalendar`2634          - Outlook Email: `connector_outlookemail`2635          - SharePoint: `connector_sharepoint`26362637          - `"connector_dropbox"`26382639          - `"connector_gmail"`26402641          - `"connector_googlecalendar"`26422643          - `"connector_googledrive"`26442645          - `"connector_microsoftteams"`26462647          - `"connector_outlookcalendar"`26482649          - `"connector_outlookemail"`26502651          - `"connector_sharepoint"`26522653        - `defer_loading: optional boolean`26542655          Whether this MCP tool is deferred and discovered via tool search.26562657        - `headers: optional map[string] or null`26582659          Optional HTTP headers to send to the MCP server. Use for authentication2660          or other purposes.26612662        - `require_approval: optional object { always, never }  or "always" or "never" or null`26632664          Specify which of the MCP server's tools require approval.26652666          - `McpToolApprovalFilter object { always, never }`26672668            Specify which of the MCP server's tools require approval. Can be2669            `always`, `never`, or a filter object associated with tools2670            that require approval.26712672            - `always: optional object { read_only, tool_names }`26732674              A filter object to specify which tools are allowed.26752676              - `read_only: optional boolean`26772678                Indicates whether or not a tool modifies data or is read-only. If an2679                MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),2680                it will match this filter.26812682              - `tool_names: optional array of string`26832684                List of allowed tool names.26852686            - `never: optional object { read_only, tool_names }`26872688              A filter object to specify which tools are allowed.26892690              - `read_only: optional boolean`26912692                Indicates whether or not a tool modifies data or is read-only. If an2693                MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),2694                it will match this filter.26952696              - `tool_names: optional array of string`26972698                List of allowed tool names.26992700          - `McpToolApprovalSetting = "always" or "never"`27012702            Specify a single approval policy for all tools. One of `always` or2703            `never`. When set to `always`, all tools will require approval. When2704            set to `never`, all tools will not require approval.27052706            - `"always"`27072708            - `"never"`27092710        - `server_description: optional string`27112712          Optional description of the MCP server, used to provide more context.27132714        - `server_url: optional string`27152716          The URL for the MCP server. One of `server_url`, `connector_id`, or2717          `tunnel_id` must be provided.27182719        - `tunnel_id: optional string`27202721          The Secure MCP Tunnel ID to use instead of a direct server URL. One of2722          `server_url`, `connector_id`, or `tunnel_id` must be provided.27232724      - `CodeInterpreter object { container, type, allowed_callers }`27252726        A tool that runs Python code to help generate a response to a prompt.27272728        - `container: string or object { type, file_ids, memory_limit, network_policy }`27292730          The code interpreter container. Can be a container ID or an object that2731          specifies uploaded file IDs to make available to your code, along with an2732          optional `memory_limit` setting.27332734          - `string`27352736            The container ID.27372738          - `CodeInterpreterToolAuto object { type, file_ids, memory_limit, network_policy }`27392740            Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.27412742            - `type: "auto"`27432744              Always `auto`.27452746              - `"auto"`27472748            - `file_ids: optional array of string`27492750              An optional list of uploaded files to make available to your code.27512752            - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`27532754              The memory limit for the code interpreter container.27552756              - `"1g"`27572758              - `"4g"`27592760              - `"16g"`27612762              - `"64g"`27632764            - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`27652766              Network access policy for the container.27672768              - `ContainerNetworkPolicyDisabled object { type }`27692770              - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`27712772        - `type: "code_interpreter"`27732774          The type of the code interpreter tool. Always `code_interpreter`.27752776          - `"code_interpreter"`27772778        - `allowed_callers: optional array of "direct" or "programmatic" or null`27792780          The tool invocation context(s).27812782          - `"direct"`27832784          - `"programmatic"`27852786      - `ProgrammaticToolCalling object { type }`27872788        - `type: "programmatic_tool_calling"`27892790          The type of the tool. Always `programmatic_tool_calling`.27912792          - `"programmatic_tool_calling"`27932794      - `ImageGeneration object { type, action, background, 9 more }`27952796        A tool that generates images using the GPT image models.27972798        - `type: "image_generation"`27992800          The type of the image generation tool. Always `image_generation`.28012802          - `"image_generation"`28032804        - `action: optional "generate" or "edit" or "auto"`28052806          Whether to generate a new image or edit an existing image. Default: `auto`.28072808          - `"generate"`28092810          - `"edit"`28112812          - `"auto"`28132814        - `background: optional "transparent" or "opaque" or "auto"`28152816          Set the background of the generated image. One of `transparent`, `opaque`,2817          or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including2818          their `2026-09-08` snapshots, support `opaque` and `transparent`2819          backgrounds. Transparent backgrounds are available for supported GPT Image2820          models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in2821          preview. When using `transparent`, set the output format to `png` or `webp`.2822          Default: `auto`.28232824          - `"transparent"`28252826          - `"opaque"`28272828          - `"auto"`28292830        - `input_fidelity: optional "high" or "low" or null`28312832          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`.28332834          - `"high"`28352836          - `"low"`28372838        - `input_image_mask: optional object { file_id, image_url }`28392840          Optional mask for inpainting. Contains `image_url`2841          (string, optional) and `file_id` (string, optional).28422843          - `file_id: optional string`28442845            File ID for the mask image.28462847          - `image_url: optional string`28482849            Base64-encoded mask image.28502851        - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`28522853          The image generation model to use. One of `gpt-image-1`,2854          `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2855          `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2856          `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2857          `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2858          `gpt-image-1`.28592860          - `string`28612862          - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`28632864            The image generation model to use. One of `gpt-image-1`,2865            `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2866            `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2867            `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2868            `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2869            `gpt-image-1`.28702871            - `"gpt-image-1"`28722873            - `"gpt-image-1-mini"`28742875            - `"gpt-image-1.5"`28762877            - `"gpt-image-2"`28782879            - `"gpt-image-2-2026-04-21"`28802881            - `"gpt-image-2.5-sunburst"`28822883            - `"gpt-image-2.5-sunburst-2026-09-08"`28842885            - `"gpt-image-2.5-flare"`28862887            - `"gpt-image-2.5-flare-2026-09-08"`28882889        - `moderation: optional "auto" or "low"`28902891          Moderation level for the generated image. Default: `auto`.28922893          - `"auto"`28942895          - `"low"`28962897        - `output_compression: optional number`28982899          Compression level for the output image. Default: 100.29002901        - `output_format: optional "png" or "webp" or "jpeg"`29022903          The output format of the generated image. One of `png`, `webp`, or2904          `jpeg`. Default: `png`.29052906          - `"png"`29072908          - `"webp"`29092910          - `"jpeg"`29112912        - `partial_images: optional number`29132914          Number of partial images to generate in streaming mode, from 0 (default value) to 3.29152916        - `quality: optional "low" or "medium" or "high" or 3 more`29172918          The quality of the generated image. The GPT image models support `low`,2919          `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,2920          including their `2026-09-08` snapshots, also support `xhigh` and `max`.2921          Default: `auto`.29222923          - `"low"`29242925          - `"medium"`29262927          - `"high"`29282929          - `"xhigh"`29302931          - `"max"`29322933          - `"auto"`29342935        - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`29362937          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`.29382939          - `string`29402941          - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`29422943            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`.29442945            - `"1024x1024"`29462947            - `"1024x1536"`29482949            - `"1536x1024"`29502951            - `"auto"`29522953      - `LocalShell object { type }`29542955        A tool that allows the model to execute shell commands in a local environment.29562957        - `type: "local_shell"`29582959          The type of the local shell tool. Always `local_shell`.29602961          - `"local_shell"`29622963      - `Shell object { type, allowed_callers, environment }`29642965        A tool that allows the model to execute shell commands.29662967        - `type: "shell"`29682969          The type of the shell tool. Always `shell`.29702971          - `"shell"`29722973        - `allowed_callers: optional array of "direct" or "programmatic" or null`29742975          The tool invocation context(s).29762977          - `"direct"`29782979          - `"programmatic"`29802981        - `environment: optional ContainerAuto or LocalEnvironment or ContainerReference or null`29822983          - `ContainerAuto object { type, file_ids, memory_limit, 2 more }`29842985          - `LocalEnvironment object { type, skills }`29862987          - `ContainerReference object { container_id, type }`29882989      - `Custom object { name, type, allowed_callers, 4 more }`29902991        A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)29922993        - `name: string`29942995          The name of the custom tool, used to identify it in tool calls.29962997        - `type: "custom"`29982999          The type of the custom tool. Always `custom`.30003001          - `"custom"`30023003        - `allowed_callers: optional array of "direct" or "programmatic" or null`30043005          The tool invocation context(s).30063007          - `"direct"`30083009          - `"programmatic"`30103011        - `async: optional boolean`30123013          Whether the tool response can be returned asynchronously versus immediately returned on next response creation.30143015        - `defer_loading: optional boolean`30163017          Whether this tool should be deferred and discovered via tool search.30183019        - `description: optional string`30203021          Optional description of the custom tool, used to provide more context.30223023        - `format: optional CustomToolInputFormat`30243025          The input format for the custom tool. Default is unconstrained text.30263027      - `Namespace object { description, name, tools, type }`30283029        Groups function/custom tools under a shared namespace.30303031        - `description: string`30323033          A description of the namespace shown to the model.30343035        - `name: string`30363037          The namespace name used in tool calls (for example, `crm`).30383039        - `tools: array of object { name, type, allowed_callers, 6 more }  or object { name, type, allowed_callers, 4 more }`30403041          The function/custom tools available inside this namespace.30423043          - `Function object { name, type, allowed_callers, 6 more }`30443045            - `name: string`30463047            - `type: "function"`30483049              - `"function"`30503051            - `allowed_callers: optional array of "direct" or "programmatic" or null`30523053              The tool invocation context(s).30543055              - `"direct"`30563057              - `"programmatic"`30583059            - `async: optional boolean`30603061              Whether the tool response can be returned asynchronously versus immediately returned on next response creation.30623063            - `defer_loading: optional boolean`30643065              Whether this function should be deferred and discovered via tool search.30663067            - `description: optional string or null`30683069            - `output_schema: optional map[unknown] or null`30703071              A JSON Schema describing the JSON value encoded in string outputs for this function tool. This does not describe content-array outputs.30723073            - `parameters: optional unknown or null`30743075            - `strict: optional boolean or null`30763077              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.30783079          - `Custom object { name, type, allowed_callers, 4 more }`30803081            A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)30823083            - `name: string`30843085              The name of the custom tool, used to identify it in tool calls.30863087            - `type: "custom"`30883089              The type of the custom tool. Always `custom`.30903091              - `"custom"`30923093            - `allowed_callers: optional array of "direct" or "programmatic" or null`30943095              The tool invocation context(s).30963097              - `"direct"`30983099              - `"programmatic"`31003101            - `async: optional boolean`31023103              Whether the tool response can be returned asynchronously versus immediately returned on next response creation.31043105            - `defer_loading: optional boolean`31063107              Whether this tool should be deferred and discovered via tool search.31083109            - `description: optional string`31103111              Optional description of the custom tool, used to provide more context.31123113            - `format: optional CustomToolInputFormat`31143115              The input format for the custom tool. Default is unconstrained text.31163117        - `type: "namespace"`31183119          The type of the tool. Always `namespace`.31203121          - `"namespace"`31223123      - `ToolSearch object { type, description, execution, parameters }`31243125        Hosted or BYOT tool search configuration for deferred tools.31263127        - `type: "tool_search"`31283129          The type of the tool. Always `tool_search`.31303131          - `"tool_search"`31323133        - `description: optional string or null`31343135          Description shown to the model for a client-executed tool search tool.31363137        - `execution: optional "server" or "client"`31383139          Whether tool search is executed by the server or by the client.31403141          - `"server"`31423143          - `"client"`31443145        - `parameters: optional unknown or null`31463147          Parameter schema for a client-executed tool search tool.31483149      - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`31503151        This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](/api/docs/guides/tools-web-search).31523153        - `type: "web_search_preview" or "web_search_preview_2025_03_11"`31543155          The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.31563157          - `"web_search_preview"`31583159          - `"web_search_preview_2025_03_11"`31603161        - `search_content_types: optional array of "text" or "image"`31623163          - `"text"`31643165          - `"image"`31663167        - `search_context_size: optional "low" or "medium" or "high"`31683169          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.31703171          - `"low"`31723173          - `"medium"`31743175          - `"high"`31763177        - `user_location: optional object { type, city, country, 2 more }  or null`31783179          The user's location.31803181          - `type: "approximate"`31823183            The type of location approximation. Always `approximate`.31843185            - `"approximate"`31863187          - `city: optional string or null`31883189            Free text input for the city of the user, e.g. `San Francisco`.31903191          - `country: optional string or null`31923193            The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.31943195          - `region: optional string or null`31963197            Free text input for the region of the user, e.g. `California`.31983199          - `timezone: optional string or null`32003201            The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.32023203      - `ApplyPatch object { type, allowed_callers }`32043205        Allows the assistant to create, delete, or update files using unified diffs.32063207        - `type: "apply_patch"`32083209          The type of the tool. Always `apply_patch`.32103211          - `"apply_patch"`32123213        - `allowed_callers: optional array of "direct" or "programmatic" or null`32143215          The tool invocation context(s).32163217          - `"direct"`32183219          - `"programmatic"`32203221    - `type: "additional_tools"`32223223      The item type. Always `additional_tools`.32243225      - `"additional_tools"`32263227    - `id: optional string or null`32283229      The unique ID of this additional tools item.32303231  - `ConfigurationUpdate object { type, id, reasoning }`32323233    An update to the conversation's response configuration. The configuration3234    remains in effect for subsequent responses until it is replaced by another3235    configuration update.32363237    - `type: "configuration_update"`32383239      The item type. Always `configuration_update`.32403241      - `"configuration_update"`32423243    - `id: optional string or null`32443245      The unique ID of the configuration update item.32463247    - `reasoning: optional object { effort }`32483249      Updates to reasoning configuration. Only effort is supported.32503251      - `effort: optional ReasoningEffort or null`32523253        The reasoning effort to use for subsequent responses until another3254        configuration update replaces it.32553256        - `"none"`32573258        - `"minimal"`32593260        - `"low"`32613262        - `"medium"`32633264        - `"high"`32653266        - `"xhigh"`32673268        - `"max"`32693270  - `Reasoning object { id, summary, type, 3 more }`32713272    A description of the chain of thought used by a reasoning model while generating3273    a response. Be sure to include these items in your `input` to the Responses API3274    for subsequent turns of a conversation if you are manually3275    [managing context](/api/docs/guides/conversation-state).32763277    - `id: string`32783279      The unique identifier of the reasoning content.32803281    - `summary: array of SummaryTextContent`32823283      Reasoning summary content.32843285      - `text: string`32863287        A summary of the reasoning output from the model so far.32883289      - `type: "summary_text"`32903291        The type of the object. Always `summary_text`.32923293        - `"summary_text"`32943295    - `type: "reasoning"`32963297      The type of the object. Always `reasoning`.32983299      - `"reasoning"`33003301    - `content: optional array of object { text, type }`33023303      Reasoning text content.33043305      - `text: string`33063307        The reasoning text from the model.33083309      - `type: "reasoning_text"`33103311        The type of the reasoning text. Always `reasoning_text`.33123313        - `"reasoning_text"`33143315    - `encrypted_content: optional string or null`33163317      The encrypted content of the reasoning item. This is populated by default3318      for reasoning items returned by `POST /v1/responses` and WebSocket3319      `response.create` requests.33203321      When streaming, use the completed reasoning item and its3322      `encrypted_content` from the `response.output_item.done` event in3323      subsequent requests. The `encrypted_content` in3324      `response.output_item.added` may be incomplete. This is especially3325      important when `store` is `false` or when using Zero Data Retention.33263327    - `status: optional "in_progress" or "completed" or "incomplete"`33283329      The status of the item. One of `in_progress`, `completed`, or3330      `incomplete`. Populated when items are returned via API.33313332      - `"in_progress"`33333334      - `"completed"`33353336      - `"incomplete"`33373338  - `Compaction object { encrypted_content, type, id }`33393340    A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).33413342    - `encrypted_content: string`33433344      The encrypted content of the compaction summary.33453346    - `type: "compaction"`33473348      The type of the item. Always `compaction`.33493350      - `"compaction"`33513352    - `id: optional string or null`33533354      The ID of the compaction item.33553356  - `ImageGenerationCall object { id, result, status, 7 more }`33573358    An image generation request made by the model.33593360    - `id: string`33613362      The unique ID of the image generation call.33633364    - `result: string or null`33653366      The generated image encoded in base64.33673368    - `status: "in_progress" or "completed" or "generating" or "failed"`33693370      The status of the image generation call.33713372      - `"in_progress"`33733374      - `"completed"`33753376      - `"generating"`33773378      - `"failed"`33793380    - `type: "image_generation_call"`33813382      The type of the image generation call. Always `image_generation_call`.33833384      - `"image_generation_call"`33853386    - `action: optional "generate" or "edit" or "auto" or null`33873388      The action used for image generation.33893390      - `"generate"`33913392      - `"edit"`33933394      - `"auto"`33953396    - `background: optional "transparent" or "opaque" or "auto" or null`33973398      The background setting used for generation.33993400      - `"transparent"`34013402      - `"opaque"`34033404      - `"auto"`34053406    - `output_format: optional "png" or "webp" or "jpeg" or null`34073408      The output format used for generation.34093410      - `"png"`34113412      - `"webp"`34133414      - `"jpeg"`34153416    - `quality: optional "low" or "medium" or "high" or 3 more or null`34173418      The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.34193420      - `"low"`34213422      - `"medium"`34233424      - `"high"`34253426      - `"xhigh"`34273428      - `"max"`34293430      - `"auto"`34313432    - `revised_prompt: optional string or null`34333434      The prompt that was used after any model prompt rewriting.34353436    - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`34373438      The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.34393440      - `string`34413442      - `"1024x1024" or "1024x1536" or "1536x1024"`34433444        The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.34453446        - `"1024x1024"`34473448        - `"1024x1536"`34493450        - `"1536x1024"`34513452  - `CodeInterpreterCall object { id, code, container_id, 3 more }`34533454    A tool call to run code.34553456    - `id: string`34573458      The unique ID of the code interpreter tool call.34593460    - `code: string or null`34613462      The code to run, or null if not available.34633464    - `container_id: string`34653466      The ID of the container used to run the code.34673468    - `outputs: array of object { logs, type }  or object { type, url }  or null`34693470      The outputs generated by the code interpreter, such as logs or images.3471      Can be null if no outputs are available.34723473      - `Logs object { logs, type }`34743475        The logs output from the code interpreter.34763477        - `logs: string`34783479          The logs output from the code interpreter.34803481        - `type: "logs"`34823483          The type of the output. Always `logs`.34843485          - `"logs"`34863487      - `Image object { type, url }`34883489        The image output from the code interpreter.34903491        - `type: "image"`34923493          The type of the output. Always `image`.34943495          - `"image"`34963497        - `url: string`34983499          The URL of the image output from the code interpreter.35003501    - `status: "in_progress" or "completed" or "incomplete" or 2 more`35023503      The status of the code interpreter tool call. Valid values are `in_progress`, `completed`, `incomplete`, `interpreting`, and `failed`.35043505      - `"in_progress"`35063507      - `"completed"`35083509      - `"incomplete"`35103511      - `"interpreting"`35123513      - `"failed"`35143515    - `type: "code_interpreter_call"`35163517      The type of the code interpreter tool call. Always `code_interpreter_call`.35183519      - `"code_interpreter_call"`35203521  - `LocalShellCall object { id, action, call_id, 2 more }`35223523    A tool call to run a command on the local shell.35243525    - `id: string`35263527      The unique ID of the local shell call.35283529    - `action: object { command, env, type, 3 more }`35303531      Execute a shell command on the server.35323533      - `command: array of string`35343535        The command to run.35363537      - `env: map[string]`35383539        Environment variables to set for the command.35403541      - `type: "exec"`35423543        The type of the local shell action. Always `exec`.35443545        - `"exec"`35463547      - `timeout_ms: optional number or null`35483549        Optional timeout in milliseconds for the command.35503551      - `user: optional string or null`35523553        Optional user to run the command as.35543555      - `working_directory: optional string or null`35563557        Optional working directory to run the command in.35583559    - `call_id: string`35603561      The unique ID of the local shell tool call generated by the model.35623563    - `status: "in_progress" or "completed" or "incomplete"`35643565      The status of the local shell call.35663567      - `"in_progress"`35683569      - `"completed"`35703571      - `"incomplete"`35723573    - `type: "local_shell_call"`35743575      The type of the local shell call. Always `local_shell_call`.35763577      - `"local_shell_call"`35783579  - `LocalShellCallOutput object { id, output, type, status }`35803581    The output of a local shell tool call.35823583    - `id: string`35843585      The unique ID of the local shell tool call generated by the model.35863587    - `output: string`35883589      A JSON string of the output of the local shell tool call.35903591    - `type: "local_shell_call_output"`35923593      The type of the local shell tool call output. Always `local_shell_call_output`.35943595      - `"local_shell_call_output"`35963597    - `status: optional "in_progress" or "completed" or "incomplete" or null`35983599      The status of the item. One of `in_progress`, `completed`, or `incomplete`.36003601      - `"in_progress"`36023603      - `"completed"`36043605      - `"incomplete"`36063607  - `ShellCall object { action, call_id, type, 4 more }`36083609    A tool representing a request to execute one or more shell commands.36103611    - `action: object { commands, max_output_length, timeout_ms }`36123613      The shell commands and limits that describe how to run the tool call.36143615      - `commands: array of string`36163617        Ordered shell commands for the execution environment to run.36183619      - `max_output_length: optional number or null`36203621        Maximum number of UTF-8 characters to capture from combined stdout and stderr output.36223623      - `timeout_ms: optional number or null`36243625        Maximum wall-clock time in milliseconds to allow the shell commands to run.36263627    - `call_id: string`36283629      The unique ID of the shell tool call generated by the model.36303631    - `type: "shell_call"`36323633      The type of the item. Always `shell_call`.36343635      - `"shell_call"`36363637    - `id: optional string or null`36383639      The unique ID of the shell tool call. Populated when this item is returned via API.36403641    - `caller: optional object { type }  or object { caller_id, type }  or null`36423643      The execution context that produced this tool call.36443645      - `Direct object { type }`36463647        - `type: "direct"`36483649          The caller type. Always `direct`.36503651          - `"direct"`36523653      - `Program object { caller_id, type }`36543655        - `caller_id: string`36563657          The call ID of the program item that produced this tool call.36583659        - `type: "program"`36603661          The caller type. Always `program`.36623663          - `"program"`36643665    - `environment: optional LocalEnvironment or ContainerReference or null`36663667      The environment to execute the shell commands in.36683669      - `LocalEnvironment object { type, skills }`36703671      - `ContainerReference object { container_id, type }`36723673    - `status: optional "in_progress" or "completed" or "incomplete" or null`36743675      The status of the shell call. One of `in_progress`, `completed`, or `incomplete`.36763677      - `"in_progress"`36783679      - `"completed"`36803681      - `"incomplete"`36823683  - `ShellCallOutput object { call_id, output, type, 4 more }`36843685    The streamed output items emitted by a shell tool call.36863687    - `call_id: string`36883689      The unique ID of the shell tool call generated by the model.36903691    - `output: array of ResponseFunctionShellCallOutputContent`36923693      Captured chunks of stdout and stderr output, along with their associated outcomes.36943695      - `outcome: object { type }  or object { exit_code, type }`36963697        The exit or timeout outcome associated with this shell call.36983699        - `Timeout object { type }`37003701          Indicates that the shell call exceeded its configured time limit.37023703          - `type: "timeout"`37043705            The outcome type. Always `timeout`.37063707            - `"timeout"`37083709        - `Exit object { exit_code, type }`37103711          Indicates that the shell commands finished and returned an exit code.37123713          - `exit_code: number`37143715            The exit code returned by the shell process.37163717          - `type: "exit"`37183719            The outcome type. Always `exit`.37203721            - `"exit"`37223723      - `stderr: string`37243725        Captured stderr output for the shell call.37263727      - `stdout: string`37283729        Captured stdout output for the shell call.37303731    - `type: "shell_call_output"`37323733      The type of the item. Always `shell_call_output`.37343735      - `"shell_call_output"`37363737    - `id: optional string or null`37383739      The unique ID of the shell tool call output. Populated when this item is returned via API.37403741    - `caller: optional object { type }  or object { caller_id, type }  or null`37423743      The execution context that produced this tool call.37443745      - `Direct object { type }`37463747        - `type: "direct"`37483749          The caller type. Always `direct`.37503751          - `"direct"`37523753      - `Program object { caller_id, type }`37543755        - `caller_id: string`37563757          The call ID of the program item that produced this tool call.37583759        - `type: "program"`37603761          The caller type. Always `program`.37623763          - `"program"`37643765    - `max_output_length: optional number or null`37663767      The maximum number of UTF-8 characters captured for this shell call's combined output.37683769    - `status: optional "in_progress" or "completed" or "incomplete" or null`37703771      The status of the shell call output.37723773      - `"in_progress"`37743775      - `"completed"`37763777      - `"incomplete"`37783779  - `ApplyPatchCall object { call_id, operation, status, 3 more }`37803781    A tool call representing a request to create, delete, or update files using diff patches.37823783    - `call_id: string`37843785      The unique ID of the apply patch tool call generated by the model.37863787    - `operation: object { diff, path, type }  or object { path, type }  or object { diff, path, type }`37883789      The specific create, delete, or update instruction for the apply_patch tool call.37903791      - `CreateFile object { diff, path, type }`37923793        Instruction for creating a new file via the apply_patch tool.37943795        - `diff: string`37963797          Unified diff content to apply when creating the file.37983799        - `path: string`38003801          Path of the file to create relative to the workspace root.38023803        - `type: "create_file"`38043805          The operation type. Always `create_file`.38063807          - `"create_file"`38083809      - `DeleteFile object { path, type }`38103811        Instruction for deleting an existing file via the apply_patch tool.38123813        - `path: string`38143815          Path of the file to delete relative to the workspace root.38163817        - `type: "delete_file"`38183819          The operation type. Always `delete_file`.38203821          - `"delete_file"`38223823      - `UpdateFile object { diff, path, type }`38243825        Instruction for updating an existing file via the apply_patch tool.38263827        - `diff: string`38283829          Unified diff content to apply to the existing file.38303831        - `path: string`38323833          Path of the file to update relative to the workspace root.38343835        - `type: "update_file"`38363837          The operation type. Always `update_file`.38383839          - `"update_file"`38403841    - `status: "in_progress" or "completed"`38423843      The status of the apply patch tool call. One of `in_progress` or `completed`.38443845      - `"in_progress"`38463847      - `"completed"`38483849    - `type: "apply_patch_call"`38503851      The type of the item. Always `apply_patch_call`.38523853      - `"apply_patch_call"`38543855    - `id: optional string or null`38563857      The unique ID of the apply patch tool call. Populated when this item is returned via API.38583859    - `caller: optional object { type }  or object { caller_id, type }  or null`38603861      The execution context that produced this tool call.38623863      - `Direct object { type }`38643865        - `type: "direct"`38663867          The caller type. Always `direct`.38683869          - `"direct"`38703871      - `Program object { caller_id, type }`38723873        - `caller_id: string`38743875          The call ID of the program item that produced this tool call.38763877        - `type: "program"`38783879          The caller type. Always `program`.38803881          - `"program"`38823883  - `ApplyPatchCallOutput object { call_id, status, type, 3 more }`38843885    The streamed output emitted by an apply patch tool call.38863887    - `call_id: string`38883889      The unique ID of the apply patch tool call generated by the model.38903891    - `status: "completed" or "failed"`38923893      The status of the apply patch tool call output. One of `completed` or `failed`.38943895      - `"completed"`38963897      - `"failed"`38983899    - `type: "apply_patch_call_output"`39003901      The type of the item. Always `apply_patch_call_output`.39023903      - `"apply_patch_call_output"`39043905    - `id: optional string or null`39063907      The unique ID of the apply patch tool call output. Populated when this item is returned via API.39083909    - `caller: optional object { type }  or object { caller_id, type }  or null`39103911      The execution context that produced this tool call.39123913      - `Direct object { type }`39143915        - `type: "direct"`39163917          The caller type. Always `direct`.39183919          - `"direct"`39203921      - `Program object { caller_id, type }`39223923        - `caller_id: string`39243925          The call ID of the program item that produced this tool call.39263927        - `type: "program"`39283929          The caller type. Always `program`.39303931          - `"program"`39323933    - `output: optional string or null`39343935      Optional human-readable log text from the apply patch tool (e.g., patch results or errors).39363937  - `McpListTools object { id, server_label, tools, 2 more }`39383939    A list of tools available on an MCP server.39403941    - `id: string`39423943      The unique ID of the list.39443945    - `server_label: string`39463947      The label of the MCP server.39483949    - `tools: array of object { input_schema, name, annotations, description }`39503951      The tools available on the server.39523953      - `input_schema: unknown`39543955        The JSON schema describing the tool's input.39563957      - `name: string`39583959        The name of the tool.39603961      - `annotations: optional unknown or null`39623963        Additional annotations about the tool.39643965      - `description: optional string or null`39663967        The description of the tool.39683969    - `type: "mcp_list_tools"`39703971      The type of the item. Always `mcp_list_tools`.39723973      - `"mcp_list_tools"`39743975    - `error: optional string or null`39763977      Error message if the server could not list tools.39783979  - `McpApprovalRequest object { id, arguments, name, 2 more }`39803981    A request for human approval of a tool invocation.39823983    - `id: string`39843985      The unique ID of the approval request.39863987    - `arguments: string`39883989      A JSON string of arguments for the tool.39903991    - `name: string`39923993      The name of the tool to run.39943995    - `server_label: string`39963997      The label of the MCP server making the request.39983999    - `type: "mcp_approval_request"`40004001      The type of the item. Always `mcp_approval_request`.40024003      - `"mcp_approval_request"`40044005  - `McpApprovalResponse object { approval_request_id, approve, type, 2 more }`40064007    A response to an MCP approval request.40084009    - `approval_request_id: string`40104011      The ID of the approval request being answered.40124013    - `approve: boolean`40144015      Whether the request was approved.40164017    - `type: "mcp_approval_response"`40184019      The type of the item. Always `mcp_approval_response`.40204021      - `"mcp_approval_response"`40224023    - `id: optional string or null`40244025      The unique ID of the approval response40264027    - `reason: optional string or null`40284029      Optional reason for the decision.40304031  - `McpCall object { id, arguments, name, 6 more }`40324033    An invocation of a tool on an MCP server.40344035    - `id: string`40364037      The unique ID of the tool call.40384039    - `arguments: string`40404041      A JSON string of the arguments passed to the tool.40424043    - `name: string`40444045      The name of the tool that was run.40464047    - `server_label: string`40484049      The label of the MCP server running the tool.40504051    - `type: "mcp_call"`40524053      The type of the item. Always `mcp_call`.40544055      - `"mcp_call"`40564057    - `approval_request_id: optional string or null`40584059      Unique identifier for the MCP tool call approval request.4060      Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.40614062    - `error: optional McpToolCallError or null`40634064      The error from the tool call, if any.40654066      - `McpProtocolError object { code, message, type }`40674068        - `code: number`40694070        - `message: string`40714072        - `type: "mcp_protocol_error"`40734074          - `"mcp_protocol_error"`40754076      - `McpToolExecutionError object { content, type }`40774078        - `content: unknown`40794080        - `type: "mcp_tool_execution_error"`40814082          - `"mcp_tool_execution_error"`40834084      - `HTTPError object { code, message, type }`40854086        - `code: number`40874088        - `message: string`40894090        - `type: "http_error"`40914092          - `"http_error"`40934094    - `output: optional string or null`40954096      The output from the tool call.40974098    - `status: optional "in_progress" or "completed" or "incomplete" or 2 more`40994100      The status of the tool call. One of `in_progress`, `completed`, `incomplete`, `calling`, or `failed`.41014102      - `"in_progress"`41034104      - `"completed"`41054106      - `"incomplete"`41074108      - `"calling"`41094110      - `"failed"`41114112  - `CustomToolCallOutput object { call_id, output, type, 2 more }`41134114    The output of a custom tool call from your code, being sent back to the model.41154116    - `call_id: string`41174118      The call ID, used to map this custom tool call output to a custom tool call.41194120    - `output: string or array of ResponseInputText or ResponseInputImage or ResponseInputFile`41214122      The output from the custom tool call generated by your code.4123      Can be a string or an list of output content.41244125      - `StringOutput = string`41264127        A string of the output of the custom tool call.41284129      - `OutputContentList = array of ResponseInputText or ResponseInputImage or ResponseInputFile`41304131        Text, image, or file output of the custom tool call.41324133        - `ResponseInputText object { text, type, prompt_cache_breakpoint }`41344135          A text input to the model.41364137        - `ResponseInputImage object { detail, type, file_id, 2 more }`41384139          An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).41404141        - `ResponseInputFile object { type, detail, file_data, 4 more }`41424143          A file input to the model.41444145    - `type: "custom_tool_call_output"`41464147      The type of the custom tool call output. Always `custom_tool_call_output`.41484149      - `"custom_tool_call_output"`41504151    - `id: optional string`41524153      The unique ID of the custom tool call output in the OpenAI platform.41544155    - `caller: optional object { type }  or object { caller_id, type }  or null`41564157      The execution context that produced this tool call.41584159      - `Direct object { type }`41604161        - `type: "direct"`41624163          The caller type. Always `direct`.41644165          - `"direct"`41664167      - `Program object { caller_id, type }`41684169        - `caller_id: string`41704171          The call ID of the program item that produced this tool call.41724173        - `type: "program"`41744175          The caller type. Always `program`.41764177          - `"program"`41784179  - `CustomToolCall object { call_id, input, name, 5 more }`41804181    A call to a custom tool created by the model.41824183    - `call_id: string`41844185      An identifier used to map this custom tool call to a tool call output.41864187    - `input: string`41884189      The input for the custom tool call generated by the model.41904191    - `name: string`41924193      The name of the custom tool being called.41944195    - `type: "custom_tool_call"`41964197      The type of the custom tool call. Always `custom_tool_call`.41984199      - `"custom_tool_call"`42004201    - `id: optional string`42024203      The unique ID of the custom tool call in the OpenAI platform.42044205    - `async: optional boolean`42064207      Whether the custom tool call runs asynchronously.42084209    - `caller: optional object { type }  or object { caller_id, type }  or null`42104211      The execution context that produced this tool call.42124213      - `Direct object { type }`42144215        - `type: "direct"`42164217          - `"direct"`42184219      - `Program object { caller_id, type }`42204221        - `caller_id: string`42224223          The call ID of the program item that produced this tool call.42244225        - `type: "program"`42264227          - `"program"`42284229    - `namespace: optional string`42304231      The namespace of the custom tool being called.42324233  - `CompactionTrigger object { type, id }`42344235    Compacts the current context. Must be the final input item.42364237    - `type: "compaction_trigger"`42384239      The type of the item. Always `compaction_trigger`.42404241      - `"compaction_trigger"`42424243    - `id: optional string or null`42444245      The unique ID of this compaction trigger.42464247  - `ItemReference object { id, type }`42484249    An internal identifier for an item to reference.42504251    - `id: string`42524253      The ID of the item to reference.42544255    - `type: optional "item_reference" or null`42564257      The type of item to reference. Always `item_reference`.42584259      - `"item_reference"`42604261  - `Program object { id, call_id, code, 2 more }`42624263    - `id: string`42644265      The unique ID of this program item.42664267    - `call_id: string`42684269      The stable call ID of the program item.42704271    - `code: string`42724273      The JavaScript source executed by programmatic tool calling.42744275    - `fingerprint: string`42764277      Opaque program replay fingerprint that must be round-tripped.42784279    - `type: "program"`42804281      The item type. Always `program`.42824283      - `"program"`42844285  - `ProgramOutput object { id, call_id, result, 2 more }`42864287    - `id: string`42884289      The unique ID of this program output item.42904291    - `call_id: string`42924293      The call ID of the program item.42944295    - `result: string`42964297      The result produced by the program item.42984299    - `status: "completed" or "incomplete"`43004301      The terminal status of the program output.43024303      - `"completed"`43044305      - `"incomplete"`43064307    - `type: "program_output"`43084309      The item type. Always `program_output`.43104311      - `"program_output"`43124313- `metadata: optional Metadata or null`43144315  Set of 16 key-value pairs that can be attached to an object. This can be4316  useful for storing additional information about the object in a structured4317  format, and querying for objects via API or the dashboard.43184319  Keys are strings with a maximum length of 64 characters. Values are strings4320  with a maximum length of 512 characters.43214322### Returns43234324- `Conversation object { id, created_at, metadata, object }`43254326  - `id: string`43274328    The unique ID of the conversation.43294330  - `created_at: number`43314332    The time at which the conversation was created, measured in seconds since the Unix epoch.43334334  - `metadata: unknown`43354336    Set of 16 key-value pairs that can be attached to an object. This can be         useful for storing additional information about the object in a structured         format, and querying for objects via API or the dashboard.4337    Keys are strings with a maximum length of 64 characters. Values are strings         with a maximum length of 512 characters.43384339  - `object: "conversation"`43404341    The object type, which is always `conversation`.43424343    - `"conversation"`43444345### Example43464347```http4348curl https://api.openai.com/v1/conversations \4349    -X POST \4350    -H "Authorization: Bearer $OPENAI_API_KEY"4351```43524353#### Response43544355```json4356{4357  "id": "id",4358  "created_at": 0,4359  "metadata": {},4360  "object": "conversation"4361}4362```43634364### Example43654366```http4367curl https://api.openai.com/v1/conversations \4368  -H "Content-Type: application/json" \4369  -H "Authorization: Bearer $OPENAI_API_KEY" \4370  -d '{4371    "metadata": {"topic": "demo"},4372    "items": [4373      {4374        "type": "message",4375        "role": "user",4376        "content": "Hello!"4377      }4378    ]4379  }'4380```43814382#### Response43834384```json4385{4386  "id": "conv_123",4387  "object": "conversation",4388  "created_at": 1741900000,4389  "metadata": {"topic": "demo"}4390}4391```43924393## Delete a conversation43944395**delete** `/conversations/{conversation_id}`43964397Delete a conversation. Items in the conversation will not be deleted.43984399### Path Parameters44004401- `conversation_id: string`44024403### Returns44044405- `ConversationDeletedResource object { id, deleted, object }`44064407  - `id: string`44084409  - `deleted: boolean`44104411  - `object: "conversation.deleted"`44124413    - `"conversation.deleted"`44144415### Example44164417```http4418curl https://api.openai.com/v1/conversations/$CONVERSATION_ID \4419    -X DELETE \4420    -H "Authorization: Bearer $OPENAI_API_KEY"4421```44224423#### Response44244425```json4426{4427  "id": "id",4428  "deleted": true,4429  "object": "conversation.deleted"4430}4431```44324433### Example44344435```http4436curl -X DELETE https://api.openai.com/v1/conversations/conv_123 \4437  -H "Authorization: Bearer $OPENAI_API_KEY"4438```44394440#### Response44414442```json4443{4444  "id": "conv_123",4445  "object": "conversation.deleted",4446  "deleted": true4447}4448```44494450## Retrieve a conversation44514452**get** `/conversations/{conversation_id}`44534454Get a conversation44554456### Path Parameters44574458- `conversation_id: string`44594460### Returns44614462- `Conversation object { id, created_at, metadata, object }`44634464  - `id: string`44654466    The unique ID of the conversation.44674468  - `created_at: number`44694470    The time at which the conversation was created, measured in seconds since the Unix epoch.44714472  - `metadata: unknown`44734474    Set of 16 key-value pairs that can be attached to an object. This can be         useful for storing additional information about the object in a structured         format, and querying for objects via API or the dashboard.4475    Keys are strings with a maximum length of 64 characters. Values are strings         with a maximum length of 512 characters.44764477  - `object: "conversation"`44784479    The object type, which is always `conversation`.44804481    - `"conversation"`44824483### Example44844485```http4486curl https://api.openai.com/v1/conversations/$CONVERSATION_ID \4487    -H "Authorization: Bearer $OPENAI_API_KEY"4488```44894490#### Response44914492```json4493{4494  "id": "id",4495  "created_at": 0,4496  "metadata": {},4497  "object": "conversation"4498}4499```45004501### Example45024503```http4504curl https://api.openai.com/v1/conversations/conv_123 \4505  -H "Authorization: Bearer $OPENAI_API_KEY"4506```45074508#### Response45094510```json4511{4512  "id": "conv_123",4513  "object": "conversation",4514  "created_at": 1741900000,4515  "metadata": {"topic": "demo"}4516}4517```45184519## Update a conversation45204521**post** `/conversations/{conversation_id}`45224523Update a conversation45244525### Path Parameters45264527- `conversation_id: string`45284529### Body Parameters45304531- `metadata: Metadata or null`45324533  Set of 16 key-value pairs that can be attached to an object. This can be         useful for storing additional information about the object in a structured         format, and querying for objects via API or the dashboard.4534  Keys are strings with a maximum length of 64 characters. Values are strings         with a maximum length of 512 characters.45354536### Returns45374538- `Conversation object { id, created_at, metadata, object }`45394540  - `id: string`45414542    The unique ID of the conversation.45434544  - `created_at: number`45454546    The time at which the conversation was created, measured in seconds since the Unix epoch.45474548  - `metadata: unknown`45494550    Set of 16 key-value pairs that can be attached to an object. This can be         useful for storing additional information about the object in a structured         format, and querying for objects via API or the dashboard.4551    Keys are strings with a maximum length of 64 characters. Values are strings         with a maximum length of 512 characters.45524553  - `object: "conversation"`45544555    The object type, which is always `conversation`.45564557    - `"conversation"`45584559### Example45604561```http4562curl https://api.openai.com/v1/conversations/$CONVERSATION_ID \4563    -H 'Content-Type: application/json' \4564    -H "Authorization: Bearer $OPENAI_API_KEY" \4565    -d '{4566          "metadata": {4567            "foo": "string"4568          }4569        }'4570```45714572#### Response45734574```json4575{4576  "id": "id",4577  "created_at": 0,4578  "metadata": {},4579  "object": "conversation"4580}4581```45824583### Example45844585```http4586curl https://api.openai.com/v1/conversations/conv_123 \4587  -H "Content-Type: application/json" \4588  -H "Authorization: Bearer $OPENAI_API_KEY" \4589  -d '{4590    "metadata": {"topic": "project-x"}4591  }'4592```45934594#### Response45954596```json4597{4598  "id": "conv_123",4599  "object": "conversation",4600  "created_at": 1741900000,4601  "metadata": {"topic": "project-x"}4602}4603```46044605## Domain Types46064607### Computer Screenshot Content46084609- `ComputerScreenshotContent object { detail, file_id, image_url, 2 more }`46104611  A screenshot of a computer.46124613  - `detail: ImageDetail`46144615    The detail level of the screenshot image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.46164617    - `"low"`46184619    - `"high"`46204621    - `"auto"`46224623    - `"original"`46244625  - `file_id: string or null`46264627    The identifier of an uploaded file that contains the screenshot.46284629  - `image_url: string or null`46304631    The URL of the screenshot image.46324633  - `type: "computer_screenshot"`46344635    Specifies the event type. For a computer screenshot, this property is always set to `computer_screenshot`.46364637    - `"computer_screenshot"`46384639  - `prompt_cache_breakpoint: optional object { mode }`46404641    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.46424643    - `mode: "explicit"`46444645      The breakpoint mode. Always `explicit`.46464647      - `"explicit"`46484649### Conversation46504651- `Conversation object { id, created_at, metadata, object }`46524653  - `id: string`46544655    The unique ID of the conversation.46564657  - `created_at: number`46584659    The time at which the conversation was created, measured in seconds since the Unix epoch.46604661  - `metadata: unknown`46624663    Set of 16 key-value pairs that can be attached to an object. This can be         useful for storing additional information about the object in a structured         format, and querying for objects via API or the dashboard.4664    Keys are strings with a maximum length of 64 characters. Values are strings         with a maximum length of 512 characters.46654666  - `object: "conversation"`46674668    The object type, which is always `conversation`.46694670    - `"conversation"`46714672### Conversation Deleted46734674- `ConversationDeleted object { id, deleted, object }`46754676  - `id: string`46774678  - `deleted: boolean`46794680  - `object: "conversation.deleted"`46814682    - `"conversation.deleted"`46834684### Conversation Deleted Resource46854686- `ConversationDeletedResource object { id, deleted, object }`46874688  - `id: string`46894690  - `deleted: boolean`46914692  - `object: "conversation.deleted"`46934694    - `"conversation.deleted"`46954696### Message46974698- `Message object { id, content, role, 3 more }`46994700  A message to or from the model.47014702  - `id: string`47034704    The unique ID of the message.47054706  - `content: array of ResponseInputText or ResponseOutputText or TextContent or 6 more`47074708    The content of the message47094710    - `ResponseInputText object { text, type, prompt_cache_breakpoint }`47114712      A text input to the model.47134714      - `text: string`47154716        The text input to the model.47174718      - `type: "input_text"`47194720        The type of the input item. Always `input_text`.47214722        - `"input_text"`47234724      - `prompt_cache_breakpoint: optional object { mode }`47254726        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.47274728        - `mode: "explicit"`47294730          The breakpoint mode. Always `explicit`.47314732          - `"explicit"`47334734    - `ResponseOutputText object { annotations, logprobs, text, type }`47354736      A text output from the model.47374738      - `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 }`47394740        The annotations of the text output.47414742        - `FileCitation object { file_id, filename, index, type }`47434744          A citation to a file.47454746          - `file_id: string`47474748            The ID of the file.47494750          - `filename: string`47514752            The filename of the file cited.47534754          - `index: number`47554756            The index of the file in the list of files.47574758          - `type: "file_citation"`47594760            The type of the file citation. Always `file_citation`.47614762            - `"file_citation"`47634764        - `URLCitation object { end_index, start_index, title, 2 more }`47654766          A citation for a web resource used to generate a model response.47674768          - `end_index: number`47694770            The index of the last character of the URL citation in the message.47714772          - `start_index: number`47734774            The index of the first character of the URL citation in the message.47754776          - `title: string`47774778            The title of the web resource.47794780          - `type: "url_citation"`47814782            The type of the URL citation. Always `url_citation`.47834784            - `"url_citation"`47854786          - `url: string`47874788            The URL of the web resource.47894790        - `ContainerFileCitation object { container_id, end_index, file_id, 3 more }`47914792          A citation for a container file used to generate a model response.47934794          - `container_id: string`47954796            The ID of the container file.47974798          - `end_index: number`47994800            The index of the last character of the container file citation in the message.48014802          - `file_id: string`48034804            The ID of the file.48054806          - `filename: string`48074808            The filename of the container file cited.48094810          - `start_index: number`48114812            The index of the first character of the container file citation in the message.48134814          - `type: "container_file_citation"`48154816            The type of the container file citation. Always `container_file_citation`.48174818            - `"container_file_citation"`48194820        - `FilePath object { file_id, index, type }`48214822          A path to a file.48234824          - `file_id: string`48254826            The ID of the file.48274828          - `index: number`48294830            The index of the file in the list of files.48314832          - `type: "file_path"`48334834            The type of the file path. Always `file_path`.48354836            - `"file_path"`48374838      - `logprobs: array of object { token, bytes, logprob, top_logprobs }`48394840        - `token: string`48414842        - `bytes: array of number`48434844        - `logprob: number`48454846        - `top_logprobs: array of object { token, bytes, logprob }`48474848          - `token: string`48494850          - `bytes: array of number`48514852          - `logprob: number`48534854      - `text: string`48554856        The text output from the model.48574858      - `type: "output_text"`48594860        The type of the output text. Always `output_text`.48614862        - `"output_text"`48634864    - `TextContent object { text, type }`48654866      A text content.48674868      - `text: string`48694870      - `type: "text"`48714872        - `"text"`48734874    - `SummaryTextContent object { text, type }`48754876      A summary text from the model.48774878      - `text: string`48794880        A summary of the reasoning output from the model so far.48814882      - `type: "summary_text"`48834884        The type of the object. Always `summary_text`.48854886        - `"summary_text"`48874888    - `ReasoningText object { text, type }`48894890      Reasoning text from the model.48914892      - `text: string`48934894        The reasoning text from the model.48954896      - `type: "reasoning_text"`48974898        The type of the reasoning text. Always `reasoning_text`.48994900        - `"reasoning_text"`49014902    - `ResponseOutputRefusal object { refusal, type }`49034904      A refusal from the model.49054906      - `refusal: string`49074908        The refusal explanation from the model.49094910      - `type: "refusal"`49114912        The type of the refusal. Always `refusal`.49134914        - `"refusal"`49154916    - `ResponseInputImage object { detail, type, file_id, 2 more }`49174918      An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).49194920      - `detail: ImageDetail`49214922        The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.49234924        - `"low"`49254926        - `"high"`49274928        - `"auto"`49294930        - `"original"`49314932      - `type: "input_image"`49334934        The type of the input item. Always `input_image`.49354936        - `"input_image"`49374938      - `file_id: optional string or null`49394940        The ID of the file to be sent to the model.49414942      - `image_url: optional string or null`49434944        The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.49454946      - `prompt_cache_breakpoint: optional object { mode }`49474948        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.49494950        - `mode: "explicit"`49514952          The breakpoint mode. Always `explicit`.49534954          - `"explicit"`49554956    - `ComputerScreenshotContent object { detail, file_id, image_url, 2 more }`49574958      A screenshot of a computer.49594960      - `detail: ImageDetail`49614962        The detail level of the screenshot image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.49634964      - `file_id: string or null`49654966        The identifier of an uploaded file that contains the screenshot.49674968      - `image_url: string or null`49694970        The URL of the screenshot image.49714972      - `type: "computer_screenshot"`49734974        Specifies the event type. For a computer screenshot, this property is always set to `computer_screenshot`.49754976        - `"computer_screenshot"`49774978      - `prompt_cache_breakpoint: optional object { mode }`49794980        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.49814982        - `mode: "explicit"`49834984          The breakpoint mode. Always `explicit`.49854986          - `"explicit"`49874988    - `ResponseInputFile object { type, detail, file_data, 4 more }`49894990      A file input to the model.49914992      - `type: "input_file"`49934994        The type of the input item. Always `input_file`.49954996        - `"input_file"`49974998      - `detail: optional "auto" or "low" or "high"`49995000        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`.50015002        - `"auto"`50035004        - `"low"`50055006        - `"high"`50075008      - `file_data: optional string`50095010        The content of the file to be sent to the model.50115012      - `file_id: optional string or null`50135014        The ID of the file to be sent to the model.50155016      - `file_url: optional string`50175018        The URL of the file to be sent to the model.50195020      - `filename: optional string`50215022        The name of the file to be sent to the model.50235024      - `prompt_cache_breakpoint: optional object { mode }`50255026        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.50275028        - `mode: "explicit"`50295030          The breakpoint mode. Always `explicit`.50315032          - `"explicit"`50335034  - `role: "unknown" or "user" or "assistant" or 5 more`50355036    The role of the message. One of `unknown`, `user`, `assistant`, `system`, `critic`, `discriminator`, `developer`, or `tool`.50375038    - `"unknown"`50395040    - `"user"`50415042    - `"assistant"`50435044    - `"system"`50455046    - `"critic"`50475048    - `"discriminator"`50495050    - `"developer"`50515052    - `"tool"`50535054  - `status: "in_progress" or "completed" or "incomplete"`50555056    The status of item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API.50575058    - `"in_progress"`50595060    - `"completed"`50615062    - `"incomplete"`50635064  - `type: "message"`50655066    The type of the message. Always set to `message`.50675068    - `"message"`50695070  - `phase: optional "commentary" or "final_answer" or null`50715072    Labels an `assistant` message as intermediate commentary (`commentary`) or the final answer (`final_answer`). For models like `gpt-5.3-codex` and beyond, when sending follow-up requests, preserve and resend phase on all assistant messages — dropping it can degrade performance. Not used for user messages.50735074    - `"commentary"`50755076    - `"final_answer"`50775078### Summary Text Content50795080- `SummaryTextContent object { text, type }`50815082  A summary text from the model.50835084  - `text: string`50855086    A summary of the reasoning output from the model so far.50875088  - `type: "summary_text"`50895090    The type of the object. Always `summary_text`.50915092    - `"summary_text"`50935094### Text Content50955096- `TextContent object { text, type }`50975098  A text content.50995100  - `text: string`51015102  - `type: "text"`51035104    - `"text"`51055106# Items51075108## Create items51095110**post** `/conversations/{conversation_id}/items`51115112Create items in a conversation with the given ID.51135114### Path Parameters51155116- `conversation_id: string`51175118### Query Parameters51195120- `include: optional array of ResponseIncludable`51215122  Additional fields to include in the response. See the `include`5123  parameter for [listing Conversation items above](/api/reference/resources/conversations/subresources/items/methods/list#%28resource%29%20conversations.items%20%3E%20%28method%29%20list%20%3E%20%28params%29%20default%20%3E%20%28param%29%20include%20%3E%20%28schema%29) for more information.51245125  - `"file_search_call.results"`51265127  - `"web_search_call.results"`51285129  - `"web_search_call.action.sources"`51305131  - `"message.input_image.image_url"`51325133  - `"computer_call_output.output.image_url"`51345135  - `"code_interpreter_call.outputs"`51365137  - `"reasoning.encrypted_content"`51385139  - `"message.output_text.logprobs"`51405141### Body Parameters51425143- `items: array of EasyInputMessage or object { content, role, status, type }  or ResponseOutputMessage or 30 more`51445145  The items to add to the conversation. You may add up to 20 items at a time.51465147  - `EasyInputMessage object { content, role, phase, type }`51485149    A message input to the model with a role indicating instruction following5150    hierarchy. Instructions given with the `developer` or `system` role take5151    precedence over instructions given with the `user` role. Messages with the5152    `assistant` role are presumed to have been generated by the model in previous5153    interactions.51545155    - `content: string or ResponseInputMessageContentList`51565157      Text, image, or audio input to the model, used to generate a response.5158      Can also contain previous assistant responses.51595160      - `TextInput = string`51615162        A text input to the model.51635164      - `ResponseInputMessageContentList = array of ResponseInputContent`51655166        A list of one or many input items to the model, containing different content5167        types.51685169        - `ResponseInputText object { text, type, prompt_cache_breakpoint }`51705171          A text input to the model.51725173          - `text: string`51745175            The text input to the model.51765177          - `type: "input_text"`51785179            The type of the input item. Always `input_text`.51805181            - `"input_text"`51825183          - `prompt_cache_breakpoint: optional object { mode }`51845185            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.51865187            - `mode: "explicit"`51885189              The breakpoint mode. Always `explicit`.51905191              - `"explicit"`51925193        - `ResponseInputImage object { detail, type, file_id, 2 more }`51945195          An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).51965197          - `detail: ImageDetail`51985199            The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.52005201            - `"low"`52025203            - `"high"`52045205            - `"auto"`52065207            - `"original"`52085209          - `type: "input_image"`52105211            The type of the input item. Always `input_image`.52125213            - `"input_image"`52145215          - `file_id: optional string or null`52165217            The ID of the file to be sent to the model.52185219          - `image_url: optional string or null`52205221            The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.52225223          - `prompt_cache_breakpoint: optional object { mode }`52245225            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.52265227            - `mode: "explicit"`52285229              The breakpoint mode. Always `explicit`.52305231              - `"explicit"`52325233        - `ResponseInputFile object { type, detail, file_data, 4 more }`52345235          A file input to the model.52365237          - `type: "input_file"`52385239            The type of the input item. Always `input_file`.52405241            - `"input_file"`52425243          - `detail: optional "auto" or "low" or "high"`52445245            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`.52465247            - `"auto"`52485249            - `"low"`52505251            - `"high"`52525253          - `file_data: optional string`52545255            The content of the file to be sent to the model.52565257          - `file_id: optional string or null`52585259            The ID of the file to be sent to the model.52605261          - `file_url: optional string`52625263            The URL of the file to be sent to the model.52645265          - `filename: optional string`52665267            The name of the file to be sent to the model.52685269          - `prompt_cache_breakpoint: optional object { mode }`52705271            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.52725273            - `mode: "explicit"`52745275              The breakpoint mode. Always `explicit`.52765277              - `"explicit"`52785279    - `role: "user" or "assistant" or "system" or "developer"`52805281      The role of the message input. One of `user`, `assistant`, `system`, or5282      `developer`.52835284      - `"user"`52855286      - `"assistant"`52875288      - `"system"`52895290      - `"developer"`52915292    - `phase: optional "commentary" or "final_answer" or null`52935294      Labels an `assistant` message as intermediate commentary (`commentary`) or the final answer (`final_answer`).5295      For models like `gpt-5.3-codex` and beyond, when sending follow-up requests, preserve and resend5296      phase on all assistant messages — dropping it can degrade performance. Not used for user messages.52975298      - `"commentary"`52995300      - `"final_answer"`53015302    - `type: optional "message"`53035304      The type of the message input. Always `message`.53055306      - `"message"`53075308  - `Message object { content, role, status, type }`53095310    A message input to the model with a role indicating instruction following5311    hierarchy. Instructions given with the `developer` or `system` role take5312    precedence over instructions given with the `user` role.53135314    - `content: ResponseInputMessageContentList`53155316      A list of one or many input items to the model, containing different content5317      types.53185319    - `role: "user" or "system" or "developer"`53205321      The role of the message input. One of `user`, `system`, or `developer`.53225323      - `"user"`53245325      - `"system"`53265327      - `"developer"`53285329    - `status: optional "in_progress" or "completed" or "incomplete"`53305331      The status of item. One of `in_progress`, `completed`, or5332      `incomplete`. Populated when items are returned via API.53335334      - `"in_progress"`53355336      - `"completed"`53375338      - `"incomplete"`53395340    - `type: optional "message"`53415342      The type of the message input. Always set to `message`.53435344      - `"message"`53455346  - `ResponseOutputMessage object { id, content, role, 3 more }`53475348    An output message from the model.53495350    - `id: string`53515352      The unique ID of the output message.53535354    - `content: array of ResponseOutputText or ResponseOutputRefusal`53555356      The content of the output message.53575358      - `ResponseOutputText object { annotations, logprobs, text, type }`53595360        A text output from the model.53615362        - `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 }`53635364          The annotations of the text output.53655366          - `FileCitation object { file_id, filename, index, type }`53675368            A citation to a file.53695370            - `file_id: string`53715372              The ID of the file.53735374            - `filename: string`53755376              The filename of the file cited.53775378            - `index: number`53795380              The index of the file in the list of files.53815382            - `type: "file_citation"`53835384              The type of the file citation. Always `file_citation`.53855386              - `"file_citation"`53875388          - `URLCitation object { end_index, start_index, title, 2 more }`53895390            A citation for a web resource used to generate a model response.53915392            - `end_index: number`53935394              The index of the last character of the URL citation in the message.53955396            - `start_index: number`53975398              The index of the first character of the URL citation in the message.53995400            - `title: string`54015402              The title of the web resource.54035404            - `type: "url_citation"`54055406              The type of the URL citation. Always `url_citation`.54075408              - `"url_citation"`54095410            - `url: string`54115412              The URL of the web resource.54135414          - `ContainerFileCitation object { container_id, end_index, file_id, 3 more }`54155416            A citation for a container file used to generate a model response.54175418            - `container_id: string`54195420              The ID of the container file.54215422            - `end_index: number`54235424              The index of the last character of the container file citation in the message.54255426            - `file_id: string`54275428              The ID of the file.54295430            - `filename: string`54315432              The filename of the container file cited.54335434            - `start_index: number`54355436              The index of the first character of the container file citation in the message.54375438            - `type: "container_file_citation"`54395440              The type of the container file citation. Always `container_file_citation`.54415442              - `"container_file_citation"`54435444          - `FilePath object { file_id, index, type }`54455446            A path to a file.54475448            - `file_id: string`54495450              The ID of the file.54515452            - `index: number`54535454              The index of the file in the list of files.54555456            - `type: "file_path"`54575458              The type of the file path. Always `file_path`.54595460              - `"file_path"`54615462        - `logprobs: array of object { token, bytes, logprob, top_logprobs }`54635464          - `token: string`54655466          - `bytes: array of number`54675468          - `logprob: number`54695470          - `top_logprobs: array of object { token, bytes, logprob }`54715472            - `token: string`54735474            - `bytes: array of number`54755476            - `logprob: number`54775478        - `text: string`54795480          The text output from the model.54815482        - `type: "output_text"`54835484          The type of the output text. Always `output_text`.54855486          - `"output_text"`54875488      - `ResponseOutputRefusal object { refusal, type }`54895490        A refusal from the model.54915492        - `refusal: string`54935494          The refusal explanation from the model.54955496        - `type: "refusal"`54975498          The type of the refusal. Always `refusal`.54995500          - `"refusal"`55015502    - `role: "assistant"`55035504      The role of the output message. Always `assistant`.55055506      - `"assistant"`55075508    - `status: "in_progress" or "completed" or "incomplete"`55095510      The status of the message input. One of `in_progress`, `completed`, or5511      `incomplete`. Populated when input items are returned via API.55125513      - `"in_progress"`55145515      - `"completed"`55165517      - `"incomplete"`55185519    - `type: "message"`55205521      The type of the output message. Always `message`.55225523      - `"message"`55245525    - `phase: optional "commentary" or "final_answer" or null`55265527      Labels an `assistant` message as intermediate commentary (`commentary`) or the final answer (`final_answer`).5528      For models like `gpt-5.3-codex` and beyond, when sending follow-up requests, preserve and resend5529      phase on all assistant messages — dropping it can degrade performance. Not used for user messages.55305531      - `"commentary"`55325533      - `"final_answer"`55345535  - `FileSearchCall object { id, queries, status, 2 more }`55365537    The results of a file search tool call. See the5538    [file search guide](/api/docs/guides/tools-file-search) for more information.55395540    - `id: string`55415542      The unique ID of the file search tool call.55435544    - `queries: array of string`55455546      The queries used to search for files.55475548    - `status: "in_progress" or "searching" or "completed" or 2 more`55495550      The status of the file search tool call. One of `in_progress`,5551      `searching`, `incomplete` or `failed`,55525553      - `"in_progress"`55545555      - `"searching"`55565557      - `"completed"`55585559      - `"incomplete"`55605561      - `"failed"`55625563    - `type: "file_search_call"`55645565      The type of the file search tool call. Always `file_search_call`.55665567      - `"file_search_call"`55685569    - `results: optional array of object { attributes, file_id, filename, 2 more }  or null`55705571      The results of the file search tool call.55725573      - `attributes: optional map[string or number or boolean] or null`55745575        Set of 16 key-value pairs that can be attached to an object. This can be5576        useful for storing additional information about the object in a structured5577        format, and querying for objects via API or the dashboard. Keys are strings5578        with a maximum length of 64 characters. Values are strings with a maximum5579        length of 512 characters, booleans, or numbers.55805581        - `string`55825583        - `number`55845585        - `boolean`55865587      - `file_id: optional string`55885589        The unique ID of the file.55905591      - `filename: optional string`55925593        The name of the file.55945595      - `score: optional number`55965597        The relevance score of the file - a value between 0 and 1.55985599      - `text: optional string`56005601        The text that was retrieved from the file.56025603  - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`56045605    A tool call to a computer use tool. See the5606    [computer use guide](/api/docs/guides/tools-computer-use) for more information.56075608    - `id: string`56095610      The unique ID of the computer call.56115612    - `call_id: string`56135614      An identifier used when responding to the tool call with output.56155616    - `pending_safety_checks: array of object { id, code, message }`56175618      The pending safety checks for the computer call.56195620      - `id: string`56215622        The ID of the pending safety check.56235624      - `code: optional string or null`56255626        The type of the pending safety check.56275628      - `message: optional string or null`56295630        Details about the pending safety check.56315632    - `status: "in_progress" or "completed" or "incomplete"`56335634      The status of the item. One of `in_progress`, `completed`, or5635      `incomplete`. Populated when items are returned via API.56365637      - `"in_progress"`56385639      - `"completed"`56405641      - `"incomplete"`56425643    - `type: "computer_call"`56445645      The type of the computer call. Always `computer_call`.56465647      - `"computer_call"`56485649    - `action: optional ComputerAction`56505651      A click action.56525653      - `Click object { button, type, x, 2 more }`56545655        A click action.56565657        - `button: "left" or "right" or "wheel" or 2 more`56585659          Indicates which mouse button was pressed during the click. One of `left`, `right`, `wheel`, `back`, or `forward`.56605661          - `"left"`56625663          - `"right"`56645665          - `"wheel"`56665667          - `"back"`56685669          - `"forward"`56705671        - `type: "click"`56725673          Specifies the event type. For a click action, this property is always `click`.56745675          - `"click"`56765677        - `x: number`56785679          The x-coordinate where the click occurred.56805681        - `y: number`56825683          The y-coordinate where the click occurred.56845685        - `keys: optional array of string or null`56865687          The keys being held while clicking.56885689      - `DoubleClick object { keys, type, x, y }`56905691        A double click action.56925693        - `keys: array of string or null`56945695          The keys being held while double-clicking.56965697        - `type: "double_click"`56985699          Specifies the event type. For a double click action, this property is always set to `double_click`.57005701          - `"double_click"`57025703        - `x: number`57045705          The x-coordinate where the double click occurred.57065707        - `y: number`57085709          The y-coordinate where the double click occurred.57105711      - `Drag object { path, type, keys }`57125713        A drag action.57145715        - `path: array of object { x, y }`57165717          An array of coordinates representing the path of the drag action. Coordinates will appear as an array of objects, eg57185719          ```5720          [5721            { x: 100, y: 200 },5722            { x: 200, y: 300 }5723          ]5724          ```57255726          - `x: number`57275728            The x-coordinate.57295730          - `y: number`57315732            The y-coordinate.57335734        - `type: "drag"`57355736          Specifies the event type. For a drag action, this property is always set to `drag`.57375738          - `"drag"`57395740        - `keys: optional array of string or null`57415742          The keys being held while dragging the mouse.57435744      - `Keypress object { keys, type }`57455746        A collection of keypresses the model would like to perform.57475748        - `keys: array of string`57495750          The combination of keys the model is requesting to be pressed. This is an array of strings, each representing a key.57515752        - `type: "keypress"`57535754          Specifies the event type. For a keypress action, this property is always set to `keypress`.57555756          - `"keypress"`57575758      - `Move object { type, x, y, keys }`57595760        A mouse move action.57615762        - `type: "move"`57635764          Specifies the event type. For a move action, this property is always set to `move`.57655766          - `"move"`57675768        - `x: number`57695770          The x-coordinate to move to.57715772        - `y: number`57735774          The y-coordinate to move to.57755776        - `keys: optional array of string or null`57775778          The keys being held while moving the mouse.57795780      - `Screenshot object { type }`57815782        A screenshot action.57835784        - `type: "screenshot"`57855786          Specifies the event type. For a screenshot action, this property is always set to `screenshot`.57875788          - `"screenshot"`57895790      - `Scroll object { scroll_x, scroll_y, type, 3 more }`57915792        A scroll action.57935794        - `scroll_x: number`57955796          The horizontal scroll distance.57975798        - `scroll_y: number`57995800          The vertical scroll distance.58015802        - `type: "scroll"`58035804          Specifies the event type. For a scroll action, this property is always set to `scroll`.58055806          - `"scroll"`58075808        - `x: number`58095810          The x-coordinate where the scroll occurred.58115812        - `y: number`58135814          The y-coordinate where the scroll occurred.58155816        - `keys: optional array of string or null`58175818          The keys being held while scrolling.58195820      - `Type object { text, type }`58215822        An action to type in text.58235824        - `text: string`58255826          The text to type.58275828        - `type: "type"`58295830          Specifies the event type. For a type action, this property is always set to `type`.58315832          - `"type"`58335834      - `Wait object { type }`58355836        A wait action.58375838        - `type: "wait"`58395840          Specifies the event type. For a wait action, this property is always set to `wait`.58415842          - `"wait"`58435844    - `actions: optional ComputerActionList`58455846      Flattened batched actions for `computer_use`. Each action includes an5847      `type` discriminator and action-specific fields.58485849      - `Click object { button, type, x, 2 more }`58505851        A click action.58525853      - `DoubleClick object { keys, type, x, y }`58545855        A double click action.58565857      - `Drag object { path, type, keys }`58585859        A drag action.58605861      - `Keypress object { keys, type }`58625863        A collection of keypresses the model would like to perform.58645865      - `Move object { type, x, y, keys }`58665867        A mouse move action.58685869      - `Screenshot object { type }`58705871        A screenshot action.58725873      - `Scroll object { scroll_x, scroll_y, type, 3 more }`58745875        A scroll action.58765877      - `Type object { text, type }`58785879        An action to type in text.58805881      - `Wait object { type }`58825883        A wait action.58845885  - `ComputerCallOutput object { call_id, output, type, 3 more }`58865887    The output of a computer tool call.58885889    - `call_id: string`58905891      The ID of the computer tool call that produced the output.58925893    - `output: ResponseComputerToolCallOutputScreenshot`58945895      A computer screenshot image used with the computer use tool.58965897      - `type: "computer_screenshot"`58985899        Specifies the event type. For a computer screenshot, this property is5900        always set to `computer_screenshot`.59015902        - `"computer_screenshot"`59035904      - `file_id: optional string`59055906        The identifier of an uploaded file that contains the screenshot.59075908      - `image_url: optional string`59095910        The URL of the screenshot image.59115912    - `type: "computer_call_output"`59135914      The type of the computer tool call output. Always `computer_call_output`.59155916      - `"computer_call_output"`59175918    - `id: optional string or null`59195920      The ID of the computer tool call output.59215922    - `acknowledged_safety_checks: optional array of object { id, code, message }  or null`59235924      The safety checks reported by the API that have been acknowledged by the developer.59255926      - `id: string`59275928        The ID of the pending safety check.59295930      - `code: optional string or null`59315932        The type of the pending safety check.59335934      - `message: optional string or null`59355936        Details about the pending safety check.59375938    - `status: optional "in_progress" or "completed" or "incomplete" or null`59395940      The status of the message input. One of `in_progress`, `completed`, or `incomplete`. Populated when input items are returned via API.59415942      - `"in_progress"`59435944      - `"completed"`59455946      - `"incomplete"`59475948  - `WebSearchCall object { id, action, status, type }`59495950    The results of a web search tool call. See the5951    [web search guide](/api/docs/guides/tools-web-search) for more information.59525953    - `id: string`59545955      The unique ID of the web search tool call.59565957    - `action: object { type, queries, query, sources }  or object { type, url }  or object { pattern, type, url }`59585959      An object describing the specific action taken in this web search call.5960      Includes details on how the model used the web (search, open_page, find_in_page).59615962      - `Search object { type, queries, query, sources }`59635964        Action type "search" - Performs a web search query.59655966        - `type: "search"`59675968          The action type.59695970          - `"search"`59715972        - `queries: optional array of string`59735974          The search queries.59755976        - `query: optional string`59775978          The search query.59795980        - `sources: optional array of object { type, url }`59815982          The sources used in the search.59835984          - `type: "url"`59855986            The type of source. Always `url`.59875988            - `"url"`59895990          - `url: string`59915992            The URL of the source.59935994      - `OpenPage object { type, url }`59955996        Action type "open_page" - Opens a specific URL from search results.59975998        - `type: "open_page"`59996000          The action type.60016002          - `"open_page"`60036004        - `url: optional string or null`60056006          The URL opened by the model.60076008      - `FindInPage object { pattern, type, url }`60096010        Action type "find_in_page": Searches for a pattern within a loaded page.60116012        - `pattern: string`60136014          The pattern or text to search for within the page.60156016        - `type: "find_in_page"`60176018          The action type.60196020          - `"find_in_page"`60216022        - `url: string`60236024          The URL of the page searched for the pattern.60256026    - `status: "in_progress" or "searching" or "completed" or 2 more`60276028      The status of the web search tool call.60296030      - `"in_progress"`60316032      - `"searching"`60336034      - `"completed"`60356036      - `"failed"`60376038      - `"incomplete"`60396040    - `type: "web_search_call"`60416042      The type of the web search tool call. Always `web_search_call`.60436044      - `"web_search_call"`60456046  - `FunctionCall object { arguments, call_id, name, 6 more }`60476048    A tool call to run a function. See the6049    [function calling guide](/api/docs/guides/function-calling) for more information.60506051    - `arguments: string`60526053      A JSON string of the arguments to pass to the function.60546055    - `call_id: string`60566057      The unique ID of the function tool call generated by the model.60586059    - `name: string`60606061      The name of the function to run.60626063    - `type: "function_call"`60646065      The type of the function tool call. Always `function_call`.60666067      - `"function_call"`60686069    - `id: optional string`60706071      The unique ID of the function tool call.60726073    - `async: optional boolean`60746075      Whether the function tool call runs asynchronously.60766077    - `caller: optional object { type }  or object { caller_id, type }  or null`60786079      The execution context that produced this tool call.60806081      - `Direct object { type }`60826083        - `type: "direct"`60846085          - `"direct"`60866087      - `Program object { caller_id, type }`60886089        - `caller_id: string`60906091          The call ID of the program item that produced this tool call.60926093        - `type: "program"`60946095          - `"program"`60966097    - `namespace: optional string`60986099      The namespace of the function to run.61006101    - `status: optional "in_progress" or "completed" or "incomplete"`61026103      The status of the item. One of `in_progress`, `completed`, or6104      `incomplete`. Populated when items are returned via API.61056106      - `"in_progress"`61076108      - `"completed"`61096110      - `"incomplete"`61116112  - `FunctionCallOutput object { output, type, id, 5 more }`61136114    The output of a function tool call.61156116    - `output: string or array of ResponseInputTextContent or ResponseInputImageContent or ResponseInputFileContent`61176118      Text, image, or file output of the function tool call.61196120      - `string`61216122        A JSON string of the output of the function tool call.61236124      - `array of ResponseInputTextContent or ResponseInputImageContent or ResponseInputFileContent`61256126        An array of content outputs (text, image, file) for the function tool call.61276128        - `ResponseInputTextContent object { text, type, prompt_cache_breakpoint }`61296130          A text input to the model.61316132          - `text: string`61336134            The text input to the model.61356136          - `type: "input_text"`61376138            The type of the input item. Always `input_text`.61396140            - `"input_text"`61416142          - `prompt_cache_breakpoint: optional object { mode }  or null`61436144            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.61456146            - `mode: "explicit"`61476148              The breakpoint mode. Always `explicit`.61496150              - `"explicit"`61516152        - `ResponseInputImageContent object { type, detail, file_id, 2 more }`61536154          An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision)61556156          - `type: "input_image"`61576158            The type of the input item. Always `input_image`.61596160            - `"input_image"`61616162          - `detail: optional ImageDetail or null`61636164            The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.61656166          - `file_id: optional string or null`61676168            The ID of the file to be sent to the model.61696170          - `image_url: optional string or null`61716172            The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.61736174          - `prompt_cache_breakpoint: optional object { mode }  or null`61756176            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.61776178            - `mode: "explicit"`61796180              The breakpoint mode. Always `explicit`.61816182              - `"explicit"`61836184        - `ResponseInputFileContent object { type, detail, file_data, 4 more }`61856186          A file input to the model.61876188          - `type: "input_file"`61896190            The type of the input item. Always `input_file`.61916192            - `"input_file"`61936194          - `detail: optional "auto" or "low" or "high"`61956196            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`.61976198            - `"auto"`61996200            - `"low"`62016202            - `"high"`62036204          - `file_data: optional string or null`62056206            The base64-encoded data of the file to be sent to the model.62076208          - `file_id: optional string or null`62096210            The ID of the file to be sent to the model.62116212          - `file_url: optional string or null`62136214            The URL of the file to be sent to the model.62156216          - `filename: optional string or null`62176218            The name of the file to be sent to the model.62196220          - `prompt_cache_breakpoint: optional object { mode }  or null`62216222            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.62236224            - `mode: "explicit"`62256226              The breakpoint mode. Always `explicit`.62276228              - `"explicit"`62296230    - `type: "function_call_output"`62316232      The type of the function tool call output. Always `function_call_output`.62336234      - `"function_call_output"`62356236    - `id: optional string or null`62376238      The unique ID of the function tool call output. Populated when this item is returned via API.62396240    - `call_id: optional string or null`62416242      The unique ID of the function tool call generated by the model.62436244    - `caller: optional object { type }  or object { caller_id, type }  or null`62456246      The execution context that produced this tool call.62476248      - `Direct object { type }`62496250        - `type: "direct"`62516252          The caller type. Always `direct`.62536254          - `"direct"`62556256      - `Program object { caller_id, type }`62576258        - `caller_id: string`62596260          The call ID of the program item that produced this tool call.62616262        - `type: "program"`62636264          The caller type. Always `program`.62656266          - `"program"`62676268    - `name: optional string or null`62696270      The name of the tool that produced the output.62716272    - `namespace: optional string or null`62736274      The namespace of the tool that produced the output.62756276    - `status: optional "in_progress" or "completed" or "incomplete" or null`62776278      The status of the item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API.62796280      - `"in_progress"`62816282      - `"completed"`62836284      - `"incomplete"`62856286  - `ToolSearchCall object { arguments, type, id, 3 more }`62876288    - `arguments: unknown`62896290      The arguments supplied to the tool search call.62916292    - `type: "tool_search_call"`62936294      The item type. Always `tool_search_call`.62956296      - `"tool_search_call"`62976298    - `id: optional string or null`62996300      The unique ID of this tool search call.63016302    - `call_id: optional string or null`63036304      The unique ID of the tool search call generated by the model.63056306    - `execution: optional "server" or "client"`63076308      Whether tool search was executed by the server or by the client.63096310      - `"server"`63116312      - `"client"`63136314    - `status: optional "in_progress" or "completed" or "incomplete" or null`63156316      The status of the tool search call.63176318      - `"in_progress"`63196320      - `"completed"`63216322      - `"incomplete"`63236324  - `ToolSearchOutput object { tools, type, id, 3 more }`63256326    - `tools: array of object { name, parameters, strict, 6 more }  or object { type, vector_store_ids, filters, 2 more }  or object { type }  or 13 more`63276328      The loaded tool definitions returned by the tool search output.63296330      - `Function object { name, parameters, strict, 6 more }`63316332        Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).63336334        - `name: string`63356336          The name of the function to call.63376338        - `parameters: map[unknown] or null`63396340          A JSON schema object describing the parameters of the function.63416342        - `strict: boolean or null`63436344          Whether strict parameter validation is enforced for this function tool.63456346        - `type: "function"`63476348          The type of the function tool. Always `function`.63496350          - `"function"`63516352        - `allowed_callers: optional array of "direct" or "programmatic" or null`63536354          The tool invocation context(s).63556356          - `"direct"`63576358          - `"programmatic"`63596360        - `async: optional boolean`63616362        - `defer_loading: optional boolean`63636364          Whether this function is deferred and loaded via tool search.63656366        - `description: optional string or null`63676368          A description of the function. Used by the model to determine whether or not to call the function.63696370        - `output_schema: optional map[unknown] or null`63716372          A JSON schema object describing the JSON value encoded in string outputs for this function.63736374      - `FileSearch object { type, vector_store_ids, filters, 2 more }`63756376        A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).63776378        - `type: "file_search"`63796380          The type of the file search tool. Always `file_search`.63816382          - `"file_search"`63836384        - `vector_store_ids: array of string`63856386          The IDs of the vector stores to search.63876388        - `filters: optional ComparisonFilter or CompoundFilter or null`63896390          A filter to apply.63916392          - `ComparisonFilter object { key, type, value }`63936394            A filter used to compare a specified attribute key to a given value using a defined comparison operation.63956396            - `key: string`63976398              The key to compare against the value.63996400            - `type: "eq" or "ne" or "gt" or 5 more`64016402              Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`, `in`, `nin`.64036404              - `eq`: equals6405              - `ne`: not equal6406              - `gt`: greater than6407              - `gte`: greater than or equal6408              - `lt`: less than6409              - `lte`: less than or equal6410              - `in`: in6411              - `nin`: not in64126413              - `"eq"`64146415              - `"ne"`64166417              - `"gt"`64186419              - `"gte"`64206421              - `"lt"`64226423              - `"lte"`64246425              - `"in"`64266427              - `"nin"`64286429            - `value: string or number or boolean or array of string or number`64306431              The value to compare against the attribute key; supports string, number, or boolean types.64326433              - `string`64346435              - `number`64366437              - `boolean`64386439              - `array of string or number`64406441                - `string`64426443                - `number`64446445          - `CompoundFilter object { filters, type }`64466447            Combine multiple filters using `and` or `or`.64486449            - `filters: array of ComparisonFilter or unknown`64506451              Array of filters to combine. Items can be `ComparisonFilter` or `CompoundFilter`.64526453              - `ComparisonFilter object { key, type, value }`64546455                A filter used to compare a specified attribute key to a given value using a defined comparison operation.64566457              - `unknown`64586459            - `type: "and" or "or"`64606461              Type of operation: `and` or `or`.64626463              - `"and"`64646465              - `"or"`64666467        - `max_num_results: optional number`64686469          The maximum number of results to return. This number should be between 1 and 50 inclusive.64706471        - `ranking_options: optional object { hybrid_search, ranker, score_threshold }`64726473          Ranking options for search.64746475          - `hybrid_search: optional object { embedding_weight, text_weight }`64766477            Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled.64786479            - `embedding_weight: number`64806481              The weight of the embedding in the reciprocal ranking fusion.64826483            - `text_weight: number`64846485              The weight of the text in the reciprocal ranking fusion.64866487          - `ranker: optional "auto" or "default-2024-11-15"`64886489            The ranker to use for the file search.64906491            - `"auto"`64926493            - `"default-2024-11-15"`64946495          - `score_threshold: optional number`64966497            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.64986499      - `Computer object { type }`65006501        A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).65026503        - `type: "computer"`65046505          The type of the computer tool. Always `computer`.65066507          - `"computer"`65086509      - `ComputerUsePreview object { display_height, display_width, environment, type }`65106511        A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).65126513        - `display_height: number`65146515          The height of the computer display.65166517        - `display_width: number`65186519          The width of the computer display.65206521        - `environment: "windows" or "mac" or "linux" or 2 more`65226523          The type of computer environment to control.65246525          - `"windows"`65266527          - `"mac"`65286529          - `"linux"`65306531          - `"ubuntu"`65326533          - `"browser"`65346535        - `type: "computer_use_preview"`65366537          The type of the computer use tool. Always `computer_use_preview`.65386539          - `"computer_use_preview"`65406541      - `WebSearch object { type, external_web_access, filters, 2 more }`65426543        Search the Internet for sources related to the prompt. Learn more about the6544        [web search tool](/api/docs/guides/tools-web-search).65456546        - `type: "web_search" or "web_search_2025_08_26"`65476548          The type of the web search tool. One of `web_search` or `web_search_2025_08_26`.65496550          - `"web_search"`65516552          - `"web_search_2025_08_26"`65536554        - `external_web_access: optional boolean`65556556          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.65576558        - `filters: optional object { allowed_domains }  or null`65596560          Filters for the search.65616562          - `allowed_domains: optional array of string or null`65636564            Allowed domains for the search. If not provided, all domains are allowed.6565            Subdomains of the provided domains are allowed as well.65666567            Example: `["pubmed.ncbi.nlm.nih.gov"]`65686569        - `search_context_size: optional "low" or "medium" or "high"`65706571          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.65726573          - `"low"`65746575          - `"medium"`65766577          - `"high"`65786579        - `user_location: optional object { city, country, region, 2 more }  or null`65806581          The approximate location of the user.65826583          - `city: optional string or null`65846585            Free text input for the city of the user, e.g. `San Francisco`.65866587          - `country: optional string or null`65886589            The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.65906591          - `region: optional string or null`65926593            Free text input for the region of the user, e.g. `California`.65946595          - `timezone: optional string or null`65966597            The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.65986599          - `type: optional "approximate"`66006601            The type of location approximation. Always `approximate`.66026603            - `"approximate"`66046605      - `Mcp object { server_label, type, allowed_callers, 9 more }`66066607        Give the model access to additional tools via remote Model Context Protocol6608        (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).66096610        - `server_label: string`66116612          A label for this MCP server, used to identify it in tool calls.66136614        - `type: "mcp"`66156616          The type of the MCP tool. Always `mcp`.66176618          - `"mcp"`66196620        - `allowed_callers: optional array of "direct" or "programmatic" or null`66216622          The tool invocation context(s).66236624          - `"direct"`66256626          - `"programmatic"`66276628        - `allowed_tools: optional array of string or object { read_only, tool_names }  or null`66296630          List of allowed tool names or a filter object.66316632          - `McpAllowedTools = array of string`66336634            A string array of allowed tool names66356636          - `McpToolFilter object { read_only, tool_names }`66376638            A filter object to specify which tools are allowed.66396640            - `read_only: optional boolean`66416642              Indicates whether or not a tool modifies data or is read-only. If an6643              MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),6644              it will match this filter.66456646            - `tool_names: optional array of string`66476648              List of allowed tool names.66496650        - `authorization: optional string`66516652          An OAuth access token that can be used with a remote MCP server, either6653          with a custom MCP server URL or a service connector. Your application6654          must handle the OAuth authorization flow and provide the token here.66556656        - `connector_id: optional "connector_dropbox" or "connector_gmail" or "connector_googlecalendar" or 5 more`66576658          Identifier for service connectors, like those available in ChatGPT. One of6659          `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more6660          about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).66616662          This field is deprecated for models released after September 1, 2026.6663          Use `server_url` to connect to a remote MCP server, or `tunnel_id` to6664          connect through a Secure MCP Tunnel.66656666          Currently supported `connector_id` values are:66676668          - Dropbox: `connector_dropbox`6669          - Gmail: `connector_gmail`6670          - Google Calendar: `connector_googlecalendar`6671          - Google Drive: `connector_googledrive`6672          - Microsoft Teams: `connector_microsoftteams`6673          - Outlook Calendar: `connector_outlookcalendar`6674          - Outlook Email: `connector_outlookemail`6675          - SharePoint: `connector_sharepoint`66766677          - `"connector_dropbox"`66786679          - `"connector_gmail"`66806681          - `"connector_googlecalendar"`66826683          - `"connector_googledrive"`66846685          - `"connector_microsoftteams"`66866687          - `"connector_outlookcalendar"`66886689          - `"connector_outlookemail"`66906691          - `"connector_sharepoint"`66926693        - `defer_loading: optional boolean`66946695          Whether this MCP tool is deferred and discovered via tool search.66966697        - `headers: optional map[string] or null`66986699          Optional HTTP headers to send to the MCP server. Use for authentication6700          or other purposes.67016702        - `require_approval: optional object { always, never }  or "always" or "never" or null`67036704          Specify which of the MCP server's tools require approval.67056706          - `McpToolApprovalFilter object { always, never }`67076708            Specify which of the MCP server's tools require approval. Can be6709            `always`, `never`, or a filter object associated with tools6710            that require approval.67116712            - `always: optional object { read_only, tool_names }`67136714              A filter object to specify which tools are allowed.67156716              - `read_only: optional boolean`67176718                Indicates whether or not a tool modifies data or is read-only. If an6719                MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),6720                it will match this filter.67216722              - `tool_names: optional array of string`67236724                List of allowed tool names.67256726            - `never: optional object { read_only, tool_names }`67276728              A filter object to specify which tools are allowed.67296730              - `read_only: optional boolean`67316732                Indicates whether or not a tool modifies data or is read-only. If an6733                MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),6734                it will match this filter.67356736              - `tool_names: optional array of string`67376738                List of allowed tool names.67396740          - `McpToolApprovalSetting = "always" or "never"`67416742            Specify a single approval policy for all tools. One of `always` or6743            `never`. When set to `always`, all tools will require approval. When6744            set to `never`, all tools will not require approval.67456746            - `"always"`67476748            - `"never"`67496750        - `server_description: optional string`67516752          Optional description of the MCP server, used to provide more context.67536754        - `server_url: optional string`67556756          The URL for the MCP server. One of `server_url`, `connector_id`, or6757          `tunnel_id` must be provided.67586759        - `tunnel_id: optional string`67606761          The Secure MCP Tunnel ID to use instead of a direct server URL. One of6762          `server_url`, `connector_id`, or `tunnel_id` must be provided.67636764      - `CodeInterpreter object { container, type, allowed_callers }`67656766        A tool that runs Python code to help generate a response to a prompt.67676768        - `container: string or object { type, file_ids, memory_limit, network_policy }`67696770          The code interpreter container. Can be a container ID or an object that6771          specifies uploaded file IDs to make available to your code, along with an6772          optional `memory_limit` setting.67736774          - `string`67756776            The container ID.67776778          - `CodeInterpreterToolAuto object { type, file_ids, memory_limit, network_policy }`67796780            Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.67816782            - `type: "auto"`67836784              Always `auto`.67856786              - `"auto"`67876788            - `file_ids: optional array of string`67896790              An optional list of uploaded files to make available to your code.67916792            - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`67936794              The memory limit for the code interpreter container.67956796              - `"1g"`67976798              - `"4g"`67996800              - `"16g"`68016802              - `"64g"`68036804            - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`68056806              Network access policy for the container.68076808              - `ContainerNetworkPolicyDisabled object { type }`68096810                - `type: "disabled"`68116812                  Disable outbound network access. Always `disabled`.68136814                  - `"disabled"`68156816              - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`68176818                - `allowed_domains: array of string`68196820                  A list of allowed domains when type is `allowlist`.68216822                - `type: "allowlist"`68236824                  Allow outbound network access only to specified domains. Always `allowlist`.68256826                  - `"allowlist"`68276828                - `domain_secrets: optional array of ContainerNetworkPolicyDomainSecret`68296830                  Optional domain-scoped secrets for allowlisted domains.68316832                  - `domain: string`68336834                    The domain associated with the secret.68356836                  - `name: string`68376838                    The name of the secret to inject for the domain.68396840                  - `value: string`68416842                    The secret value to inject for the domain.68436844        - `type: "code_interpreter"`68456846          The type of the code interpreter tool. Always `code_interpreter`.68476848          - `"code_interpreter"`68496850        - `allowed_callers: optional array of "direct" or "programmatic" or null`68516852          The tool invocation context(s).68536854          - `"direct"`68556856          - `"programmatic"`68576858      - `ProgrammaticToolCalling object { type }`68596860        - `type: "programmatic_tool_calling"`68616862          The type of the tool. Always `programmatic_tool_calling`.68636864          - `"programmatic_tool_calling"`68656866      - `ImageGeneration object { type, action, background, 9 more }`68676868        A tool that generates images using the GPT image models.68696870        - `type: "image_generation"`68716872          The type of the image generation tool. Always `image_generation`.68736874          - `"image_generation"`68756876        - `action: optional "generate" or "edit" or "auto"`68776878          Whether to generate a new image or edit an existing image. Default: `auto`.68796880          - `"generate"`68816882          - `"edit"`68836884          - `"auto"`68856886        - `background: optional "transparent" or "opaque" or "auto"`68876888          Set the background of the generated image. One of `transparent`, `opaque`,6889          or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including6890          their `2026-09-08` snapshots, support `opaque` and `transparent`6891          backgrounds. Transparent backgrounds are available for supported GPT Image6892          models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in6893          preview. When using `transparent`, set the output format to `png` or `webp`.6894          Default: `auto`.68956896          - `"transparent"`68976898          - `"opaque"`68996900          - `"auto"`69016902        - `input_fidelity: optional "high" or "low" or null`69036904          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`.69056906          - `"high"`69076908          - `"low"`69096910        - `input_image_mask: optional object { file_id, image_url }`69116912          Optional mask for inpainting. Contains `image_url`6913          (string, optional) and `file_id` (string, optional).69146915          - `file_id: optional string`69166917            File ID for the mask image.69186919          - `image_url: optional string`69206921            Base64-encoded mask image.69226923        - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`69246925          The image generation model to use. One of `gpt-image-1`,6926          `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,6927          `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,6928          `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,6929          `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:6930          `gpt-image-1`.69316932          - `string`69336934          - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`69356936            The image generation model to use. One of `gpt-image-1`,6937            `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,6938            `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,6939            `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,6940            `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:6941            `gpt-image-1`.69426943            - `"gpt-image-1"`69446945            - `"gpt-image-1-mini"`69466947            - `"gpt-image-1.5"`69486949            - `"gpt-image-2"`69506951            - `"gpt-image-2-2026-04-21"`69526953            - `"gpt-image-2.5-sunburst"`69546955            - `"gpt-image-2.5-sunburst-2026-09-08"`69566957            - `"gpt-image-2.5-flare"`69586959            - `"gpt-image-2.5-flare-2026-09-08"`69606961        - `moderation: optional "auto" or "low"`69626963          Moderation level for the generated image. Default: `auto`.69646965          - `"auto"`69666967          - `"low"`69686969        - `output_compression: optional number`69706971          Compression level for the output image. Default: 100.69726973        - `output_format: optional "png" or "webp" or "jpeg"`69746975          The output format of the generated image. One of `png`, `webp`, or6976          `jpeg`. Default: `png`.69776978          - `"png"`69796980          - `"webp"`69816982          - `"jpeg"`69836984        - `partial_images: optional number`69856986          Number of partial images to generate in streaming mode, from 0 (default value) to 3.69876988        - `quality: optional "low" or "medium" or "high" or 3 more`69896990          The quality of the generated image. The GPT image models support `low`,6991          `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,6992          including their `2026-09-08` snapshots, also support `xhigh` and `max`.6993          Default: `auto`.69946995          - `"low"`69966997          - `"medium"`69986999          - `"high"`70007001          - `"xhigh"`70027003          - `"max"`70047005          - `"auto"`70067007        - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`70087009          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`.70107011          - `string`70127013          - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`70147015            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`.70167017            - `"1024x1024"`70187019            - `"1024x1536"`70207021            - `"1536x1024"`70227023            - `"auto"`70247025      - `LocalShell object { type }`70267027        A tool that allows the model to execute shell commands in a local environment.70287029        - `type: "local_shell"`70307031          The type of the local shell tool. Always `local_shell`.70327033          - `"local_shell"`70347035      - `Shell object { type, allowed_callers, environment }`70367037        A tool that allows the model to execute shell commands.70387039        - `type: "shell"`70407041          The type of the shell tool. Always `shell`.70427043          - `"shell"`70447045        - `allowed_callers: optional array of "direct" or "programmatic" or null`70467047          The tool invocation context(s).70487049          - `"direct"`70507051          - `"programmatic"`70527053        - `environment: optional ContainerAuto or LocalEnvironment or ContainerReference or null`70547055          - `ContainerAuto object { type, file_ids, memory_limit, 2 more }`70567057            - `type: "container_auto"`70587059              Automatically creates a container for this request70607061              - `"container_auto"`70627063            - `file_ids: optional array of string`70647065              An optional list of uploaded files to make available to your code.70667067            - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`70687069              The memory limit for the container.70707071              - `"1g"`70727073              - `"4g"`70747075              - `"16g"`70767077              - `"64g"`70787079            - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`70807081              Network access policy for the container.70827083              - `ContainerNetworkPolicyDisabled object { type }`70847085              - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`70867087            - `skills: optional array of SkillReference or InlineSkill`70887089              An optional list of skills referenced by id or inline data.70907091              - `SkillReference object { skill_id, type, version }`70927093                - `skill_id: string`70947095                  The ID of the referenced skill.70967097                - `type: "skill_reference"`70987099                  References a skill created with the /v1/skills endpoint.71007101                  - `"skill_reference"`71027103                - `version: optional string`71047105                  Optional skill version. Use a positive integer or 'latest'. Omit for default.71067107              - `InlineSkill object { description, name, source, type }`71087109                - `description: string`71107111                  The description of the skill.71127113                - `name: string`71147115                  The name of the skill.71167117                - `source: InlineSkillSource`71187119                  Inline skill payload71207121                  - `data: string`71227123                    Base64-encoded skill zip bundle.71247125                  - `media_type: "application/zip"`71267127                    The media type of the inline skill payload. Must be `application/zip`.71287129                    - `"application/zip"`71307131                  - `type: "base64"`71327133                    The type of the inline skill source. Must be `base64`.71347135                    - `"base64"`71367137                - `type: "inline"`71387139                  Defines an inline skill for this request.71407141                  - `"inline"`71427143          - `LocalEnvironment object { type, skills }`71447145            - `type: "local"`71467147              Use a local computer environment.71487149              - `"local"`71507151            - `skills: optional array of LocalSkill`71527153              An optional list of skills.71547155              - `description: string`71567157                The description of the skill.71587159              - `name: string`71607161                The name of the skill.71627163              - `path: string`71647165                The path to the directory containing the skill.71667167          - `ContainerReference object { container_id, type }`71687169            - `container_id: string`71707171              The ID of the referenced container.71727173            - `type: "container_reference"`71747175              References a container created with the /v1/containers endpoint71767177              - `"container_reference"`71787179      - `Custom object { name, type, allowed_callers, 4 more }`71807181        A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)71827183        - `name: string`71847185          The name of the custom tool, used to identify it in tool calls.71867187        - `type: "custom"`71887189          The type of the custom tool. Always `custom`.71907191          - `"custom"`71927193        - `allowed_callers: optional array of "direct" or "programmatic" or null`71947195          The tool invocation context(s).71967197          - `"direct"`71987199          - `"programmatic"`72007201        - `async: optional boolean`72027203          Whether the tool response can be returned asynchronously versus immediately returned on next response creation.72047205        - `defer_loading: optional boolean`72067207          Whether this tool should be deferred and discovered via tool search.72087209        - `description: optional string`72107211          Optional description of the custom tool, used to provide more context.72127213        - `format: optional CustomToolInputFormat`72147215          The input format for the custom tool. Default is unconstrained text.72167217          - `Text object { type }`72187219            Unconstrained free-form text.72207221            - `type: "text"`72227223              Unconstrained text format. Always `text`.72247225              - `"text"`72267227          - `Grammar object { definition, syntax, type }`72287229            A grammar defined by the user.72307231            - `definition: string`72327233              The grammar definition.72347235            - `syntax: "lark" or "regex"`72367237              The syntax of the grammar definition. One of `lark` or `regex`.72387239              - `"lark"`72407241              - `"regex"`72427243            - `type: "grammar"`72447245              Grammar format. Always `grammar`.72467247              - `"grammar"`72487249      - `Namespace object { description, name, tools, type }`72507251        Groups function/custom tools under a shared namespace.72527253        - `description: string`72547255          A description of the namespace shown to the model.72567257        - `name: string`72587259          The namespace name used in tool calls (for example, `crm`).72607261        - `tools: array of object { name, type, allowed_callers, 6 more }  or object { name, type, allowed_callers, 4 more }`72627263          The function/custom tools available inside this namespace.72647265          - `Function object { name, type, allowed_callers, 6 more }`72667267            - `name: string`72687269            - `type: "function"`72707271              - `"function"`72727273            - `allowed_callers: optional array of "direct" or "programmatic" or null`72747275              The tool invocation context(s).72767277              - `"direct"`72787279              - `"programmatic"`72807281            - `async: optional boolean`72827283              Whether the tool response can be returned asynchronously versus immediately returned on next response creation.72847285            - `defer_loading: optional boolean`72867287              Whether this function should be deferred and discovered via tool search.72887289            - `description: optional string or null`72907291            - `output_schema: optional map[unknown] or null`72927293              A JSON Schema describing the JSON value encoded in string outputs for this function tool. This does not describe content-array outputs.72947295            - `parameters: optional unknown or null`72967297            - `strict: optional boolean or null`72987299              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.73007301          - `Custom object { name, type, allowed_callers, 4 more }`73027303            A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)73047305            - `name: string`73067307              The name of the custom tool, used to identify it in tool calls.73087309            - `type: "custom"`73107311              The type of the custom tool. Always `custom`.73127313              - `"custom"`73147315            - `allowed_callers: optional array of "direct" or "programmatic" or null`73167317              The tool invocation context(s).73187319              - `"direct"`73207321              - `"programmatic"`73227323            - `async: optional boolean`73247325              Whether the tool response can be returned asynchronously versus immediately returned on next response creation.73267327            - `defer_loading: optional boolean`73287329              Whether this tool should be deferred and discovered via tool search.73307331            - `description: optional string`73327333              Optional description of the custom tool, used to provide more context.73347335            - `format: optional CustomToolInputFormat`73367337              The input format for the custom tool. Default is unconstrained text.73387339        - `type: "namespace"`73407341          The type of the tool. Always `namespace`.73427343          - `"namespace"`73447345      - `ToolSearch object { type, description, execution, parameters }`73467347        Hosted or BYOT tool search configuration for deferred tools.73487349        - `type: "tool_search"`73507351          The type of the tool. Always `tool_search`.73527353          - `"tool_search"`73547355        - `description: optional string or null`73567357          Description shown to the model for a client-executed tool search tool.73587359        - `execution: optional "server" or "client"`73607361          Whether tool search is executed by the server or by the client.73627363          - `"server"`73647365          - `"client"`73667367        - `parameters: optional unknown or null`73687369          Parameter schema for a client-executed tool search tool.73707371      - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`73727373        This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](/api/docs/guides/tools-web-search).73747375        - `type: "web_search_preview" or "web_search_preview_2025_03_11"`73767377          The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.73787379          - `"web_search_preview"`73807381          - `"web_search_preview_2025_03_11"`73827383        - `search_content_types: optional array of "text" or "image"`73847385          - `"text"`73867387          - `"image"`73887389        - `search_context_size: optional "low" or "medium" or "high"`73907391          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.73927393          - `"low"`73947395          - `"medium"`73967397          - `"high"`73987399        - `user_location: optional object { type, city, country, 2 more }  or null`74007401          The user's location.74027403          - `type: "approximate"`74047405            The type of location approximation. Always `approximate`.74067407            - `"approximate"`74087409          - `city: optional string or null`74107411            Free text input for the city of the user, e.g. `San Francisco`.74127413          - `country: optional string or null`74147415            The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.74167417          - `region: optional string or null`74187419            Free text input for the region of the user, e.g. `California`.74207421          - `timezone: optional string or null`74227423            The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.74247425      - `ApplyPatch object { type, allowed_callers }`74267427        Allows the assistant to create, delete, or update files using unified diffs.74287429        - `type: "apply_patch"`74307431          The type of the tool. Always `apply_patch`.74327433          - `"apply_patch"`74347435        - `allowed_callers: optional array of "direct" or "programmatic" or null`74367437          The tool invocation context(s).74387439          - `"direct"`74407441          - `"programmatic"`74427443    - `type: "tool_search_output"`74447445      The item type. Always `tool_search_output`.74467447      - `"tool_search_output"`74487449    - `id: optional string or null`74507451      The unique ID of this tool search output.74527453    - `call_id: optional string or null`74547455      The unique ID of the tool search call generated by the model.74567457    - `execution: optional "server" or "client"`74587459      Whether tool search was executed by the server or by the client.74607461      - `"server"`74627463      - `"client"`74647465    - `status: optional "in_progress" or "completed" or "incomplete" or null`74667467      The status of the tool search output.74687469      - `"in_progress"`74707471      - `"completed"`74727473      - `"incomplete"`74747475  - `AdditionalTools object { role, tools, type, id }`74767477    - `role: "developer"`74787479      The role that provided the additional tools. Only `developer` is supported.74807481      - `"developer"`74827483    - `tools: array of object { name, parameters, strict, 6 more }  or object { type, vector_store_ids, filters, 2 more }  or object { type }  or 13 more`74847485      A list of additional tools made available at this item.74867487      - `Function object { name, parameters, strict, 6 more }`74887489        Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).74907491        - `name: string`74927493          The name of the function to call.74947495        - `parameters: map[unknown] or null`74967497          A JSON schema object describing the parameters of the function.74987499        - `strict: boolean or null`75007501          Whether strict parameter validation is enforced for this function tool.75027503        - `type: "function"`75047505          The type of the function tool. Always `function`.75067507          - `"function"`75087509        - `allowed_callers: optional array of "direct" or "programmatic" or null`75107511          The tool invocation context(s).75127513          - `"direct"`75147515          - `"programmatic"`75167517        - `async: optional boolean`75187519        - `defer_loading: optional boolean`75207521          Whether this function is deferred and loaded via tool search.75227523        - `description: optional string or null`75247525          A description of the function. Used by the model to determine whether or not to call the function.75267527        - `output_schema: optional map[unknown] or null`75287529          A JSON schema object describing the JSON value encoded in string outputs for this function.75307531      - `FileSearch object { type, vector_store_ids, filters, 2 more }`75327533        A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).75347535        - `type: "file_search"`75367537          The type of the file search tool. Always `file_search`.75387539          - `"file_search"`75407541        - `vector_store_ids: array of string`75427543          The IDs of the vector stores to search.75447545        - `filters: optional ComparisonFilter or CompoundFilter or null`75467547          A filter to apply.75487549          - `ComparisonFilter object { key, type, value }`75507551            A filter used to compare a specified attribute key to a given value using a defined comparison operation.75527553          - `CompoundFilter object { filters, type }`75547555            Combine multiple filters using `and` or `or`.75567557        - `max_num_results: optional number`75587559          The maximum number of results to return. This number should be between 1 and 50 inclusive.75607561        - `ranking_options: optional object { hybrid_search, ranker, score_threshold }`75627563          Ranking options for search.75647565          - `hybrid_search: optional object { embedding_weight, text_weight }`75667567            Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled.75687569            - `embedding_weight: number`75707571              The weight of the embedding in the reciprocal ranking fusion.75727573            - `text_weight: number`75747575              The weight of the text in the reciprocal ranking fusion.75767577          - `ranker: optional "auto" or "default-2024-11-15"`75787579            The ranker to use for the file search.75807581            - `"auto"`75827583            - `"default-2024-11-15"`75847585          - `score_threshold: optional number`75867587            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.75887589      - `Computer object { type }`75907591        A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).75927593        - `type: "computer"`75947595          The type of the computer tool. Always `computer`.75967597          - `"computer"`75987599      - `ComputerUsePreview object { display_height, display_width, environment, type }`76007601        A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).76027603        - `display_height: number`76047605          The height of the computer display.76067607        - `display_width: number`76087609          The width of the computer display.76107611        - `environment: "windows" or "mac" or "linux" or 2 more`76127613          The type of computer environment to control.76147615          - `"windows"`76167617          - `"mac"`76187619          - `"linux"`76207621          - `"ubuntu"`76227623          - `"browser"`76247625        - `type: "computer_use_preview"`76267627          The type of the computer use tool. Always `computer_use_preview`.76287629          - `"computer_use_preview"`76307631      - `WebSearch object { type, external_web_access, filters, 2 more }`76327633        Search the Internet for sources related to the prompt. Learn more about the7634        [web search tool](/api/docs/guides/tools-web-search).76357636        - `type: "web_search" or "web_search_2025_08_26"`76377638          The type of the web search tool. One of `web_search` or `web_search_2025_08_26`.76397640          - `"web_search"`76417642          - `"web_search_2025_08_26"`76437644        - `external_web_access: optional boolean`76457646          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.76477648        - `filters: optional object { allowed_domains }  or null`76497650          Filters for the search.76517652          - `allowed_domains: optional array of string or null`76537654            Allowed domains for the search. If not provided, all domains are allowed.7655            Subdomains of the provided domains are allowed as well.76567657            Example: `["pubmed.ncbi.nlm.nih.gov"]`76587659        - `search_context_size: optional "low" or "medium" or "high"`76607661          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.76627663          - `"low"`76647665          - `"medium"`76667667          - `"high"`76687669        - `user_location: optional object { city, country, region, 2 more }  or null`76707671          The approximate location of the user.76727673          - `city: optional string or null`76747675            Free text input for the city of the user, e.g. `San Francisco`.76767677          - `country: optional string or null`76787679            The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.76807681          - `region: optional string or null`76827683            Free text input for the region of the user, e.g. `California`.76847685          - `timezone: optional string or null`76867687            The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.76887689          - `type: optional "approximate"`76907691            The type of location approximation. Always `approximate`.76927693            - `"approximate"`76947695      - `Mcp object { server_label, type, allowed_callers, 9 more }`76967697        Give the model access to additional tools via remote Model Context Protocol7698        (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).76997700        - `server_label: string`77017702          A label for this MCP server, used to identify it in tool calls.77037704        - `type: "mcp"`77057706          The type of the MCP tool. Always `mcp`.77077708          - `"mcp"`77097710        - `allowed_callers: optional array of "direct" or "programmatic" or null`77117712          The tool invocation context(s).77137714          - `"direct"`77157716          - `"programmatic"`77177718        - `allowed_tools: optional array of string or object { read_only, tool_names }  or null`77197720          List of allowed tool names or a filter object.77217722          - `McpAllowedTools = array of string`77237724            A string array of allowed tool names77257726          - `McpToolFilter object { read_only, tool_names }`77277728            A filter object to specify which tools are allowed.77297730            - `read_only: optional boolean`77317732              Indicates whether or not a tool modifies data or is read-only. If an7733              MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),7734              it will match this filter.77357736            - `tool_names: optional array of string`77377738              List of allowed tool names.77397740        - `authorization: optional string`77417742          An OAuth access token that can be used with a remote MCP server, either7743          with a custom MCP server URL or a service connector. Your application7744          must handle the OAuth authorization flow and provide the token here.77457746        - `connector_id: optional "connector_dropbox" or "connector_gmail" or "connector_googlecalendar" or 5 more`77477748          Identifier for service connectors, like those available in ChatGPT. One of7749          `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more7750          about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).77517752          This field is deprecated for models released after September 1, 2026.7753          Use `server_url` to connect to a remote MCP server, or `tunnel_id` to7754          connect through a Secure MCP Tunnel.77557756          Currently supported `connector_id` values are:77577758          - Dropbox: `connector_dropbox`7759          - Gmail: `connector_gmail`7760          - Google Calendar: `connector_googlecalendar`7761          - Google Drive: `connector_googledrive`7762          - Microsoft Teams: `connector_microsoftteams`7763          - Outlook Calendar: `connector_outlookcalendar`7764          - Outlook Email: `connector_outlookemail`7765          - SharePoint: `connector_sharepoint`77667767          - `"connector_dropbox"`77687769          - `"connector_gmail"`77707771          - `"connector_googlecalendar"`77727773          - `"connector_googledrive"`77747775          - `"connector_microsoftteams"`77767777          - `"connector_outlookcalendar"`77787779          - `"connector_outlookemail"`77807781          - `"connector_sharepoint"`77827783        - `defer_loading: optional boolean`77847785          Whether this MCP tool is deferred and discovered via tool search.77867787        - `headers: optional map[string] or null`77887789          Optional HTTP headers to send to the MCP server. Use for authentication7790          or other purposes.77917792        - `require_approval: optional object { always, never }  or "always" or "never" or null`77937794          Specify which of the MCP server's tools require approval.77957796          - `McpToolApprovalFilter object { always, never }`77977798            Specify which of the MCP server's tools require approval. Can be7799            `always`, `never`, or a filter object associated with tools7800            that require approval.78017802            - `always: optional object { read_only, tool_names }`78037804              A filter object to specify which tools are allowed.78057806              - `read_only: optional boolean`78077808                Indicates whether or not a tool modifies data or is read-only. If an7809                MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),7810                it will match this filter.78117812              - `tool_names: optional array of string`78137814                List of allowed tool names.78157816            - `never: optional object { read_only, tool_names }`78177818              A filter object to specify which tools are allowed.78197820              - `read_only: optional boolean`78217822                Indicates whether or not a tool modifies data or is read-only. If an7823                MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),7824                it will match this filter.78257826              - `tool_names: optional array of string`78277828                List of allowed tool names.78297830          - `McpToolApprovalSetting = "always" or "never"`78317832            Specify a single approval policy for all tools. One of `always` or7833            `never`. When set to `always`, all tools will require approval. When7834            set to `never`, all tools will not require approval.78357836            - `"always"`78377838            - `"never"`78397840        - `server_description: optional string`78417842          Optional description of the MCP server, used to provide more context.78437844        - `server_url: optional string`78457846          The URL for the MCP server. One of `server_url`, `connector_id`, or7847          `tunnel_id` must be provided.78487849        - `tunnel_id: optional string`78507851          The Secure MCP Tunnel ID to use instead of a direct server URL. One of7852          `server_url`, `connector_id`, or `tunnel_id` must be provided.78537854      - `CodeInterpreter object { container, type, allowed_callers }`78557856        A tool that runs Python code to help generate a response to a prompt.78577858        - `container: string or object { type, file_ids, memory_limit, network_policy }`78597860          The code interpreter container. Can be a container ID or an object that7861          specifies uploaded file IDs to make available to your code, along with an7862          optional `memory_limit` setting.78637864          - `string`78657866            The container ID.78677868          - `CodeInterpreterToolAuto object { type, file_ids, memory_limit, network_policy }`78697870            Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.78717872            - `type: "auto"`78737874              Always `auto`.78757876              - `"auto"`78777878            - `file_ids: optional array of string`78797880              An optional list of uploaded files to make available to your code.78817882            - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`78837884              The memory limit for the code interpreter container.78857886              - `"1g"`78877888              - `"4g"`78897890              - `"16g"`78917892              - `"64g"`78937894            - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`78957896              Network access policy for the container.78977898              - `ContainerNetworkPolicyDisabled object { type }`78997900              - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`79017902        - `type: "code_interpreter"`79037904          The type of the code interpreter tool. Always `code_interpreter`.79057906          - `"code_interpreter"`79077908        - `allowed_callers: optional array of "direct" or "programmatic" or null`79097910          The tool invocation context(s).79117912          - `"direct"`79137914          - `"programmatic"`79157916      - `ProgrammaticToolCalling object { type }`79177918        - `type: "programmatic_tool_calling"`79197920          The type of the tool. Always `programmatic_tool_calling`.79217922          - `"programmatic_tool_calling"`79237924      - `ImageGeneration object { type, action, background, 9 more }`79257926        A tool that generates images using the GPT image models.79277928        - `type: "image_generation"`79297930          The type of the image generation tool. Always `image_generation`.79317932          - `"image_generation"`79337934        - `action: optional "generate" or "edit" or "auto"`79357936          Whether to generate a new image or edit an existing image. Default: `auto`.79377938          - `"generate"`79397940          - `"edit"`79417942          - `"auto"`79437944        - `background: optional "transparent" or "opaque" or "auto"`79457946          Set the background of the generated image. One of `transparent`, `opaque`,7947          or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including7948          their `2026-09-08` snapshots, support `opaque` and `transparent`7949          backgrounds. Transparent backgrounds are available for supported GPT Image7950          models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in7951          preview. When using `transparent`, set the output format to `png` or `webp`.7952          Default: `auto`.79537954          - `"transparent"`79557956          - `"opaque"`79577958          - `"auto"`79597960        - `input_fidelity: optional "high" or "low" or null`79617962          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`.79637964          - `"high"`79657966          - `"low"`79677968        - `input_image_mask: optional object { file_id, image_url }`79697970          Optional mask for inpainting. Contains `image_url`7971          (string, optional) and `file_id` (string, optional).79727973          - `file_id: optional string`79747975            File ID for the mask image.79767977          - `image_url: optional string`79787979            Base64-encoded mask image.79807981        - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`79827983          The image generation model to use. One of `gpt-image-1`,7984          `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,7985          `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,7986          `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,7987          `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:7988          `gpt-image-1`.79897990          - `string`79917992          - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`79937994            The image generation model to use. One of `gpt-image-1`,7995            `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,7996            `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,7997            `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,7998            `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:7999            `gpt-image-1`.80008001            - `"gpt-image-1"`80028003            - `"gpt-image-1-mini"`80048005            - `"gpt-image-1.5"`80068007            - `"gpt-image-2"`80088009            - `"gpt-image-2-2026-04-21"`80108011            - `"gpt-image-2.5-sunburst"`80128013            - `"gpt-image-2.5-sunburst-2026-09-08"`80148015            - `"gpt-image-2.5-flare"`80168017            - `"gpt-image-2.5-flare-2026-09-08"`80188019        - `moderation: optional "auto" or "low"`80208021          Moderation level for the generated image. Default: `auto`.80228023          - `"auto"`80248025          - `"low"`80268027        - `output_compression: optional number`80288029          Compression level for the output image. Default: 100.80308031        - `output_format: optional "png" or "webp" or "jpeg"`80328033          The output format of the generated image. One of `png`, `webp`, or8034          `jpeg`. Default: `png`.80358036          - `"png"`80378038          - `"webp"`80398040          - `"jpeg"`80418042        - `partial_images: optional number`80438044          Number of partial images to generate in streaming mode, from 0 (default value) to 3.80458046        - `quality: optional "low" or "medium" or "high" or 3 more`80478048          The quality of the generated image. The GPT image models support `low`,8049          `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,8050          including their `2026-09-08` snapshots, also support `xhigh` and `max`.8051          Default: `auto`.80528053          - `"low"`80548055          - `"medium"`80568057          - `"high"`80588059          - `"xhigh"`80608061          - `"max"`80628063          - `"auto"`80648065        - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`80668067          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`.80688069          - `string`80708071          - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`80728073            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`.80748075            - `"1024x1024"`80768077            - `"1024x1536"`80788079            - `"1536x1024"`80808081            - `"auto"`80828083      - `LocalShell object { type }`80848085        A tool that allows the model to execute shell commands in a local environment.80868087        - `type: "local_shell"`80888089          The type of the local shell tool. Always `local_shell`.80908091          - `"local_shell"`80928093      - `Shell object { type, allowed_callers, environment }`80948095        A tool that allows the model to execute shell commands.80968097        - `type: "shell"`80988099          The type of the shell tool. Always `shell`.81008101          - `"shell"`81028103        - `allowed_callers: optional array of "direct" or "programmatic" or null`81048105          The tool invocation context(s).81068107          - `"direct"`81088109          - `"programmatic"`81108111        - `environment: optional ContainerAuto or LocalEnvironment or ContainerReference or null`81128113          - `ContainerAuto object { type, file_ids, memory_limit, 2 more }`81148115          - `LocalEnvironment object { type, skills }`81168117          - `ContainerReference object { container_id, type }`81188119      - `Custom object { name, type, allowed_callers, 4 more }`81208121        A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)81228123        - `name: string`81248125          The name of the custom tool, used to identify it in tool calls.81268127        - `type: "custom"`81288129          The type of the custom tool. Always `custom`.81308131          - `"custom"`81328133        - `allowed_callers: optional array of "direct" or "programmatic" or null`81348135          The tool invocation context(s).81368137          - `"direct"`81388139          - `"programmatic"`81408141        - `async: optional boolean`81428143          Whether the tool response can be returned asynchronously versus immediately returned on next response creation.81448145        - `defer_loading: optional boolean`81468147          Whether this tool should be deferred and discovered via tool search.81488149        - `description: optional string`81508151          Optional description of the custom tool, used to provide more context.81528153        - `format: optional CustomToolInputFormat`81548155          The input format for the custom tool. Default is unconstrained text.81568157      - `Namespace object { description, name, tools, type }`81588159        Groups function/custom tools under a shared namespace.81608161        - `description: string`81628163          A description of the namespace shown to the model.81648165        - `name: string`81668167          The namespace name used in tool calls (for example, `crm`).81688169        - `tools: array of object { name, type, allowed_callers, 6 more }  or object { name, type, allowed_callers, 4 more }`81708171          The function/custom tools available inside this namespace.81728173          - `Function object { name, type, allowed_callers, 6 more }`81748175            - `name: string`81768177            - `type: "function"`81788179              - `"function"`81808181            - `allowed_callers: optional array of "direct" or "programmatic" or null`81828183              The tool invocation context(s).81848185              - `"direct"`81868187              - `"programmatic"`81888189            - `async: optional boolean`81908191              Whether the tool response can be returned asynchronously versus immediately returned on next response creation.81928193            - `defer_loading: optional boolean`81948195              Whether this function should be deferred and discovered via tool search.81968197            - `description: optional string or null`81988199            - `output_schema: optional map[unknown] or null`82008201              A JSON Schema describing the JSON value encoded in string outputs for this function tool. This does not describe content-array outputs.82028203            - `parameters: optional unknown or null`82048205            - `strict: optional boolean or null`82068207              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.82088209          - `Custom object { name, type, allowed_callers, 4 more }`82108211            A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)82128213            - `name: string`82148215              The name of the custom tool, used to identify it in tool calls.82168217            - `type: "custom"`82188219              The type of the custom tool. Always `custom`.82208221              - `"custom"`82228223            - `allowed_callers: optional array of "direct" or "programmatic" or null`82248225              The tool invocation context(s).82268227              - `"direct"`82288229              - `"programmatic"`82308231            - `async: optional boolean`82328233              Whether the tool response can be returned asynchronously versus immediately returned on next response creation.82348235            - `defer_loading: optional boolean`82368237              Whether this tool should be deferred and discovered via tool search.82388239            - `description: optional string`82408241              Optional description of the custom tool, used to provide more context.82428243            - `format: optional CustomToolInputFormat`82448245              The input format for the custom tool. Default is unconstrained text.82468247        - `type: "namespace"`82488249          The type of the tool. Always `namespace`.82508251          - `"namespace"`82528253      - `ToolSearch object { type, description, execution, parameters }`82548255        Hosted or BYOT tool search configuration for deferred tools.82568257        - `type: "tool_search"`82588259          The type of the tool. Always `tool_search`.82608261          - `"tool_search"`82628263        - `description: optional string or null`82648265          Description shown to the model for a client-executed tool search tool.82668267        - `execution: optional "server" or "client"`82688269          Whether tool search is executed by the server or by the client.82708271          - `"server"`82728273          - `"client"`82748275        - `parameters: optional unknown or null`82768277          Parameter schema for a client-executed tool search tool.82788279      - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`82808281        This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](/api/docs/guides/tools-web-search).82828283        - `type: "web_search_preview" or "web_search_preview_2025_03_11"`82848285          The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.82868287          - `"web_search_preview"`82888289          - `"web_search_preview_2025_03_11"`82908291        - `search_content_types: optional array of "text" or "image"`82928293          - `"text"`82948295          - `"image"`82968297        - `search_context_size: optional "low" or "medium" or "high"`82988299          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.83008301          - `"low"`83028303          - `"medium"`83048305          - `"high"`83068307        - `user_location: optional object { type, city, country, 2 more }  or null`83088309          The user's location.83108311          - `type: "approximate"`83128313            The type of location approximation. Always `approximate`.83148315            - `"approximate"`83168317          - `city: optional string or null`83188319            Free text input for the city of the user, e.g. `San Francisco`.83208321          - `country: optional string or null`83228323            The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.83248325          - `region: optional string or null`83268327            Free text input for the region of the user, e.g. `California`.83288329          - `timezone: optional string or null`83308331            The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.83328333      - `ApplyPatch object { type, allowed_callers }`83348335        Allows the assistant to create, delete, or update files using unified diffs.83368337        - `type: "apply_patch"`83388339          The type of the tool. Always `apply_patch`.83408341          - `"apply_patch"`83428343        - `allowed_callers: optional array of "direct" or "programmatic" or null`83448345          The tool invocation context(s).83468347          - `"direct"`83488349          - `"programmatic"`83508351    - `type: "additional_tools"`83528353      The item type. Always `additional_tools`.83548355      - `"additional_tools"`83568357    - `id: optional string or null`83588359      The unique ID of this additional tools item.83608361  - `ConfigurationUpdate object { type, id, reasoning }`83628363    An update to the conversation's response configuration. The configuration8364    remains in effect for subsequent responses until it is replaced by another8365    configuration update.83668367    - `type: "configuration_update"`83688369      The item type. Always `configuration_update`.83708371      - `"configuration_update"`83728373    - `id: optional string or null`83748375      The unique ID of the configuration update item.83768377    - `reasoning: optional object { effort }`83788379      Updates to reasoning configuration. Only effort is supported.83808381      - `effort: optional ReasoningEffort or null`83828383        The reasoning effort to use for subsequent responses until another8384        configuration update replaces it.83858386        - `"none"`83878388        - `"minimal"`83898390        - `"low"`83918392        - `"medium"`83938394        - `"high"`83958396        - `"xhigh"`83978398        - `"max"`83998400  - `Reasoning object { id, summary, type, 3 more }`84018402    A description of the chain of thought used by a reasoning model while generating8403    a response. Be sure to include these items in your `input` to the Responses API8404    for subsequent turns of a conversation if you are manually8405    [managing context](/api/docs/guides/conversation-state).84068407    - `id: string`84088409      The unique identifier of the reasoning content.84108411    - `summary: array of SummaryTextContent`84128413      Reasoning summary content.84148415      - `text: string`84168417        A summary of the reasoning output from the model so far.84188419      - `type: "summary_text"`84208421        The type of the object. Always `summary_text`.84228423        - `"summary_text"`84248425    - `type: "reasoning"`84268427      The type of the object. Always `reasoning`.84288429      - `"reasoning"`84308431    - `content: optional array of object { text, type }`84328433      Reasoning text content.84348435      - `text: string`84368437        The reasoning text from the model.84388439      - `type: "reasoning_text"`84408441        The type of the reasoning text. Always `reasoning_text`.84428443        - `"reasoning_text"`84448445    - `encrypted_content: optional string or null`84468447      The encrypted content of the reasoning item. This is populated by default8448      for reasoning items returned by `POST /v1/responses` and WebSocket8449      `response.create` requests.84508451      When streaming, use the completed reasoning item and its8452      `encrypted_content` from the `response.output_item.done` event in8453      subsequent requests. The `encrypted_content` in8454      `response.output_item.added` may be incomplete. This is especially8455      important when `store` is `false` or when using Zero Data Retention.84568457    - `status: optional "in_progress" or "completed" or "incomplete"`84588459      The status of the item. One of `in_progress`, `completed`, or8460      `incomplete`. Populated when items are returned via API.84618462      - `"in_progress"`84638464      - `"completed"`84658466      - `"incomplete"`84678468  - `Compaction object { encrypted_content, type, id }`84698470    A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).84718472    - `encrypted_content: string`84738474      The encrypted content of the compaction summary.84758476    - `type: "compaction"`84778478      The type of the item. Always `compaction`.84798480      - `"compaction"`84818482    - `id: optional string or null`84838484      The ID of the compaction item.84858486  - `ImageGenerationCall object { id, result, status, 7 more }`84878488    An image generation request made by the model.84898490    - `id: string`84918492      The unique ID of the image generation call.84938494    - `result: string or null`84958496      The generated image encoded in base64.84978498    - `status: "in_progress" or "completed" or "generating" or "failed"`84998500      The status of the image generation call.85018502      - `"in_progress"`85038504      - `"completed"`85058506      - `"generating"`85078508      - `"failed"`85098510    - `type: "image_generation_call"`85118512      The type of the image generation call. Always `image_generation_call`.85138514      - `"image_generation_call"`85158516    - `action: optional "generate" or "edit" or "auto" or null`85178518      The action used for image generation.85198520      - `"generate"`85218522      - `"edit"`85238524      - `"auto"`85258526    - `background: optional "transparent" or "opaque" or "auto" or null`85278528      The background setting used for generation.85298530      - `"transparent"`85318532      - `"opaque"`85338534      - `"auto"`85358536    - `output_format: optional "png" or "webp" or "jpeg" or null`85378538      The output format used for generation.85398540      - `"png"`85418542      - `"webp"`85438544      - `"jpeg"`85458546    - `quality: optional "low" or "medium" or "high" or 3 more or null`85478548      The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.85498550      - `"low"`85518552      - `"medium"`85538554      - `"high"`85558556      - `"xhigh"`85578558      - `"max"`85598560      - `"auto"`85618562    - `revised_prompt: optional string or null`85638564      The prompt that was used after any model prompt rewriting.85658566    - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`85678568      The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.85698570      - `string`85718572      - `"1024x1024" or "1024x1536" or "1536x1024"`85738574        The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.85758576        - `"1024x1024"`85778578        - `"1024x1536"`85798580        - `"1536x1024"`85818582  - `CodeInterpreterCall object { id, code, container_id, 3 more }`85838584    A tool call to run code.85858586    - `id: string`85878588      The unique ID of the code interpreter tool call.85898590    - `code: string or null`85918592      The code to run, or null if not available.85938594    - `container_id: string`85958596      The ID of the container used to run the code.85978598    - `outputs: array of object { logs, type }  or object { type, url }  or null`85998600      The outputs generated by the code interpreter, such as logs or images.8601      Can be null if no outputs are available.86028603      - `Logs object { logs, type }`86048605        The logs output from the code interpreter.86068607        - `logs: string`86088609          The logs output from the code interpreter.86108611        - `type: "logs"`86128613          The type of the output. Always `logs`.86148615          - `"logs"`86168617      - `Image object { type, url }`86188619        The image output from the code interpreter.86208621        - `type: "image"`86228623          The type of the output. Always `image`.86248625          - `"image"`86268627        - `url: string`86288629          The URL of the image output from the code interpreter.86308631    - `status: "in_progress" or "completed" or "incomplete" or 2 more`86328633      The status of the code interpreter tool call. Valid values are `in_progress`, `completed`, `incomplete`, `interpreting`, and `failed`.86348635      - `"in_progress"`86368637      - `"completed"`86388639      - `"incomplete"`86408641      - `"interpreting"`86428643      - `"failed"`86448645    - `type: "code_interpreter_call"`86468647      The type of the code interpreter tool call. Always `code_interpreter_call`.86488649      - `"code_interpreter_call"`86508651  - `LocalShellCall object { id, action, call_id, 2 more }`86528653    A tool call to run a command on the local shell.86548655    - `id: string`86568657      The unique ID of the local shell call.86588659    - `action: object { command, env, type, 3 more }`86608661      Execute a shell command on the server.86628663      - `command: array of string`86648665        The command to run.86668667      - `env: map[string]`86688669        Environment variables to set for the command.86708671      - `type: "exec"`86728673        The type of the local shell action. Always `exec`.86748675        - `"exec"`86768677      - `timeout_ms: optional number or null`86788679        Optional timeout in milliseconds for the command.86808681      - `user: optional string or null`86828683        Optional user to run the command as.86848685      - `working_directory: optional string or null`86868687        Optional working directory to run the command in.86888689    - `call_id: string`86908691      The unique ID of the local shell tool call generated by the model.86928693    - `status: "in_progress" or "completed" or "incomplete"`86948695      The status of the local shell call.86968697      - `"in_progress"`86988699      - `"completed"`87008701      - `"incomplete"`87028703    - `type: "local_shell_call"`87048705      The type of the local shell call. Always `local_shell_call`.87068707      - `"local_shell_call"`87088709  - `LocalShellCallOutput object { id, output, type, status }`87108711    The output of a local shell tool call.87128713    - `id: string`87148715      The unique ID of the local shell tool call generated by the model.87168717    - `output: string`87188719      A JSON string of the output of the local shell tool call.87208721    - `type: "local_shell_call_output"`87228723      The type of the local shell tool call output. Always `local_shell_call_output`.87248725      - `"local_shell_call_output"`87268727    - `status: optional "in_progress" or "completed" or "incomplete" or null`87288729      The status of the item. One of `in_progress`, `completed`, or `incomplete`.87308731      - `"in_progress"`87328733      - `"completed"`87348735      - `"incomplete"`87368737  - `ShellCall object { action, call_id, type, 4 more }`87388739    A tool representing a request to execute one or more shell commands.87408741    - `action: object { commands, max_output_length, timeout_ms }`87428743      The shell commands and limits that describe how to run the tool call.87448745      - `commands: array of string`87468747        Ordered shell commands for the execution environment to run.87488749      - `max_output_length: optional number or null`87508751        Maximum number of UTF-8 characters to capture from combined stdout and stderr output.87528753      - `timeout_ms: optional number or null`87548755        Maximum wall-clock time in milliseconds to allow the shell commands to run.87568757    - `call_id: string`87588759      The unique ID of the shell tool call generated by the model.87608761    - `type: "shell_call"`87628763      The type of the item. Always `shell_call`.87648765      - `"shell_call"`87668767    - `id: optional string or null`87688769      The unique ID of the shell tool call. Populated when this item is returned via API.87708771    - `caller: optional object { type }  or object { caller_id, type }  or null`87728773      The execution context that produced this tool call.87748775      - `Direct object { type }`87768777        - `type: "direct"`87788779          The caller type. Always `direct`.87808781          - `"direct"`87828783      - `Program object { caller_id, type }`87848785        - `caller_id: string`87868787          The call ID of the program item that produced this tool call.87888789        - `type: "program"`87908791          The caller type. Always `program`.87928793          - `"program"`87948795    - `environment: optional LocalEnvironment or ContainerReference or null`87968797      The environment to execute the shell commands in.87988799      - `LocalEnvironment object { type, skills }`88008801      - `ContainerReference object { container_id, type }`88028803    - `status: optional "in_progress" or "completed" or "incomplete" or null`88048805      The status of the shell call. One of `in_progress`, `completed`, or `incomplete`.88068807      - `"in_progress"`88088809      - `"completed"`88108811      - `"incomplete"`88128813  - `ShellCallOutput object { call_id, output, type, 4 more }`88148815    The streamed output items emitted by a shell tool call.88168817    - `call_id: string`88188819      The unique ID of the shell tool call generated by the model.88208821    - `output: array of ResponseFunctionShellCallOutputContent`88228823      Captured chunks of stdout and stderr output, along with their associated outcomes.88248825      - `outcome: object { type }  or object { exit_code, type }`88268827        The exit or timeout outcome associated with this shell call.88288829        - `Timeout object { type }`88308831          Indicates that the shell call exceeded its configured time limit.88328833          - `type: "timeout"`88348835            The outcome type. Always `timeout`.88368837            - `"timeout"`88388839        - `Exit object { exit_code, type }`88408841          Indicates that the shell commands finished and returned an exit code.88428843          - `exit_code: number`88448845            The exit code returned by the shell process.88468847          - `type: "exit"`88488849            The outcome type. Always `exit`.88508851            - `"exit"`88528853      - `stderr: string`88548855        Captured stderr output for the shell call.88568857      - `stdout: string`88588859        Captured stdout output for the shell call.88608861    - `type: "shell_call_output"`88628863      The type of the item. Always `shell_call_output`.88648865      - `"shell_call_output"`88668867    - `id: optional string or null`88688869      The unique ID of the shell tool call output. Populated when this item is returned via API.88708871    - `caller: optional object { type }  or object { caller_id, type }  or null`88728873      The execution context that produced this tool call.88748875      - `Direct object { type }`88768877        - `type: "direct"`88788879          The caller type. Always `direct`.88808881          - `"direct"`88828883      - `Program object { caller_id, type }`88848885        - `caller_id: string`88868887          The call ID of the program item that produced this tool call.88888889        - `type: "program"`88908891          The caller type. Always `program`.88928893          - `"program"`88948895    - `max_output_length: optional number or null`88968897      The maximum number of UTF-8 characters captured for this shell call's combined output.88988899    - `status: optional "in_progress" or "completed" or "incomplete" or null`89008901      The status of the shell call output.89028903      - `"in_progress"`89048905      - `"completed"`89068907      - `"incomplete"`89088909  - `ApplyPatchCall object { call_id, operation, status, 3 more }`89108911    A tool call representing a request to create, delete, or update files using diff patches.89128913    - `call_id: string`89148915      The unique ID of the apply patch tool call generated by the model.89168917    - `operation: object { diff, path, type }  or object { path, type }  or object { diff, path, type }`89188919      The specific create, delete, or update instruction for the apply_patch tool call.89208921      - `CreateFile object { diff, path, type }`89228923        Instruction for creating a new file via the apply_patch tool.89248925        - `diff: string`89268927          Unified diff content to apply when creating the file.89288929        - `path: string`89308931          Path of the file to create relative to the workspace root.89328933        - `type: "create_file"`89348935          The operation type. Always `create_file`.89368937          - `"create_file"`89388939      - `DeleteFile object { path, type }`89408941        Instruction for deleting an existing file via the apply_patch tool.89428943        - `path: string`89448945          Path of the file to delete relative to the workspace root.89468947        - `type: "delete_file"`89488949          The operation type. Always `delete_file`.89508951          - `"delete_file"`89528953      - `UpdateFile object { diff, path, type }`89548955        Instruction for updating an existing file via the apply_patch tool.89568957        - `diff: string`89588959          Unified diff content to apply to the existing file.89608961        - `path: string`89628963          Path of the file to update relative to the workspace root.89648965        - `type: "update_file"`89668967          The operation type. Always `update_file`.89688969          - `"update_file"`89708971    - `status: "in_progress" or "completed"`89728973      The status of the apply patch tool call. One of `in_progress` or `completed`.89748975      - `"in_progress"`89768977      - `"completed"`89788979    - `type: "apply_patch_call"`89808981      The type of the item. Always `apply_patch_call`.89828983      - `"apply_patch_call"`89848985    - `id: optional string or null`89868987      The unique ID of the apply patch tool call. Populated when this item is returned via API.89888989    - `caller: optional object { type }  or object { caller_id, type }  or null`89908991      The execution context that produced this tool call.89928993      - `Direct object { type }`89948995        - `type: "direct"`89968997          The caller type. Always `direct`.89988999          - `"direct"`90009001      - `Program object { caller_id, type }`90029003        - `caller_id: string`90049005          The call ID of the program item that produced this tool call.90069007        - `type: "program"`90089009          The caller type. Always `program`.90109011          - `"program"`90129013  - `ApplyPatchCallOutput object { call_id, status, type, 3 more }`90149015    The streamed output emitted by an apply patch tool call.90169017    - `call_id: string`90189019      The unique ID of the apply patch tool call generated by the model.90209021    - `status: "completed" or "failed"`90229023      The status of the apply patch tool call output. One of `completed` or `failed`.90249025      - `"completed"`90269027      - `"failed"`90289029    - `type: "apply_patch_call_output"`90309031      The type of the item. Always `apply_patch_call_output`.90329033      - `"apply_patch_call_output"`90349035    - `id: optional string or null`90369037      The unique ID of the apply patch tool call output. Populated when this item is returned via API.90389039    - `caller: optional object { type }  or object { caller_id, type }  or null`90409041      The execution context that produced this tool call.90429043      - `Direct object { type }`90449045        - `type: "direct"`90469047          The caller type. Always `direct`.90489049          - `"direct"`90509051      - `Program object { caller_id, type }`90529053        - `caller_id: string`90549055          The call ID of the program item that produced this tool call.90569057        - `type: "program"`90589059          The caller type. Always `program`.90609061          - `"program"`90629063    - `output: optional string or null`90649065      Optional human-readable log text from the apply patch tool (e.g., patch results or errors).90669067  - `McpListTools object { id, server_label, tools, 2 more }`90689069    A list of tools available on an MCP server.90709071    - `id: string`90729073      The unique ID of the list.90749075    - `server_label: string`90769077      The label of the MCP server.90789079    - `tools: array of object { input_schema, name, annotations, description }`90809081      The tools available on the server.90829083      - `input_schema: unknown`90849085        The JSON schema describing the tool's input.90869087      - `name: string`90889089        The name of the tool.90909091      - `annotations: optional unknown or null`90929093        Additional annotations about the tool.90949095      - `description: optional string or null`90969097        The description of the tool.90989099    - `type: "mcp_list_tools"`91009101      The type of the item. Always `mcp_list_tools`.91029103      - `"mcp_list_tools"`91049105    - `error: optional string or null`91069107      Error message if the server could not list tools.91089109  - `McpApprovalRequest object { id, arguments, name, 2 more }`91109111    A request for human approval of a tool invocation.91129113    - `id: string`91149115      The unique ID of the approval request.91169117    - `arguments: string`91189119      A JSON string of arguments for the tool.91209121    - `name: string`91229123      The name of the tool to run.91249125    - `server_label: string`91269127      The label of the MCP server making the request.91289129    - `type: "mcp_approval_request"`91309131      The type of the item. Always `mcp_approval_request`.91329133      - `"mcp_approval_request"`91349135  - `McpApprovalResponse object { approval_request_id, approve, type, 2 more }`91369137    A response to an MCP approval request.91389139    - `approval_request_id: string`91409141      The ID of the approval request being answered.91429143    - `approve: boolean`91449145      Whether the request was approved.91469147    - `type: "mcp_approval_response"`91489149      The type of the item. Always `mcp_approval_response`.91509151      - `"mcp_approval_response"`91529153    - `id: optional string or null`91549155      The unique ID of the approval response91569157    - `reason: optional string or null`91589159      Optional reason for the decision.91609161  - `McpCall object { id, arguments, name, 6 more }`91629163    An invocation of a tool on an MCP server.91649165    - `id: string`91669167      The unique ID of the tool call.91689169    - `arguments: string`91709171      A JSON string of the arguments passed to the tool.91729173    - `name: string`91749175      The name of the tool that was run.91769177    - `server_label: string`91789179      The label of the MCP server running the tool.91809181    - `type: "mcp_call"`91829183      The type of the item. Always `mcp_call`.91849185      - `"mcp_call"`91869187    - `approval_request_id: optional string or null`91889189      Unique identifier for the MCP tool call approval request.9190      Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.91919192    - `error: optional McpToolCallError or null`91939194      The error from the tool call, if any.91959196      - `McpProtocolError object { code, message, type }`91979198        - `code: number`91999200        - `message: string`92019202        - `type: "mcp_protocol_error"`92039204          - `"mcp_protocol_error"`92059206      - `McpToolExecutionError object { content, type }`92079208        - `content: unknown`92099210        - `type: "mcp_tool_execution_error"`92119212          - `"mcp_tool_execution_error"`92139214      - `HTTPError object { code, message, type }`92159216        - `code: number`92179218        - `message: string`92199220        - `type: "http_error"`92219222          - `"http_error"`92239224    - `output: optional string or null`92259226      The output from the tool call.92279228    - `status: optional "in_progress" or "completed" or "incomplete" or 2 more`92299230      The status of the tool call. One of `in_progress`, `completed`, `incomplete`, `calling`, or `failed`.92319232      - `"in_progress"`92339234      - `"completed"`92359236      - `"incomplete"`92379238      - `"calling"`92399240      - `"failed"`92419242  - `CustomToolCallOutput object { call_id, output, type, 2 more }`92439244    The output of a custom tool call from your code, being sent back to the model.92459246    - `call_id: string`92479248      The call ID, used to map this custom tool call output to a custom tool call.92499250    - `output: string or array of ResponseInputText or ResponseInputImage or ResponseInputFile`92519252      The output from the custom tool call generated by your code.9253      Can be a string or an list of output content.92549255      - `StringOutput = string`92569257        A string of the output of the custom tool call.92589259      - `OutputContentList = array of ResponseInputText or ResponseInputImage or ResponseInputFile`92609261        Text, image, or file output of the custom tool call.92629263        - `ResponseInputText object { text, type, prompt_cache_breakpoint }`92649265          A text input to the model.92669267        - `ResponseInputImage object { detail, type, file_id, 2 more }`92689269          An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).92709271        - `ResponseInputFile object { type, detail, file_data, 4 more }`92729273          A file input to the model.92749275    - `type: "custom_tool_call_output"`92769277      The type of the custom tool call output. Always `custom_tool_call_output`.92789279      - `"custom_tool_call_output"`92809281    - `id: optional string`92829283      The unique ID of the custom tool call output in the OpenAI platform.92849285    - `caller: optional object { type }  or object { caller_id, type }  or null`92869287      The execution context that produced this tool call.92889289      - `Direct object { type }`92909291        - `type: "direct"`92929293          The caller type. Always `direct`.92949295          - `"direct"`92969297      - `Program object { caller_id, type }`92989299        - `caller_id: string`93009301          The call ID of the program item that produced this tool call.93029303        - `type: "program"`93049305          The caller type. Always `program`.93069307          - `"program"`93089309  - `CustomToolCall object { call_id, input, name, 5 more }`93109311    A call to a custom tool created by the model.93129313    - `call_id: string`93149315      An identifier used to map this custom tool call to a tool call output.93169317    - `input: string`93189319      The input for the custom tool call generated by the model.93209321    - `name: string`93229323      The name of the custom tool being called.93249325    - `type: "custom_tool_call"`93269327      The type of the custom tool call. Always `custom_tool_call`.93289329      - `"custom_tool_call"`93309331    - `id: optional string`93329333      The unique ID of the custom tool call in the OpenAI platform.93349335    - `async: optional boolean`93369337      Whether the custom tool call runs asynchronously.93389339    - `caller: optional object { type }  or object { caller_id, type }  or null`93409341      The execution context that produced this tool call.93429343      - `Direct object { type }`93449345        - `type: "direct"`93469347          - `"direct"`93489349      - `Program object { caller_id, type }`93509351        - `caller_id: string`93529353          The call ID of the program item that produced this tool call.93549355        - `type: "program"`93569357          - `"program"`93589359    - `namespace: optional string`93609361      The namespace of the custom tool being called.93629363  - `CompactionTrigger object { type, id }`93649365    Compacts the current context. Must be the final input item.93669367    - `type: "compaction_trigger"`93689369      The type of the item. Always `compaction_trigger`.93709371      - `"compaction_trigger"`93729373    - `id: optional string or null`93749375      The unique ID of this compaction trigger.93769377  - `ItemReference object { id, type }`93789379    An internal identifier for an item to reference.93809381    - `id: string`93829383      The ID of the item to reference.93849385    - `type: optional "item_reference" or null`93869387      The type of item to reference. Always `item_reference`.93889389      - `"item_reference"`93909391  - `Program object { id, call_id, code, 2 more }`93929393    - `id: string`93949395      The unique ID of this program item.93969397    - `call_id: string`93989399      The stable call ID of the program item.94009401    - `code: string`94029403      The JavaScript source executed by programmatic tool calling.94049405    - `fingerprint: string`94069407      Opaque program replay fingerprint that must be round-tripped.94089409    - `type: "program"`94109411      The item type. Always `program`.94129413      - `"program"`94149415  - `ProgramOutput object { id, call_id, result, 2 more }`94169417    - `id: string`94189419      The unique ID of this program output item.94209421    - `call_id: string`94229423      The call ID of the program item.94249425    - `result: string`94269427      The result produced by the program item.94289429    - `status: "completed" or "incomplete"`94309431      The terminal status of the program output.94329433      - `"completed"`94349435      - `"incomplete"`94369437    - `type: "program_output"`94389439      The item type. Always `program_output`.94409441      - `"program_output"`94429443### Returns94449445- `ConversationItemList object { data, first_id, has_more, 2 more }`94469447  A list of Conversation items.94489449  - `data: array of ConversationItem`94509451    A list of conversation items.94529453    - `Message object { id, content, role, 3 more }`94549455      A message to or from the model.94569457      - `id: string`94589459        The unique ID of the message.94609461      - `content: array of ResponseInputText or ResponseOutputText or TextContent or 6 more`94629463        The content of the message94649465        - `ResponseInputText object { text, type, prompt_cache_breakpoint }`94669467          A text input to the model.94689469          - `text: string`94709471            The text input to the model.94729473          - `type: "input_text"`94749475            The type of the input item. Always `input_text`.94769477            - `"input_text"`94789479          - `prompt_cache_breakpoint: optional object { mode }`94809481            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.94829483            - `mode: "explicit"`94849485              The breakpoint mode. Always `explicit`.94869487              - `"explicit"`94889489        - `ResponseOutputText object { annotations, logprobs, text, type }`94909491          A text output from the model.94929493          - `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 }`94949495            The annotations of the text output.94969497            - `FileCitation object { file_id, filename, index, type }`94989499              A citation to a file.95009501              - `file_id: string`95029503                The ID of the file.95049505              - `filename: string`95069507                The filename of the file cited.95089509              - `index: number`95109511                The index of the file in the list of files.95129513              - `type: "file_citation"`95149515                The type of the file citation. Always `file_citation`.95169517                - `"file_citation"`95189519            - `URLCitation object { end_index, start_index, title, 2 more }`95209521              A citation for a web resource used to generate a model response.95229523              - `end_index: number`95249525                The index of the last character of the URL citation in the message.95269527              - `start_index: number`95289529                The index of the first character of the URL citation in the message.95309531              - `title: string`95329533                The title of the web resource.95349535              - `type: "url_citation"`95369537                The type of the URL citation. Always `url_citation`.95389539                - `"url_citation"`95409541              - `url: string`95429543                The URL of the web resource.95449545            - `ContainerFileCitation object { container_id, end_index, file_id, 3 more }`95469547              A citation for a container file used to generate a model response.95489549              - `container_id: string`95509551                The ID of the container file.95529553              - `end_index: number`95549555                The index of the last character of the container file citation in the message.95569557              - `file_id: string`95589559                The ID of the file.95609561              - `filename: string`95629563                The filename of the container file cited.95649565              - `start_index: number`95669567                The index of the first character of the container file citation in the message.95689569              - `type: "container_file_citation"`95709571                The type of the container file citation. Always `container_file_citation`.95729573                - `"container_file_citation"`95749575            - `FilePath object { file_id, index, type }`95769577              A path to a file.95789579              - `file_id: string`95809581                The ID of the file.95829583              - `index: number`95849585                The index of the file in the list of files.95869587              - `type: "file_path"`95889589                The type of the file path. Always `file_path`.95909591                - `"file_path"`95929593          - `logprobs: array of object { token, bytes, logprob, top_logprobs }`95949595            - `token: string`95969597            - `bytes: array of number`95989599            - `logprob: number`96009601            - `top_logprobs: array of object { token, bytes, logprob }`96029603              - `token: string`96049605              - `bytes: array of number`96069607              - `logprob: number`96089609          - `text: string`96109611            The text output from the model.96129613          - `type: "output_text"`96149615            The type of the output text. Always `output_text`.96169617            - `"output_text"`96189619        - `TextContent object { text, type }`96209621          A text content.96229623          - `text: string`96249625          - `type: "text"`96269627            - `"text"`96289629        - `SummaryTextContent object { text, type }`96309631          A summary text from the model.96329633          - `text: string`96349635            A summary of the reasoning output from the model so far.96369637          - `type: "summary_text"`96389639            The type of the object. Always `summary_text`.96409641            - `"summary_text"`96429643        - `ReasoningText object { text, type }`96449645          Reasoning text from the model.96469647          - `text: string`96489649            The reasoning text from the model.96509651          - `type: "reasoning_text"`96529653            The type of the reasoning text. Always `reasoning_text`.96549655            - `"reasoning_text"`96569657        - `ResponseOutputRefusal object { refusal, type }`96589659          A refusal from the model.96609661          - `refusal: string`96629663            The refusal explanation from the model.96649665          - `type: "refusal"`96669667            The type of the refusal. Always `refusal`.96689669            - `"refusal"`96709671        - `ResponseInputImage object { detail, type, file_id, 2 more }`96729673          An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).96749675          - `detail: ImageDetail`96769677            The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.96789679            - `"low"`96809681            - `"high"`96829683            - `"auto"`96849685            - `"original"`96869687          - `type: "input_image"`96889689            The type of the input item. Always `input_image`.96909691            - `"input_image"`96929693          - `file_id: optional string or null`96949695            The ID of the file to be sent to the model.96969697          - `image_url: optional string or null`96989699            The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.97009701          - `prompt_cache_breakpoint: optional object { mode }`97029703            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.97049705            - `mode: "explicit"`97069707              The breakpoint mode. Always `explicit`.97089709              - `"explicit"`97109711        - `ComputerScreenshotContent object { detail, file_id, image_url, 2 more }`97129713          A screenshot of a computer.97149715          - `detail: ImageDetail`97169717            The detail level of the screenshot image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.97189719          - `file_id: string or null`97209721            The identifier of an uploaded file that contains the screenshot.97229723          - `image_url: string or null`97249725            The URL of the screenshot image.97269727          - `type: "computer_screenshot"`97289729            Specifies the event type. For a computer screenshot, this property is always set to `computer_screenshot`.97309731            - `"computer_screenshot"`97329733          - `prompt_cache_breakpoint: optional object { mode }`97349735            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.97369737            - `mode: "explicit"`97389739              The breakpoint mode. Always `explicit`.97409741              - `"explicit"`97429743        - `ResponseInputFile object { type, detail, file_data, 4 more }`97449745          A file input to the model.97469747          - `type: "input_file"`97489749            The type of the input item. Always `input_file`.97509751            - `"input_file"`97529753          - `detail: optional "auto" or "low" or "high"`97549755            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`.97569757            - `"auto"`97589759            - `"low"`97609761            - `"high"`97629763          - `file_data: optional string`97649765            The content of the file to be sent to the model.97669767          - `file_id: optional string or null`97689769            The ID of the file to be sent to the model.97709771          - `file_url: optional string`97729773            The URL of the file to be sent to the model.97749775          - `filename: optional string`97769777            The name of the file to be sent to the model.97789779          - `prompt_cache_breakpoint: optional object { mode }`97809781            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.97829783            - `mode: "explicit"`97849785              The breakpoint mode. Always `explicit`.97869787              - `"explicit"`97889789      - `role: "unknown" or "user" or "assistant" or 5 more`97909791        The role of the message. One of `unknown`, `user`, `assistant`, `system`, `critic`, `discriminator`, `developer`, or `tool`.97929793        - `"unknown"`97949795        - `"user"`97969797        - `"assistant"`97989799        - `"system"`98009801        - `"critic"`98029803        - `"discriminator"`98049805        - `"developer"`98069807        - `"tool"`98089809      - `status: "in_progress" or "completed" or "incomplete"`98109811        The status of item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API.98129813        - `"in_progress"`98149815        - `"completed"`98169817        - `"incomplete"`98189819      - `type: "message"`98209821        The type of the message. Always set to `message`.98229823        - `"message"`98249825      - `phase: optional "commentary" or "final_answer" or null`98269827        Labels an `assistant` message as intermediate commentary (`commentary`) or the final answer (`final_answer`). For models like `gpt-5.3-codex` and beyond, when sending follow-up requests, preserve and resend phase on all assistant messages — dropping it can degrade performance. Not used for user messages.98289829        - `"commentary"`98309831        - `"final_answer"`98329833    - `FunctionCall object { id, arguments, call_id, 7 more }`98349835      - `id: string`98369837        The unique ID of the function tool call.98389839      - `arguments: string`98409841        A JSON string of the arguments to pass to the function.98429843      - `call_id: string`98449845        The unique ID of the function tool call generated by the model.98469847      - `name: string`98489849        The name of the function to run.98509851      - `status: "in_progress" or "completed" or "incomplete"`98529853        The status of the item. One of `in_progress`, `completed`, or9854        `incomplete`. Populated when items are returned via API.98559856        - `"in_progress"`98579858        - `"completed"`98599860        - `"incomplete"`98619862      - `type: "function_call"`98639864        The type of the function tool call. Always `function_call`.98659866        - `"function_call"`98679868      - `async: optional boolean`98699870        Whether the function tool call runs asynchronously.98719872      - `caller: optional object { type }  or object { caller_id, type }  or null`98739874        The execution context that produced this tool call.98759876        - `Direct object { type }`98779878          - `type: "direct"`98799880            - `"direct"`98819882        - `Program object { caller_id, type }`98839884          - `caller_id: string`98859886            The call ID of the program item that produced this tool call.98879888          - `type: "program"`98899890            - `"program"`98919892      - `created_by: optional string`98939894        The identifier of the actor that created the item.98959896      - `namespace: optional string`98979898        The namespace of the function to run.98999900    - `FunctionCallOutput object { id, output, status, 6 more }`99019902      - `id: string`99039904        The unique ID of the function call tool output.99059906      - `output: string or array of ResponseInputText or ResponseInputImage or ResponseInputFile`99079908        The output from the function call generated by your code.9909        Can be a string or an list of output content.99109911        - `StringOutput = string`99129913          A string of the output of the function call.99149915        - `OutputContentList = array of ResponseInputText or ResponseInputImage or ResponseInputFile`99169917          Text, image, or file output of the function call.99189919          - `ResponseInputText object { text, type, prompt_cache_breakpoint }`99209921            A text input to the model.99229923          - `ResponseInputImage object { detail, type, file_id, 2 more }`99249925            An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).99269927          - `ResponseInputFile object { type, detail, file_data, 4 more }`99289929            A file input to the model.99309931      - `status: "in_progress" or "completed" or "incomplete"`99329933        The status of the item. One of `in_progress`, `completed`, or9934        `incomplete`. Populated when items are returned via API.99359936        - `"in_progress"`99379938        - `"completed"`99399940        - `"incomplete"`99419942      - `type: "function_call_output"`99439944        The type of the function tool call output. Always `function_call_output`.99459946        - `"function_call_output"`99479948      - `call_id: optional string`99499950        The unique ID of the function tool call generated by the model.99519952      - `caller: optional object { type }  or object { caller_id, type }  or null`99539954        The execution context that produced this tool call.99559956        - `Direct object { type }`99579958          - `type: "direct"`99599960            The caller type. Always `direct`.99619962            - `"direct"`99639964        - `Program object { caller_id, type }`99659966          - `caller_id: string`99679968            The call ID of the program item that produced this tool call.99699970          - `type: "program"`99719972            The caller type. Always `program`.99739974            - `"program"`99759976      - `created_by: optional string`99779978        The identifier of the actor that created the item.99799980      - `name: optional string`99819982        The name of the tool that produced the output.99839984      - `namespace: optional string`99859986        The namespace of the tool that produced the output.99879988    - `FileSearchCall object { id, queries, status, 2 more }`99899990      The results of a file search tool call. See the9991      [file search guide](/api/docs/guides/tools-file-search) for more information.99929993      - `id: string`99949995        The unique ID of the file search tool call.99969997      - `queries: array of string`99989999        The queries used to search for files.1000010001      - `status: "in_progress" or "searching" or "completed" or 2 more`1000210003        The status of the file search tool call. One of `in_progress`,10004        `searching`, `incomplete` or `failed`,1000510006        - `"in_progress"`1000710008        - `"searching"`1000910010        - `"completed"`1001110012        - `"incomplete"`1001310014        - `"failed"`1001510016      - `type: "file_search_call"`1001710018        The type of the file search tool call. Always `file_search_call`.1001910020        - `"file_search_call"`1002110022      - `results: optional array of object { attributes, file_id, filename, 2 more }  or null`1002310024        The results of the file search tool call.1002510026        - `attributes: optional map[string or number or boolean] or null`1002710028          Set of 16 key-value pairs that can be attached to an object. This can be10029          useful for storing additional information about the object in a structured10030          format, and querying for objects via API or the dashboard. Keys are strings10031          with a maximum length of 64 characters. Values are strings with a maximum10032          length of 512 characters, booleans, or numbers.1003310034          - `string`1003510036          - `number`1003710038          - `boolean`1003910040        - `file_id: optional string`1004110042          The unique ID of the file.1004310044        - `filename: optional string`1004510046          The name of the file.1004710048        - `score: optional number`1004910050          The relevance score of the file - a value between 0 and 1.1005110052        - `text: optional string`1005310054          The text that was retrieved from the file.1005510056    - `WebSearchCall object { id, action, status, type }`1005710058      The results of a web search tool call. See the10059      [web search guide](/api/docs/guides/tools-web-search) for more information.1006010061      - `id: string`1006210063        The unique ID of the web search tool call.1006410065      - `action: object { type, queries, query, sources }  or object { type, url }  or object { pattern, type, url }`1006610067        An object describing the specific action taken in this web search call.10068        Includes details on how the model used the web (search, open_page, find_in_page).1006910070        - `Search object { type, queries, query, sources }`1007110072          Action type "search" - Performs a web search query.1007310074          - `type: "search"`1007510076            The action type.1007710078            - `"search"`1007910080          - `queries: optional array of string`1008110082            The search queries.1008310084          - `query: optional string`1008510086            The search query.1008710088          - `sources: optional array of object { type, url }`1008910090            The sources used in the search.1009110092            - `type: "url"`1009310094              The type of source. Always `url`.1009510096              - `"url"`1009710098            - `url: string`1009910100              The URL of the source.1010110102        - `OpenPage object { type, url }`1010310104          Action type "open_page" - Opens a specific URL from search results.1010510106          - `type: "open_page"`1010710108            The action type.1010910110            - `"open_page"`1011110112          - `url: optional string or null`1011310114            The URL opened by the model.1011510116        - `FindInPage object { pattern, type, url }`1011710118          Action type "find_in_page": Searches for a pattern within a loaded page.1011910120          - `pattern: string`1012110122            The pattern or text to search for within the page.1012310124          - `type: "find_in_page"`1012510126            The action type.1012710128            - `"find_in_page"`1012910130          - `url: string`1013110132            The URL of the page searched for the pattern.1013310134      - `status: "in_progress" or "searching" or "completed" or 2 more`1013510136        The status of the web search tool call.1013710138        - `"in_progress"`1013910140        - `"searching"`1014110142        - `"completed"`1014310144        - `"failed"`1014510146        - `"incomplete"`1014710148      - `type: "web_search_call"`1014910150        The type of the web search tool call. Always `web_search_call`.1015110152        - `"web_search_call"`1015310154    - `ImageGenerationCall object { id, result, status, 7 more }`1015510156      An image generation request made by the model.1015710158      - `id: string`1015910160        The unique ID of the image generation call.1016110162      - `result: string or null`1016310164        The generated image encoded in base64.1016510166      - `status: "in_progress" or "completed" or "generating" or "failed"`1016710168        The status of the image generation call.1016910170        - `"in_progress"`1017110172        - `"completed"`1017310174        - `"generating"`1017510176        - `"failed"`1017710178      - `type: "image_generation_call"`1017910180        The type of the image generation call. Always `image_generation_call`.1018110182        - `"image_generation_call"`1018310184      - `action: optional "generate" or "edit" or "auto" or null`1018510186        The action used for image generation.1018710188        - `"generate"`1018910190        - `"edit"`1019110192        - `"auto"`1019310194      - `background: optional "transparent" or "opaque" or "auto" or null`1019510196        The background setting used for generation.1019710198        - `"transparent"`1019910200        - `"opaque"`1020110202        - `"auto"`1020310204      - `output_format: optional "png" or "webp" or "jpeg" or null`1020510206        The output format used for generation.1020710208        - `"png"`1020910210        - `"webp"`1021110212        - `"jpeg"`1021310214      - `quality: optional "low" or "medium" or "high" or 3 more or null`1021510216        The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.1021710218        - `"low"`1021910220        - `"medium"`1022110222        - `"high"`1022310224        - `"xhigh"`1022510226        - `"max"`1022710228        - `"auto"`1022910230      - `revised_prompt: optional string or null`1023110232        The prompt that was used after any model prompt rewriting.1023310234      - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`1023510236        The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.1023710238        - `string`1023910240        - `"1024x1024" or "1024x1536" or "1536x1024"`1024110242          The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.1024310244          - `"1024x1024"`1024510246          - `"1024x1536"`1024710248          - `"1536x1024"`1024910250    - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`1025110252      A tool call to a computer use tool. See the10253      [computer use guide](/api/docs/guides/tools-computer-use) for more information.1025410255      - `id: string`1025610257        The unique ID of the computer call.1025810259      - `call_id: string`1026010261        An identifier used when responding to the tool call with output.1026210263      - `pending_safety_checks: array of object { id, code, message }`1026410265        The pending safety checks for the computer call.1026610267        - `id: string`1026810269          The ID of the pending safety check.1027010271        - `code: optional string or null`1027210273          The type of the pending safety check.1027410275        - `message: optional string or null`1027610277          Details about the pending safety check.1027810279      - `status: "in_progress" or "completed" or "incomplete"`1028010281        The status of the item. One of `in_progress`, `completed`, or10282        `incomplete`. Populated when items are returned via API.1028310284        - `"in_progress"`1028510286        - `"completed"`1028710288        - `"incomplete"`1028910290      - `type: "computer_call"`1029110292        The type of the computer call. Always `computer_call`.1029310294        - `"computer_call"`1029510296      - `action: optional ComputerAction`1029710298        A click action.1029910300        - `Click object { button, type, x, 2 more }`1030110302          A click action.1030310304          - `button: "left" or "right" or "wheel" or 2 more`1030510306            Indicates which mouse button was pressed during the click. One of `left`, `right`, `wheel`, `back`, or `forward`.1030710308            - `"left"`1030910310            - `"right"`1031110312            - `"wheel"`1031310314            - `"back"`1031510316            - `"forward"`1031710318          - `type: "click"`1031910320            Specifies the event type. For a click action, this property is always `click`.1032110322            - `"click"`1032310324          - `x: number`1032510326            The x-coordinate where the click occurred.1032710328          - `y: number`1032910330            The y-coordinate where the click occurred.1033110332          - `keys: optional array of string or null`1033310334            The keys being held while clicking.1033510336        - `DoubleClick object { keys, type, x, y }`1033710338          A double click action.1033910340          - `keys: array of string or null`1034110342            The keys being held while double-clicking.1034310344          - `type: "double_click"`1034510346            Specifies the event type. For a double click action, this property is always set to `double_click`.1034710348            - `"double_click"`1034910350          - `x: number`1035110352            The x-coordinate where the double click occurred.1035310354          - `y: number`1035510356            The y-coordinate where the double click occurred.1035710358        - `Drag object { path, type, keys }`1035910360          A drag action.1036110362          - `path: array of object { x, y }`1036310364            An array of coordinates representing the path of the drag action. Coordinates will appear as an array of objects, eg1036510366            ```10367            [10368              { x: 100, y: 200 },10369              { x: 200, y: 300 }10370            ]10371            ```1037210373            - `x: number`1037410375              The x-coordinate.1037610377            - `y: number`1037810379              The y-coordinate.1038010381          - `type: "drag"`1038210383            Specifies the event type. For a drag action, this property is always set to `drag`.1038410385            - `"drag"`1038610387          - `keys: optional array of string or null`1038810389            The keys being held while dragging the mouse.1039010391        - `Keypress object { keys, type }`1039210393          A collection of keypresses the model would like to perform.1039410395          - `keys: array of string`1039610397            The combination of keys the model is requesting to be pressed. This is an array of strings, each representing a key.1039810399          - `type: "keypress"`1040010401            Specifies the event type. For a keypress action, this property is always set to `keypress`.1040210403            - `"keypress"`1040410405        - `Move object { type, x, y, keys }`1040610407          A mouse move action.1040810409          - `type: "move"`1041010411            Specifies the event type. For a move action, this property is always set to `move`.1041210413            - `"move"`1041410415          - `x: number`1041610417            The x-coordinate to move to.1041810419          - `y: number`1042010421            The y-coordinate to move to.1042210423          - `keys: optional array of string or null`1042410425            The keys being held while moving the mouse.1042610427        - `Screenshot object { type }`1042810429          A screenshot action.1043010431          - `type: "screenshot"`1043210433            Specifies the event type. For a screenshot action, this property is always set to `screenshot`.1043410435            - `"screenshot"`1043610437        - `Scroll object { scroll_x, scroll_y, type, 3 more }`1043810439          A scroll action.1044010441          - `scroll_x: number`1044210443            The horizontal scroll distance.1044410445          - `scroll_y: number`1044610447            The vertical scroll distance.1044810449          - `type: "scroll"`1045010451            Specifies the event type. For a scroll action, this property is always set to `scroll`.1045210453            - `"scroll"`1045410455          - `x: number`1045610457            The x-coordinate where the scroll occurred.1045810459          - `y: number`1046010461            The y-coordinate where the scroll occurred.1046210463          - `keys: optional array of string or null`1046410465            The keys being held while scrolling.1046610467        - `Type object { text, type }`1046810469          An action to type in text.1047010471          - `text: string`1047210473            The text to type.1047410475          - `type: "type"`1047610477            Specifies the event type. For a type action, this property is always set to `type`.1047810479            - `"type"`1048010481        - `Wait object { type }`1048210483          A wait action.1048410485          - `type: "wait"`1048610487            Specifies the event type. For a wait action, this property is always set to `wait`.1048810489            - `"wait"`1049010491      - `actions: optional ComputerActionList`1049210493        Flattened batched actions for `computer_use`. Each action includes an10494        `type` discriminator and action-specific fields.1049510496        - `Click object { button, type, x, 2 more }`1049710498          A click action.1049910500        - `DoubleClick object { keys, type, x, y }`1050110502          A double click action.1050310504        - `Drag object { path, type, keys }`1050510506          A drag action.1050710508        - `Keypress object { keys, type }`1050910510          A collection of keypresses the model would like to perform.1051110512        - `Move object { type, x, y, keys }`1051310514          A mouse move action.1051510516        - `Screenshot object { type }`1051710518          A screenshot action.1051910520        - `Scroll object { scroll_x, scroll_y, type, 3 more }`1052110522          A scroll action.1052310524        - `Type object { text, type }`1052510526          An action to type in text.1052710528        - `Wait object { type }`1052910530          A wait action.1053110532    - `ComputerCallOutput object { id, call_id, output, 4 more }`1053310534      - `id: string`1053510536        The unique ID of the computer call tool output.1053710538      - `call_id: string`1053910540        The ID of the computer tool call that produced the output.1054110542      - `output: ResponseComputerToolCallOutputScreenshot`1054310544        A computer screenshot image used with the computer use tool.1054510546        - `type: "computer_screenshot"`1054710548          Specifies the event type. For a computer screenshot, this property is10549          always set to `computer_screenshot`.1055010551          - `"computer_screenshot"`1055210553        - `file_id: optional string`1055410555          The identifier of an uploaded file that contains the screenshot.1055610557        - `image_url: optional string`1055810559          The URL of the screenshot image.1056010561      - `status: "completed" or "incomplete" or "failed" or "in_progress"`1056210563        The status of the message input. One of `in_progress`, `completed`, or10564        `incomplete`. Populated when input items are returned via API.1056510566        - `"completed"`1056710568        - `"incomplete"`1056910570        - `"failed"`1057110572        - `"in_progress"`1057310574      - `type: "computer_call_output"`1057510576        The type of the computer tool call output. Always `computer_call_output`.1057710578        - `"computer_call_output"`1057910580      - `acknowledged_safety_checks: optional array of object { id, code, message }`1058110582        The safety checks reported by the API that have been acknowledged by the10583        developer.1058410585        - `id: string`1058610587          The ID of the pending safety check.1058810589        - `code: optional string or null`1059010591          The type of the pending safety check.1059210593        - `message: optional string or null`1059410595          Details about the pending safety check.1059610597      - `created_by: optional string`1059810599        The identifier of the actor that created the item.1060010601    - `ToolSearchCall object { id, arguments, call_id, 4 more }`1060210603      - `id: string`1060410605        The unique ID of the tool search call item.1060610607      - `arguments: unknown`1060810609        Arguments used for the tool search call.1061010611      - `call_id: string or null`1061210613        The unique ID of the tool search call generated by the model.1061410615      - `execution: "server" or "client"`1061610617        Whether tool search was executed by the server or by the client.1061810619        - `"server"`1062010621        - `"client"`1062210623      - `status: "in_progress" or "completed" or "incomplete"`1062410625        The status of the tool search call item that was recorded.1062610627        - `"in_progress"`1062810629        - `"completed"`1063010631        - `"incomplete"`1063210633      - `type: "tool_search_call"`1063410635        The type of the item. Always `tool_search_call`.1063610637        - `"tool_search_call"`1063810639      - `created_by: optional string`1064010641        The identifier of the actor that created the item.1064210643    - `ToolSearchOutput object { id, call_id, execution, 4 more }`1064410645      - `id: string`1064610647        The unique ID of the tool search output item.1064810649      - `call_id: string or null`1065010651        The unique ID of the tool search call generated by the model.1065210653      - `execution: "server" or "client"`1065410655        Whether tool search was executed by the server or by the client.1065610657        - `"server"`1065810659        - `"client"`1066010661      - `status: "in_progress" or "completed" or "incomplete"`1066210663        The status of the tool search output item that was recorded.1066410665        - `"in_progress"`1066610667        - `"completed"`1066810669        - `"incomplete"`1067010671      - `tools: array of object { name, parameters, strict, 6 more }  or object { type, vector_store_ids, filters, 2 more }  or object { type }  or 13 more`1067210673        The loaded tool definitions returned by tool search.1067410675        - `Function object { name, parameters, strict, 6 more }`1067610677          Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).1067810679          - `name: string`1068010681            The name of the function to call.1068210683          - `parameters: map[unknown] or null`1068410685            A JSON schema object describing the parameters of the function.1068610687          - `strict: boolean or null`1068810689            Whether strict parameter validation is enforced for this function tool.1069010691          - `type: "function"`1069210693            The type of the function tool. Always `function`.1069410695            - `"function"`1069610697          - `allowed_callers: optional array of "direct" or "programmatic" or null`1069810699            The tool invocation context(s).1070010701            - `"direct"`1070210703            - `"programmatic"`1070410705          - `async: optional boolean`1070610707          - `defer_loading: optional boolean`1070810709            Whether this function is deferred and loaded via tool search.1071010711          - `description: optional string or null`1071210713            A description of the function. Used by the model to determine whether or not to call the function.1071410715          - `output_schema: optional map[unknown] or null`1071610717            A JSON schema object describing the JSON value encoded in string outputs for this function.1071810719        - `FileSearch object { type, vector_store_ids, filters, 2 more }`1072010721          A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).1072210723          - `type: "file_search"`1072410725            The type of the file search tool. Always `file_search`.1072610727            - `"file_search"`1072810729          - `vector_store_ids: array of string`1073010731            The IDs of the vector stores to search.1073210733          - `filters: optional ComparisonFilter or CompoundFilter or null`1073410735            A filter to apply.1073610737            - `ComparisonFilter object { key, type, value }`1073810739              A filter used to compare a specified attribute key to a given value using a defined comparison operation.1074010741              - `key: string`1074210743                The key to compare against the value.1074410745              - `type: "eq" or "ne" or "gt" or 5 more`1074610747                Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`, `in`, `nin`.1074810749                - `eq`: equals10750                - `ne`: not equal10751                - `gt`: greater than10752                - `gte`: greater than or equal10753                - `lt`: less than10754                - `lte`: less than or equal10755                - `in`: in10756                - `nin`: not in1075710758                - `"eq"`1075910760                - `"ne"`1076110762                - `"gt"`1076310764                - `"gte"`1076510766                - `"lt"`1076710768                - `"lte"`1076910770                - `"in"`1077110772                - `"nin"`1077310774              - `value: string or number or boolean or array of string or number`1077510776                The value to compare against the attribute key; supports string, number, or boolean types.1077710778                - `string`1077910780                - `number`1078110782                - `boolean`1078310784                - `array of string or number`1078510786                  - `string`1078710788                  - `number`1078910790            - `CompoundFilter object { filters, type }`1079110792              Combine multiple filters using `and` or `or`.1079310794              - `filters: array of ComparisonFilter or unknown`1079510796                Array of filters to combine. Items can be `ComparisonFilter` or `CompoundFilter`.1079710798                - `ComparisonFilter object { key, type, value }`1079910800                  A filter used to compare a specified attribute key to a given value using a defined comparison operation.1080110802                - `unknown`1080310804              - `type: "and" or "or"`1080510806                Type of operation: `and` or `or`.1080710808                - `"and"`1080910810                - `"or"`1081110812          - `max_num_results: optional number`1081310814            The maximum number of results to return. This number should be between 1 and 50 inclusive.1081510816          - `ranking_options: optional object { hybrid_search, ranker, score_threshold }`1081710818            Ranking options for search.1081910820            - `hybrid_search: optional object { embedding_weight, text_weight }`1082110822              Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled.1082310824              - `embedding_weight: number`1082510826                The weight of the embedding in the reciprocal ranking fusion.1082710828              - `text_weight: number`1082910830                The weight of the text in the reciprocal ranking fusion.1083110832            - `ranker: optional "auto" or "default-2024-11-15"`1083310834              The ranker to use for the file search.1083510836              - `"auto"`1083710838              - `"default-2024-11-15"`1083910840            - `score_threshold: optional number`1084110842              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.1084310844        - `Computer object { type }`1084510846          A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).1084710848          - `type: "computer"`1084910850            The type of the computer tool. Always `computer`.1085110852            - `"computer"`1085310854        - `ComputerUsePreview object { display_height, display_width, environment, type }`1085510856          A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).1085710858          - `display_height: number`1085910860            The height of the computer display.1086110862          - `display_width: number`1086310864            The width of the computer display.1086510866          - `environment: "windows" or "mac" or "linux" or 2 more`1086710868            The type of computer environment to control.1086910870            - `"windows"`1087110872            - `"mac"`1087310874            - `"linux"`1087510876            - `"ubuntu"`1087710878            - `"browser"`1087910880          - `type: "computer_use_preview"`1088110882            The type of the computer use tool. Always `computer_use_preview`.1088310884            - `"computer_use_preview"`1088510886        - `WebSearch object { type, external_web_access, filters, 2 more }`1088710888          Search the Internet for sources related to the prompt. Learn more about the10889          [web search tool](/api/docs/guides/tools-web-search).1089010891          - `type: "web_search" or "web_search_2025_08_26"`1089210893            The type of the web search tool. One of `web_search` or `web_search_2025_08_26`.1089410895            - `"web_search"`1089610897            - `"web_search_2025_08_26"`1089810899          - `external_web_access: optional boolean`1090010901            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.1090210903          - `filters: optional object { allowed_domains }  or null`1090410905            Filters for the search.1090610907            - `allowed_domains: optional array of string or null`1090810909              Allowed domains for the search. If not provided, all domains are allowed.10910              Subdomains of the provided domains are allowed as well.1091110912              Example: `["pubmed.ncbi.nlm.nih.gov"]`1091310914          - `search_context_size: optional "low" or "medium" or "high"`1091510916            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.1091710918            - `"low"`1091910920            - `"medium"`1092110922            - `"high"`1092310924          - `user_location: optional object { city, country, region, 2 more }  or null`1092510926            The approximate location of the user.1092710928            - `city: optional string or null`1092910930              Free text input for the city of the user, e.g. `San Francisco`.1093110932            - `country: optional string or null`1093310934              The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.1093510936            - `region: optional string or null`1093710938              Free text input for the region of the user, e.g. `California`.1093910940            - `timezone: optional string or null`1094110942              The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.1094310944            - `type: optional "approximate"`1094510946              The type of location approximation. Always `approximate`.1094710948              - `"approximate"`1094910950        - `Mcp object { server_label, type, allowed_callers, 9 more }`1095110952          Give the model access to additional tools via remote Model Context Protocol10953          (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).1095410955          - `server_label: string`1095610957            A label for this MCP server, used to identify it in tool calls.1095810959          - `type: "mcp"`1096010961            The type of the MCP tool. Always `mcp`.1096210963            - `"mcp"`1096410965          - `allowed_callers: optional array of "direct" or "programmatic" or null`1096610967            The tool invocation context(s).1096810969            - `"direct"`1097010971            - `"programmatic"`1097210973          - `allowed_tools: optional array of string or object { read_only, tool_names }  or null`1097410975            List of allowed tool names or a filter object.1097610977            - `McpAllowedTools = array of string`1097810979              A string array of allowed tool names1098010981            - `McpToolFilter object { read_only, tool_names }`1098210983              A filter object to specify which tools are allowed.1098410985              - `read_only: optional boolean`1098610987                Indicates whether or not a tool modifies data or is read-only. If an10988                MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),10989                it will match this filter.1099010991              - `tool_names: optional array of string`1099210993                List of allowed tool names.1099410995          - `authorization: optional string`1099610997            An OAuth access token that can be used with a remote MCP server, either10998            with a custom MCP server URL or a service connector. Your application10999            must handle the OAuth authorization flow and provide the token here.1100011001          - `connector_id: optional "connector_dropbox" or "connector_gmail" or "connector_googlecalendar" or 5 more`1100211003            Identifier for service connectors, like those available in ChatGPT. One of11004            `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more11005            about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).1100611007            This field is deprecated for models released after September 1, 2026.11008            Use `server_url` to connect to a remote MCP server, or `tunnel_id` to11009            connect through a Secure MCP Tunnel.1101011011            Currently supported `connector_id` values are:1101211013            - Dropbox: `connector_dropbox`11014            - Gmail: `connector_gmail`11015            - Google Calendar: `connector_googlecalendar`11016            - Google Drive: `connector_googledrive`11017            - Microsoft Teams: `connector_microsoftteams`11018            - Outlook Calendar: `connector_outlookcalendar`11019            - Outlook Email: `connector_outlookemail`11020            - SharePoint: `connector_sharepoint`1102111022            - `"connector_dropbox"`1102311024            - `"connector_gmail"`1102511026            - `"connector_googlecalendar"`1102711028            - `"connector_googledrive"`1102911030            - `"connector_microsoftteams"`1103111032            - `"connector_outlookcalendar"`1103311034            - `"connector_outlookemail"`1103511036            - `"connector_sharepoint"`1103711038          - `defer_loading: optional boolean`1103911040            Whether this MCP tool is deferred and discovered via tool search.1104111042          - `headers: optional map[string] or null`1104311044            Optional HTTP headers to send to the MCP server. Use for authentication11045            or other purposes.1104611047          - `require_approval: optional object { always, never }  or "always" or "never" or null`1104811049            Specify which of the MCP server's tools require approval.1105011051            - `McpToolApprovalFilter object { always, never }`1105211053              Specify which of the MCP server's tools require approval. Can be11054              `always`, `never`, or a filter object associated with tools11055              that require approval.1105611057              - `always: optional object { read_only, tool_names }`1105811059                A filter object to specify which tools are allowed.1106011061                - `read_only: optional boolean`1106211063                  Indicates whether or not a tool modifies data or is read-only. If an11064                  MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),11065                  it will match this filter.1106611067                - `tool_names: optional array of string`1106811069                  List of allowed tool names.1107011071              - `never: optional object { read_only, tool_names }`1107211073                A filter object to specify which tools are allowed.1107411075                - `read_only: optional boolean`1107611077                  Indicates whether or not a tool modifies data or is read-only. If an11078                  MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),11079                  it will match this filter.1108011081                - `tool_names: optional array of string`1108211083                  List of allowed tool names.1108411085            - `McpToolApprovalSetting = "always" or "never"`1108611087              Specify a single approval policy for all tools. One of `always` or11088              `never`. When set to `always`, all tools will require approval. When11089              set to `never`, all tools will not require approval.1109011091              - `"always"`1109211093              - `"never"`1109411095          - `server_description: optional string`1109611097            Optional description of the MCP server, used to provide more context.1109811099          - `server_url: optional string`1110011101            The URL for the MCP server. One of `server_url`, `connector_id`, or11102            `tunnel_id` must be provided.1110311104          - `tunnel_id: optional string`1110511106            The Secure MCP Tunnel ID to use instead of a direct server URL. One of11107            `server_url`, `connector_id`, or `tunnel_id` must be provided.1110811109        - `CodeInterpreter object { container, type, allowed_callers }`1111011111          A tool that runs Python code to help generate a response to a prompt.1111211113          - `container: string or object { type, file_ids, memory_limit, network_policy }`1111411115            The code interpreter container. Can be a container ID or an object that11116            specifies uploaded file IDs to make available to your code, along with an11117            optional `memory_limit` setting.1111811119            - `string`1112011121              The container ID.1112211123            - `CodeInterpreterToolAuto object { type, file_ids, memory_limit, network_policy }`1112411125              Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.1112611127              - `type: "auto"`1112811129                Always `auto`.1113011131                - `"auto"`1113211133              - `file_ids: optional array of string`1113411135                An optional list of uploaded files to make available to your code.1113611137              - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`1113811139                The memory limit for the code interpreter container.1114011141                - `"1g"`1114211143                - `"4g"`1114411145                - `"16g"`1114611147                - `"64g"`1114811149              - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`1115011151                Network access policy for the container.1115211153                - `ContainerNetworkPolicyDisabled object { type }`1115411155                  - `type: "disabled"`1115611157                    Disable outbound network access. Always `disabled`.1115811159                    - `"disabled"`1116011161                - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`1116211163                  - `allowed_domains: array of string`1116411165                    A list of allowed domains when type is `allowlist`.1116611167                  - `type: "allowlist"`1116811169                    Allow outbound network access only to specified domains. Always `allowlist`.1117011171                    - `"allowlist"`1117211173                  - `domain_secrets: optional array of ContainerNetworkPolicyDomainSecret`1117411175                    Optional domain-scoped secrets for allowlisted domains.1117611177                    - `domain: string`1117811179                      The domain associated with the secret.1118011181                    - `name: string`1118211183                      The name of the secret to inject for the domain.1118411185                    - `value: string`1118611187                      The secret value to inject for the domain.1118811189          - `type: "code_interpreter"`1119011191            The type of the code interpreter tool. Always `code_interpreter`.1119211193            - `"code_interpreter"`1119411195          - `allowed_callers: optional array of "direct" or "programmatic" or null`1119611197            The tool invocation context(s).1119811199            - `"direct"`1120011201            - `"programmatic"`1120211203        - `ProgrammaticToolCalling object { type }`1120411205          - `type: "programmatic_tool_calling"`1120611207            The type of the tool. Always `programmatic_tool_calling`.1120811209            - `"programmatic_tool_calling"`1121011211        - `ImageGeneration object { type, action, background, 9 more }`1121211213          A tool that generates images using the GPT image models.1121411215          - `type: "image_generation"`1121611217            The type of the image generation tool. Always `image_generation`.1121811219            - `"image_generation"`1122011221          - `action: optional "generate" or "edit" or "auto"`1122211223            Whether to generate a new image or edit an existing image. Default: `auto`.1122411225            - `"generate"`1122611227            - `"edit"`1122811229            - `"auto"`1123011231          - `background: optional "transparent" or "opaque" or "auto"`1123211233            Set the background of the generated image. One of `transparent`, `opaque`,11234            or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including11235            their `2026-09-08` snapshots, support `opaque` and `transparent`11236            backgrounds. Transparent backgrounds are available for supported GPT Image11237            models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in11238            preview. When using `transparent`, set the output format to `png` or `webp`.11239            Default: `auto`.1124011241            - `"transparent"`1124211243            - `"opaque"`1124411245            - `"auto"`1124611247          - `input_fidelity: optional "high" or "low" or null`1124811249            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`.1125011251            - `"high"`1125211253            - `"low"`1125411255          - `input_image_mask: optional object { file_id, image_url }`1125611257            Optional mask for inpainting. Contains `image_url`11258            (string, optional) and `file_id` (string, optional).1125911260            - `file_id: optional string`1126111262              File ID for the mask image.1126311264            - `image_url: optional string`1126511266              Base64-encoded mask image.1126711268          - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`1126911270            The image generation model to use. One of `gpt-image-1`,11271            `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,11272            `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,11273            `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,11274            `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:11275            `gpt-image-1`.1127611277            - `string`1127811279            - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`1128011281              The image generation model to use. One of `gpt-image-1`,11282              `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,11283              `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,11284              `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,11285              `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:11286              `gpt-image-1`.1128711288              - `"gpt-image-1"`1128911290              - `"gpt-image-1-mini"`1129111292              - `"gpt-image-1.5"`1129311294              - `"gpt-image-2"`1129511296              - `"gpt-image-2-2026-04-21"`1129711298              - `"gpt-image-2.5-sunburst"`1129911300              - `"gpt-image-2.5-sunburst-2026-09-08"`1130111302              - `"gpt-image-2.5-flare"`1130311304              - `"gpt-image-2.5-flare-2026-09-08"`1130511306          - `moderation: optional "auto" or "low"`1130711308            Moderation level for the generated image. Default: `auto`.1130911310            - `"auto"`1131111312            - `"low"`1131311314          - `output_compression: optional number`1131511316            Compression level for the output image. Default: 100.1131711318          - `output_format: optional "png" or "webp" or "jpeg"`1131911320            The output format of the generated image. One of `png`, `webp`, or11321            `jpeg`. Default: `png`.1132211323            - `"png"`1132411325            - `"webp"`1132611327            - `"jpeg"`1132811329          - `partial_images: optional number`1133011331            Number of partial images to generate in streaming mode, from 0 (default value) to 3.1133211333          - `quality: optional "low" or "medium" or "high" or 3 more`1133411335            The quality of the generated image. The GPT image models support `low`,11336            `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,11337            including their `2026-09-08` snapshots, also support `xhigh` and `max`.11338            Default: `auto`.1133911340            - `"low"`1134111342            - `"medium"`1134311344            - `"high"`1134511346            - `"xhigh"`1134711348            - `"max"`1134911350            - `"auto"`1135111352          - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`1135311354            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`.1135511356            - `string`1135711358            - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`1135911360              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`.1136111362              - `"1024x1024"`1136311364              - `"1024x1536"`1136511366              - `"1536x1024"`1136711368              - `"auto"`1136911370        - `LocalShell object { type }`1137111372          A tool that allows the model to execute shell commands in a local environment.1137311374          - `type: "local_shell"`1137511376            The type of the local shell tool. Always `local_shell`.1137711378            - `"local_shell"`1137911380        - `Shell object { type, allowed_callers, environment }`1138111382          A tool that allows the model to execute shell commands.1138311384          - `type: "shell"`1138511386            The type of the shell tool. Always `shell`.1138711388            - `"shell"`1138911390          - `allowed_callers: optional array of "direct" or "programmatic" or null`1139111392            The tool invocation context(s).1139311394            - `"direct"`1139511396            - `"programmatic"`1139711398          - `environment: optional ContainerAuto or LocalEnvironment or ContainerReference or null`1139911400            - `ContainerAuto object { type, file_ids, memory_limit, 2 more }`1140111402              - `type: "container_auto"`1140311404                Automatically creates a container for this request1140511406                - `"container_auto"`1140711408              - `file_ids: optional array of string`1140911410                An optional list of uploaded files to make available to your code.1141111412              - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`1141311414                The memory limit for the container.1141511416                - `"1g"`1141711418                - `"4g"`1141911420                - `"16g"`1142111422                - `"64g"`1142311424              - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`1142511426                Network access policy for the container.1142711428                - `ContainerNetworkPolicyDisabled object { type }`1142911430                - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`1143111432              - `skills: optional array of SkillReference or InlineSkill`1143311434                An optional list of skills referenced by id or inline data.1143511436                - `SkillReference object { skill_id, type, version }`1143711438                  - `skill_id: string`1143911440                    The ID of the referenced skill.1144111442                  - `type: "skill_reference"`1144311444                    References a skill created with the /v1/skills endpoint.1144511446                    - `"skill_reference"`1144711448                  - `version: optional string`1144911450                    Optional skill version. Use a positive integer or 'latest'. Omit for default.1145111452                - `InlineSkill object { description, name, source, type }`1145311454                  - `description: string`1145511456                    The description of the skill.1145711458                  - `name: string`1145911460                    The name of the skill.1146111462                  - `source: InlineSkillSource`1146311464                    Inline skill payload1146511466                    - `data: string`1146711468                      Base64-encoded skill zip bundle.1146911470                    - `media_type: "application/zip"`1147111472                      The media type of the inline skill payload. Must be `application/zip`.1147311474                      - `"application/zip"`1147511476                    - `type: "base64"`1147711478                      The type of the inline skill source. Must be `base64`.1147911480                      - `"base64"`1148111482                  - `type: "inline"`1148311484                    Defines an inline skill for this request.1148511486                    - `"inline"`1148711488            - `LocalEnvironment object { type, skills }`1148911490              - `type: "local"`1149111492                Use a local computer environment.1149311494                - `"local"`1149511496              - `skills: optional array of LocalSkill`1149711498                An optional list of skills.1149911500                - `description: string`1150111502                  The description of the skill.1150311504                - `name: string`1150511506                  The name of the skill.1150711508                - `path: string`1150911510                  The path to the directory containing the skill.1151111512            - `ContainerReference object { container_id, type }`1151311514              - `container_id: string`1151511516                The ID of the referenced container.1151711518              - `type: "container_reference"`1151911520                References a container created with the /v1/containers endpoint1152111522                - `"container_reference"`1152311524        - `Custom object { name, type, allowed_callers, 4 more }`1152511526          A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)1152711528          - `name: string`1152911530            The name of the custom tool, used to identify it in tool calls.1153111532          - `type: "custom"`1153311534            The type of the custom tool. Always `custom`.1153511536            - `"custom"`1153711538          - `allowed_callers: optional array of "direct" or "programmatic" or null`1153911540            The tool invocation context(s).1154111542            - `"direct"`1154311544            - `"programmatic"`1154511546          - `async: optional boolean`1154711548            Whether the tool response can be returned asynchronously versus immediately returned on next response creation.1154911550          - `defer_loading: optional boolean`1155111552            Whether this tool should be deferred and discovered via tool search.1155311554          - `description: optional string`1155511556            Optional description of the custom tool, used to provide more context.1155711558          - `format: optional CustomToolInputFormat`1155911560            The input format for the custom tool. Default is unconstrained text.1156111562            - `Text object { type }`1156311564              Unconstrained free-form text.1156511566              - `type: "text"`1156711568                Unconstrained text format. Always `text`.1156911570                - `"text"`1157111572            - `Grammar object { definition, syntax, type }`1157311574              A grammar defined by the user.1157511576              - `definition: string`1157711578                The grammar definition.1157911580              - `syntax: "lark" or "regex"`1158111582                The syntax of the grammar definition. One of `lark` or `regex`.1158311584                - `"lark"`1158511586                - `"regex"`1158711588              - `type: "grammar"`1158911590                Grammar format. Always `grammar`.1159111592                - `"grammar"`1159311594        - `Namespace object { description, name, tools, type }`1159511596          Groups function/custom tools under a shared namespace.1159711598          - `description: string`1159911600            A description of the namespace shown to the model.1160111602          - `name: string`1160311604            The namespace name used in tool calls (for example, `crm`).1160511606          - `tools: array of object { name, type, allowed_callers, 6 more }  or object { name, type, allowed_callers, 4 more }`1160711608            The function/custom tools available inside this namespace.1160911610            - `Function object { name, type, allowed_callers, 6 more }`1161111612              - `name: string`1161311614              - `type: "function"`1161511616                - `"function"`1161711618              - `allowed_callers: optional array of "direct" or "programmatic" or null`1161911620                The tool invocation context(s).1162111622                - `"direct"`1162311624                - `"programmatic"`1162511626              - `async: optional boolean`1162711628                Whether the tool response can be returned asynchronously versus immediately returned on next response creation.1162911630              - `defer_loading: optional boolean`1163111632                Whether this function should be deferred and discovered via tool search.1163311634              - `description: optional string or null`1163511636              - `output_schema: optional map[unknown] or null`1163711638                A JSON Schema describing the JSON value encoded in string outputs for this function tool. This does not describe content-array outputs.1163911640              - `parameters: optional unknown or null`1164111642              - `strict: optional boolean or null`1164311644                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.1164511646            - `Custom object { name, type, allowed_callers, 4 more }`1164711648              A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)1164911650              - `name: string`1165111652                The name of the custom tool, used to identify it in tool calls.1165311654              - `type: "custom"`1165511656                The type of the custom tool. Always `custom`.1165711658                - `"custom"`1165911660              - `allowed_callers: optional array of "direct" or "programmatic" or null`1166111662                The tool invocation context(s).1166311664                - `"direct"`1166511666                - `"programmatic"`1166711668              - `async: optional boolean`1166911670                Whether the tool response can be returned asynchronously versus immediately returned on next response creation.1167111672              - `defer_loading: optional boolean`1167311674                Whether this tool should be deferred and discovered via tool search.1167511676              - `description: optional string`1167711678                Optional description of the custom tool, used to provide more context.1167911680              - `format: optional CustomToolInputFormat`1168111682                The input format for the custom tool. Default is unconstrained text.1168311684          - `type: "namespace"`1168511686            The type of the tool. Always `namespace`.1168711688            - `"namespace"`1168911690        - `ToolSearch object { type, description, execution, parameters }`1169111692          Hosted or BYOT tool search configuration for deferred tools.1169311694          - `type: "tool_search"`1169511696            The type of the tool. Always `tool_search`.1169711698            - `"tool_search"`1169911700          - `description: optional string or null`1170111702            Description shown to the model for a client-executed tool search tool.1170311704          - `execution: optional "server" or "client"`1170511706            Whether tool search is executed by the server or by the client.1170711708            - `"server"`1170911710            - `"client"`1171111712          - `parameters: optional unknown or null`1171311714            Parameter schema for a client-executed tool search tool.1171511716        - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`1171711718          This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](/api/docs/guides/tools-web-search).1171911720          - `type: "web_search_preview" or "web_search_preview_2025_03_11"`1172111722            The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.1172311724            - `"web_search_preview"`1172511726            - `"web_search_preview_2025_03_11"`1172711728          - `search_content_types: optional array of "text" or "image"`1172911730            - `"text"`1173111732            - `"image"`1173311734          - `search_context_size: optional "low" or "medium" or "high"`1173511736            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.1173711738            - `"low"`1173911740            - `"medium"`1174111742            - `"high"`1174311744          - `user_location: optional object { type, city, country, 2 more }  or null`1174511746            The user's location.1174711748            - `type: "approximate"`1174911750              The type of location approximation. Always `approximate`.1175111752              - `"approximate"`1175311754            - `city: optional string or null`1175511756              Free text input for the city of the user, e.g. `San Francisco`.1175711758            - `country: optional string or null`1175911760              The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.1176111762            - `region: optional string or null`1176311764              Free text input for the region of the user, e.g. `California`.1176511766            - `timezone: optional string or null`1176711768              The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.1176911770        - `ApplyPatch object { type, allowed_callers }`1177111772          Allows the assistant to create, delete, or update files using unified diffs.1177311774          - `type: "apply_patch"`1177511776            The type of the tool. Always `apply_patch`.1177711778            - `"apply_patch"`1177911780          - `allowed_callers: optional array of "direct" or "programmatic" or null`1178111782            The tool invocation context(s).1178311784            - `"direct"`1178511786            - `"programmatic"`1178711788      - `type: "tool_search_output"`1178911790        The type of the item. Always `tool_search_output`.1179111792        - `"tool_search_output"`1179311794      - `created_by: optional string`1179511796        The identifier of the actor that created the item.1179711798    - `AdditionalTools object { id, role, tools, type }`1179911800      - `id: string`1180111802        The unique ID of the additional tools item.1180311804      - `role: "unknown" or "user" or "assistant" or 5 more`1180511806        The role that provided the additional tools.1180711808        - `"unknown"`1180911810        - `"user"`1181111812        - `"assistant"`1181311814        - `"system"`1181511816        - `"critic"`1181711818        - `"discriminator"`1181911820        - `"developer"`1182111822        - `"tool"`1182311824      - `tools: array of object { name, parameters, strict, 6 more }  or object { type, vector_store_ids, filters, 2 more }  or object { type }  or 13 more`1182511826        The additional tool definitions made available at this item.1182711828        - `Function object { name, parameters, strict, 6 more }`1182911830          Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).1183111832          - `name: string`1183311834            The name of the function to call.1183511836          - `parameters: map[unknown] or null`1183711838            A JSON schema object describing the parameters of the function.1183911840          - `strict: boolean or null`1184111842            Whether strict parameter validation is enforced for this function tool.1184311844          - `type: "function"`1184511846            The type of the function tool. Always `function`.1184711848            - `"function"`1184911850          - `allowed_callers: optional array of "direct" or "programmatic" or null`1185111852            The tool invocation context(s).1185311854            - `"direct"`1185511856            - `"programmatic"`1185711858          - `async: optional boolean`1185911860          - `defer_loading: optional boolean`1186111862            Whether this function is deferred and loaded via tool search.1186311864          - `description: optional string or null`1186511866            A description of the function. Used by the model to determine whether or not to call the function.1186711868          - `output_schema: optional map[unknown] or null`1186911870            A JSON schema object describing the JSON value encoded in string outputs for this function.1187111872        - `FileSearch object { type, vector_store_ids, filters, 2 more }`1187311874          A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).1187511876          - `type: "file_search"`1187711878            The type of the file search tool. Always `file_search`.1187911880            - `"file_search"`1188111882          - `vector_store_ids: array of string`1188311884            The IDs of the vector stores to search.1188511886          - `filters: optional ComparisonFilter or CompoundFilter or null`1188711888            A filter to apply.1188911890            - `ComparisonFilter object { key, type, value }`1189111892              A filter used to compare a specified attribute key to a given value using a defined comparison operation.1189311894            - `CompoundFilter object { filters, type }`1189511896              Combine multiple filters using `and` or `or`.1189711898          - `max_num_results: optional number`1189911900            The maximum number of results to return. This number should be between 1 and 50 inclusive.1190111902          - `ranking_options: optional object { hybrid_search, ranker, score_threshold }`1190311904            Ranking options for search.1190511906            - `hybrid_search: optional object { embedding_weight, text_weight }`1190711908              Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled.1190911910              - `embedding_weight: number`1191111912                The weight of the embedding in the reciprocal ranking fusion.1191311914              - `text_weight: number`1191511916                The weight of the text in the reciprocal ranking fusion.1191711918            - `ranker: optional "auto" or "default-2024-11-15"`1191911920              The ranker to use for the file search.1192111922              - `"auto"`1192311924              - `"default-2024-11-15"`1192511926            - `score_threshold: optional number`1192711928              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.1192911930        - `Computer object { type }`1193111932          A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).1193311934          - `type: "computer"`1193511936            The type of the computer tool. Always `computer`.1193711938            - `"computer"`1193911940        - `ComputerUsePreview object { display_height, display_width, environment, type }`1194111942          A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).1194311944          - `display_height: number`1194511946            The height of the computer display.1194711948          - `display_width: number`1194911950            The width of the computer display.1195111952          - `environment: "windows" or "mac" or "linux" or 2 more`1195311954            The type of computer environment to control.1195511956            - `"windows"`1195711958            - `"mac"`1195911960            - `"linux"`1196111962            - `"ubuntu"`1196311964            - `"browser"`1196511966          - `type: "computer_use_preview"`1196711968            The type of the computer use tool. Always `computer_use_preview`.1196911970            - `"computer_use_preview"`1197111972        - `WebSearch object { type, external_web_access, filters, 2 more }`1197311974          Search the Internet for sources related to the prompt. Learn more about the11975          [web search tool](/api/docs/guides/tools-web-search).1197611977          - `type: "web_search" or "web_search_2025_08_26"`1197811979            The type of the web search tool. One of `web_search` or `web_search_2025_08_26`.1198011981            - `"web_search"`1198211983            - `"web_search_2025_08_26"`1198411985          - `external_web_access: optional boolean`1198611987            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.1198811989          - `filters: optional object { allowed_domains }  or null`1199011991            Filters for the search.1199211993            - `allowed_domains: optional array of string or null`1199411995              Allowed domains for the search. If not provided, all domains are allowed.11996              Subdomains of the provided domains are allowed as well.1199711998              Example: `["pubmed.ncbi.nlm.nih.gov"]`1199912000          - `search_context_size: optional "low" or "medium" or "high"`1200112002            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.1200312004            - `"low"`1200512006            - `"medium"`1200712008            - `"high"`1200912010          - `user_location: optional object { city, country, region, 2 more }  or null`1201112012            The approximate location of the user.1201312014            - `city: optional string or null`1201512016              Free text input for the city of the user, e.g. `San Francisco`.1201712018            - `country: optional string or null`1201912020              The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.1202112022            - `region: optional string or null`1202312024              Free text input for the region of the user, e.g. `California`.1202512026            - `timezone: optional string or null`1202712028              The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.1202912030            - `type: optional "approximate"`1203112032              The type of location approximation. Always `approximate`.1203312034              - `"approximate"`1203512036        - `Mcp object { server_label, type, allowed_callers, 9 more }`1203712038          Give the model access to additional tools via remote Model Context Protocol12039          (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).1204012041          - `server_label: string`1204212043            A label for this MCP server, used to identify it in tool calls.1204412045          - `type: "mcp"`1204612047            The type of the MCP tool. Always `mcp`.1204812049            - `"mcp"`1205012051          - `allowed_callers: optional array of "direct" or "programmatic" or null`1205212053            The tool invocation context(s).1205412055            - `"direct"`1205612057            - `"programmatic"`1205812059          - `allowed_tools: optional array of string or object { read_only, tool_names }  or null`1206012061            List of allowed tool names or a filter object.1206212063            - `McpAllowedTools = array of string`1206412065              A string array of allowed tool names1206612067            - `McpToolFilter object { read_only, tool_names }`1206812069              A filter object to specify which tools are allowed.1207012071              - `read_only: optional boolean`1207212073                Indicates whether or not a tool modifies data or is read-only. If an12074                MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),12075                it will match this filter.1207612077              - `tool_names: optional array of string`1207812079                List of allowed tool names.1208012081          - `authorization: optional string`1208212083            An OAuth access token that can be used with a remote MCP server, either12084            with a custom MCP server URL or a service connector. Your application12085            must handle the OAuth authorization flow and provide the token here.1208612087          - `connector_id: optional "connector_dropbox" or "connector_gmail" or "connector_googlecalendar" or 5 more`1208812089            Identifier for service connectors, like those available in ChatGPT. One of12090            `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more12091            about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).1209212093            This field is deprecated for models released after September 1, 2026.12094            Use `server_url` to connect to a remote MCP server, or `tunnel_id` to12095            connect through a Secure MCP Tunnel.1209612097            Currently supported `connector_id` values are:1209812099            - Dropbox: `connector_dropbox`12100            - Gmail: `connector_gmail`12101            - Google Calendar: `connector_googlecalendar`12102            - Google Drive: `connector_googledrive`12103            - Microsoft Teams: `connector_microsoftteams`12104            - Outlook Calendar: `connector_outlookcalendar`12105            - Outlook Email: `connector_outlookemail`12106            - SharePoint: `connector_sharepoint`1210712108            - `"connector_dropbox"`1210912110            - `"connector_gmail"`1211112112            - `"connector_googlecalendar"`1211312114            - `"connector_googledrive"`1211512116            - `"connector_microsoftteams"`1211712118            - `"connector_outlookcalendar"`1211912120            - `"connector_outlookemail"`1212112122            - `"connector_sharepoint"`1212312124          - `defer_loading: optional boolean`1212512126            Whether this MCP tool is deferred and discovered via tool search.1212712128          - `headers: optional map[string] or null`1212912130            Optional HTTP headers to send to the MCP server. Use for authentication12131            or other purposes.1213212133          - `require_approval: optional object { always, never }  or "always" or "never" or null`1213412135            Specify which of the MCP server's tools require approval.1213612137            - `McpToolApprovalFilter object { always, never }`1213812139              Specify which of the MCP server's tools require approval. Can be12140              `always`, `never`, or a filter object associated with tools12141              that require approval.1214212143              - `always: optional object { read_only, tool_names }`1214412145                A filter object to specify which tools are allowed.1214612147                - `read_only: optional boolean`1214812149                  Indicates whether or not a tool modifies data or is read-only. If an12150                  MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),12151                  it will match this filter.1215212153                - `tool_names: optional array of string`1215412155                  List of allowed tool names.1215612157              - `never: optional object { read_only, tool_names }`1215812159                A filter object to specify which tools are allowed.1216012161                - `read_only: optional boolean`1216212163                  Indicates whether or not a tool modifies data or is read-only. If an12164                  MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),12165                  it will match this filter.1216612167                - `tool_names: optional array of string`1216812169                  List of allowed tool names.1217012171            - `McpToolApprovalSetting = "always" or "never"`1217212173              Specify a single approval policy for all tools. One of `always` or12174              `never`. When set to `always`, all tools will require approval. When12175              set to `never`, all tools will not require approval.1217612177              - `"always"`1217812179              - `"never"`1218012181          - `server_description: optional string`1218212183            Optional description of the MCP server, used to provide more context.1218412185          - `server_url: optional string`1218612187            The URL for the MCP server. One of `server_url`, `connector_id`, or12188            `tunnel_id` must be provided.1218912190          - `tunnel_id: optional string`1219112192            The Secure MCP Tunnel ID to use instead of a direct server URL. One of12193            `server_url`, `connector_id`, or `tunnel_id` must be provided.1219412195        - `CodeInterpreter object { container, type, allowed_callers }`1219612197          A tool that runs Python code to help generate a response to a prompt.1219812199          - `container: string or object { type, file_ids, memory_limit, network_policy }`1220012201            The code interpreter container. Can be a container ID or an object that12202            specifies uploaded file IDs to make available to your code, along with an12203            optional `memory_limit` setting.1220412205            - `string`1220612207              The container ID.1220812209            - `CodeInterpreterToolAuto object { type, file_ids, memory_limit, network_policy }`1221012211              Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.1221212213              - `type: "auto"`1221412215                Always `auto`.1221612217                - `"auto"`1221812219              - `file_ids: optional array of string`1222012221                An optional list of uploaded files to make available to your code.1222212223              - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`1222412225                The memory limit for the code interpreter container.1222612227                - `"1g"`1222812229                - `"4g"`1223012231                - `"16g"`1223212233                - `"64g"`1223412235              - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`1223612237                Network access policy for the container.1223812239                - `ContainerNetworkPolicyDisabled object { type }`1224012241                - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`1224212243          - `type: "code_interpreter"`1224412245            The type of the code interpreter tool. Always `code_interpreter`.1224612247            - `"code_interpreter"`1224812249          - `allowed_callers: optional array of "direct" or "programmatic" or null`1225012251            The tool invocation context(s).1225212253            - `"direct"`1225412255            - `"programmatic"`1225612257        - `ProgrammaticToolCalling object { type }`1225812259          - `type: "programmatic_tool_calling"`1226012261            The type of the tool. Always `programmatic_tool_calling`.1226212263            - `"programmatic_tool_calling"`1226412265        - `ImageGeneration object { type, action, background, 9 more }`1226612267          A tool that generates images using the GPT image models.1226812269          - `type: "image_generation"`1227012271            The type of the image generation tool. Always `image_generation`.1227212273            - `"image_generation"`1227412275          - `action: optional "generate" or "edit" or "auto"`1227612277            Whether to generate a new image or edit an existing image. Default: `auto`.1227812279            - `"generate"`1228012281            - `"edit"`1228212283            - `"auto"`1228412285          - `background: optional "transparent" or "opaque" or "auto"`1228612287            Set the background of the generated image. One of `transparent`, `opaque`,12288            or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including12289            their `2026-09-08` snapshots, support `opaque` and `transparent`12290            backgrounds. Transparent backgrounds are available for supported GPT Image12291            models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in12292            preview. When using `transparent`, set the output format to `png` or `webp`.12293            Default: `auto`.1229412295            - `"transparent"`1229612297            - `"opaque"`1229812299            - `"auto"`1230012301          - `input_fidelity: optional "high" or "low" or null`1230212303            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`.1230412305            - `"high"`1230612307            - `"low"`1230812309          - `input_image_mask: optional object { file_id, image_url }`1231012311            Optional mask for inpainting. Contains `image_url`12312            (string, optional) and `file_id` (string, optional).1231312314            - `file_id: optional string`1231512316              File ID for the mask image.1231712318            - `image_url: optional string`1231912320              Base64-encoded mask image.1232112322          - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`1232312324            The image generation model to use. One of `gpt-image-1`,12325            `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,12326            `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,12327            `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,12328            `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:12329            `gpt-image-1`.1233012331            - `string`1233212333            - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`1233412335              The image generation model to use. One of `gpt-image-1`,12336              `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,12337              `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,12338              `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,12339              `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:12340              `gpt-image-1`.1234112342              - `"gpt-image-1"`1234312344              - `"gpt-image-1-mini"`1234512346              - `"gpt-image-1.5"`1234712348              - `"gpt-image-2"`1234912350              - `"gpt-image-2-2026-04-21"`1235112352              - `"gpt-image-2.5-sunburst"`1235312354              - `"gpt-image-2.5-sunburst-2026-09-08"`1235512356              - `"gpt-image-2.5-flare"`1235712358              - `"gpt-image-2.5-flare-2026-09-08"`1235912360          - `moderation: optional "auto" or "low"`1236112362            Moderation level for the generated image. Default: `auto`.1236312364            - `"auto"`1236512366            - `"low"`1236712368          - `output_compression: optional number`1236912370            Compression level for the output image. Default: 100.1237112372          - `output_format: optional "png" or "webp" or "jpeg"`1237312374            The output format of the generated image. One of `png`, `webp`, or12375            `jpeg`. Default: `png`.1237612377            - `"png"`1237812379            - `"webp"`1238012381            - `"jpeg"`1238212383          - `partial_images: optional number`1238412385            Number of partial images to generate in streaming mode, from 0 (default value) to 3.1238612387          - `quality: optional "low" or "medium" or "high" or 3 more`1238812389            The quality of the generated image. The GPT image models support `low`,12390            `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,12391            including their `2026-09-08` snapshots, also support `xhigh` and `max`.12392            Default: `auto`.1239312394            - `"low"`1239512396            - `"medium"`1239712398            - `"high"`1239912400            - `"xhigh"`1240112402            - `"max"`1240312404            - `"auto"`1240512406          - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`1240712408            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`.1240912410            - `string`1241112412            - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`1241312414              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`.1241512416              - `"1024x1024"`1241712418              - `"1024x1536"`1241912420              - `"1536x1024"`1242112422              - `"auto"`1242312424        - `LocalShell object { type }`1242512426          A tool that allows the model to execute shell commands in a local environment.1242712428          - `type: "local_shell"`1242912430            The type of the local shell tool. Always `local_shell`.1243112432            - `"local_shell"`1243312434        - `Shell object { type, allowed_callers, environment }`1243512436          A tool that allows the model to execute shell commands.1243712438          - `type: "shell"`1243912440            The type of the shell tool. Always `shell`.1244112442            - `"shell"`1244312444          - `allowed_callers: optional array of "direct" or "programmatic" or null`1244512446            The tool invocation context(s).1244712448            - `"direct"`1244912450            - `"programmatic"`1245112452          - `environment: optional ContainerAuto or LocalEnvironment or ContainerReference or null`1245312454            - `ContainerAuto object { type, file_ids, memory_limit, 2 more }`1245512456            - `LocalEnvironment object { type, skills }`1245712458            - `ContainerReference object { container_id, type }`1245912460        - `Custom object { name, type, allowed_callers, 4 more }`1246112462          A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)1246312464          - `name: string`1246512466            The name of the custom tool, used to identify it in tool calls.1246712468          - `type: "custom"`1246912470            The type of the custom tool. Always `custom`.1247112472            - `"custom"`1247312474          - `allowed_callers: optional array of "direct" or "programmatic" or null`1247512476            The tool invocation context(s).1247712478            - `"direct"`1247912480            - `"programmatic"`1248112482          - `async: optional boolean`1248312484            Whether the tool response can be returned asynchronously versus immediately returned on next response creation.1248512486          - `defer_loading: optional boolean`1248712488            Whether this tool should be deferred and discovered via tool search.1248912490          - `description: optional string`1249112492            Optional description of the custom tool, used to provide more context.1249312494          - `format: optional CustomToolInputFormat`1249512496            The input format for the custom tool. Default is unconstrained text.1249712498        - `Namespace object { description, name, tools, type }`1249912500          Groups function/custom tools under a shared namespace.1250112502          - `description: string`1250312504            A description of the namespace shown to the model.1250512506          - `name: string`1250712508            The namespace name used in tool calls (for example, `crm`).1250912510          - `tools: array of object { name, type, allowed_callers, 6 more }  or object { name, type, allowed_callers, 4 more }`1251112512            The function/custom tools available inside this namespace.1251312514            - `Function object { name, type, allowed_callers, 6 more }`1251512516              - `name: string`1251712518              - `type: "function"`1251912520                - `"function"`1252112522              - `allowed_callers: optional array of "direct" or "programmatic" or null`1252312524                The tool invocation context(s).1252512526                - `"direct"`1252712528                - `"programmatic"`1252912530              - `async: optional boolean`1253112532                Whether the tool response can be returned asynchronously versus immediately returned on next response creation.1253312534              - `defer_loading: optional boolean`1253512536                Whether this function should be deferred and discovered via tool search.1253712538              - `description: optional string or null`1253912540              - `output_schema: optional map[unknown] or null`1254112542                A JSON Schema describing the JSON value encoded in string outputs for this function tool. This does not describe content-array outputs.1254312544              - `parameters: optional unknown or null`1254512546              - `strict: optional boolean or null`1254712548                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.1254912550            - `Custom object { name, type, allowed_callers, 4 more }`1255112552              A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)1255312554              - `name: string`1255512556                The name of the custom tool, used to identify it in tool calls.1255712558              - `type: "custom"`1255912560                The type of the custom tool. Always `custom`.1256112562                - `"custom"`1256312564              - `allowed_callers: optional array of "direct" or "programmatic" or null`1256512566                The tool invocation context(s).1256712568                - `"direct"`1256912570                - `"programmatic"`1257112572              - `async: optional boolean`1257312574                Whether the tool response can be returned asynchronously versus immediately returned on next response creation.1257512576              - `defer_loading: optional boolean`1257712578                Whether this tool should be deferred and discovered via tool search.1257912580              - `description: optional string`1258112582                Optional description of the custom tool, used to provide more context.1258312584              - `format: optional CustomToolInputFormat`1258512586                The input format for the custom tool. Default is unconstrained text.1258712588          - `type: "namespace"`1258912590            The type of the tool. Always `namespace`.1259112592            - `"namespace"`1259312594        - `ToolSearch object { type, description, execution, parameters }`1259512596          Hosted or BYOT tool search configuration for deferred tools.1259712598          - `type: "tool_search"`1259912600            The type of the tool. Always `tool_search`.1260112602            - `"tool_search"`1260312604          - `description: optional string or null`1260512606            Description shown to the model for a client-executed tool search tool.1260712608          - `execution: optional "server" or "client"`1260912610            Whether tool search is executed by the server or by the client.1261112612            - `"server"`1261312614            - `"client"`1261512616          - `parameters: optional unknown or null`1261712618            Parameter schema for a client-executed tool search tool.1261912620        - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`1262112622          This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](/api/docs/guides/tools-web-search).1262312624          - `type: "web_search_preview" or "web_search_preview_2025_03_11"`1262512626            The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.1262712628            - `"web_search_preview"`1262912630            - `"web_search_preview_2025_03_11"`1263112632          - `search_content_types: optional array of "text" or "image"`1263312634            - `"text"`1263512636            - `"image"`1263712638          - `search_context_size: optional "low" or "medium" or "high"`1263912640            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.1264112642            - `"low"`1264312644            - `"medium"`1264512646            - `"high"`1264712648          - `user_location: optional object { type, city, country, 2 more }  or null`1264912650            The user's location.1265112652            - `type: "approximate"`1265312654              The type of location approximation. Always `approximate`.1265512656              - `"approximate"`1265712658            - `city: optional string or null`1265912660              Free text input for the city of the user, e.g. `San Francisco`.1266112662            - `country: optional string or null`1266312664              The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.1266512666            - `region: optional string or null`1266712668              Free text input for the region of the user, e.g. `California`.1266912670            - `timezone: optional string or null`1267112672              The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.1267312674        - `ApplyPatch object { type, allowed_callers }`1267512676          Allows the assistant to create, delete, or update files using unified diffs.1267712678          - `type: "apply_patch"`1267912680            The type of the tool. Always `apply_patch`.1268112682            - `"apply_patch"`1268312684          - `allowed_callers: optional array of "direct" or "programmatic" or null`1268512686            The tool invocation context(s).1268712688            - `"direct"`1268912690            - `"programmatic"`1269112692      - `type: "additional_tools"`1269312694        The type of the item. Always `additional_tools`.1269512696        - `"additional_tools"`1269712698    - `ConfigurationUpdate object { id, type, reasoning }`1269912700      A configuration update that applies to subsequent responses until it is12701      replaced by another configuration update.1270212703      - `id: string`1270412705        The unique ID of the configuration update item.1270612707      - `type: "configuration_update"`1270812709        The item type. Always `configuration_update`.1271012711        - `"configuration_update"`1271212713      - `reasoning: optional object { effort }`1271412715        The reasoning configuration applied by this update.1271612717        - `effort: optional ReasoningEffort or null`1271812719          The reasoning effort used for subsequent responses until another12720          configuration update replaces it.1272112722          - `"none"`1272312724          - `"minimal"`1272512726          - `"low"`1272712728          - `"medium"`1272912730          - `"high"`1273112732          - `"xhigh"`1273312734          - `"max"`1273512736    - `Reasoning object { id, summary, type, 3 more }`1273712738      A description of the chain of thought used by a reasoning model while generating12739      a response. Be sure to include these items in your `input` to the Responses API12740      for subsequent turns of a conversation if you are manually12741      [managing context](/api/docs/guides/conversation-state).1274212743      - `id: string`1274412745        The unique identifier of the reasoning content.1274612747      - `summary: array of SummaryTextContent`1274812749        Reasoning summary content.1275012751        - `text: string`1275212753          A summary of the reasoning output from the model so far.1275412755        - `type: "summary_text"`1275612757          The type of the object. Always `summary_text`.1275812759      - `type: "reasoning"`1276012761        The type of the object. Always `reasoning`.1276212763        - `"reasoning"`1276412765      - `content: optional array of object { text, type }`1276612767        Reasoning text content.1276812769        - `text: string`1277012771          The reasoning text from the model.1277212773        - `type: "reasoning_text"`1277412775          The type of the reasoning text. Always `reasoning_text`.1277612777          - `"reasoning_text"`1277812779      - `encrypted_content: optional string or null`1278012781        The encrypted content of the reasoning item. This is populated by default12782        for reasoning items returned by `POST /v1/responses` and WebSocket12783        `response.create` requests.1278412785        When streaming, use the completed reasoning item and its12786        `encrypted_content` from the `response.output_item.done` event in12787        subsequent requests. The `encrypted_content` in12788        `response.output_item.added` may be incomplete. This is especially12789        important when `store` is `false` or when using Zero Data Retention.1279012791      - `status: optional "in_progress" or "completed" or "incomplete"`1279212793        The status of the item. One of `in_progress`, `completed`, or12794        `incomplete`. Populated when items are returned via API.1279512796        - `"in_progress"`1279712798        - `"completed"`1279912800        - `"incomplete"`1280112802    - `Program object { id, call_id, code, 2 more }`1280312804      - `id: string`1280512806        The unique ID of the program item.1280712808      - `call_id: string`1280912810        The stable call ID of the program item.1281112812      - `code: string`1281312814        The JavaScript source executed by programmatic tool calling.1281512816      - `fingerprint: string`1281712818        Opaque program replay fingerprint that must be round-tripped.1281912820      - `type: "program"`1282112822        The type of the item. Always `program`.1282312824        - `"program"`1282512826    - `ProgramOutput object { id, call_id, result, 2 more }`1282712828      - `id: string`1282912830        The unique ID of the program output item.1283112832      - `call_id: string`1283312834        The call ID of the program item.1283512836      - `result: string`1283712838        The result produced by the program item.1283912840      - `status: "completed" or "incomplete"`1284112842        The terminal status of the program output item.1284312844        - `"completed"`1284512846        - `"incomplete"`1284712848      - `type: "program_output"`1284912850        The type of the item. Always `program_output`.1285112852        - `"program_output"`1285312854    - `Compaction object { id, encrypted_content, type, created_by }`1285512856      A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).1285712858      - `id: string`1285912860        The unique ID of the compaction item.1286112862      - `encrypted_content: string`1286312864        The encrypted content that was produced by compaction.1286512866      - `type: "compaction"`1286712868        The type of the item. Always `compaction`.1286912870        - `"compaction"`1287112872      - `created_by: optional string`1287312874        The identifier of the actor that created the item.1287512876    - `CodeInterpreterCall object { id, code, container_id, 3 more }`1287712878      A tool call to run code.1287912880      - `id: string`1288112882        The unique ID of the code interpreter tool call.1288312884      - `code: string or null`1288512886        The code to run, or null if not available.1288712888      - `container_id: string`1288912890        The ID of the container used to run the code.1289112892      - `outputs: array of object { logs, type }  or object { type, url }  or null`1289312894        The outputs generated by the code interpreter, such as logs or images.12895        Can be null if no outputs are available.1289612897        - `Logs object { logs, type }`1289812899          The logs output from the code interpreter.1290012901          - `logs: string`1290212903            The logs output from the code interpreter.1290412905          - `type: "logs"`1290612907            The type of the output. Always `logs`.1290812909            - `"logs"`1291012911        - `Image object { type, url }`1291212913          The image output from the code interpreter.1291412915          - `type: "image"`1291612917            The type of the output. Always `image`.1291812919            - `"image"`1292012921          - `url: string`1292212923            The URL of the image output from the code interpreter.1292412925      - `status: "in_progress" or "completed" or "incomplete" or 2 more`1292612927        The status of the code interpreter tool call. Valid values are `in_progress`, `completed`, `incomplete`, `interpreting`, and `failed`.1292812929        - `"in_progress"`1293012931        - `"completed"`1293212933        - `"incomplete"`1293412935        - `"interpreting"`1293612937        - `"failed"`1293812939      - `type: "code_interpreter_call"`1294012941        The type of the code interpreter tool call. Always `code_interpreter_call`.1294212943        - `"code_interpreter_call"`1294412945    - `LocalShellCall object { id, action, call_id, 2 more }`1294612947      A tool call to run a command on the local shell.1294812949      - `id: string`1295012951        The unique ID of the local shell call.1295212953      - `action: object { command, env, type, 3 more }`1295412955        Execute a shell command on the server.1295612957        - `command: array of string`1295812959          The command to run.1296012961        - `env: map[string]`1296212963          Environment variables to set for the command.1296412965        - `type: "exec"`1296612967          The type of the local shell action. Always `exec`.1296812969          - `"exec"`1297012971        - `timeout_ms: optional number or null`1297212973          Optional timeout in milliseconds for the command.1297412975        - `user: optional string or null`1297612977          Optional user to run the command as.1297812979        - `working_directory: optional string or null`1298012981          Optional working directory to run the command in.1298212983      - `call_id: string`1298412985        The unique ID of the local shell tool call generated by the model.1298612987      - `status: "in_progress" or "completed" or "incomplete"`1298812989        The status of the local shell call.1299012991        - `"in_progress"`1299212993        - `"completed"`1299412995        - `"incomplete"`1299612997      - `type: "local_shell_call"`1299812999        The type of the local shell call. Always `local_shell_call`.1300013001        - `"local_shell_call"`1300213003    - `LocalShellCallOutput object { id, output, type, status }`1300413005      The output of a local shell tool call.1300613007      - `id: string`1300813009        The unique ID of the local shell tool call generated by the model.1301013011      - `output: string`1301213013        A JSON string of the output of the local shell tool call.1301413015      - `type: "local_shell_call_output"`1301613017        The type of the local shell tool call output. Always `local_shell_call_output`.1301813019        - `"local_shell_call_output"`1302013021      - `status: optional "in_progress" or "completed" or "incomplete" or null`1302213023        The status of the item. One of `in_progress`, `completed`, or `incomplete`.1302413025        - `"in_progress"`1302613027        - `"completed"`1302813029        - `"incomplete"`1303013031    - `ShellCall object { id, action, call_id, 5 more }`1303213033      A tool call that executes one or more shell commands in a managed environment.1303413035      - `id: string`1303613037        The unique ID of the shell tool call. Populated when this item is returned via API.1303813039      - `action: object { commands, max_output_length, timeout_ms }`1304013041        The shell commands and limits that describe how to run the tool call.1304213043        - `commands: array of string`1304413045        - `max_output_length: number or null`1304613047          Optional maximum number of characters to return from each command.1304813049        - `timeout_ms: number or null`1305013051          Optional timeout in milliseconds for the commands.1305213053      - `call_id: string`1305413055        The unique ID of the shell tool call generated by the model.1305613057      - `environment: ResponseLocalEnvironment or ResponseContainerReference or null`1305813059        Represents the use of a local environment to perform shell actions.1306013061        - `ResponseLocalEnvironment object { type }`1306213063          Represents the use of a local environment to perform shell actions.1306413065          - `type: "local"`1306613067            The environment type. Always `local`.1306813069            - `"local"`1307013071        - `ResponseContainerReference object { container_id, type }`1307213073          Represents a container created with /v1/containers.1307413075          - `container_id: string`1307613077          - `type: "container_reference"`1307813079            The environment type. Always `container_reference`.1308013081            - `"container_reference"`1308213083      - `status: "in_progress" or "completed" or "incomplete"`1308413085        The status of the shell call. One of `in_progress`, `completed`, or `incomplete`.1308613087        - `"in_progress"`1308813089        - `"completed"`1309013091        - `"incomplete"`1309213093      - `type: "shell_call"`1309413095        The type of the item. Always `shell_call`.1309613097        - `"shell_call"`1309813099      - `caller: optional object { type }  or object { caller_id, type }  or null`1310013101        The execution context that produced this tool call.1310213103        - `Direct object { type }`1310413105          - `type: "direct"`1310613107            - `"direct"`1310813109        - `Program object { caller_id, type }`1311013111          - `caller_id: string`1311213113            The call ID of the program item that produced this tool call.1311413115          - `type: "program"`1311613117            - `"program"`1311813119      - `created_by: optional string`1312013121        The ID of the entity that created this tool call.1312213123    - `ShellCallOutput object { id, call_id, max_output_length, 5 more }`1312413125      The output of a shell tool call that was emitted.1312613127      - `id: string`1312813129        The unique ID of the shell call output. Populated when this item is returned via API.1313013131      - `call_id: string`1313213133        The unique ID of the shell tool call generated by the model.1313413135      - `max_output_length: number or null`1313613137        The maximum length of the shell command output. This is generated by the model and should be passed back with the raw output.1313813139      - `output: array of object { outcome, stderr, stdout, created_by }`1314013141        An array of shell call output contents1314213143        - `outcome: object { type }  or object { exit_code, type }`1314413145          Represents either an exit outcome (with an exit code) or a timeout outcome for a shell call output chunk.1314613147          - `Timeout object { type }`1314813149            Indicates that the shell call exceeded its configured time limit.1315013151            - `type: "timeout"`1315213153              The outcome type. Always `timeout`.1315413155              - `"timeout"`1315613157          - `Exit object { exit_code, type }`1315813159            Indicates that the shell commands finished and returned an exit code.1316013161            - `exit_code: number`1316213163              Exit code from the shell process.1316413165            - `type: "exit"`1316613167              The outcome type. Always `exit`.1316813169              - `"exit"`1317013171        - `stderr: string`1317213173          The standard error output that was captured.1317413175        - `stdout: string`1317613177          The standard output that was captured.1317813179        - `created_by: optional string`1318013181          The identifier of the actor that created the item.1318213183      - `status: "in_progress" or "completed" or "incomplete"`1318413185        The status of the shell call output. One of `in_progress`, `completed`, or `incomplete`.1318613187        - `"in_progress"`1318813189        - `"completed"`1319013191        - `"incomplete"`1319213193      - `type: "shell_call_output"`1319413195        The type of the shell call output. Always `shell_call_output`.1319613197        - `"shell_call_output"`1319813199      - `caller: optional object { type }  or object { caller_id, type }  or null`1320013201        The execution context that produced this tool call.1320213203        - `Direct object { type }`1320413205          - `type: "direct"`1320613207            - `"direct"`1320813209        - `Program object { caller_id, type }`1321013211          - `caller_id: string`1321213213            The call ID of the program item that produced this tool call.1321413215          - `type: "program"`1321613217            - `"program"`1321813219      - `created_by: optional string`1322013221        The identifier of the actor that created the item.1322213223    - `ApplyPatchCall object { id, call_id, operation, 4 more }`1322413225      A tool call that applies file diffs by creating, deleting, or updating files.1322613227      - `id: string`1322813229        The unique ID of the apply patch tool call. Populated when this item is returned via API.1323013231      - `call_id: string`1323213233        The unique ID of the apply patch tool call generated by the model.1323413235      - `operation: object { diff, path, type }  or object { path, type }  or object { diff, path, type }`1323613237        One of the create_file, delete_file, or update_file operations applied via apply_patch.1323813239        - `CreateFile object { diff, path, type }`1324013241          Instruction describing how to create a file via the apply_patch tool.1324213243          - `diff: string`1324413245            Diff to apply.1324613247          - `path: string`1324813249            Path of the file to create.1325013251          - `type: "create_file"`1325213253            Create a new file with the provided diff.1325413255            - `"create_file"`1325613257        - `DeleteFile object { path, type }`1325813259          Instruction describing how to delete a file via the apply_patch tool.1326013261          - `path: string`1326213263            Path of the file to delete.1326413265          - `type: "delete_file"`1326613267            Delete the specified file.1326813269            - `"delete_file"`1327013271        - `UpdateFile object { diff, path, type }`1327213273          Instruction describing how to update a file via the apply_patch tool.1327413275          - `diff: string`1327613277            Diff to apply.1327813279          - `path: string`1328013281            Path of the file to update.1328213283          - `type: "update_file"`1328413285            Update an existing file with the provided diff.1328613287            - `"update_file"`1328813289      - `status: "in_progress" or "completed"`1329013291        The status of the apply patch tool call. One of `in_progress` or `completed`.1329213293        - `"in_progress"`1329413295        - `"completed"`1329613297      - `type: "apply_patch_call"`1329813299        The type of the item. Always `apply_patch_call`.1330013301        - `"apply_patch_call"`1330213303      - `caller: optional object { type }  or object { caller_id, type }  or null`1330413305        The execution context that produced this tool call.1330613307        - `Direct object { type }`1330813309          - `type: "direct"`1331013311            - `"direct"`1331213313        - `Program object { caller_id, type }`1331413315          - `caller_id: string`1331613317            The call ID of the program item that produced this tool call.1331813319          - `type: "program"`1332013321            - `"program"`1332213323      - `created_by: optional string`1332413325        The ID of the entity that created this tool call.1332613327    - `ApplyPatchCallOutput object { id, call_id, status, 4 more }`1332813329      The output emitted by an apply patch tool call.1333013331      - `id: string`1333213333        The unique ID of the apply patch tool call output. Populated when this item is returned via API.1333413335      - `call_id: string`1333613337        The unique ID of the apply patch tool call generated by the model.1333813339      - `status: "completed" or "failed"`1334013341        The status of the apply patch tool call output. One of `completed` or `failed`.1334213343        - `"completed"`1334413345        - `"failed"`1334613347      - `type: "apply_patch_call_output"`1334813349        The type of the item. Always `apply_patch_call_output`.1335013351        - `"apply_patch_call_output"`1335213353      - `caller: optional object { type }  or object { caller_id, type }  or null`1335413355        The execution context that produced this tool call.1335613357        - `Direct object { type }`1335813359          - `type: "direct"`1336013361            - `"direct"`1336213363        - `Program object { caller_id, type }`1336413365          - `caller_id: string`1336613367            The call ID of the program item that produced this tool call.1336813369          - `type: "program"`1337013371            - `"program"`1337213373      - `created_by: optional string`1337413375        The ID of the entity that created this tool call output.1337613377      - `output: optional string or null`1337813379        Optional textual output returned by the apply patch tool.1338013381    - `McpListTools object { id, server_label, tools, 2 more }`1338213383      A list of tools available on an MCP server.1338413385      - `id: string`1338613387        The unique ID of the list.1338813389      - `server_label: string`1339013391        The label of the MCP server.1339213393      - `tools: array of object { input_schema, name, annotations, description }`1339413395        The tools available on the server.1339613397        - `input_schema: unknown`1339813399          The JSON schema describing the tool's input.1340013401        - `name: string`1340213403          The name of the tool.1340413405        - `annotations: optional unknown or null`1340613407          Additional annotations about the tool.1340813409        - `description: optional string or null`1341013411          The description of the tool.1341213413      - `type: "mcp_list_tools"`1341413415        The type of the item. Always `mcp_list_tools`.1341613417        - `"mcp_list_tools"`1341813419      - `error: optional string or null`1342013421        Error message if the server could not list tools.1342213423    - `McpApprovalRequest object { id, arguments, name, 2 more }`1342413425      A request for human approval of a tool invocation.1342613427      - `id: string`1342813429        The unique ID of the approval request.1343013431      - `arguments: string`1343213433        A JSON string of arguments for the tool.1343413435      - `name: string`1343613437        The name of the tool to run.1343813439      - `server_label: string`1344013441        The label of the MCP server making the request.1344213443      - `type: "mcp_approval_request"`1344413445        The type of the item. Always `mcp_approval_request`.1344613447        - `"mcp_approval_request"`1344813449    - `McpApprovalResponse object { id, approval_request_id, approve, 2 more }`1345013451      A response to an MCP approval request.1345213453      - `id: string`1345413455        The unique ID of the approval response1345613457      - `approval_request_id: string`1345813459        The ID of the approval request being answered.1346013461      - `approve: boolean`1346213463        Whether the request was approved.1346413465      - `type: "mcp_approval_response"`1346613467        The type of the item. Always `mcp_approval_response`.1346813469        - `"mcp_approval_response"`1347013471      - `reason: optional string or null`1347213473        Optional reason for the decision.1347413475    - `McpCall object { id, arguments, name, 6 more }`1347613477      An invocation of a tool on an MCP server.1347813479      - `id: string`1348013481        The unique ID of the tool call.1348213483      - `arguments: string`1348413485        A JSON string of the arguments passed to the tool.1348613487      - `name: string`1348813489        The name of the tool that was run.1349013491      - `server_label: string`1349213493        The label of the MCP server running the tool.1349413495      - `type: "mcp_call"`1349613497        The type of the item. Always `mcp_call`.1349813499        - `"mcp_call"`1350013501      - `approval_request_id: optional string or null`1350213503        Unique identifier for the MCP tool call approval request.13504        Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.1350513506      - `error: optional McpToolCallError or null`1350713508        The error from the tool call, if any.1350913510        - `McpProtocolError object { code, message, type }`1351113512          - `code: number`1351313514          - `message: string`1351513516          - `type: "mcp_protocol_error"`1351713518            - `"mcp_protocol_error"`1351913520        - `McpToolExecutionError object { content, type }`1352113522          - `content: unknown`1352313524          - `type: "mcp_tool_execution_error"`1352513526            - `"mcp_tool_execution_error"`1352713528        - `HTTPError object { code, message, type }`1352913530          - `code: number`1353113532          - `message: string`1353313534          - `type: "http_error"`1353513536            - `"http_error"`1353713538      - `output: optional string or null`1353913540        The output from the tool call.1354113542      - `status: optional "in_progress" or "completed" or "incomplete" or 2 more`1354313544        The status of the tool call. One of `in_progress`, `completed`, `incomplete`, `calling`, or `failed`.1354513546        - `"in_progress"`1354713548        - `"completed"`1354913550        - `"incomplete"`1355113552        - `"calling"`1355313554        - `"failed"`1355513556    - `CustomToolCall object { call_id, input, name, 5 more }`1355713558      A call to a custom tool created by the model.1355913560      - `call_id: string`1356113562        An identifier used to map this custom tool call to a tool call output.1356313564      - `input: string`1356513566        The input for the custom tool call generated by the model.1356713568      - `name: string`1356913570        The name of the custom tool being called.1357113572      - `type: "custom_tool_call"`1357313574        The type of the custom tool call. Always `custom_tool_call`.1357513576        - `"custom_tool_call"`1357713578      - `id: optional string`1357913580        The unique ID of the custom tool call in the OpenAI platform.1358113582      - `async: optional boolean`1358313584        Whether the custom tool call runs asynchronously.1358513586      - `caller: optional object { type }  or object { caller_id, type }  or null`1358713588        The execution context that produced this tool call.1358913590        - `Direct object { type }`1359113592          - `type: "direct"`1359313594            - `"direct"`1359513596        - `Program object { caller_id, type }`1359713598          - `caller_id: string`1359913600            The call ID of the program item that produced this tool call.1360113602          - `type: "program"`1360313604            - `"program"`1360513606      - `namespace: optional string`1360713608        The namespace of the custom tool being called.1360913610    - `CustomToolCallOutput object { call_id, output, type, 2 more }`1361113612      The output of a custom tool call from your code, being sent back to the model.1361313614      - `call_id: string`1361513616        The call ID, used to map this custom tool call output to a custom tool call.1361713618      - `output: string or array of ResponseInputText or ResponseInputImage or ResponseInputFile`1361913620        The output from the custom tool call generated by your code.13621        Can be a string or an list of output content.1362213623        - `StringOutput = string`1362413625          A string of the output of the custom tool call.1362613627        - `OutputContentList = array of ResponseInputText or ResponseInputImage or ResponseInputFile`1362813629          Text, image, or file output of the custom tool call.1363013631          - `ResponseInputText object { text, type, prompt_cache_breakpoint }`1363213633            A text input to the model.1363413635          - `ResponseInputImage object { detail, type, file_id, 2 more }`1363613637            An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).1363813639          - `ResponseInputFile object { type, detail, file_data, 4 more }`1364013641            A file input to the model.1364213643      - `type: "custom_tool_call_output"`1364413645        The type of the custom tool call output. Always `custom_tool_call_output`.1364613647        - `"custom_tool_call_output"`1364813649      - `id: optional string`1365013651        The unique ID of the custom tool call output in the OpenAI platform.1365213653      - `caller: optional object { type }  or object { caller_id, type }  or null`1365413655        The execution context that produced this tool call.1365613657        - `Direct object { type }`1365813659          - `type: "direct"`1366013661            The caller type. Always `direct`.1366213663            - `"direct"`1366413665        - `Program object { caller_id, type }`1366613667          - `caller_id: string`1366813669            The call ID of the program item that produced this tool call.1367013671          - `type: "program"`1367213673            The caller type. Always `program`.1367413675            - `"program"`1367613677  - `first_id: string`1367813679    The ID of the first item in the list.1368013681  - `has_more: boolean`1368213683    Whether there are more items available.1368413685  - `last_id: string`1368613687    The ID of the last item in the list.1368813689  - `object: "list"`1369013691    The type of object returned, must be `list`.1369213693    - `"list"`1369413695### Example1369613697```http13698curl https://api.openai.com/v1/conversations/$CONVERSATION_ID/items \13699    -H 'Content-Type: application/json' \13700    -H "Authorization: Bearer $OPENAI_API_KEY" \13701    -d '{13702          "items": [13703            {13704              "content": "string",13705              "role": "user",13706              "type": "message"13707            }13708          ]13709        }'13710```1371113712#### Response1371313714```json13715{13716  "data": [13717    {13718      "id": "id",13719      "content": [13720        {13721          "text": "text",13722          "type": "input_text",13723          "prompt_cache_breakpoint": {13724            "mode": "explicit"13725          }13726        }13727      ],13728      "role": "unknown",13729      "status": "in_progress",13730      "type": "message",13731      "phase": "commentary"13732    }13733  ],13734  "first_id": "first_id",13735  "has_more": true,13736  "last_id": "last_id",13737  "object": "list"13738}13739```1374013741### Example1374213743```http13744curl https://api.openai.com/v1/conversations/conv_123/items \13745  -H "Content-Type: application/json" \13746  -H "Authorization: Bearer $OPENAI_API_KEY" \13747  -d '{13748    "items": [13749      {13750        "type": "message",13751        "role": "user",13752        "content": [13753          {"type": "input_text", "text": "Hello!"}13754        ]13755      },13756      {13757        "type": "message",13758        "role": "user",13759        "content": [13760          {"type": "input_text", "text": "How are you?"}13761        ]13762      }13763    ]13764  }'13765```1376613767#### Response1376813769```json13770{13771  "object": "list",13772  "data": [13773    {13774      "type": "message",13775      "id": "msg_abc",13776      "status": "completed",13777      "role": "user",13778      "content": [13779        {"type": "input_text", "text": "Hello!"}13780      ]13781    },13782    {13783      "type": "message",13784      "id": "msg_def",13785      "status": "completed",13786      "role": "user",13787      "content": [13788        {"type": "input_text", "text": "How are you?"}13789      ]13790    }13791  ],13792  "first_id": "msg_abc",13793  "last_id": "msg_def",13794  "has_more": false13795}13796```1379713798## Delete an item1379913800**delete** `/conversations/{conversation_id}/items/{item_id}`1380113802Delete an item from a conversation with the given IDs.1380313804### Path Parameters1380513806- `conversation_id: string`1380713808- `item_id: string`1380913810### Returns1381113812- `Conversation object { id, created_at, metadata, object }`1381313814  - `id: string`1381513816    The unique ID of the conversation.1381713818  - `created_at: number`1381913820    The time at which the conversation was created, measured in seconds since the Unix epoch.1382113822  - `metadata: unknown`1382313824    Set of 16 key-value pairs that can be attached to an object. This can be         useful for storing additional information about the object in a structured         format, and querying for objects via API or the dashboard.13825    Keys are strings with a maximum length of 64 characters. Values are strings         with a maximum length of 512 characters.1382613827  - `object: "conversation"`1382813829    The object type, which is always `conversation`.1383013831    - `"conversation"`1383213833### Example1383413835```http13836curl https://api.openai.com/v1/conversations/$CONVERSATION_ID/items/$ITEM_ID \13837    -X DELETE \13838    -H "Authorization: Bearer $OPENAI_API_KEY"13839```1384013841#### Response1384213843```json13844{13845  "id": "id",13846  "created_at": 0,13847  "metadata": {},13848  "object": "conversation"13849}13850```1385113852### Example1385313854```http13855curl -X DELETE https://api.openai.com/v1/conversations/conv_123/items/msg_abc \13856  -H "Authorization: Bearer $OPENAI_API_KEY"13857```1385813859#### Response1386013861```json13862{13863  "id": "conv_123",13864  "object": "conversation",13865  "created_at": 1741900000,13866  "metadata": {"topic": "demo"}13867}13868```1386913870## List items1387113872**get** `/conversations/{conversation_id}/items`1387313874List all items for a conversation with the given ID.1387513876### Path Parameters1387713878- `conversation_id: string`1387913880### Query Parameters1388113882- `after: optional string`1388313884  An item ID to list items after, used in pagination.1388513886- `include: optional array of ResponseIncludable`1388713888  Specify additional output data to include in the model response. Currently supported values are:1388913890  - `web_search_call.action.sources`: Include the sources of the web search tool call.13891  - `code_interpreter_call.outputs`: Includes the outputs of python code execution in code interpreter tool call items.13892  - `computer_call_output.output.image_url`: Include image urls from the computer call output.13893  - `file_search_call.results`: Include the search results of the file search tool call.13894  - `message.input_image.image_url`: Include image urls from the input message.13895  - `message.output_text.logprobs`: Include logprobs with assistant messages.13896  - `reasoning.encrypted_content`: Includes an encrypted version of reasoning tokens in reasoning item outputs. This enables reasoning items to be used in multi-turn conversations when using the Responses API statelessly (like when the `store` parameter is set to `false`, or when an organization is enrolled in the zero data retention program).1389713898  - `"file_search_call.results"`1389913900  - `"web_search_call.results"`1390113902  - `"web_search_call.action.sources"`1390313904  - `"message.input_image.image_url"`1390513906  - `"computer_call_output.output.image_url"`1390713908  - `"code_interpreter_call.outputs"`1390913910  - `"reasoning.encrypted_content"`1391113912  - `"message.output_text.logprobs"`1391313914- `limit: optional number`1391513916  A limit on the number of objects to be returned. Limit can range between13917  1 and 100, and the default is 20.1391813919- `order: optional "asc" or "desc"`1392013921  The order to return the input items in. Default is `desc`.1392213923  - `asc`: Return the input items in ascending order.13924  - `desc`: Return the input items in descending order.1392513926  - `"asc"`1392713928  - `"desc"`1392913930### Returns1393113932- `ConversationItemList object { data, first_id, has_more, 2 more }`1393313934  A list of Conversation items.1393513936  - `data: array of ConversationItem`1393713938    A list of conversation items.1393913940    - `Message object { id, content, role, 3 more }`1394113942      A message to or from the model.1394313944      - `id: string`1394513946        The unique ID of the message.1394713948      - `content: array of ResponseInputText or ResponseOutputText or TextContent or 6 more`1394913950        The content of the message1395113952        - `ResponseInputText object { text, type, prompt_cache_breakpoint }`1395313954          A text input to the model.1395513956          - `text: string`1395713958            The text input to the model.1395913960          - `type: "input_text"`1396113962            The type of the input item. Always `input_text`.1396313964            - `"input_text"`1396513966          - `prompt_cache_breakpoint: optional object { mode }`1396713968            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.1396913970            - `mode: "explicit"`1397113972              The breakpoint mode. Always `explicit`.1397313974              - `"explicit"`1397513976        - `ResponseOutputText object { annotations, logprobs, text, type }`1397713978          A text output from the model.1397913980          - `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 }`1398113982            The annotations of the text output.1398313984            - `FileCitation object { file_id, filename, index, type }`1398513986              A citation to a file.1398713988              - `file_id: string`1398913990                The ID of the file.1399113992              - `filename: string`1399313994                The filename of the file cited.1399513996              - `index: number`1399713998                The index of the file in the list of files.1399914000              - `type: "file_citation"`1400114002                The type of the file citation. Always `file_citation`.1400314004                - `"file_citation"`1400514006            - `URLCitation object { end_index, start_index, title, 2 more }`1400714008              A citation for a web resource used to generate a model response.1400914010              - `end_index: number`1401114012                The index of the last character of the URL citation in the message.1401314014              - `start_index: number`1401514016                The index of the first character of the URL citation in the message.1401714018              - `title: string`1401914020                The title of the web resource.1402114022              - `type: "url_citation"`1402314024                The type of the URL citation. Always `url_citation`.1402514026                - `"url_citation"`1402714028              - `url: string`1402914030                The URL of the web resource.1403114032            - `ContainerFileCitation object { container_id, end_index, file_id, 3 more }`1403314034              A citation for a container file used to generate a model response.1403514036              - `container_id: string`1403714038                The ID of the container file.1403914040              - `end_index: number`1404114042                The index of the last character of the container file citation in the message.1404314044              - `file_id: string`1404514046                The ID of the file.1404714048              - `filename: string`1404914050                The filename of the container file cited.1405114052              - `start_index: number`1405314054                The index of the first character of the container file citation in the message.1405514056              - `type: "container_file_citation"`1405714058                The type of the container file citation. Always `container_file_citation`.1405914060                - `"container_file_citation"`1406114062            - `FilePath object { file_id, index, type }`1406314064              A path to a file.1406514066              - `file_id: string`1406714068                The ID of the file.1406914070              - `index: number`1407114072                The index of the file in the list of files.1407314074              - `type: "file_path"`1407514076                The type of the file path. Always `file_path`.1407714078                - `"file_path"`1407914080          - `logprobs: array of object { token, bytes, logprob, top_logprobs }`1408114082            - `token: string`1408314084            - `bytes: array of number`1408514086            - `logprob: number`1408714088            - `top_logprobs: array of object { token, bytes, logprob }`1408914090              - `token: string`1409114092              - `bytes: array of number`1409314094              - `logprob: number`1409514096          - `text: string`1409714098            The text output from the model.1409914100          - `type: "output_text"`1410114102            The type of the output text. Always `output_text`.1410314104            - `"output_text"`1410514106        - `TextContent object { text, type }`1410714108          A text content.1410914110          - `text: string`1411114112          - `type: "text"`1411314114            - `"text"`1411514116        - `SummaryTextContent object { text, type }`1411714118          A summary text from the model.1411914120          - `text: string`1412114122            A summary of the reasoning output from the model so far.1412314124          - `type: "summary_text"`1412514126            The type of the object. Always `summary_text`.1412714128            - `"summary_text"`1412914130        - `ReasoningText object { text, type }`1413114132          Reasoning text from the model.1413314134          - `text: string`1413514136            The reasoning text from the model.1413714138          - `type: "reasoning_text"`1413914140            The type of the reasoning text. Always `reasoning_text`.1414114142            - `"reasoning_text"`1414314144        - `ResponseOutputRefusal object { refusal, type }`1414514146          A refusal from the model.1414714148          - `refusal: string`1414914150            The refusal explanation from the model.1415114152          - `type: "refusal"`1415314154            The type of the refusal. Always `refusal`.1415514156            - `"refusal"`1415714158        - `ResponseInputImage object { detail, type, file_id, 2 more }`1415914160          An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).1416114162          - `detail: ImageDetail`1416314164            The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.1416514166            - `"low"`1416714168            - `"high"`1416914170            - `"auto"`1417114172            - `"original"`1417314174          - `type: "input_image"`1417514176            The type of the input item. Always `input_image`.1417714178            - `"input_image"`1417914180          - `file_id: optional string or null`1418114182            The ID of the file to be sent to the model.1418314184          - `image_url: optional string or null`1418514186            The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.1418714188          - `prompt_cache_breakpoint: optional object { mode }`1418914190            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.1419114192            - `mode: "explicit"`1419314194              The breakpoint mode. Always `explicit`.1419514196              - `"explicit"`1419714198        - `ComputerScreenshotContent object { detail, file_id, image_url, 2 more }`1419914200          A screenshot of a computer.1420114202          - `detail: ImageDetail`1420314204            The detail level of the screenshot image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.1420514206          - `file_id: string or null`1420714208            The identifier of an uploaded file that contains the screenshot.1420914210          - `image_url: string or null`1421114212            The URL of the screenshot image.1421314214          - `type: "computer_screenshot"`1421514216            Specifies the event type. For a computer screenshot, this property is always set to `computer_screenshot`.1421714218            - `"computer_screenshot"`1421914220          - `prompt_cache_breakpoint: optional object { mode }`1422114222            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.1422314224            - `mode: "explicit"`1422514226              The breakpoint mode. Always `explicit`.1422714228              - `"explicit"`1422914230        - `ResponseInputFile object { type, detail, file_data, 4 more }`1423114232          A file input to the model.1423314234          - `type: "input_file"`1423514236            The type of the input item. Always `input_file`.1423714238            - `"input_file"`1423914240          - `detail: optional "auto" or "low" or "high"`1424114242            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`.1424314244            - `"auto"`1424514246            - `"low"`1424714248            - `"high"`1424914250          - `file_data: optional string`1425114252            The content of the file to be sent to the model.1425314254          - `file_id: optional string or null`1425514256            The ID of the file to be sent to the model.1425714258          - `file_url: optional string`1425914260            The URL of the file to be sent to the model.1426114262          - `filename: optional string`1426314264            The name of the file to be sent to the model.1426514266          - `prompt_cache_breakpoint: optional object { mode }`1426714268            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.1426914270            - `mode: "explicit"`1427114272              The breakpoint mode. Always `explicit`.1427314274              - `"explicit"`1427514276      - `role: "unknown" or "user" or "assistant" or 5 more`1427714278        The role of the message. One of `unknown`, `user`, `assistant`, `system`, `critic`, `discriminator`, `developer`, or `tool`.1427914280        - `"unknown"`1428114282        - `"user"`1428314284        - `"assistant"`1428514286        - `"system"`1428714288        - `"critic"`1428914290        - `"discriminator"`1429114292        - `"developer"`1429314294        - `"tool"`1429514296      - `status: "in_progress" or "completed" or "incomplete"`1429714298        The status of item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API.1429914300        - `"in_progress"`1430114302        - `"completed"`1430314304        - `"incomplete"`1430514306      - `type: "message"`1430714308        The type of the message. Always set to `message`.1430914310        - `"message"`1431114312      - `phase: optional "commentary" or "final_answer" or null`1431314314        Labels an `assistant` message as intermediate commentary (`commentary`) or the final answer (`final_answer`). For models like `gpt-5.3-codex` and beyond, when sending follow-up requests, preserve and resend phase on all assistant messages — dropping it can degrade performance. Not used for user messages.1431514316        - `"commentary"`1431714318        - `"final_answer"`1431914320    - `FunctionCall object { id, arguments, call_id, 7 more }`1432114322      - `id: string`1432314324        The unique ID of the function tool call.1432514326      - `arguments: string`1432714328        A JSON string of the arguments to pass to the function.1432914330      - `call_id: string`1433114332        The unique ID of the function tool call generated by the model.1433314334      - `name: string`1433514336        The name of the function to run.1433714338      - `status: "in_progress" or "completed" or "incomplete"`1433914340        The status of the item. One of `in_progress`, `completed`, or14341        `incomplete`. Populated when items are returned via API.1434214343        - `"in_progress"`1434414345        - `"completed"`1434614347        - `"incomplete"`1434814349      - `type: "function_call"`1435014351        The type of the function tool call. Always `function_call`.1435214353        - `"function_call"`1435414355      - `async: optional boolean`1435614357        Whether the function tool call runs asynchronously.1435814359      - `caller: optional object { type }  or object { caller_id, type }  or null`1436014361        The execution context that produced this tool call.1436214363        - `Direct object { type }`1436414365          - `type: "direct"`1436614367            - `"direct"`1436814369        - `Program object { caller_id, type }`1437014371          - `caller_id: string`1437214373            The call ID of the program item that produced this tool call.1437414375          - `type: "program"`1437614377            - `"program"`1437814379      - `created_by: optional string`1438014381        The identifier of the actor that created the item.1438214383      - `namespace: optional string`1438414385        The namespace of the function to run.1438614387    - `FunctionCallOutput object { id, output, status, 6 more }`1438814389      - `id: string`1439014391        The unique ID of the function call tool output.1439214393      - `output: string or array of ResponseInputText or ResponseInputImage or ResponseInputFile`1439414395        The output from the function call generated by your code.14396        Can be a string or an list of output content.1439714398        - `StringOutput = string`1439914400          A string of the output of the function call.1440114402        - `OutputContentList = array of ResponseInputText or ResponseInputImage or ResponseInputFile`1440314404          Text, image, or file output of the function call.1440514406          - `ResponseInputText object { text, type, prompt_cache_breakpoint }`1440714408            A text input to the model.1440914410          - `ResponseInputImage object { detail, type, file_id, 2 more }`1441114412            An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).1441314414          - `ResponseInputFile object { type, detail, file_data, 4 more }`1441514416            A file input to the model.1441714418      - `status: "in_progress" or "completed" or "incomplete"`1441914420        The status of the item. One of `in_progress`, `completed`, or14421        `incomplete`. Populated when items are returned via API.1442214423        - `"in_progress"`1442414425        - `"completed"`1442614427        - `"incomplete"`1442814429      - `type: "function_call_output"`1443014431        The type of the function tool call output. Always `function_call_output`.1443214433        - `"function_call_output"`1443414435      - `call_id: optional string`1443614437        The unique ID of the function tool call generated by the model.1443814439      - `caller: optional object { type }  or object { caller_id, type }  or null`1444014441        The execution context that produced this tool call.1444214443        - `Direct object { type }`1444414445          - `type: "direct"`1444614447            The caller type. Always `direct`.1444814449            - `"direct"`1445014451        - `Program object { caller_id, type }`1445214453          - `caller_id: string`1445414455            The call ID of the program item that produced this tool call.1445614457          - `type: "program"`1445814459            The caller type. Always `program`.1446014461            - `"program"`1446214463      - `created_by: optional string`1446414465        The identifier of the actor that created the item.1446614467      - `name: optional string`1446814469        The name of the tool that produced the output.1447014471      - `namespace: optional string`1447214473        The namespace of the tool that produced the output.1447414475    - `FileSearchCall object { id, queries, status, 2 more }`1447614477      The results of a file search tool call. See the14478      [file search guide](/api/docs/guides/tools-file-search) for more information.1447914480      - `id: string`1448114482        The unique ID of the file search tool call.1448314484      - `queries: array of string`1448514486        The queries used to search for files.1448714488      - `status: "in_progress" or "searching" or "completed" or 2 more`1448914490        The status of the file search tool call. One of `in_progress`,14491        `searching`, `incomplete` or `failed`,1449214493        - `"in_progress"`1449414495        - `"searching"`1449614497        - `"completed"`1449814499        - `"incomplete"`1450014501        - `"failed"`1450214503      - `type: "file_search_call"`1450414505        The type of the file search tool call. Always `file_search_call`.1450614507        - `"file_search_call"`1450814509      - `results: optional array of object { attributes, file_id, filename, 2 more }  or null`1451014511        The results of the file search tool call.1451214513        - `attributes: optional map[string or number or boolean] or null`1451414515          Set of 16 key-value pairs that can be attached to an object. This can be14516          useful for storing additional information about the object in a structured14517          format, and querying for objects via API or the dashboard. Keys are strings14518          with a maximum length of 64 characters. Values are strings with a maximum14519          length of 512 characters, booleans, or numbers.1452014521          - `string`1452214523          - `number`1452414525          - `boolean`1452614527        - `file_id: optional string`1452814529          The unique ID of the file.1453014531        - `filename: optional string`1453214533          The name of the file.1453414535        - `score: optional number`1453614537          The relevance score of the file - a value between 0 and 1.1453814539        - `text: optional string`1454014541          The text that was retrieved from the file.1454214543    - `WebSearchCall object { id, action, status, type }`1454414545      The results of a web search tool call. See the14546      [web search guide](/api/docs/guides/tools-web-search) for more information.1454714548      - `id: string`1454914550        The unique ID of the web search tool call.1455114552      - `action: object { type, queries, query, sources }  or object { type, url }  or object { pattern, type, url }`1455314554        An object describing the specific action taken in this web search call.14555        Includes details on how the model used the web (search, open_page, find_in_page).1455614557        - `Search object { type, queries, query, sources }`1455814559          Action type "search" - Performs a web search query.1456014561          - `type: "search"`1456214563            The action type.1456414565            - `"search"`1456614567          - `queries: optional array of string`1456814569            The search queries.1457014571          - `query: optional string`1457214573            The search query.1457414575          - `sources: optional array of object { type, url }`1457614577            The sources used in the search.1457814579            - `type: "url"`1458014581              The type of source. Always `url`.1458214583              - `"url"`1458414585            - `url: string`1458614587              The URL of the source.1458814589        - `OpenPage object { type, url }`1459014591          Action type "open_page" - Opens a specific URL from search results.1459214593          - `type: "open_page"`1459414595            The action type.1459614597            - `"open_page"`1459814599          - `url: optional string or null`1460014601            The URL opened by the model.1460214603        - `FindInPage object { pattern, type, url }`1460414605          Action type "find_in_page": Searches for a pattern within a loaded page.1460614607          - `pattern: string`1460814609            The pattern or text to search for within the page.1461014611          - `type: "find_in_page"`1461214613            The action type.1461414615            - `"find_in_page"`1461614617          - `url: string`1461814619            The URL of the page searched for the pattern.1462014621      - `status: "in_progress" or "searching" or "completed" or 2 more`1462214623        The status of the web search tool call.1462414625        - `"in_progress"`1462614627        - `"searching"`1462814629        - `"completed"`1463014631        - `"failed"`1463214633        - `"incomplete"`1463414635      - `type: "web_search_call"`1463614637        The type of the web search tool call. Always `web_search_call`.1463814639        - `"web_search_call"`1464014641    - `ImageGenerationCall object { id, result, status, 7 more }`1464214643      An image generation request made by the model.1464414645      - `id: string`1464614647        The unique ID of the image generation call.1464814649      - `result: string or null`1465014651        The generated image encoded in base64.1465214653      - `status: "in_progress" or "completed" or "generating" or "failed"`1465414655        The status of the image generation call.1465614657        - `"in_progress"`1465814659        - `"completed"`1466014661        - `"generating"`1466214663        - `"failed"`1466414665      - `type: "image_generation_call"`1466614667        The type of the image generation call. Always `image_generation_call`.1466814669        - `"image_generation_call"`1467014671      - `action: optional "generate" or "edit" or "auto" or null`1467214673        The action used for image generation.1467414675        - `"generate"`1467614677        - `"edit"`1467814679        - `"auto"`1468014681      - `background: optional "transparent" or "opaque" or "auto" or null`1468214683        The background setting used for generation.1468414685        - `"transparent"`1468614687        - `"opaque"`1468814689        - `"auto"`1469014691      - `output_format: optional "png" or "webp" or "jpeg" or null`1469214693        The output format used for generation.1469414695        - `"png"`1469614697        - `"webp"`1469814699        - `"jpeg"`1470014701      - `quality: optional "low" or "medium" or "high" or 3 more or null`1470214703        The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.1470414705        - `"low"`1470614707        - `"medium"`1470814709        - `"high"`1471014711        - `"xhigh"`1471214713        - `"max"`1471414715        - `"auto"`1471614717      - `revised_prompt: optional string or null`1471814719        The prompt that was used after any model prompt rewriting.1472014721      - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`1472214723        The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.1472414725        - `string`1472614727        - `"1024x1024" or "1024x1536" or "1536x1024"`1472814729          The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.1473014731          - `"1024x1024"`1473214733          - `"1024x1536"`1473414735          - `"1536x1024"`1473614737    - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`1473814739      A tool call to a computer use tool. See the14740      [computer use guide](/api/docs/guides/tools-computer-use) for more information.1474114742      - `id: string`1474314744        The unique ID of the computer call.1474514746      - `call_id: string`1474714748        An identifier used when responding to the tool call with output.1474914750      - `pending_safety_checks: array of object { id, code, message }`1475114752        The pending safety checks for the computer call.1475314754        - `id: string`1475514756          The ID of the pending safety check.1475714758        - `code: optional string or null`1475914760          The type of the pending safety check.1476114762        - `message: optional string or null`1476314764          Details about the pending safety check.1476514766      - `status: "in_progress" or "completed" or "incomplete"`1476714768        The status of the item. One of `in_progress`, `completed`, or14769        `incomplete`. Populated when items are returned via API.1477014771        - `"in_progress"`1477214773        - `"completed"`1477414775        - `"incomplete"`1477614777      - `type: "computer_call"`1477814779        The type of the computer call. Always `computer_call`.1478014781        - `"computer_call"`1478214783      - `action: optional ComputerAction`1478414785        A click action.1478614787        - `Click object { button, type, x, 2 more }`1478814789          A click action.1479014791          - `button: "left" or "right" or "wheel" or 2 more`1479214793            Indicates which mouse button was pressed during the click. One of `left`, `right`, `wheel`, `back`, or `forward`.1479414795            - `"left"`1479614797            - `"right"`1479814799            - `"wheel"`1480014801            - `"back"`1480214803            - `"forward"`1480414805          - `type: "click"`1480614807            Specifies the event type. For a click action, this property is always `click`.1480814809            - `"click"`1481014811          - `x: number`1481214813            The x-coordinate where the click occurred.1481414815          - `y: number`1481614817            The y-coordinate where the click occurred.1481814819          - `keys: optional array of string or null`1482014821            The keys being held while clicking.1482214823        - `DoubleClick object { keys, type, x, y }`1482414825          A double click action.1482614827          - `keys: array of string or null`1482814829            The keys being held while double-clicking.1483014831          - `type: "double_click"`1483214833            Specifies the event type. For a double click action, this property is always set to `double_click`.1483414835            - `"double_click"`1483614837          - `x: number`1483814839            The x-coordinate where the double click occurred.1484014841          - `y: number`1484214843            The y-coordinate where the double click occurred.1484414845        - `Drag object { path, type, keys }`1484614847          A drag action.1484814849          - `path: array of object { x, y }`1485014851            An array of coordinates representing the path of the drag action. Coordinates will appear as an array of objects, eg1485214853            ```14854            [14855              { x: 100, y: 200 },14856              { x: 200, y: 300 }14857            ]14858            ```1485914860            - `x: number`1486114862              The x-coordinate.1486314864            - `y: number`1486514866              The y-coordinate.1486714868          - `type: "drag"`1486914870            Specifies the event type. For a drag action, this property is always set to `drag`.1487114872            - `"drag"`1487314874          - `keys: optional array of string or null`1487514876            The keys being held while dragging the mouse.1487714878        - `Keypress object { keys, type }`1487914880          A collection of keypresses the model would like to perform.1488114882          - `keys: array of string`1488314884            The combination of keys the model is requesting to be pressed. This is an array of strings, each representing a key.1488514886          - `type: "keypress"`1488714888            Specifies the event type. For a keypress action, this property is always set to `keypress`.1488914890            - `"keypress"`1489114892        - `Move object { type, x, y, keys }`1489314894          A mouse move action.1489514896          - `type: "move"`1489714898            Specifies the event type. For a move action, this property is always set to `move`.1489914900            - `"move"`1490114902          - `x: number`1490314904            The x-coordinate to move to.1490514906          - `y: number`1490714908            The y-coordinate to move to.1490914910          - `keys: optional array of string or null`1491114912            The keys being held while moving the mouse.1491314914        - `Screenshot object { type }`1491514916          A screenshot action.1491714918          - `type: "screenshot"`1491914920            Specifies the event type. For a screenshot action, this property is always set to `screenshot`.1492114922            - `"screenshot"`1492314924        - `Scroll object { scroll_x, scroll_y, type, 3 more }`1492514926          A scroll action.1492714928          - `scroll_x: number`1492914930            The horizontal scroll distance.1493114932          - `scroll_y: number`1493314934            The vertical scroll distance.1493514936          - `type: "scroll"`1493714938            Specifies the event type. For a scroll action, this property is always set to `scroll`.1493914940            - `"scroll"`1494114942          - `x: number`1494314944            The x-coordinate where the scroll occurred.1494514946          - `y: number`1494714948            The y-coordinate where the scroll occurred.1494914950          - `keys: optional array of string or null`1495114952            The keys being held while scrolling.1495314954        - `Type object { text, type }`1495514956          An action to type in text.1495714958          - `text: string`1495914960            The text to type.1496114962          - `type: "type"`1496314964            Specifies the event type. For a type action, this property is always set to `type`.1496514966            - `"type"`1496714968        - `Wait object { type }`1496914970          A wait action.1497114972          - `type: "wait"`1497314974            Specifies the event type. For a wait action, this property is always set to `wait`.1497514976            - `"wait"`1497714978      - `actions: optional ComputerActionList`1497914980        Flattened batched actions for `computer_use`. Each action includes an14981        `type` discriminator and action-specific fields.1498214983        - `Click object { button, type, x, 2 more }`1498414985          A click action.1498614987        - `DoubleClick object { keys, type, x, y }`1498814989          A double click action.1499014991        - `Drag object { path, type, keys }`1499214993          A drag action.1499414995        - `Keypress object { keys, type }`1499614997          A collection of keypresses the model would like to perform.1499814999        - `Move object { type, x, y, keys }`1500015001          A mouse move action.1500215003        - `Screenshot object { type }`1500415005          A screenshot action.1500615007        - `Scroll object { scroll_x, scroll_y, type, 3 more }`1500815009          A scroll action.1501015011        - `Type object { text, type }`1501215013          An action to type in text.1501415015        - `Wait object { type }`1501615017          A wait action.1501815019    - `ComputerCallOutput object { id, call_id, output, 4 more }`1502015021      - `id: string`1502215023        The unique ID of the computer call tool output.1502415025      - `call_id: string`1502615027        The ID of the computer tool call that produced the output.1502815029      - `output: ResponseComputerToolCallOutputScreenshot`1503015031        A computer screenshot image used with the computer use tool.1503215033        - `type: "computer_screenshot"`1503415035          Specifies the event type. For a computer screenshot, this property is15036          always set to `computer_screenshot`.1503715038          - `"computer_screenshot"`1503915040        - `file_id: optional string`1504115042          The identifier of an uploaded file that contains the screenshot.1504315044        - `image_url: optional string`1504515046          The URL of the screenshot image.1504715048      - `status: "completed" or "incomplete" or "failed" or "in_progress"`1504915050        The status of the message input. One of `in_progress`, `completed`, or15051        `incomplete`. Populated when input items are returned via API.1505215053        - `"completed"`1505415055        - `"incomplete"`1505615057        - `"failed"`1505815059        - `"in_progress"`1506015061      - `type: "computer_call_output"`1506215063        The type of the computer tool call output. Always `computer_call_output`.1506415065        - `"computer_call_output"`1506615067      - `acknowledged_safety_checks: optional array of object { id, code, message }`1506815069        The safety checks reported by the API that have been acknowledged by the15070        developer.1507115072        - `id: string`1507315074          The ID of the pending safety check.1507515076        - `code: optional string or null`1507715078          The type of the pending safety check.1507915080        - `message: optional string or null`1508115082          Details about the pending safety check.1508315084      - `created_by: optional string`1508515086        The identifier of the actor that created the item.1508715088    - `ToolSearchCall object { id, arguments, call_id, 4 more }`1508915090      - `id: string`1509115092        The unique ID of the tool search call item.1509315094      - `arguments: unknown`1509515096        Arguments used for the tool search call.1509715098      - `call_id: string or null`1509915100        The unique ID of the tool search call generated by the model.1510115102      - `execution: "server" or "client"`1510315104        Whether tool search was executed by the server or by the client.1510515106        - `"server"`1510715108        - `"client"`1510915110      - `status: "in_progress" or "completed" or "incomplete"`1511115112        The status of the tool search call item that was recorded.1511315114        - `"in_progress"`1511515116        - `"completed"`1511715118        - `"incomplete"`1511915120      - `type: "tool_search_call"`1512115122        The type of the item. Always `tool_search_call`.1512315124        - `"tool_search_call"`1512515126      - `created_by: optional string`1512715128        The identifier of the actor that created the item.1512915130    - `ToolSearchOutput object { id, call_id, execution, 4 more }`1513115132      - `id: string`1513315134        The unique ID of the tool search output item.1513515136      - `call_id: string or null`1513715138        The unique ID of the tool search call generated by the model.1513915140      - `execution: "server" or "client"`1514115142        Whether tool search was executed by the server or by the client.1514315144        - `"server"`1514515146        - `"client"`1514715148      - `status: "in_progress" or "completed" or "incomplete"`1514915150        The status of the tool search output item that was recorded.1515115152        - `"in_progress"`1515315154        - `"completed"`1515515156        - `"incomplete"`1515715158      - `tools: array of object { name, parameters, strict, 6 more }  or object { type, vector_store_ids, filters, 2 more }  or object { type }  or 13 more`1515915160        The loaded tool definitions returned by tool search.1516115162        - `Function object { name, parameters, strict, 6 more }`1516315164          Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).1516515166          - `name: string`1516715168            The name of the function to call.1516915170          - `parameters: map[unknown] or null`1517115172            A JSON schema object describing the parameters of the function.1517315174          - `strict: boolean or null`1517515176            Whether strict parameter validation is enforced for this function tool.1517715178          - `type: "function"`1517915180            The type of the function tool. Always `function`.1518115182            - `"function"`1518315184          - `allowed_callers: optional array of "direct" or "programmatic" or null`1518515186            The tool invocation context(s).1518715188            - `"direct"`1518915190            - `"programmatic"`1519115192          - `async: optional boolean`1519315194          - `defer_loading: optional boolean`1519515196            Whether this function is deferred and loaded via tool search.1519715198          - `description: optional string or null`1519915200            A description of the function. Used by the model to determine whether or not to call the function.1520115202          - `output_schema: optional map[unknown] or null`1520315204            A JSON schema object describing the JSON value encoded in string outputs for this function.1520515206        - `FileSearch object { type, vector_store_ids, filters, 2 more }`1520715208          A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).1520915210          - `type: "file_search"`1521115212            The type of the file search tool. Always `file_search`.1521315214            - `"file_search"`1521515216          - `vector_store_ids: array of string`1521715218            The IDs of the vector stores to search.1521915220          - `filters: optional ComparisonFilter or CompoundFilter or null`1522115222            A filter to apply.1522315224            - `ComparisonFilter object { key, type, value }`1522515226              A filter used to compare a specified attribute key to a given value using a defined comparison operation.1522715228              - `key: string`1522915230                The key to compare against the value.1523115232              - `type: "eq" or "ne" or "gt" or 5 more`1523315234                Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`, `in`, `nin`.1523515236                - `eq`: equals15237                - `ne`: not equal15238                - `gt`: greater than15239                - `gte`: greater than or equal15240                - `lt`: less than15241                - `lte`: less than or equal15242                - `in`: in15243                - `nin`: not in1524415245                - `"eq"`1524615247                - `"ne"`1524815249                - `"gt"`1525015251                - `"gte"`1525215253                - `"lt"`1525415255                - `"lte"`1525615257                - `"in"`1525815259                - `"nin"`1526015261              - `value: string or number or boolean or array of string or number`1526215263                The value to compare against the attribute key; supports string, number, or boolean types.1526415265                - `string`1526615267                - `number`1526815269                - `boolean`1527015271                - `array of string or number`1527215273                  - `string`1527415275                  - `number`1527615277            - `CompoundFilter object { filters, type }`1527815279              Combine multiple filters using `and` or `or`.1528015281              - `filters: array of ComparisonFilter or unknown`1528215283                Array of filters to combine. Items can be `ComparisonFilter` or `CompoundFilter`.1528415285                - `ComparisonFilter object { key, type, value }`1528615287                  A filter used to compare a specified attribute key to a given value using a defined comparison operation.1528815289                - `unknown`1529015291              - `type: "and" or "or"`1529215293                Type of operation: `and` or `or`.1529415295                - `"and"`1529615297                - `"or"`1529815299          - `max_num_results: optional number`1530015301            The maximum number of results to return. This number should be between 1 and 50 inclusive.1530215303          - `ranking_options: optional object { hybrid_search, ranker, score_threshold }`1530415305            Ranking options for search.1530615307            - `hybrid_search: optional object { embedding_weight, text_weight }`1530815309              Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled.1531015311              - `embedding_weight: number`1531215313                The weight of the embedding in the reciprocal ranking fusion.1531415315              - `text_weight: number`1531615317                The weight of the text in the reciprocal ranking fusion.1531815319            - `ranker: optional "auto" or "default-2024-11-15"`1532015321              The ranker to use for the file search.1532215323              - `"auto"`1532415325              - `"default-2024-11-15"`1532615327            - `score_threshold: optional number`1532815329              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.1533015331        - `Computer object { type }`1533215333          A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).1533415335          - `type: "computer"`1533615337            The type of the computer tool. Always `computer`.1533815339            - `"computer"`1534015341        - `ComputerUsePreview object { display_height, display_width, environment, type }`1534215343          A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).1534415345          - `display_height: number`1534615347            The height of the computer display.1534815349          - `display_width: number`1535015351            The width of the computer display.1535215353          - `environment: "windows" or "mac" or "linux" or 2 more`1535415355            The type of computer environment to control.1535615357            - `"windows"`1535815359            - `"mac"`1536015361            - `"linux"`1536215363            - `"ubuntu"`1536415365            - `"browser"`1536615367          - `type: "computer_use_preview"`1536815369            The type of the computer use tool. Always `computer_use_preview`.1537015371            - `"computer_use_preview"`1537215373        - `WebSearch object { type, external_web_access, filters, 2 more }`1537415375          Search the Internet for sources related to the prompt. Learn more about the15376          [web search tool](/api/docs/guides/tools-web-search).1537715378          - `type: "web_search" or "web_search_2025_08_26"`1537915380            The type of the web search tool. One of `web_search` or `web_search_2025_08_26`.1538115382            - `"web_search"`1538315384            - `"web_search_2025_08_26"`1538515386          - `external_web_access: optional boolean`1538715388            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.1538915390          - `filters: optional object { allowed_domains }  or null`1539115392            Filters for the search.1539315394            - `allowed_domains: optional array of string or null`1539515396              Allowed domains for the search. If not provided, all domains are allowed.15397              Subdomains of the provided domains are allowed as well.1539815399              Example: `["pubmed.ncbi.nlm.nih.gov"]`1540015401          - `search_context_size: optional "low" or "medium" or "high"`1540215403            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.1540415405            - `"low"`1540615407            - `"medium"`1540815409            - `"high"`1541015411          - `user_location: optional object { city, country, region, 2 more }  or null`1541215413            The approximate location of the user.1541415415            - `city: optional string or null`1541615417              Free text input for the city of the user, e.g. `San Francisco`.1541815419            - `country: optional string or null`1542015421              The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.1542215423            - `region: optional string or null`1542415425              Free text input for the region of the user, e.g. `California`.1542615427            - `timezone: optional string or null`1542815429              The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.1543015431            - `type: optional "approximate"`1543215433              The type of location approximation. Always `approximate`.1543415435              - `"approximate"`1543615437        - `Mcp object { server_label, type, allowed_callers, 9 more }`1543815439          Give the model access to additional tools via remote Model Context Protocol15440          (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).1544115442          - `server_label: string`1544315444            A label for this MCP server, used to identify it in tool calls.1544515446          - `type: "mcp"`1544715448            The type of the MCP tool. Always `mcp`.1544915450            - `"mcp"`1545115452          - `allowed_callers: optional array of "direct" or "programmatic" or null`1545315454            The tool invocation context(s).1545515456            - `"direct"`1545715458            - `"programmatic"`1545915460          - `allowed_tools: optional array of string or object { read_only, tool_names }  or null`1546115462            List of allowed tool names or a filter object.1546315464            - `McpAllowedTools = array of string`1546515466              A string array of allowed tool names1546715468            - `McpToolFilter object { read_only, tool_names }`1546915470              A filter object to specify which tools are allowed.1547115472              - `read_only: optional boolean`1547315474                Indicates whether or not a tool modifies data or is read-only. If an15475                MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),15476                it will match this filter.1547715478              - `tool_names: optional array of string`1547915480                List of allowed tool names.1548115482          - `authorization: optional string`1548315484            An OAuth access token that can be used with a remote MCP server, either15485            with a custom MCP server URL or a service connector. Your application15486            must handle the OAuth authorization flow and provide the token here.1548715488          - `connector_id: optional "connector_dropbox" or "connector_gmail" or "connector_googlecalendar" or 5 more`1548915490            Identifier for service connectors, like those available in ChatGPT. One of15491            `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more15492            about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).1549315494            This field is deprecated for models released after September 1, 2026.15495            Use `server_url` to connect to a remote MCP server, or `tunnel_id` to15496            connect through a Secure MCP Tunnel.1549715498            Currently supported `connector_id` values are:1549915500            - Dropbox: `connector_dropbox`15501            - Gmail: `connector_gmail`15502            - Google Calendar: `connector_googlecalendar`15503            - Google Drive: `connector_googledrive`15504            - Microsoft Teams: `connector_microsoftteams`15505            - Outlook Calendar: `connector_outlookcalendar`15506            - Outlook Email: `connector_outlookemail`15507            - SharePoint: `connector_sharepoint`1550815509            - `"connector_dropbox"`1551015511            - `"connector_gmail"`1551215513            - `"connector_googlecalendar"`1551415515            - `"connector_googledrive"`1551615517            - `"connector_microsoftteams"`1551815519            - `"connector_outlookcalendar"`1552015521            - `"connector_outlookemail"`1552215523            - `"connector_sharepoint"`1552415525          - `defer_loading: optional boolean`1552615527            Whether this MCP tool is deferred and discovered via tool search.1552815529          - `headers: optional map[string] or null`1553015531            Optional HTTP headers to send to the MCP server. Use for authentication15532            or other purposes.1553315534          - `require_approval: optional object { always, never }  or "always" or "never" or null`1553515536            Specify which of the MCP server's tools require approval.1553715538            - `McpToolApprovalFilter object { always, never }`1553915540              Specify which of the MCP server's tools require approval. Can be15541              `always`, `never`, or a filter object associated with tools15542              that require approval.1554315544              - `always: optional object { read_only, tool_names }`1554515546                A filter object to specify which tools are allowed.1554715548                - `read_only: optional boolean`1554915550                  Indicates whether or not a tool modifies data or is read-only. If an15551                  MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),15552                  it will match this filter.1555315554                - `tool_names: optional array of string`1555515556                  List of allowed tool names.1555715558              - `never: optional object { read_only, tool_names }`1555915560                A filter object to specify which tools are allowed.1556115562                - `read_only: optional boolean`1556315564                  Indicates whether or not a tool modifies data or is read-only. If an15565                  MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),15566                  it will match this filter.1556715568                - `tool_names: optional array of string`1556915570                  List of allowed tool names.1557115572            - `McpToolApprovalSetting = "always" or "never"`1557315574              Specify a single approval policy for all tools. One of `always` or15575              `never`. When set to `always`, all tools will require approval. When15576              set to `never`, all tools will not require approval.1557715578              - `"always"`1557915580              - `"never"`1558115582          - `server_description: optional string`1558315584            Optional description of the MCP server, used to provide more context.1558515586          - `server_url: optional string`1558715588            The URL for the MCP server. One of `server_url`, `connector_id`, or15589            `tunnel_id` must be provided.1559015591          - `tunnel_id: optional string`1559215593            The Secure MCP Tunnel ID to use instead of a direct server URL. One of15594            `server_url`, `connector_id`, or `tunnel_id` must be provided.1559515596        - `CodeInterpreter object { container, type, allowed_callers }`1559715598          A tool that runs Python code to help generate a response to a prompt.1559915600          - `container: string or object { type, file_ids, memory_limit, network_policy }`1560115602            The code interpreter container. Can be a container ID or an object that15603            specifies uploaded file IDs to make available to your code, along with an15604            optional `memory_limit` setting.1560515606            - `string`1560715608              The container ID.1560915610            - `CodeInterpreterToolAuto object { type, file_ids, memory_limit, network_policy }`1561115612              Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.1561315614              - `type: "auto"`1561515616                Always `auto`.1561715618                - `"auto"`1561915620              - `file_ids: optional array of string`1562115622                An optional list of uploaded files to make available to your code.1562315624              - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`1562515626                The memory limit for the code interpreter container.1562715628                - `"1g"`1562915630                - `"4g"`1563115632                - `"16g"`1563315634                - `"64g"`1563515636              - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`1563715638                Network access policy for the container.1563915640                - `ContainerNetworkPolicyDisabled object { type }`1564115642                  - `type: "disabled"`1564315644                    Disable outbound network access. Always `disabled`.1564515646                    - `"disabled"`1564715648                - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`1564915650                  - `allowed_domains: array of string`1565115652                    A list of allowed domains when type is `allowlist`.1565315654                  - `type: "allowlist"`1565515656                    Allow outbound network access only to specified domains. Always `allowlist`.1565715658                    - `"allowlist"`1565915660                  - `domain_secrets: optional array of ContainerNetworkPolicyDomainSecret`1566115662                    Optional domain-scoped secrets for allowlisted domains.1566315664                    - `domain: string`1566515666                      The domain associated with the secret.1566715668                    - `name: string`1566915670                      The name of the secret to inject for the domain.1567115672                    - `value: string`1567315674                      The secret value to inject for the domain.1567515676          - `type: "code_interpreter"`1567715678            The type of the code interpreter tool. Always `code_interpreter`.1567915680            - `"code_interpreter"`1568115682          - `allowed_callers: optional array of "direct" or "programmatic" or null`1568315684            The tool invocation context(s).1568515686            - `"direct"`1568715688            - `"programmatic"`1568915690        - `ProgrammaticToolCalling object { type }`1569115692          - `type: "programmatic_tool_calling"`1569315694            The type of the tool. Always `programmatic_tool_calling`.1569515696            - `"programmatic_tool_calling"`1569715698        - `ImageGeneration object { type, action, background, 9 more }`1569915700          A tool that generates images using the GPT image models.1570115702          - `type: "image_generation"`1570315704            The type of the image generation tool. Always `image_generation`.1570515706            - `"image_generation"`1570715708          - `action: optional "generate" or "edit" or "auto"`1570915710            Whether to generate a new image or edit an existing image. Default: `auto`.1571115712            - `"generate"`1571315714            - `"edit"`1571515716            - `"auto"`1571715718          - `background: optional "transparent" or "opaque" or "auto"`1571915720            Set the background of the generated image. One of `transparent`, `opaque`,15721            or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including15722            their `2026-09-08` snapshots, support `opaque` and `transparent`15723            backgrounds. Transparent backgrounds are available for supported GPT Image15724            models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in15725            preview. When using `transparent`, set the output format to `png` or `webp`.15726            Default: `auto`.1572715728            - `"transparent"`1572915730            - `"opaque"`1573115732            - `"auto"`1573315734          - `input_fidelity: optional "high" or "low" or null`1573515736            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`.1573715738            - `"high"`1573915740            - `"low"`1574115742          - `input_image_mask: optional object { file_id, image_url }`1574315744            Optional mask for inpainting. Contains `image_url`15745            (string, optional) and `file_id` (string, optional).1574615747            - `file_id: optional string`1574815749              File ID for the mask image.1575015751            - `image_url: optional string`1575215753              Base64-encoded mask image.1575415755          - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`1575615757            The image generation model to use. One of `gpt-image-1`,15758            `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,15759            `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,15760            `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,15761            `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:15762            `gpt-image-1`.1576315764            - `string`1576515766            - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`1576715768              The image generation model to use. One of `gpt-image-1`,15769              `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,15770              `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,15771              `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,15772              `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:15773              `gpt-image-1`.1577415775              - `"gpt-image-1"`1577615777              - `"gpt-image-1-mini"`1577815779              - `"gpt-image-1.5"`1578015781              - `"gpt-image-2"`1578215783              - `"gpt-image-2-2026-04-21"`1578415785              - `"gpt-image-2.5-sunburst"`1578615787              - `"gpt-image-2.5-sunburst-2026-09-08"`1578815789              - `"gpt-image-2.5-flare"`1579015791              - `"gpt-image-2.5-flare-2026-09-08"`1579215793          - `moderation: optional "auto" or "low"`1579415795            Moderation level for the generated image. Default: `auto`.1579615797            - `"auto"`1579815799            - `"low"`1580015801          - `output_compression: optional number`1580215803            Compression level for the output image. Default: 100.1580415805          - `output_format: optional "png" or "webp" or "jpeg"`1580615807            The output format of the generated image. One of `png`, `webp`, or15808            `jpeg`. Default: `png`.1580915810            - `"png"`1581115812            - `"webp"`1581315814            - `"jpeg"`1581515816          - `partial_images: optional number`1581715818            Number of partial images to generate in streaming mode, from 0 (default value) to 3.1581915820          - `quality: optional "low" or "medium" or "high" or 3 more`1582115822            The quality of the generated image. The GPT image models support `low`,15823            `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,15824            including their `2026-09-08` snapshots, also support `xhigh` and `max`.15825            Default: `auto`.1582615827            - `"low"`1582815829            - `"medium"`1583015831            - `"high"`1583215833            - `"xhigh"`1583415835            - `"max"`1583615837            - `"auto"`1583815839          - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`1584015841            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`.1584215843            - `string`1584415845            - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`1584615847              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`.1584815849              - `"1024x1024"`1585015851              - `"1024x1536"`1585215853              - `"1536x1024"`1585415855              - `"auto"`1585615857        - `LocalShell object { type }`1585815859          A tool that allows the model to execute shell commands in a local environment.1586015861          - `type: "local_shell"`1586215863            The type of the local shell tool. Always `local_shell`.1586415865            - `"local_shell"`1586615867        - `Shell object { type, allowed_callers, environment }`1586815869          A tool that allows the model to execute shell commands.1587015871          - `type: "shell"`1587215873            The type of the shell tool. Always `shell`.1587415875            - `"shell"`1587615877          - `allowed_callers: optional array of "direct" or "programmatic" or null`1587815879            The tool invocation context(s).1588015881            - `"direct"`1588215883            - `"programmatic"`1588415885          - `environment: optional ContainerAuto or LocalEnvironment or ContainerReference or null`1588615887            - `ContainerAuto object { type, file_ids, memory_limit, 2 more }`1588815889              - `type: "container_auto"`1589015891                Automatically creates a container for this request1589215893                - `"container_auto"`1589415895              - `file_ids: optional array of string`1589615897                An optional list of uploaded files to make available to your code.1589815899              - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`1590015901                The memory limit for the container.1590215903                - `"1g"`1590415905                - `"4g"`1590615907                - `"16g"`1590815909                - `"64g"`1591015911              - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`1591215913                Network access policy for the container.1591415915                - `ContainerNetworkPolicyDisabled object { type }`1591615917                - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`1591815919              - `skills: optional array of SkillReference or InlineSkill`1592015921                An optional list of skills referenced by id or inline data.1592215923                - `SkillReference object { skill_id, type, version }`1592415925                  - `skill_id: string`1592615927                    The ID of the referenced skill.1592815929                  - `type: "skill_reference"`1593015931                    References a skill created with the /v1/skills endpoint.1593215933                    - `"skill_reference"`1593415935                  - `version: optional string`1593615937                    Optional skill version. Use a positive integer or 'latest'. Omit for default.1593815939                - `InlineSkill object { description, name, source, type }`1594015941                  - `description: string`1594215943                    The description of the skill.1594415945                  - `name: string`1594615947                    The name of the skill.1594815949                  - `source: InlineSkillSource`1595015951                    Inline skill payload1595215953                    - `data: string`1595415955                      Base64-encoded skill zip bundle.1595615957                    - `media_type: "application/zip"`1595815959                      The media type of the inline skill payload. Must be `application/zip`.1596015961                      - `"application/zip"`1596215963                    - `type: "base64"`1596415965                      The type of the inline skill source. Must be `base64`.1596615967                      - `"base64"`1596815969                  - `type: "inline"`1597015971                    Defines an inline skill for this request.1597215973                    - `"inline"`1597415975            - `LocalEnvironment object { type, skills }`1597615977              - `type: "local"`1597815979                Use a local computer environment.1598015981                - `"local"`1598215983              - `skills: optional array of LocalSkill`1598415985                An optional list of skills.1598615987                - `description: string`1598815989                  The description of the skill.1599015991                - `name: string`1599215993                  The name of the skill.1599415995                - `path: string`1599615997                  The path to the directory containing the skill.1599815999            - `ContainerReference object { container_id, type }`1600016001              - `container_id: string`1600216003                The ID of the referenced container.1600416005              - `type: "container_reference"`1600616007                References a container created with the /v1/containers endpoint1600816009                - `"container_reference"`1601016011        - `Custom object { name, type, allowed_callers, 4 more }`1601216013          A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)1601416015          - `name: string`1601616017            The name of the custom tool, used to identify it in tool calls.1601816019          - `type: "custom"`1602016021            The type of the custom tool. Always `custom`.1602216023            - `"custom"`1602416025          - `allowed_callers: optional array of "direct" or "programmatic" or null`1602616027            The tool invocation context(s).1602816029            - `"direct"`1603016031            - `"programmatic"`1603216033          - `async: optional boolean`1603416035            Whether the tool response can be returned asynchronously versus immediately returned on next response creation.1603616037          - `defer_loading: optional boolean`1603816039            Whether this tool should be deferred and discovered via tool search.1604016041          - `description: optional string`1604216043            Optional description of the custom tool, used to provide more context.1604416045          - `format: optional CustomToolInputFormat`1604616047            The input format for the custom tool. Default is unconstrained text.1604816049            - `Text object { type }`1605016051              Unconstrained free-form text.1605216053              - `type: "text"`1605416055                Unconstrained text format. Always `text`.1605616057                - `"text"`1605816059            - `Grammar object { definition, syntax, type }`1606016061              A grammar defined by the user.1606216063              - `definition: string`1606416065                The grammar definition.1606616067              - `syntax: "lark" or "regex"`1606816069                The syntax of the grammar definition. One of `lark` or `regex`.1607016071                - `"lark"`1607216073                - `"regex"`1607416075              - `type: "grammar"`1607616077                Grammar format. Always `grammar`.1607816079                - `"grammar"`1608016081        - `Namespace object { description, name, tools, type }`1608216083          Groups function/custom tools under a shared namespace.1608416085          - `description: string`1608616087            A description of the namespace shown to the model.1608816089          - `name: string`1609016091            The namespace name used in tool calls (for example, `crm`).1609216093          - `tools: array of object { name, type, allowed_callers, 6 more }  or object { name, type, allowed_callers, 4 more }`1609416095            The function/custom tools available inside this namespace.1609616097            - `Function object { name, type, allowed_callers, 6 more }`1609816099              - `name: string`1610016101              - `type: "function"`1610216103                - `"function"`1610416105              - `allowed_callers: optional array of "direct" or "programmatic" or null`1610616107                The tool invocation context(s).1610816109                - `"direct"`1611016111                - `"programmatic"`1611216113              - `async: optional boolean`1611416115                Whether the tool response can be returned asynchronously versus immediately returned on next response creation.1611616117              - `defer_loading: optional boolean`1611816119                Whether this function should be deferred and discovered via tool search.1612016121              - `description: optional string or null`1612216123              - `output_schema: optional map[unknown] or null`1612416125                A JSON Schema describing the JSON value encoded in string outputs for this function tool. This does not describe content-array outputs.1612616127              - `parameters: optional unknown or null`1612816129              - `strict: optional boolean or null`1613016131                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.1613216133            - `Custom object { name, type, allowed_callers, 4 more }`1613416135              A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)1613616137              - `name: string`1613816139                The name of the custom tool, used to identify it in tool calls.1614016141              - `type: "custom"`1614216143                The type of the custom tool. Always `custom`.1614416145                - `"custom"`1614616147              - `allowed_callers: optional array of "direct" or "programmatic" or null`1614816149                The tool invocation context(s).1615016151                - `"direct"`1615216153                - `"programmatic"`1615416155              - `async: optional boolean`1615616157                Whether the tool response can be returned asynchronously versus immediately returned on next response creation.1615816159              - `defer_loading: optional boolean`1616016161                Whether this tool should be deferred and discovered via tool search.1616216163              - `description: optional string`1616416165                Optional description of the custom tool, used to provide more context.1616616167              - `format: optional CustomToolInputFormat`1616816169                The input format for the custom tool. Default is unconstrained text.1617016171          - `type: "namespace"`1617216173            The type of the tool. Always `namespace`.1617416175            - `"namespace"`1617616177        - `ToolSearch object { type, description, execution, parameters }`1617816179          Hosted or BYOT tool search configuration for deferred tools.1618016181          - `type: "tool_search"`1618216183            The type of the tool. Always `tool_search`.1618416185            - `"tool_search"`1618616187          - `description: optional string or null`1618816189            Description shown to the model for a client-executed tool search tool.1619016191          - `execution: optional "server" or "client"`1619216193            Whether tool search is executed by the server or by the client.1619416195            - `"server"`1619616197            - `"client"`1619816199          - `parameters: optional unknown or null`1620016201            Parameter schema for a client-executed tool search tool.1620216203        - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`1620416205          This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](/api/docs/guides/tools-web-search).1620616207          - `type: "web_search_preview" or "web_search_preview_2025_03_11"`1620816209            The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.1621016211            - `"web_search_preview"`1621216213            - `"web_search_preview_2025_03_11"`1621416215          - `search_content_types: optional array of "text" or "image"`1621616217            - `"text"`1621816219            - `"image"`1622016221          - `search_context_size: optional "low" or "medium" or "high"`1622216223            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.1622416225            - `"low"`1622616227            - `"medium"`1622816229            - `"high"`1623016231          - `user_location: optional object { type, city, country, 2 more }  or null`1623216233            The user's location.1623416235            - `type: "approximate"`1623616237              The type of location approximation. Always `approximate`.1623816239              - `"approximate"`1624016241            - `city: optional string or null`1624216243              Free text input for the city of the user, e.g. `San Francisco`.1624416245            - `country: optional string or null`1624616247              The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.1624816249            - `region: optional string or null`1625016251              Free text input for the region of the user, e.g. `California`.1625216253            - `timezone: optional string or null`1625416255              The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.1625616257        - `ApplyPatch object { type, allowed_callers }`1625816259          Allows the assistant to create, delete, or update files using unified diffs.1626016261          - `type: "apply_patch"`1626216263            The type of the tool. Always `apply_patch`.1626416265            - `"apply_patch"`1626616267          - `allowed_callers: optional array of "direct" or "programmatic" or null`1626816269            The tool invocation context(s).1627016271            - `"direct"`1627216273            - `"programmatic"`1627416275      - `type: "tool_search_output"`1627616277        The type of the item. Always `tool_search_output`.1627816279        - `"tool_search_output"`1628016281      - `created_by: optional string`1628216283        The identifier of the actor that created the item.1628416285    - `AdditionalTools object { id, role, tools, type }`1628616287      - `id: string`1628816289        The unique ID of the additional tools item.1629016291      - `role: "unknown" or "user" or "assistant" or 5 more`1629216293        The role that provided the additional tools.1629416295        - `"unknown"`1629616297        - `"user"`1629816299        - `"assistant"`1630016301        - `"system"`1630216303        - `"critic"`1630416305        - `"discriminator"`1630616307        - `"developer"`1630816309        - `"tool"`1631016311      - `tools: array of object { name, parameters, strict, 6 more }  or object { type, vector_store_ids, filters, 2 more }  or object { type }  or 13 more`1631216313        The additional tool definitions made available at this item.1631416315        - `Function object { name, parameters, strict, 6 more }`1631616317          Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).1631816319          - `name: string`1632016321            The name of the function to call.1632216323          - `parameters: map[unknown] or null`1632416325            A JSON schema object describing the parameters of the function.1632616327          - `strict: boolean or null`1632816329            Whether strict parameter validation is enforced for this function tool.1633016331          - `type: "function"`1633216333            The type of the function tool. Always `function`.1633416335            - `"function"`1633616337          - `allowed_callers: optional array of "direct" or "programmatic" or null`1633816339            The tool invocation context(s).1634016341            - `"direct"`1634216343            - `"programmatic"`1634416345          - `async: optional boolean`1634616347          - `defer_loading: optional boolean`1634816349            Whether this function is deferred and loaded via tool search.1635016351          - `description: optional string or null`1635216353            A description of the function. Used by the model to determine whether or not to call the function.1635416355          - `output_schema: optional map[unknown] or null`1635616357            A JSON schema object describing the JSON value encoded in string outputs for this function.1635816359        - `FileSearch object { type, vector_store_ids, filters, 2 more }`1636016361          A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).1636216363          - `type: "file_search"`1636416365            The type of the file search tool. Always `file_search`.1636616367            - `"file_search"`1636816369          - `vector_store_ids: array of string`1637016371            The IDs of the vector stores to search.1637216373          - `filters: optional ComparisonFilter or CompoundFilter or null`1637416375            A filter to apply.1637616377            - `ComparisonFilter object { key, type, value }`1637816379              A filter used to compare a specified attribute key to a given value using a defined comparison operation.1638016381            - `CompoundFilter object { filters, type }`1638216383              Combine multiple filters using `and` or `or`.1638416385          - `max_num_results: optional number`1638616387            The maximum number of results to return. This number should be between 1 and 50 inclusive.1638816389          - `ranking_options: optional object { hybrid_search, ranker, score_threshold }`1639016391            Ranking options for search.1639216393            - `hybrid_search: optional object { embedding_weight, text_weight }`1639416395              Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled.1639616397              - `embedding_weight: number`1639816399                The weight of the embedding in the reciprocal ranking fusion.1640016401              - `text_weight: number`1640216403                The weight of the text in the reciprocal ranking fusion.1640416405            - `ranker: optional "auto" or "default-2024-11-15"`1640616407              The ranker to use for the file search.1640816409              - `"auto"`1641016411              - `"default-2024-11-15"`1641216413            - `score_threshold: optional number`1641416415              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.1641616417        - `Computer object { type }`1641816419          A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).1642016421          - `type: "computer"`1642216423            The type of the computer tool. Always `computer`.1642416425            - `"computer"`1642616427        - `ComputerUsePreview object { display_height, display_width, environment, type }`1642816429          A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).1643016431          - `display_height: number`1643216433            The height of the computer display.1643416435          - `display_width: number`1643616437            The width of the computer display.1643816439          - `environment: "windows" or "mac" or "linux" or 2 more`1644016441            The type of computer environment to control.1644216443            - `"windows"`1644416445            - `"mac"`1644616447            - `"linux"`1644816449            - `"ubuntu"`1645016451            - `"browser"`1645216453          - `type: "computer_use_preview"`1645416455            The type of the computer use tool. Always `computer_use_preview`.1645616457            - `"computer_use_preview"`1645816459        - `WebSearch object { type, external_web_access, filters, 2 more }`1646016461          Search the Internet for sources related to the prompt. Learn more about the16462          [web search tool](/api/docs/guides/tools-web-search).1646316464          - `type: "web_search" or "web_search_2025_08_26"`1646516466            The type of the web search tool. One of `web_search` or `web_search_2025_08_26`.1646716468            - `"web_search"`1646916470            - `"web_search_2025_08_26"`1647116472          - `external_web_access: optional boolean`1647316474            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.1647516476          - `filters: optional object { allowed_domains }  or null`1647716478            Filters for the search.1647916480            - `allowed_domains: optional array of string or null`1648116482              Allowed domains for the search. If not provided, all domains are allowed.16483              Subdomains of the provided domains are allowed as well.1648416485              Example: `["pubmed.ncbi.nlm.nih.gov"]`1648616487          - `search_context_size: optional "low" or "medium" or "high"`1648816489            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.1649016491            - `"low"`1649216493            - `"medium"`1649416495            - `"high"`1649616497          - `user_location: optional object { city, country, region, 2 more }  or null`1649816499            The approximate location of the user.1650016501            - `city: optional string or null`1650216503              Free text input for the city of the user, e.g. `San Francisco`.1650416505            - `country: optional string or null`1650616507              The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.1650816509            - `region: optional string or null`1651016511              Free text input for the region of the user, e.g. `California`.1651216513            - `timezone: optional string or null`1651416515              The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.1651616517            - `type: optional "approximate"`1651816519              The type of location approximation. Always `approximate`.1652016521              - `"approximate"`1652216523        - `Mcp object { server_label, type, allowed_callers, 9 more }`1652416525          Give the model access to additional tools via remote Model Context Protocol16526          (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).1652716528          - `server_label: string`1652916530            A label for this MCP server, used to identify it in tool calls.1653116532          - `type: "mcp"`1653316534            The type of the MCP tool. Always `mcp`.1653516536            - `"mcp"`1653716538          - `allowed_callers: optional array of "direct" or "programmatic" or null`1653916540            The tool invocation context(s).1654116542            - `"direct"`1654316544            - `"programmatic"`1654516546          - `allowed_tools: optional array of string or object { read_only, tool_names }  or null`1654716548            List of allowed tool names or a filter object.1654916550            - `McpAllowedTools = array of string`1655116552              A string array of allowed tool names1655316554            - `McpToolFilter object { read_only, tool_names }`1655516556              A filter object to specify which tools are allowed.1655716558              - `read_only: optional boolean`1655916560                Indicates whether or not a tool modifies data or is read-only. If an16561                MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),16562                it will match this filter.1656316564              - `tool_names: optional array of string`1656516566                List of allowed tool names.1656716568          - `authorization: optional string`1656916570            An OAuth access token that can be used with a remote MCP server, either16571            with a custom MCP server URL or a service connector. Your application16572            must handle the OAuth authorization flow and provide the token here.1657316574          - `connector_id: optional "connector_dropbox" or "connector_gmail" or "connector_googlecalendar" or 5 more`1657516576            Identifier for service connectors, like those available in ChatGPT. One of16577            `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more16578            about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).1657916580            This field is deprecated for models released after September 1, 2026.16581            Use `server_url` to connect to a remote MCP server, or `tunnel_id` to16582            connect through a Secure MCP Tunnel.1658316584            Currently supported `connector_id` values are:1658516586            - Dropbox: `connector_dropbox`16587            - Gmail: `connector_gmail`16588            - Google Calendar: `connector_googlecalendar`16589            - Google Drive: `connector_googledrive`16590            - Microsoft Teams: `connector_microsoftteams`16591            - Outlook Calendar: `connector_outlookcalendar`16592            - Outlook Email: `connector_outlookemail`16593            - SharePoint: `connector_sharepoint`1659416595            - `"connector_dropbox"`1659616597            - `"connector_gmail"`1659816599            - `"connector_googlecalendar"`1660016601            - `"connector_googledrive"`1660216603            - `"connector_microsoftteams"`1660416605            - `"connector_outlookcalendar"`1660616607            - `"connector_outlookemail"`1660816609            - `"connector_sharepoint"`1661016611          - `defer_loading: optional boolean`1661216613            Whether this MCP tool is deferred and discovered via tool search.1661416615          - `headers: optional map[string] or null`1661616617            Optional HTTP headers to send to the MCP server. Use for authentication16618            or other purposes.1661916620          - `require_approval: optional object { always, never }  or "always" or "never" or null`1662116622            Specify which of the MCP server's tools require approval.1662316624            - `McpToolApprovalFilter object { always, never }`1662516626              Specify which of the MCP server's tools require approval. Can be16627              `always`, `never`, or a filter object associated with tools16628              that require approval.1662916630              - `always: optional object { read_only, tool_names }`1663116632                A filter object to specify which tools are allowed.1663316634                - `read_only: optional boolean`1663516636                  Indicates whether or not a tool modifies data or is read-only. If an16637                  MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),16638                  it will match this filter.1663916640                - `tool_names: optional array of string`1664116642                  List of allowed tool names.1664316644              - `never: optional object { read_only, tool_names }`1664516646                A filter object to specify which tools are allowed.1664716648                - `read_only: optional boolean`1664916650                  Indicates whether or not a tool modifies data or is read-only. If an16651                  MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),16652                  it will match this filter.1665316654                - `tool_names: optional array of string`1665516656                  List of allowed tool names.1665716658            - `McpToolApprovalSetting = "always" or "never"`1665916660              Specify a single approval policy for all tools. One of `always` or16661              `never`. When set to `always`, all tools will require approval. When16662              set to `never`, all tools will not require approval.1666316664              - `"always"`1666516666              - `"never"`1666716668          - `server_description: optional string`1666916670            Optional description of the MCP server, used to provide more context.1667116672          - `server_url: optional string`1667316674            The URL for the MCP server. One of `server_url`, `connector_id`, or16675            `tunnel_id` must be provided.1667616677          - `tunnel_id: optional string`1667816679            The Secure MCP Tunnel ID to use instead of a direct server URL. One of16680            `server_url`, `connector_id`, or `tunnel_id` must be provided.1668116682        - `CodeInterpreter object { container, type, allowed_callers }`1668316684          A tool that runs Python code to help generate a response to a prompt.1668516686          - `container: string or object { type, file_ids, memory_limit, network_policy }`1668716688            The code interpreter container. Can be a container ID or an object that16689            specifies uploaded file IDs to make available to your code, along with an16690            optional `memory_limit` setting.1669116692            - `string`1669316694              The container ID.1669516696            - `CodeInterpreterToolAuto object { type, file_ids, memory_limit, network_policy }`1669716698              Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.1669916700              - `type: "auto"`1670116702                Always `auto`.1670316704                - `"auto"`1670516706              - `file_ids: optional array of string`1670716708                An optional list of uploaded files to make available to your code.1670916710              - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`1671116712                The memory limit for the code interpreter container.1671316714                - `"1g"`1671516716                - `"4g"`1671716718                - `"16g"`1671916720                - `"64g"`1672116722              - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`1672316724                Network access policy for the container.1672516726                - `ContainerNetworkPolicyDisabled object { type }`1672716728                - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`1672916730          - `type: "code_interpreter"`1673116732            The type of the code interpreter tool. Always `code_interpreter`.1673316734            - `"code_interpreter"`1673516736          - `allowed_callers: optional array of "direct" or "programmatic" or null`1673716738            The tool invocation context(s).1673916740            - `"direct"`1674116742            - `"programmatic"`1674316744        - `ProgrammaticToolCalling object { type }`1674516746          - `type: "programmatic_tool_calling"`1674716748            The type of the tool. Always `programmatic_tool_calling`.1674916750            - `"programmatic_tool_calling"`1675116752        - `ImageGeneration object { type, action, background, 9 more }`1675316754          A tool that generates images using the GPT image models.1675516756          - `type: "image_generation"`1675716758            The type of the image generation tool. Always `image_generation`.1675916760            - `"image_generation"`1676116762          - `action: optional "generate" or "edit" or "auto"`1676316764            Whether to generate a new image or edit an existing image. Default: `auto`.1676516766            - `"generate"`1676716768            - `"edit"`1676916770            - `"auto"`1677116772          - `background: optional "transparent" or "opaque" or "auto"`1677316774            Set the background of the generated image. One of `transparent`, `opaque`,16775            or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including16776            their `2026-09-08` snapshots, support `opaque` and `transparent`16777            backgrounds. Transparent backgrounds are available for supported GPT Image16778            models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in16779            preview. When using `transparent`, set the output format to `png` or `webp`.16780            Default: `auto`.1678116782            - `"transparent"`1678316784            - `"opaque"`1678516786            - `"auto"`1678716788          - `input_fidelity: optional "high" or "low" or null`1678916790            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`.1679116792            - `"high"`1679316794            - `"low"`1679516796          - `input_image_mask: optional object { file_id, image_url }`1679716798            Optional mask for inpainting. Contains `image_url`16799            (string, optional) and `file_id` (string, optional).1680016801            - `file_id: optional string`1680216803              File ID for the mask image.1680416805            - `image_url: optional string`1680616807              Base64-encoded mask image.1680816809          - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`1681016811            The image generation model to use. One of `gpt-image-1`,16812            `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,16813            `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,16814            `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,16815            `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:16816            `gpt-image-1`.1681716818            - `string`1681916820            - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`1682116822              The image generation model to use. One of `gpt-image-1`,16823              `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,16824              `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,16825              `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,16826              `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:16827              `gpt-image-1`.1682816829              - `"gpt-image-1"`1683016831              - `"gpt-image-1-mini"`1683216833              - `"gpt-image-1.5"`1683416835              - `"gpt-image-2"`1683616837              - `"gpt-image-2-2026-04-21"`1683816839              - `"gpt-image-2.5-sunburst"`1684016841              - `"gpt-image-2.5-sunburst-2026-09-08"`1684216843              - `"gpt-image-2.5-flare"`1684416845              - `"gpt-image-2.5-flare-2026-09-08"`1684616847          - `moderation: optional "auto" or "low"`1684816849            Moderation level for the generated image. Default: `auto`.1685016851            - `"auto"`1685216853            - `"low"`1685416855          - `output_compression: optional number`1685616857            Compression level for the output image. Default: 100.1685816859          - `output_format: optional "png" or "webp" or "jpeg"`1686016861            The output format of the generated image. One of `png`, `webp`, or16862            `jpeg`. Default: `png`.1686316864            - `"png"`1686516866            - `"webp"`1686716868            - `"jpeg"`1686916870          - `partial_images: optional number`1687116872            Number of partial images to generate in streaming mode, from 0 (default value) to 3.1687316874          - `quality: optional "low" or "medium" or "high" or 3 more`1687516876            The quality of the generated image. The GPT image models support `low`,16877            `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,16878            including their `2026-09-08` snapshots, also support `xhigh` and `max`.16879            Default: `auto`.1688016881            - `"low"`1688216883            - `"medium"`1688416885            - `"high"`1688616887            - `"xhigh"`1688816889            - `"max"`1689016891            - `"auto"`1689216893          - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`1689416895            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`.1689616897            - `string`1689816899            - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`1690016901              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`.1690216903              - `"1024x1024"`1690416905              - `"1024x1536"`1690616907              - `"1536x1024"`1690816909              - `"auto"`1691016911        - `LocalShell object { type }`1691216913          A tool that allows the model to execute shell commands in a local environment.1691416915          - `type: "local_shell"`1691616917            The type of the local shell tool. Always `local_shell`.1691816919            - `"local_shell"`1692016921        - `Shell object { type, allowed_callers, environment }`1692216923          A tool that allows the model to execute shell commands.1692416925          - `type: "shell"`1692616927            The type of the shell tool. Always `shell`.1692816929            - `"shell"`1693016931          - `allowed_callers: optional array of "direct" or "programmatic" or null`1693216933            The tool invocation context(s).1693416935            - `"direct"`1693616937            - `"programmatic"`1693816939          - `environment: optional ContainerAuto or LocalEnvironment or ContainerReference or null`1694016941            - `ContainerAuto object { type, file_ids, memory_limit, 2 more }`1694216943            - `LocalEnvironment object { type, skills }`1694416945            - `ContainerReference object { container_id, type }`1694616947        - `Custom object { name, type, allowed_callers, 4 more }`1694816949          A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)1695016951          - `name: string`1695216953            The name of the custom tool, used to identify it in tool calls.1695416955          - `type: "custom"`1695616957            The type of the custom tool. Always `custom`.1695816959            - `"custom"`1696016961          - `allowed_callers: optional array of "direct" or "programmatic" or null`1696216963            The tool invocation context(s).1696416965            - `"direct"`1696616967            - `"programmatic"`1696816969          - `async: optional boolean`1697016971            Whether the tool response can be returned asynchronously versus immediately returned on next response creation.1697216973          - `defer_loading: optional boolean`1697416975            Whether this tool should be deferred and discovered via tool search.1697616977          - `description: optional string`1697816979            Optional description of the custom tool, used to provide more context.1698016981          - `format: optional CustomToolInputFormat`1698216983            The input format for the custom tool. Default is unconstrained text.1698416985        - `Namespace object { description, name, tools, type }`1698616987          Groups function/custom tools under a shared namespace.1698816989          - `description: string`1699016991            A description of the namespace shown to the model.1699216993          - `name: string`1699416995            The namespace name used in tool calls (for example, `crm`).1699616997          - `tools: array of object { name, type, allowed_callers, 6 more }  or object { name, type, allowed_callers, 4 more }`1699816999            The function/custom tools available inside this namespace.1700017001            - `Function object { name, type, allowed_callers, 6 more }`1700217003              - `name: string`1700417005              - `type: "function"`1700617007                - `"function"`1700817009              - `allowed_callers: optional array of "direct" or "programmatic" or null`1701017011                The tool invocation context(s).1701217013                - `"direct"`1701417015                - `"programmatic"`1701617017              - `async: optional boolean`1701817019                Whether the tool response can be returned asynchronously versus immediately returned on next response creation.1702017021              - `defer_loading: optional boolean`1702217023                Whether this function should be deferred and discovered via tool search.1702417025              - `description: optional string or null`1702617027              - `output_schema: optional map[unknown] or null`1702817029                A JSON Schema describing the JSON value encoded in string outputs for this function tool. This does not describe content-array outputs.1703017031              - `parameters: optional unknown or null`1703217033              - `strict: optional boolean or null`1703417035                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.1703617037            - `Custom object { name, type, allowed_callers, 4 more }`1703817039              A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)1704017041              - `name: string`1704217043                The name of the custom tool, used to identify it in tool calls.1704417045              - `type: "custom"`1704617047                The type of the custom tool. Always `custom`.1704817049                - `"custom"`1705017051              - `allowed_callers: optional array of "direct" or "programmatic" or null`1705217053                The tool invocation context(s).1705417055                - `"direct"`1705617057                - `"programmatic"`1705817059              - `async: optional boolean`1706017061                Whether the tool response can be returned asynchronously versus immediately returned on next response creation.1706217063              - `defer_loading: optional boolean`1706417065                Whether this tool should be deferred and discovered via tool search.1706617067              - `description: optional string`1706817069                Optional description of the custom tool, used to provide more context.1707017071              - `format: optional CustomToolInputFormat`1707217073                The input format for the custom tool. Default is unconstrained text.1707417075          - `type: "namespace"`1707617077            The type of the tool. Always `namespace`.1707817079            - `"namespace"`1708017081        - `ToolSearch object { type, description, execution, parameters }`1708217083          Hosted or BYOT tool search configuration for deferred tools.1708417085          - `type: "tool_search"`1708617087            The type of the tool. Always `tool_search`.1708817089            - `"tool_search"`1709017091          - `description: optional string or null`1709217093            Description shown to the model for a client-executed tool search tool.1709417095          - `execution: optional "server" or "client"`1709617097            Whether tool search is executed by the server or by the client.1709817099            - `"server"`1710017101            - `"client"`1710217103          - `parameters: optional unknown or null`1710417105            Parameter schema for a client-executed tool search tool.1710617107        - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`1710817109          This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](/api/docs/guides/tools-web-search).1711017111          - `type: "web_search_preview" or "web_search_preview_2025_03_11"`1711217113            The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.1711417115            - `"web_search_preview"`1711617117            - `"web_search_preview_2025_03_11"`1711817119          - `search_content_types: optional array of "text" or "image"`1712017121            - `"text"`1712217123            - `"image"`1712417125          - `search_context_size: optional "low" or "medium" or "high"`1712617127            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.1712817129            - `"low"`1713017131            - `"medium"`1713217133            - `"high"`1713417135          - `user_location: optional object { type, city, country, 2 more }  or null`1713617137            The user's location.1713817139            - `type: "approximate"`1714017141              The type of location approximation. Always `approximate`.1714217143              - `"approximate"`1714417145            - `city: optional string or null`1714617147              Free text input for the city of the user, e.g. `San Francisco`.1714817149            - `country: optional string or null`1715017151              The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.1715217153            - `region: optional string or null`1715417155              Free text input for the region of the user, e.g. `California`.1715617157            - `timezone: optional string or null`1715817159              The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.1716017161        - `ApplyPatch object { type, allowed_callers }`1716217163          Allows the assistant to create, delete, or update files using unified diffs.1716417165          - `type: "apply_patch"`1716617167            The type of the tool. Always `apply_patch`.1716817169            - `"apply_patch"`1717017171          - `allowed_callers: optional array of "direct" or "programmatic" or null`1717217173            The tool invocation context(s).1717417175            - `"direct"`1717617177            - `"programmatic"`1717817179      - `type: "additional_tools"`1718017181        The type of the item. Always `additional_tools`.1718217183        - `"additional_tools"`1718417185    - `ConfigurationUpdate object { id, type, reasoning }`1718617187      A configuration update that applies to subsequent responses until it is17188      replaced by another configuration update.1718917190      - `id: string`1719117192        The unique ID of the configuration update item.1719317194      - `type: "configuration_update"`1719517196        The item type. Always `configuration_update`.1719717198        - `"configuration_update"`1719917200      - `reasoning: optional object { effort }`1720117202        The reasoning configuration applied by this update.1720317204        - `effort: optional ReasoningEffort or null`1720517206          The reasoning effort used for subsequent responses until another17207          configuration update replaces it.1720817209          - `"none"`1721017211          - `"minimal"`1721217213          - `"low"`1721417215          - `"medium"`1721617217          - `"high"`1721817219          - `"xhigh"`1722017221          - `"max"`1722217223    - `Reasoning object { id, summary, type, 3 more }`1722417225      A description of the chain of thought used by a reasoning model while generating17226      a response. Be sure to include these items in your `input` to the Responses API17227      for subsequent turns of a conversation if you are manually17228      [managing context](/api/docs/guides/conversation-state).1722917230      - `id: string`1723117232        The unique identifier of the reasoning content.1723317234      - `summary: array of SummaryTextContent`1723517236        Reasoning summary content.1723717238        - `text: string`1723917240          A summary of the reasoning output from the model so far.1724117242        - `type: "summary_text"`1724317244          The type of the object. Always `summary_text`.1724517246      - `type: "reasoning"`1724717248        The type of the object. Always `reasoning`.1724917250        - `"reasoning"`1725117252      - `content: optional array of object { text, type }`1725317254        Reasoning text content.1725517256        - `text: string`1725717258          The reasoning text from the model.1725917260        - `type: "reasoning_text"`1726117262          The type of the reasoning text. Always `reasoning_text`.1726317264          - `"reasoning_text"`1726517266      - `encrypted_content: optional string or null`1726717268        The encrypted content of the reasoning item. This is populated by default17269        for reasoning items returned by `POST /v1/responses` and WebSocket17270        `response.create` requests.1727117272        When streaming, use the completed reasoning item and its17273        `encrypted_content` from the `response.output_item.done` event in17274        subsequent requests. The `encrypted_content` in17275        `response.output_item.added` may be incomplete. This is especially17276        important when `store` is `false` or when using Zero Data Retention.1727717278      - `status: optional "in_progress" or "completed" or "incomplete"`1727917280        The status of the item. One of `in_progress`, `completed`, or17281        `incomplete`. Populated when items are returned via API.1728217283        - `"in_progress"`1728417285        - `"completed"`1728617287        - `"incomplete"`1728817289    - `Program object { id, call_id, code, 2 more }`1729017291      - `id: string`1729217293        The unique ID of the program item.1729417295      - `call_id: string`1729617297        The stable call ID of the program item.1729817299      - `code: string`1730017301        The JavaScript source executed by programmatic tool calling.1730217303      - `fingerprint: string`1730417305        Opaque program replay fingerprint that must be round-tripped.1730617307      - `type: "program"`1730817309        The type of the item. Always `program`.1731017311        - `"program"`1731217313    - `ProgramOutput object { id, call_id, result, 2 more }`1731417315      - `id: string`1731617317        The unique ID of the program output item.1731817319      - `call_id: string`1732017321        The call ID of the program item.1732217323      - `result: string`1732417325        The result produced by the program item.1732617327      - `status: "completed" or "incomplete"`1732817329        The terminal status of the program output item.1733017331        - `"completed"`1733217333        - `"incomplete"`1733417335      - `type: "program_output"`1733617337        The type of the item. Always `program_output`.1733817339        - `"program_output"`1734017341    - `Compaction object { id, encrypted_content, type, created_by }`1734217343      A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).1734417345      - `id: string`1734617347        The unique ID of the compaction item.1734817349      - `encrypted_content: string`1735017351        The encrypted content that was produced by compaction.1735217353      - `type: "compaction"`1735417355        The type of the item. Always `compaction`.1735617357        - `"compaction"`1735817359      - `created_by: optional string`1736017361        The identifier of the actor that created the item.1736217363    - `CodeInterpreterCall object { id, code, container_id, 3 more }`1736417365      A tool call to run code.1736617367      - `id: string`1736817369        The unique ID of the code interpreter tool call.1737017371      - `code: string or null`1737217373        The code to run, or null if not available.1737417375      - `container_id: string`1737617377        The ID of the container used to run the code.1737817379      - `outputs: array of object { logs, type }  or object { type, url }  or null`1738017381        The outputs generated by the code interpreter, such as logs or images.17382        Can be null if no outputs are available.1738317384        - `Logs object { logs, type }`1738517386          The logs output from the code interpreter.1738717388          - `logs: string`1738917390            The logs output from the code interpreter.1739117392          - `type: "logs"`1739317394            The type of the output. Always `logs`.1739517396            - `"logs"`1739717398        - `Image object { type, url }`1739917400          The image output from the code interpreter.1740117402          - `type: "image"`1740317404            The type of the output. Always `image`.1740517406            - `"image"`1740717408          - `url: string`1740917410            The URL of the image output from the code interpreter.1741117412      - `status: "in_progress" or "completed" or "incomplete" or 2 more`1741317414        The status of the code interpreter tool call. Valid values are `in_progress`, `completed`, `incomplete`, `interpreting`, and `failed`.1741517416        - `"in_progress"`1741717418        - `"completed"`1741917420        - `"incomplete"`1742117422        - `"interpreting"`1742317424        - `"failed"`1742517426      - `type: "code_interpreter_call"`1742717428        The type of the code interpreter tool call. Always `code_interpreter_call`.1742917430        - `"code_interpreter_call"`1743117432    - `LocalShellCall object { id, action, call_id, 2 more }`1743317434      A tool call to run a command on the local shell.1743517436      - `id: string`1743717438        The unique ID of the local shell call.1743917440      - `action: object { command, env, type, 3 more }`1744117442        Execute a shell command on the server.1744317444        - `command: array of string`1744517446          The command to run.1744717448        - `env: map[string]`1744917450          Environment variables to set for the command.1745117452        - `type: "exec"`1745317454          The type of the local shell action. Always `exec`.1745517456          - `"exec"`1745717458        - `timeout_ms: optional number or null`1745917460          Optional timeout in milliseconds for the command.1746117462        - `user: optional string or null`1746317464          Optional user to run the command as.1746517466        - `working_directory: optional string or null`1746717468          Optional working directory to run the command in.1746917470      - `call_id: string`1747117472        The unique ID of the local shell tool call generated by the model.1747317474      - `status: "in_progress" or "completed" or "incomplete"`1747517476        The status of the local shell call.1747717478        - `"in_progress"`1747917480        - `"completed"`1748117482        - `"incomplete"`1748317484      - `type: "local_shell_call"`1748517486        The type of the local shell call. Always `local_shell_call`.1748717488        - `"local_shell_call"`1748917490    - `LocalShellCallOutput object { id, output, type, status }`1749117492      The output of a local shell tool call.1749317494      - `id: string`1749517496        The unique ID of the local shell tool call generated by the model.1749717498      - `output: string`1749917500        A JSON string of the output of the local shell tool call.1750117502      - `type: "local_shell_call_output"`1750317504        The type of the local shell tool call output. Always `local_shell_call_output`.1750517506        - `"local_shell_call_output"`1750717508      - `status: optional "in_progress" or "completed" or "incomplete" or null`1750917510        The status of the item. One of `in_progress`, `completed`, or `incomplete`.1751117512        - `"in_progress"`1751317514        - `"completed"`1751517516        - `"incomplete"`1751717518    - `ShellCall object { id, action, call_id, 5 more }`1751917520      A tool call that executes one or more shell commands in a managed environment.1752117522      - `id: string`1752317524        The unique ID of the shell tool call. Populated when this item is returned via API.1752517526      - `action: object { commands, max_output_length, timeout_ms }`1752717528        The shell commands and limits that describe how to run the tool call.1752917530        - `commands: array of string`1753117532        - `max_output_length: number or null`1753317534          Optional maximum number of characters to return from each command.1753517536        - `timeout_ms: number or null`1753717538          Optional timeout in milliseconds for the commands.1753917540      - `call_id: string`1754117542        The unique ID of the shell tool call generated by the model.1754317544      - `environment: ResponseLocalEnvironment or ResponseContainerReference or null`1754517546        Represents the use of a local environment to perform shell actions.1754717548        - `ResponseLocalEnvironment object { type }`1754917550          Represents the use of a local environment to perform shell actions.1755117552          - `type: "local"`1755317554            The environment type. Always `local`.1755517556            - `"local"`1755717558        - `ResponseContainerReference object { container_id, type }`1755917560          Represents a container created with /v1/containers.1756117562          - `container_id: string`1756317564          - `type: "container_reference"`1756517566            The environment type. Always `container_reference`.1756717568            - `"container_reference"`1756917570      - `status: "in_progress" or "completed" or "incomplete"`1757117572        The status of the shell call. One of `in_progress`, `completed`, or `incomplete`.1757317574        - `"in_progress"`1757517576        - `"completed"`1757717578        - `"incomplete"`1757917580      - `type: "shell_call"`1758117582        The type of the item. Always `shell_call`.1758317584        - `"shell_call"`1758517586      - `caller: optional object { type }  or object { caller_id, type }  or null`1758717588        The execution context that produced this tool call.1758917590        - `Direct object { type }`1759117592          - `type: "direct"`1759317594            - `"direct"`1759517596        - `Program object { caller_id, type }`1759717598          - `caller_id: string`1759917600            The call ID of the program item that produced this tool call.1760117602          - `type: "program"`1760317604            - `"program"`1760517606      - `created_by: optional string`1760717608        The ID of the entity that created this tool call.1760917610    - `ShellCallOutput object { id, call_id, max_output_length, 5 more }`1761117612      The output of a shell tool call that was emitted.1761317614      - `id: string`1761517616        The unique ID of the shell call output. Populated when this item is returned via API.1761717618      - `call_id: string`1761917620        The unique ID of the shell tool call generated by the model.1762117622      - `max_output_length: number or null`1762317624        The maximum length of the shell command output. This is generated by the model and should be passed back with the raw output.1762517626      - `output: array of object { outcome, stderr, stdout, created_by }`1762717628        An array of shell call output contents1762917630        - `outcome: object { type }  or object { exit_code, type }`1763117632          Represents either an exit outcome (with an exit code) or a timeout outcome for a shell call output chunk.1763317634          - `Timeout object { type }`1763517636            Indicates that the shell call exceeded its configured time limit.1763717638            - `type: "timeout"`1763917640              The outcome type. Always `timeout`.1764117642              - `"timeout"`1764317644          - `Exit object { exit_code, type }`1764517646            Indicates that the shell commands finished and returned an exit code.1764717648            - `exit_code: number`1764917650              Exit code from the shell process.1765117652            - `type: "exit"`1765317654              The outcome type. Always `exit`.1765517656              - `"exit"`1765717658        - `stderr: string`1765917660          The standard error output that was captured.1766117662        - `stdout: string`1766317664          The standard output that was captured.1766517666        - `created_by: optional string`1766717668          The identifier of the actor that created the item.1766917670      - `status: "in_progress" or "completed" or "incomplete"`1767117672        The status of the shell call output. One of `in_progress`, `completed`, or `incomplete`.1767317674        - `"in_progress"`1767517676        - `"completed"`1767717678        - `"incomplete"`1767917680      - `type: "shell_call_output"`1768117682        The type of the shell call output. Always `shell_call_output`.1768317684        - `"shell_call_output"`1768517686      - `caller: optional object { type }  or object { caller_id, type }  or null`1768717688        The execution context that produced this tool call.1768917690        - `Direct object { type }`1769117692          - `type: "direct"`1769317694            - `"direct"`1769517696        - `Program object { caller_id, type }`1769717698          - `caller_id: string`1769917700            The call ID of the program item that produced this tool call.1770117702          - `type: "program"`1770317704            - `"program"`1770517706      - `created_by: optional string`1770717708        The identifier of the actor that created the item.1770917710    - `ApplyPatchCall object { id, call_id, operation, 4 more }`1771117712      A tool call that applies file diffs by creating, deleting, or updating files.1771317714      - `id: string`1771517716        The unique ID of the apply patch tool call. Populated when this item is returned via API.1771717718      - `call_id: string`1771917720        The unique ID of the apply patch tool call generated by the model.1772117722      - `operation: object { diff, path, type }  or object { path, type }  or object { diff, path, type }`1772317724        One of the create_file, delete_file, or update_file operations applied via apply_patch.1772517726        - `CreateFile object { diff, path, type }`1772717728          Instruction describing how to create a file via the apply_patch tool.1772917730          - `diff: string`1773117732            Diff to apply.1773317734          - `path: string`1773517736            Path of the file to create.1773717738          - `type: "create_file"`1773917740            Create a new file with the provided diff.1774117742            - `"create_file"`1774317744        - `DeleteFile object { path, type }`1774517746          Instruction describing how to delete a file via the apply_patch tool.1774717748          - `path: string`1774917750            Path of the file to delete.1775117752          - `type: "delete_file"`1775317754            Delete the specified file.1775517756            - `"delete_file"`1775717758        - `UpdateFile object { diff, path, type }`1775917760          Instruction describing how to update a file via the apply_patch tool.1776117762          - `diff: string`1776317764            Diff to apply.1776517766          - `path: string`1776717768            Path of the file to update.1776917770          - `type: "update_file"`1777117772            Update an existing file with the provided diff.1777317774            - `"update_file"`1777517776      - `status: "in_progress" or "completed"`1777717778        The status of the apply patch tool call. One of `in_progress` or `completed`.1777917780        - `"in_progress"`1778117782        - `"completed"`1778317784      - `type: "apply_patch_call"`1778517786        The type of the item. Always `apply_patch_call`.1778717788        - `"apply_patch_call"`1778917790      - `caller: optional object { type }  or object { caller_id, type }  or null`1779117792        The execution context that produced this tool call.1779317794        - `Direct object { type }`1779517796          - `type: "direct"`1779717798            - `"direct"`1779917800        - `Program object { caller_id, type }`1780117802          - `caller_id: string`1780317804            The call ID of the program item that produced this tool call.1780517806          - `type: "program"`1780717808            - `"program"`1780917810      - `created_by: optional string`1781117812        The ID of the entity that created this tool call.1781317814    - `ApplyPatchCallOutput object { id, call_id, status, 4 more }`1781517816      The output emitted by an apply patch tool call.1781717818      - `id: string`1781917820        The unique ID of the apply patch tool call output. Populated when this item is returned via API.1782117822      - `call_id: string`1782317824        The unique ID of the apply patch tool call generated by the model.1782517826      - `status: "completed" or "failed"`1782717828        The status of the apply patch tool call output. One of `completed` or `failed`.1782917830        - `"completed"`1783117832        - `"failed"`1783317834      - `type: "apply_patch_call_output"`1783517836        The type of the item. Always `apply_patch_call_output`.1783717838        - `"apply_patch_call_output"`1783917840      - `caller: optional object { type }  or object { caller_id, type }  or null`1784117842        The execution context that produced this tool call.1784317844        - `Direct object { type }`1784517846          - `type: "direct"`1784717848            - `"direct"`1784917850        - `Program object { caller_id, type }`1785117852          - `caller_id: string`1785317854            The call ID of the program item that produced this tool call.1785517856          - `type: "program"`1785717858            - `"program"`1785917860      - `created_by: optional string`1786117862        The ID of the entity that created this tool call output.1786317864      - `output: optional string or null`1786517866        Optional textual output returned by the apply patch tool.1786717868    - `McpListTools object { id, server_label, tools, 2 more }`1786917870      A list of tools available on an MCP server.1787117872      - `id: string`1787317874        The unique ID of the list.1787517876      - `server_label: string`1787717878        The label of the MCP server.1787917880      - `tools: array of object { input_schema, name, annotations, description }`1788117882        The tools available on the server.1788317884        - `input_schema: unknown`1788517886          The JSON schema describing the tool's input.1788717888        - `name: string`1788917890          The name of the tool.1789117892        - `annotations: optional unknown or null`1789317894          Additional annotations about the tool.1789517896        - `description: optional string or null`1789717898          The description of the tool.1789917900      - `type: "mcp_list_tools"`1790117902        The type of the item. Always `mcp_list_tools`.1790317904        - `"mcp_list_tools"`1790517906      - `error: optional string or null`1790717908        Error message if the server could not list tools.1790917910    - `McpApprovalRequest object { id, arguments, name, 2 more }`1791117912      A request for human approval of a tool invocation.1791317914      - `id: string`1791517916        The unique ID of the approval request.1791717918      - `arguments: string`1791917920        A JSON string of arguments for the tool.1792117922      - `name: string`1792317924        The name of the tool to run.1792517926      - `server_label: string`1792717928        The label of the MCP server making the request.1792917930      - `type: "mcp_approval_request"`1793117932        The type of the item. Always `mcp_approval_request`.1793317934        - `"mcp_approval_request"`1793517936    - `McpApprovalResponse object { id, approval_request_id, approve, 2 more }`1793717938      A response to an MCP approval request.1793917940      - `id: string`1794117942        The unique ID of the approval response1794317944      - `approval_request_id: string`1794517946        The ID of the approval request being answered.1794717948      - `approve: boolean`1794917950        Whether the request was approved.1795117952      - `type: "mcp_approval_response"`1795317954        The type of the item. Always `mcp_approval_response`.1795517956        - `"mcp_approval_response"`1795717958      - `reason: optional string or null`1795917960        Optional reason for the decision.1796117962    - `McpCall object { id, arguments, name, 6 more }`1796317964      An invocation of a tool on an MCP server.1796517966      - `id: string`1796717968        The unique ID of the tool call.1796917970      - `arguments: string`1797117972        A JSON string of the arguments passed to the tool.1797317974      - `name: string`1797517976        The name of the tool that was run.1797717978      - `server_label: string`1797917980        The label of the MCP server running the tool.1798117982      - `type: "mcp_call"`1798317984        The type of the item. Always `mcp_call`.1798517986        - `"mcp_call"`1798717988      - `approval_request_id: optional string or null`1798917990        Unique identifier for the MCP tool call approval request.17991        Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.1799217993      - `error: optional McpToolCallError or null`1799417995        The error from the tool call, if any.1799617997        - `McpProtocolError object { code, message, type }`1799817999          - `code: number`1800018001          - `message: string`1800218003          - `type: "mcp_protocol_error"`1800418005            - `"mcp_protocol_error"`1800618007        - `McpToolExecutionError object { content, type }`1800818009          - `content: unknown`1801018011          - `type: "mcp_tool_execution_error"`1801218013            - `"mcp_tool_execution_error"`1801418015        - `HTTPError object { code, message, type }`1801618017          - `code: number`1801818019          - `message: string`1802018021          - `type: "http_error"`1802218023            - `"http_error"`1802418025      - `output: optional string or null`1802618027        The output from the tool call.1802818029      - `status: optional "in_progress" or "completed" or "incomplete" or 2 more`1803018031        The status of the tool call. One of `in_progress`, `completed`, `incomplete`, `calling`, or `failed`.1803218033        - `"in_progress"`1803418035        - `"completed"`1803618037        - `"incomplete"`1803818039        - `"calling"`1804018041        - `"failed"`1804218043    - `CustomToolCall object { call_id, input, name, 5 more }`1804418045      A call to a custom tool created by the model.1804618047      - `call_id: string`1804818049        An identifier used to map this custom tool call to a tool call output.1805018051      - `input: string`1805218053        The input for the custom tool call generated by the model.1805418055      - `name: string`1805618057        The name of the custom tool being called.1805818059      - `type: "custom_tool_call"`1806018061        The type of the custom tool call. Always `custom_tool_call`.1806218063        - `"custom_tool_call"`1806418065      - `id: optional string`1806618067        The unique ID of the custom tool call in the OpenAI platform.1806818069      - `async: optional boolean`1807018071        Whether the custom tool call runs asynchronously.1807218073      - `caller: optional object { type }  or object { caller_id, type }  or null`1807418075        The execution context that produced this tool call.1807618077        - `Direct object { type }`1807818079          - `type: "direct"`1808018081            - `"direct"`1808218083        - `Program object { caller_id, type }`1808418085          - `caller_id: string`1808618087            The call ID of the program item that produced this tool call.1808818089          - `type: "program"`1809018091            - `"program"`1809218093      - `namespace: optional string`1809418095        The namespace of the custom tool being called.1809618097    - `CustomToolCallOutput object { call_id, output, type, 2 more }`1809818099      The output of a custom tool call from your code, being sent back to the model.1810018101      - `call_id: string`1810218103        The call ID, used to map this custom tool call output to a custom tool call.1810418105      - `output: string or array of ResponseInputText or ResponseInputImage or ResponseInputFile`1810618107        The output from the custom tool call generated by your code.18108        Can be a string or an list of output content.1810918110        - `StringOutput = string`1811118112          A string of the output of the custom tool call.1811318114        - `OutputContentList = array of ResponseInputText or ResponseInputImage or ResponseInputFile`1811518116          Text, image, or file output of the custom tool call.1811718118          - `ResponseInputText object { text, type, prompt_cache_breakpoint }`1811918120            A text input to the model.1812118122          - `ResponseInputImage object { detail, type, file_id, 2 more }`1812318124            An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).1812518126          - `ResponseInputFile object { type, detail, file_data, 4 more }`1812718128            A file input to the model.1812918130      - `type: "custom_tool_call_output"`1813118132        The type of the custom tool call output. Always `custom_tool_call_output`.1813318134        - `"custom_tool_call_output"`1813518136      - `id: optional string`1813718138        The unique ID of the custom tool call output in the OpenAI platform.1813918140      - `caller: optional object { type }  or object { caller_id, type }  or null`1814118142        The execution context that produced this tool call.1814318144        - `Direct object { type }`1814518146          - `type: "direct"`1814718148            The caller type. Always `direct`.1814918150            - `"direct"`1815118152        - `Program object { caller_id, type }`1815318154          - `caller_id: string`1815518156            The call ID of the program item that produced this tool call.1815718158          - `type: "program"`1815918160            The caller type. Always `program`.1816118162            - `"program"`1816318164  - `first_id: string`1816518166    The ID of the first item in the list.1816718168  - `has_more: boolean`1816918170    Whether there are more items available.1817118172  - `last_id: string`1817318174    The ID of the last item in the list.1817518176  - `object: "list"`1817718178    The type of object returned, must be `list`.1817918180    - `"list"`1818118182### Example1818318184```http18185curl https://api.openai.com/v1/conversations/$CONVERSATION_ID/items \18186    -H "Authorization: Bearer $OPENAI_API_KEY"18187```1818818189#### Response1819018191```json18192{18193  "data": [18194    {18195      "id": "id",18196      "content": [18197        {18198          "text": "text",18199          "type": "input_text",18200          "prompt_cache_breakpoint": {18201            "mode": "explicit"18202          }18203        }18204      ],18205      "role": "unknown",18206      "status": "in_progress",18207      "type": "message",18208      "phase": "commentary"18209    }18210  ],18211  "first_id": "first_id",18212  "has_more": true,18213  "last_id": "last_id",18214  "object": "list"18215}18216```1821718218### Example1821918220```http18221curl "https://api.openai.com/v1/conversations/conv_123/items?limit=10" \18222  -H "Authorization: Bearer $OPENAI_API_KEY"18223```1822418225#### Response1822618227```json18228{18229  "object": "list",18230  "data": [18231    {18232      "type": "message",18233      "id": "msg_abc",18234      "status": "completed",18235      "role": "user",18236      "content": [18237        {"type": "input_text", "text": "Hello!"}18238      ]18239    }18240  ],18241  "first_id": "msg_abc",18242  "last_id": "msg_abc",18243  "has_more": false18244}18245```1824618247## Retrieve an item1824818249**get** `/conversations/{conversation_id}/items/{item_id}`1825018251Get a single item from a conversation with the given IDs.1825218253### Path Parameters1825418255- `conversation_id: string`1825618257- `item_id: string`1825818259### Query Parameters1826018261- `include: optional array of ResponseIncludable`1826218263  Additional fields to include in the response. See the `include`18264  parameter for [listing Conversation items above](/api/reference/resources/conversations/subresources/items/methods/list#%28resource%29%20conversations.items%20%3E%20%28method%29%20list%20%3E%20%28params%29%20default%20%3E%20%28param%29%20include%20%3E%20%28schema%29) for more information.1826518266  - `"file_search_call.results"`1826718268  - `"web_search_call.results"`1826918270  - `"web_search_call.action.sources"`1827118272  - `"message.input_image.image_url"`1827318274  - `"computer_call_output.output.image_url"`1827518276  - `"code_interpreter_call.outputs"`1827718278  - `"reasoning.encrypted_content"`1827918280  - `"message.output_text.logprobs"`1828118282### Returns1828318284- `ConversationItem = Message or object { id, arguments, call_id, 7 more }  or object { id, output, status, 6 more }  or 26 more`1828518286  A single item within a conversation. The set of possible types are the same as the `output` type of a [Response object](/api/reference/resources/responses#%28resource%29%20responses%20%3E%20%28model%29%20response%20%3E%20%28schema%29%20%3E%20%28property%29%20output).1828718288  - `Message object { id, content, role, 3 more }`1828918290    A message to or from the model.1829118292    - `id: string`1829318294      The unique ID of the message.1829518296    - `content: array of ResponseInputText or ResponseOutputText or TextContent or 6 more`1829718298      The content of the message1829918300      - `ResponseInputText object { text, type, prompt_cache_breakpoint }`1830118302        A text input to the model.1830318304        - `text: string`1830518306          The text input to the model.1830718308        - `type: "input_text"`1830918310          The type of the input item. Always `input_text`.1831118312          - `"input_text"`1831318314        - `prompt_cache_breakpoint: optional object { mode }`1831518316          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.1831718318          - `mode: "explicit"`1831918320            The breakpoint mode. Always `explicit`.1832118322            - `"explicit"`1832318324      - `ResponseOutputText object { annotations, logprobs, text, type }`1832518326        A text output from the model.1832718328        - `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 }`1832918330          The annotations of the text output.1833118332          - `FileCitation object { file_id, filename, index, type }`1833318334            A citation to a file.1833518336            - `file_id: string`1833718338              The ID of the file.1833918340            - `filename: string`1834118342              The filename of the file cited.1834318344            - `index: number`1834518346              The index of the file in the list of files.1834718348            - `type: "file_citation"`1834918350              The type of the file citation. Always `file_citation`.1835118352              - `"file_citation"`1835318354          - `URLCitation object { end_index, start_index, title, 2 more }`1835518356            A citation for a web resource used to generate a model response.1835718358            - `end_index: number`1835918360              The index of the last character of the URL citation in the message.1836118362            - `start_index: number`1836318364              The index of the first character of the URL citation in the message.1836518366            - `title: string`1836718368              The title of the web resource.1836918370            - `type: "url_citation"`1837118372              The type of the URL citation. Always `url_citation`.1837318374              - `"url_citation"`1837518376            - `url: string`1837718378              The URL of the web resource.1837918380          - `ContainerFileCitation object { container_id, end_index, file_id, 3 more }`1838118382            A citation for a container file used to generate a model response.1838318384            - `container_id: string`1838518386              The ID of the container file.1838718388            - `end_index: number`1838918390              The index of the last character of the container file citation in the message.1839118392            - `file_id: string`1839318394              The ID of the file.1839518396            - `filename: string`1839718398              The filename of the container file cited.1839918400            - `start_index: number`1840118402              The index of the first character of the container file citation in the message.1840318404            - `type: "container_file_citation"`1840518406              The type of the container file citation. Always `container_file_citation`.1840718408              - `"container_file_citation"`1840918410          - `FilePath object { file_id, index, type }`1841118412            A path to a file.1841318414            - `file_id: string`1841518416              The ID of the file.1841718418            - `index: number`1841918420              The index of the file in the list of files.1842118422            - `type: "file_path"`1842318424              The type of the file path. Always `file_path`.1842518426              - `"file_path"`1842718428        - `logprobs: array of object { token, bytes, logprob, top_logprobs }`1842918430          - `token: string`1843118432          - `bytes: array of number`1843318434          - `logprob: number`1843518436          - `top_logprobs: array of object { token, bytes, logprob }`1843718438            - `token: string`1843918440            - `bytes: array of number`1844118442            - `logprob: number`1844318444        - `text: string`1844518446          The text output from the model.1844718448        - `type: "output_text"`1844918450          The type of the output text. Always `output_text`.1845118452          - `"output_text"`1845318454      - `TextContent object { text, type }`1845518456        A text content.1845718458        - `text: string`1845918460        - `type: "text"`1846118462          - `"text"`1846318464      - `SummaryTextContent object { text, type }`1846518466        A summary text from the model.1846718468        - `text: string`1846918470          A summary of the reasoning output from the model so far.1847118472        - `type: "summary_text"`1847318474          The type of the object. Always `summary_text`.1847518476          - `"summary_text"`1847718478      - `ReasoningText object { text, type }`1847918480        Reasoning text from the model.1848118482        - `text: string`1848318484          The reasoning text from the model.1848518486        - `type: "reasoning_text"`1848718488          The type of the reasoning text. Always `reasoning_text`.1848918490          - `"reasoning_text"`1849118492      - `ResponseOutputRefusal object { refusal, type }`1849318494        A refusal from the model.1849518496        - `refusal: string`1849718498          The refusal explanation from the model.1849918500        - `type: "refusal"`1850118502          The type of the refusal. Always `refusal`.1850318504          - `"refusal"`1850518506      - `ResponseInputImage object { detail, type, file_id, 2 more }`1850718508        An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).1850918510        - `detail: ImageDetail`1851118512          The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.1851318514          - `"low"`1851518516          - `"high"`1851718518          - `"auto"`1851918520          - `"original"`1852118522        - `type: "input_image"`1852318524          The type of the input item. Always `input_image`.1852518526          - `"input_image"`1852718528        - `file_id: optional string or null`1852918530          The ID of the file to be sent to the model.1853118532        - `image_url: optional string or null`1853318534          The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.1853518536        - `prompt_cache_breakpoint: optional object { mode }`1853718538          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.1853918540          - `mode: "explicit"`1854118542            The breakpoint mode. Always `explicit`.1854318544            - `"explicit"`1854518546      - `ComputerScreenshotContent object { detail, file_id, image_url, 2 more }`1854718548        A screenshot of a computer.1854918550        - `detail: ImageDetail`1855118552          The detail level of the screenshot image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.1855318554        - `file_id: string or null`1855518556          The identifier of an uploaded file that contains the screenshot.1855718558        - `image_url: string or null`1855918560          The URL of the screenshot image.1856118562        - `type: "computer_screenshot"`1856318564          Specifies the event type. For a computer screenshot, this property is always set to `computer_screenshot`.1856518566          - `"computer_screenshot"`1856718568        - `prompt_cache_breakpoint: optional object { mode }`1856918570          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.1857118572          - `mode: "explicit"`1857318574            The breakpoint mode. Always `explicit`.1857518576            - `"explicit"`1857718578      - `ResponseInputFile object { type, detail, file_data, 4 more }`1857918580        A file input to the model.1858118582        - `type: "input_file"`1858318584          The type of the input item. Always `input_file`.1858518586          - `"input_file"`1858718588        - `detail: optional "auto" or "low" or "high"`1858918590          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`.1859118592          - `"auto"`1859318594          - `"low"`1859518596          - `"high"`1859718598        - `file_data: optional string`1859918600          The content of the file to be sent to the model.1860118602        - `file_id: optional string or null`1860318604          The ID of the file to be sent to the model.1860518606        - `file_url: optional string`1860718608          The URL of the file to be sent to the model.1860918610        - `filename: optional string`1861118612          The name of the file to be sent to the model.1861318614        - `prompt_cache_breakpoint: optional object { mode }`1861518616          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.1861718618          - `mode: "explicit"`1861918620            The breakpoint mode. Always `explicit`.1862118622            - `"explicit"`1862318624    - `role: "unknown" or "user" or "assistant" or 5 more`1862518626      The role of the message. One of `unknown`, `user`, `assistant`, `system`, `critic`, `discriminator`, `developer`, or `tool`.1862718628      - `"unknown"`1862918630      - `"user"`1863118632      - `"assistant"`1863318634      - `"system"`1863518636      - `"critic"`1863718638      - `"discriminator"`1863918640      - `"developer"`1864118642      - `"tool"`1864318644    - `status: "in_progress" or "completed" or "incomplete"`1864518646      The status of item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API.1864718648      - `"in_progress"`1864918650      - `"completed"`1865118652      - `"incomplete"`1865318654    - `type: "message"`1865518656      The type of the message. Always set to `message`.1865718658      - `"message"`1865918660    - `phase: optional "commentary" or "final_answer" or null`1866118662      Labels an `assistant` message as intermediate commentary (`commentary`) or the final answer (`final_answer`). For models like `gpt-5.3-codex` and beyond, when sending follow-up requests, preserve and resend phase on all assistant messages — dropping it can degrade performance. Not used for user messages.1866318664      - `"commentary"`1866518666      - `"final_answer"`1866718668  - `FunctionCall object { id, arguments, call_id, 7 more }`1866918670    - `id: string`1867118672      The unique ID of the function tool call.1867318674    - `arguments: string`1867518676      A JSON string of the arguments to pass to the function.1867718678    - `call_id: string`1867918680      The unique ID of the function tool call generated by the model.1868118682    - `name: string`1868318684      The name of the function to run.1868518686    - `status: "in_progress" or "completed" or "incomplete"`1868718688      The status of the item. One of `in_progress`, `completed`, or18689      `incomplete`. Populated when items are returned via API.1869018691      - `"in_progress"`1869218693      - `"completed"`1869418695      - `"incomplete"`1869618697    - `type: "function_call"`1869818699      The type of the function tool call. Always `function_call`.1870018701      - `"function_call"`1870218703    - `async: optional boolean`1870418705      Whether the function tool call runs asynchronously.1870618707    - `caller: optional object { type }  or object { caller_id, type }  or null`1870818709      The execution context that produced this tool call.1871018711      - `Direct object { type }`1871218713        - `type: "direct"`1871418715          - `"direct"`1871618717      - `Program object { caller_id, type }`1871818719        - `caller_id: string`1872018721          The call ID of the program item that produced this tool call.1872218723        - `type: "program"`1872418725          - `"program"`1872618727    - `created_by: optional string`1872818729      The identifier of the actor that created the item.1873018731    - `namespace: optional string`1873218733      The namespace of the function to run.1873418735  - `FunctionCallOutput object { id, output, status, 6 more }`1873618737    - `id: string`1873818739      The unique ID of the function call tool output.1874018741    - `output: string or array of ResponseInputText or ResponseInputImage or ResponseInputFile`1874218743      The output from the function call generated by your code.18744      Can be a string or an list of output content.1874518746      - `StringOutput = string`1874718748        A string of the output of the function call.1874918750      - `OutputContentList = array of ResponseInputText or ResponseInputImage or ResponseInputFile`1875118752        Text, image, or file output of the function call.1875318754        - `ResponseInputText object { text, type, prompt_cache_breakpoint }`1875518756          A text input to the model.1875718758        - `ResponseInputImage object { detail, type, file_id, 2 more }`1875918760          An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).1876118762        - `ResponseInputFile object { type, detail, file_data, 4 more }`1876318764          A file input to the model.1876518766    - `status: "in_progress" or "completed" or "incomplete"`1876718768      The status of the item. One of `in_progress`, `completed`, or18769      `incomplete`. Populated when items are returned via API.1877018771      - `"in_progress"`1877218773      - `"completed"`1877418775      - `"incomplete"`1877618777    - `type: "function_call_output"`1877818779      The type of the function tool call output. Always `function_call_output`.1878018781      - `"function_call_output"`1878218783    - `call_id: optional string`1878418785      The unique ID of the function tool call generated by the model.1878618787    - `caller: optional object { type }  or object { caller_id, type }  or null`1878818789      The execution context that produced this tool call.1879018791      - `Direct object { type }`1879218793        - `type: "direct"`1879418795          The caller type. Always `direct`.1879618797          - `"direct"`1879818799      - `Program object { caller_id, type }`1880018801        - `caller_id: string`1880218803          The call ID of the program item that produced this tool call.1880418805        - `type: "program"`1880618807          The caller type. Always `program`.1880818809          - `"program"`1881018811    - `created_by: optional string`1881218813      The identifier of the actor that created the item.1881418815    - `name: optional string`1881618817      The name of the tool that produced the output.1881818819    - `namespace: optional string`1882018821      The namespace of the tool that produced the output.1882218823  - `FileSearchCall object { id, queries, status, 2 more }`1882418825    The results of a file search tool call. See the18826    [file search guide](/api/docs/guides/tools-file-search) for more information.1882718828    - `id: string`1882918830      The unique ID of the file search tool call.1883118832    - `queries: array of string`1883318834      The queries used to search for files.1883518836    - `status: "in_progress" or "searching" or "completed" or 2 more`1883718838      The status of the file search tool call. One of `in_progress`,18839      `searching`, `incomplete` or `failed`,1884018841      - `"in_progress"`1884218843      - `"searching"`1884418845      - `"completed"`1884618847      - `"incomplete"`1884818849      - `"failed"`1885018851    - `type: "file_search_call"`1885218853      The type of the file search tool call. Always `file_search_call`.1885418855      - `"file_search_call"`1885618857    - `results: optional array of object { attributes, file_id, filename, 2 more }  or null`1885818859      The results of the file search tool call.1886018861      - `attributes: optional map[string or number or boolean] or null`1886218863        Set of 16 key-value pairs that can be attached to an object. This can be18864        useful for storing additional information about the object in a structured18865        format, and querying for objects via API or the dashboard. Keys are strings18866        with a maximum length of 64 characters. Values are strings with a maximum18867        length of 512 characters, booleans, or numbers.1886818869        - `string`1887018871        - `number`1887218873        - `boolean`1887418875      - `file_id: optional string`1887618877        The unique ID of the file.1887818879      - `filename: optional string`1888018881        The name of the file.1888218883      - `score: optional number`1888418885        The relevance score of the file - a value between 0 and 1.1888618887      - `text: optional string`1888818889        The text that was retrieved from the file.1889018891  - `WebSearchCall object { id, action, status, type }`1889218893    The results of a web search tool call. See the18894    [web search guide](/api/docs/guides/tools-web-search) for more information.1889518896    - `id: string`1889718898      The unique ID of the web search tool call.1889918900    - `action: object { type, queries, query, sources }  or object { type, url }  or object { pattern, type, url }`1890118902      An object describing the specific action taken in this web search call.18903      Includes details on how the model used the web (search, open_page, find_in_page).1890418905      - `Search object { type, queries, query, sources }`1890618907        Action type "search" - Performs a web search query.1890818909        - `type: "search"`1891018911          The action type.1891218913          - `"search"`1891418915        - `queries: optional array of string`1891618917          The search queries.1891818919        - `query: optional string`1892018921          The search query.1892218923        - `sources: optional array of object { type, url }`1892418925          The sources used in the search.1892618927          - `type: "url"`1892818929            The type of source. Always `url`.1893018931            - `"url"`1893218933          - `url: string`1893418935            The URL of the source.1893618937      - `OpenPage object { type, url }`1893818939        Action type "open_page" - Opens a specific URL from search results.1894018941        - `type: "open_page"`1894218943          The action type.1894418945          - `"open_page"`1894618947        - `url: optional string or null`1894818949          The URL opened by the model.1895018951      - `FindInPage object { pattern, type, url }`1895218953        Action type "find_in_page": Searches for a pattern within a loaded page.1895418955        - `pattern: string`1895618957          The pattern or text to search for within the page.1895818959        - `type: "find_in_page"`1896018961          The action type.1896218963          - `"find_in_page"`1896418965        - `url: string`1896618967          The URL of the page searched for the pattern.1896818969    - `status: "in_progress" or "searching" or "completed" or 2 more`1897018971      The status of the web search tool call.1897218973      - `"in_progress"`1897418975      - `"searching"`1897618977      - `"completed"`1897818979      - `"failed"`1898018981      - `"incomplete"`1898218983    - `type: "web_search_call"`1898418985      The type of the web search tool call. Always `web_search_call`.1898618987      - `"web_search_call"`1898818989  - `ImageGenerationCall object { id, result, status, 7 more }`1899018991    An image generation request made by the model.1899218993    - `id: string`1899418995      The unique ID of the image generation call.1899618997    - `result: string or null`1899818999      The generated image encoded in base64.1900019001    - `status: "in_progress" or "completed" or "generating" or "failed"`1900219003      The status of the image generation call.1900419005      - `"in_progress"`1900619007      - `"completed"`1900819009      - `"generating"`1901019011      - `"failed"`1901219013    - `type: "image_generation_call"`1901419015      The type of the image generation call. Always `image_generation_call`.1901619017      - `"image_generation_call"`1901819019    - `action: optional "generate" or "edit" or "auto" or null`1902019021      The action used for image generation.1902219023      - `"generate"`1902419025      - `"edit"`1902619027      - `"auto"`1902819029    - `background: optional "transparent" or "opaque" or "auto" or null`1903019031      The background setting used for generation.1903219033      - `"transparent"`1903419035      - `"opaque"`1903619037      - `"auto"`1903819039    - `output_format: optional "png" or "webp" or "jpeg" or null`1904019041      The output format used for generation.1904219043      - `"png"`1904419045      - `"webp"`1904619047      - `"jpeg"`1904819049    - `quality: optional "low" or "medium" or "high" or 3 more or null`1905019051      The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.1905219053      - `"low"`1905419055      - `"medium"`1905619057      - `"high"`1905819059      - `"xhigh"`1906019061      - `"max"`1906219063      - `"auto"`1906419065    - `revised_prompt: optional string or null`1906619067      The prompt that was used after any model prompt rewriting.1906819069    - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`1907019071      The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.1907219073      - `string`1907419075      - `"1024x1024" or "1024x1536" or "1536x1024"`1907619077        The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.1907819079        - `"1024x1024"`1908019081        - `"1024x1536"`1908219083        - `"1536x1024"`1908419085  - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`1908619087    A tool call to a computer use tool. See the19088    [computer use guide](/api/docs/guides/tools-computer-use) for more information.1908919090    - `id: string`1909119092      The unique ID of the computer call.1909319094    - `call_id: string`1909519096      An identifier used when responding to the tool call with output.1909719098    - `pending_safety_checks: array of object { id, code, message }`1909919100      The pending safety checks for the computer call.1910119102      - `id: string`1910319104        The ID of the pending safety check.1910519106      - `code: optional string or null`1910719108        The type of the pending safety check.1910919110      - `message: optional string or null`1911119112        Details about the pending safety check.1911319114    - `status: "in_progress" or "completed" or "incomplete"`1911519116      The status of the item. One of `in_progress`, `completed`, or19117      `incomplete`. Populated when items are returned via API.1911819119      - `"in_progress"`1912019121      - `"completed"`1912219123      - `"incomplete"`1912419125    - `type: "computer_call"`1912619127      The type of the computer call. Always `computer_call`.1912819129      - `"computer_call"`1913019131    - `action: optional ComputerAction`1913219133      A click action.1913419135      - `Click object { button, type, x, 2 more }`1913619137        A click action.1913819139        - `button: "left" or "right" or "wheel" or 2 more`1914019141          Indicates which mouse button was pressed during the click. One of `left`, `right`, `wheel`, `back`, or `forward`.1914219143          - `"left"`1914419145          - `"right"`1914619147          - `"wheel"`1914819149          - `"back"`1915019151          - `"forward"`1915219153        - `type: "click"`1915419155          Specifies the event type. For a click action, this property is always `click`.1915619157          - `"click"`1915819159        - `x: number`1916019161          The x-coordinate where the click occurred.1916219163        - `y: number`1916419165          The y-coordinate where the click occurred.1916619167        - `keys: optional array of string or null`1916819169          The keys being held while clicking.1917019171      - `DoubleClick object { keys, type, x, y }`1917219173        A double click action.1917419175        - `keys: array of string or null`1917619177          The keys being held while double-clicking.1917819179        - `type: "double_click"`1918019181          Specifies the event type. For a double click action, this property is always set to `double_click`.1918219183          - `"double_click"`1918419185        - `x: number`1918619187          The x-coordinate where the double click occurred.1918819189        - `y: number`1919019191          The y-coordinate where the double click occurred.1919219193      - `Drag object { path, type, keys }`1919419195        A drag action.1919619197        - `path: array of object { x, y }`1919819199          An array of coordinates representing the path of the drag action. Coordinates will appear as an array of objects, eg1920019201          ```19202          [19203            { x: 100, y: 200 },19204            { x: 200, y: 300 }19205          ]19206          ```1920719208          - `x: number`1920919210            The x-coordinate.1921119212          - `y: number`1921319214            The y-coordinate.1921519216        - `type: "drag"`1921719218          Specifies the event type. For a drag action, this property is always set to `drag`.1921919220          - `"drag"`1922119222        - `keys: optional array of string or null`1922319224          The keys being held while dragging the mouse.1922519226      - `Keypress object { keys, type }`1922719228        A collection of keypresses the model would like to perform.1922919230        - `keys: array of string`1923119232          The combination of keys the model is requesting to be pressed. This is an array of strings, each representing a key.1923319234        - `type: "keypress"`1923519236          Specifies the event type. For a keypress action, this property is always set to `keypress`.1923719238          - `"keypress"`1923919240      - `Move object { type, x, y, keys }`1924119242        A mouse move action.1924319244        - `type: "move"`1924519246          Specifies the event type. For a move action, this property is always set to `move`.1924719248          - `"move"`1924919250        - `x: number`1925119252          The x-coordinate to move to.1925319254        - `y: number`1925519256          The y-coordinate to move to.1925719258        - `keys: optional array of string or null`1925919260          The keys being held while moving the mouse.1926119262      - `Screenshot object { type }`1926319264        A screenshot action.1926519266        - `type: "screenshot"`1926719268          Specifies the event type. For a screenshot action, this property is always set to `screenshot`.1926919270          - `"screenshot"`1927119272      - `Scroll object { scroll_x, scroll_y, type, 3 more }`1927319274        A scroll action.1927519276        - `scroll_x: number`1927719278          The horizontal scroll distance.1927919280        - `scroll_y: number`1928119282          The vertical scroll distance.1928319284        - `type: "scroll"`1928519286          Specifies the event type. For a scroll action, this property is always set to `scroll`.1928719288          - `"scroll"`1928919290        - `x: number`1929119292          The x-coordinate where the scroll occurred.1929319294        - `y: number`1929519296          The y-coordinate where the scroll occurred.1929719298        - `keys: optional array of string or null`1929919300          The keys being held while scrolling.1930119302      - `Type object { text, type }`1930319304        An action to type in text.1930519306        - `text: string`1930719308          The text to type.1930919310        - `type: "type"`1931119312          Specifies the event type. For a type action, this property is always set to `type`.1931319314          - `"type"`1931519316      - `Wait object { type }`1931719318        A wait action.1931919320        - `type: "wait"`1932119322          Specifies the event type. For a wait action, this property is always set to `wait`.1932319324          - `"wait"`1932519326    - `actions: optional ComputerActionList`1932719328      Flattened batched actions for `computer_use`. Each action includes an19329      `type` discriminator and action-specific fields.1933019331      - `Click object { button, type, x, 2 more }`1933219333        A click action.1933419335      - `DoubleClick object { keys, type, x, y }`1933619337        A double click action.1933819339      - `Drag object { path, type, keys }`1934019341        A drag action.1934219343      - `Keypress object { keys, type }`1934419345        A collection of keypresses the model would like to perform.1934619347      - `Move object { type, x, y, keys }`1934819349        A mouse move action.1935019351      - `Screenshot object { type }`1935219353        A screenshot action.1935419355      - `Scroll object { scroll_x, scroll_y, type, 3 more }`1935619357        A scroll action.1935819359      - `Type object { text, type }`1936019361        An action to type in text.1936219363      - `Wait object { type }`1936419365        A wait action.1936619367  - `ComputerCallOutput object { id, call_id, output, 4 more }`1936819369    - `id: string`1937019371      The unique ID of the computer call tool output.1937219373    - `call_id: string`1937419375      The ID of the computer tool call that produced the output.1937619377    - `output: ResponseComputerToolCallOutputScreenshot`1937819379      A computer screenshot image used with the computer use tool.1938019381      - `type: "computer_screenshot"`1938219383        Specifies the event type. For a computer screenshot, this property is19384        always set to `computer_screenshot`.1938519386        - `"computer_screenshot"`1938719388      - `file_id: optional string`1938919390        The identifier of an uploaded file that contains the screenshot.1939119392      - `image_url: optional string`1939319394        The URL of the screenshot image.1939519396    - `status: "completed" or "incomplete" or "failed" or "in_progress"`1939719398      The status of the message input. One of `in_progress`, `completed`, or19399      `incomplete`. Populated when input items are returned via API.1940019401      - `"completed"`1940219403      - `"incomplete"`1940419405      - `"failed"`1940619407      - `"in_progress"`1940819409    - `type: "computer_call_output"`1941019411      The type of the computer tool call output. Always `computer_call_output`.1941219413      - `"computer_call_output"`1941419415    - `acknowledged_safety_checks: optional array of object { id, code, message }`1941619417      The safety checks reported by the API that have been acknowledged by the19418      developer.1941919420      - `id: string`1942119422        The ID of the pending safety check.1942319424      - `code: optional string or null`1942519426        The type of the pending safety check.1942719428      - `message: optional string or null`1942919430        Details about the pending safety check.1943119432    - `created_by: optional string`1943319434      The identifier of the actor that created the item.1943519436  - `ToolSearchCall object { id, arguments, call_id, 4 more }`1943719438    - `id: string`1943919440      The unique ID of the tool search call item.1944119442    - `arguments: unknown`1944319444      Arguments used for the tool search call.1944519446    - `call_id: string or null`1944719448      The unique ID of the tool search call generated by the model.1944919450    - `execution: "server" or "client"`1945119452      Whether tool search was executed by the server or by the client.1945319454      - `"server"`1945519456      - `"client"`1945719458    - `status: "in_progress" or "completed" or "incomplete"`1945919460      The status of the tool search call item that was recorded.1946119462      - `"in_progress"`1946319464      - `"completed"`1946519466      - `"incomplete"`1946719468    - `type: "tool_search_call"`1946919470      The type of the item. Always `tool_search_call`.1947119472      - `"tool_search_call"`1947319474    - `created_by: optional string`1947519476      The identifier of the actor that created the item.1947719478  - `ToolSearchOutput object { id, call_id, execution, 4 more }`1947919480    - `id: string`1948119482      The unique ID of the tool search output item.1948319484    - `call_id: string or null`1948519486      The unique ID of the tool search call generated by the model.1948719488    - `execution: "server" or "client"`1948919490      Whether tool search was executed by the server or by the client.1949119492      - `"server"`1949319494      - `"client"`1949519496    - `status: "in_progress" or "completed" or "incomplete"`1949719498      The status of the tool search output item that was recorded.1949919500      - `"in_progress"`1950119502      - `"completed"`1950319504      - `"incomplete"`1950519506    - `tools: array of object { name, parameters, strict, 6 more }  or object { type, vector_store_ids, filters, 2 more }  or object { type }  or 13 more`1950719508      The loaded tool definitions returned by tool search.1950919510      - `Function object { name, parameters, strict, 6 more }`1951119512        Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).1951319514        - `name: string`1951519516          The name of the function to call.1951719518        - `parameters: map[unknown] or null`1951919520          A JSON schema object describing the parameters of the function.1952119522        - `strict: boolean or null`1952319524          Whether strict parameter validation is enforced for this function tool.1952519526        - `type: "function"`1952719528          The type of the function tool. Always `function`.1952919530          - `"function"`1953119532        - `allowed_callers: optional array of "direct" or "programmatic" or null`1953319534          The tool invocation context(s).1953519536          - `"direct"`1953719538          - `"programmatic"`1953919540        - `async: optional boolean`1954119542        - `defer_loading: optional boolean`1954319544          Whether this function is deferred and loaded via tool search.1954519546        - `description: optional string or null`1954719548          A description of the function. Used by the model to determine whether or not to call the function.1954919550        - `output_schema: optional map[unknown] or null`1955119552          A JSON schema object describing the JSON value encoded in string outputs for this function.1955319554      - `FileSearch object { type, vector_store_ids, filters, 2 more }`1955519556        A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).1955719558        - `type: "file_search"`1955919560          The type of the file search tool. Always `file_search`.1956119562          - `"file_search"`1956319564        - `vector_store_ids: array of string`1956519566          The IDs of the vector stores to search.1956719568        - `filters: optional ComparisonFilter or CompoundFilter or null`1956919570          A filter to apply.1957119572          - `ComparisonFilter object { key, type, value }`1957319574            A filter used to compare a specified attribute key to a given value using a defined comparison operation.1957519576            - `key: string`1957719578              The key to compare against the value.1957919580            - `type: "eq" or "ne" or "gt" or 5 more`1958119582              Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`, `in`, `nin`.1958319584              - `eq`: equals19585              - `ne`: not equal19586              - `gt`: greater than19587              - `gte`: greater than or equal19588              - `lt`: less than19589              - `lte`: less than or equal19590              - `in`: in19591              - `nin`: not in1959219593              - `"eq"`1959419595              - `"ne"`1959619597              - `"gt"`1959819599              - `"gte"`1960019601              - `"lt"`1960219603              - `"lte"`1960419605              - `"in"`1960619607              - `"nin"`1960819609            - `value: string or number or boolean or array of string or number`1961019611              The value to compare against the attribute key; supports string, number, or boolean types.1961219613              - `string`1961419615              - `number`1961619617              - `boolean`1961819619              - `array of string or number`1962019621                - `string`1962219623                - `number`1962419625          - `CompoundFilter object { filters, type }`1962619627            Combine multiple filters using `and` or `or`.1962819629            - `filters: array of ComparisonFilter or unknown`1963019631              Array of filters to combine. Items can be `ComparisonFilter` or `CompoundFilter`.1963219633              - `ComparisonFilter object { key, type, value }`1963419635                A filter used to compare a specified attribute key to a given value using a defined comparison operation.1963619637              - `unknown`1963819639            - `type: "and" or "or"`1964019641              Type of operation: `and` or `or`.1964219643              - `"and"`1964419645              - `"or"`1964619647        - `max_num_results: optional number`1964819649          The maximum number of results to return. This number should be between 1 and 50 inclusive.1965019651        - `ranking_options: optional object { hybrid_search, ranker, score_threshold }`1965219653          Ranking options for search.1965419655          - `hybrid_search: optional object { embedding_weight, text_weight }`1965619657            Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled.1965819659            - `embedding_weight: number`1966019661              The weight of the embedding in the reciprocal ranking fusion.1966219663            - `text_weight: number`1966419665              The weight of the text in the reciprocal ranking fusion.1966619667          - `ranker: optional "auto" or "default-2024-11-15"`1966819669            The ranker to use for the file search.1967019671            - `"auto"`1967219673            - `"default-2024-11-15"`1967419675          - `score_threshold: optional number`1967619677            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.1967819679      - `Computer object { type }`1968019681        A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).1968219683        - `type: "computer"`1968419685          The type of the computer tool. Always `computer`.1968619687          - `"computer"`1968819689      - `ComputerUsePreview object { display_height, display_width, environment, type }`1969019691        A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).1969219693        - `display_height: number`1969419695          The height of the computer display.1969619697        - `display_width: number`1969819699          The width of the computer display.1970019701        - `environment: "windows" or "mac" or "linux" or 2 more`1970219703          The type of computer environment to control.1970419705          - `"windows"`1970619707          - `"mac"`1970819709          - `"linux"`1971019711          - `"ubuntu"`1971219713          - `"browser"`1971419715        - `type: "computer_use_preview"`1971619717          The type of the computer use tool. Always `computer_use_preview`.1971819719          - `"computer_use_preview"`1972019721      - `WebSearch object { type, external_web_access, filters, 2 more }`1972219723        Search the Internet for sources related to the prompt. Learn more about the19724        [web search tool](/api/docs/guides/tools-web-search).1972519726        - `type: "web_search" or "web_search_2025_08_26"`1972719728          The type of the web search tool. One of `web_search` or `web_search_2025_08_26`.1972919730          - `"web_search"`1973119732          - `"web_search_2025_08_26"`1973319734        - `external_web_access: optional boolean`1973519736          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.1973719738        - `filters: optional object { allowed_domains }  or null`1973919740          Filters for the search.1974119742          - `allowed_domains: optional array of string or null`1974319744            Allowed domains for the search. If not provided, all domains are allowed.19745            Subdomains of the provided domains are allowed as well.1974619747            Example: `["pubmed.ncbi.nlm.nih.gov"]`1974819749        - `search_context_size: optional "low" or "medium" or "high"`1975019751          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.1975219753          - `"low"`1975419755          - `"medium"`1975619757          - `"high"`1975819759        - `user_location: optional object { city, country, region, 2 more }  or null`1976019761          The approximate location of the user.1976219763          - `city: optional string or null`1976419765            Free text input for the city of the user, e.g. `San Francisco`.1976619767          - `country: optional string or null`1976819769            The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.1977019771          - `region: optional string or null`1977219773            Free text input for the region of the user, e.g. `California`.1977419775          - `timezone: optional string or null`1977619777            The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.1977819779          - `type: optional "approximate"`1978019781            The type of location approximation. Always `approximate`.1978219783            - `"approximate"`1978419785      - `Mcp object { server_label, type, allowed_callers, 9 more }`1978619787        Give the model access to additional tools via remote Model Context Protocol19788        (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).1978919790        - `server_label: string`1979119792          A label for this MCP server, used to identify it in tool calls.1979319794        - `type: "mcp"`1979519796          The type of the MCP tool. Always `mcp`.1979719798          - `"mcp"`1979919800        - `allowed_callers: optional array of "direct" or "programmatic" or null`1980119802          The tool invocation context(s).1980319804          - `"direct"`1980519806          - `"programmatic"`1980719808        - `allowed_tools: optional array of string or object { read_only, tool_names }  or null`1980919810          List of allowed tool names or a filter object.1981119812          - `McpAllowedTools = array of string`1981319814            A string array of allowed tool names1981519816          - `McpToolFilter object { read_only, tool_names }`1981719818            A filter object to specify which tools are allowed.1981919820            - `read_only: optional boolean`1982119822              Indicates whether or not a tool modifies data or is read-only. If an19823              MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),19824              it will match this filter.1982519826            - `tool_names: optional array of string`1982719828              List of allowed tool names.1982919830        - `authorization: optional string`1983119832          An OAuth access token that can be used with a remote MCP server, either19833          with a custom MCP server URL or a service connector. Your application19834          must handle the OAuth authorization flow and provide the token here.1983519836        - `connector_id: optional "connector_dropbox" or "connector_gmail" or "connector_googlecalendar" or 5 more`1983719838          Identifier for service connectors, like those available in ChatGPT. One of19839          `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more19840          about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).1984119842          This field is deprecated for models released after September 1, 2026.19843          Use `server_url` to connect to a remote MCP server, or `tunnel_id` to19844          connect through a Secure MCP Tunnel.1984519846          Currently supported `connector_id` values are:1984719848          - Dropbox: `connector_dropbox`19849          - Gmail: `connector_gmail`19850          - Google Calendar: `connector_googlecalendar`19851          - Google Drive: `connector_googledrive`19852          - Microsoft Teams: `connector_microsoftteams`19853          - Outlook Calendar: `connector_outlookcalendar`19854          - Outlook Email: `connector_outlookemail`19855          - SharePoint: `connector_sharepoint`1985619857          - `"connector_dropbox"`1985819859          - `"connector_gmail"`1986019861          - `"connector_googlecalendar"`1986219863          - `"connector_googledrive"`1986419865          - `"connector_microsoftteams"`1986619867          - `"connector_outlookcalendar"`1986819869          - `"connector_outlookemail"`1987019871          - `"connector_sharepoint"`1987219873        - `defer_loading: optional boolean`1987419875          Whether this MCP tool is deferred and discovered via tool search.1987619877        - `headers: optional map[string] or null`1987819879          Optional HTTP headers to send to the MCP server. Use for authentication19880          or other purposes.1988119882        - `require_approval: optional object { always, never }  or "always" or "never" or null`1988319884          Specify which of the MCP server's tools require approval.1988519886          - `McpToolApprovalFilter object { always, never }`1988719888            Specify which of the MCP server's tools require approval. Can be19889            `always`, `never`, or a filter object associated with tools19890            that require approval.1989119892            - `always: optional object { read_only, tool_names }`1989319894              A filter object to specify which tools are allowed.1989519896              - `read_only: optional boolean`1989719898                Indicates whether or not a tool modifies data or is read-only. If an19899                MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),19900                it will match this filter.1990119902              - `tool_names: optional array of string`1990319904                List of allowed tool names.1990519906            - `never: optional object { read_only, tool_names }`1990719908              A filter object to specify which tools are allowed.1990919910              - `read_only: optional boolean`1991119912                Indicates whether or not a tool modifies data or is read-only. If an19913                MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),19914                it will match this filter.1991519916              - `tool_names: optional array of string`1991719918                List of allowed tool names.1991919920          - `McpToolApprovalSetting = "always" or "never"`1992119922            Specify a single approval policy for all tools. One of `always` or19923            `never`. When set to `always`, all tools will require approval. When19924            set to `never`, all tools will not require approval.1992519926            - `"always"`1992719928            - `"never"`1992919930        - `server_description: optional string`1993119932          Optional description of the MCP server, used to provide more context.1993319934        - `server_url: optional string`1993519936          The URL for the MCP server. One of `server_url`, `connector_id`, or19937          `tunnel_id` must be provided.1993819939        - `tunnel_id: optional string`1994019941          The Secure MCP Tunnel ID to use instead of a direct server URL. One of19942          `server_url`, `connector_id`, or `tunnel_id` must be provided.1994319944      - `CodeInterpreter object { container, type, allowed_callers }`1994519946        A tool that runs Python code to help generate a response to a prompt.1994719948        - `container: string or object { type, file_ids, memory_limit, network_policy }`1994919950          The code interpreter container. Can be a container ID or an object that19951          specifies uploaded file IDs to make available to your code, along with an19952          optional `memory_limit` setting.1995319954          - `string`1995519956            The container ID.1995719958          - `CodeInterpreterToolAuto object { type, file_ids, memory_limit, network_policy }`1995919960            Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.1996119962            - `type: "auto"`1996319964              Always `auto`.1996519966              - `"auto"`1996719968            - `file_ids: optional array of string`1996919970              An optional list of uploaded files to make available to your code.1997119972            - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`1997319974              The memory limit for the code interpreter container.1997519976              - `"1g"`1997719978              - `"4g"`1997919980              - `"16g"`1998119982              - `"64g"`1998319984            - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`1998519986              Network access policy for the container.1998719988              - `ContainerNetworkPolicyDisabled object { type }`1998919990                - `type: "disabled"`1999119992                  Disable outbound network access. Always `disabled`.1999319994                  - `"disabled"`1999519996              - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`1999719998                - `allowed_domains: array of string`1999920000                  A list of allowed domains when type is `allowlist`.2000120002                - `type: "allowlist"`2000320004                  Allow outbound network access only to specified domains. Always `allowlist`.2000520006                  - `"allowlist"`2000720008                - `domain_secrets: optional array of ContainerNetworkPolicyDomainSecret`2000920010                  Optional domain-scoped secrets for allowlisted domains.2001120012                  - `domain: string`2001320014                    The domain associated with the secret.2001520016                  - `name: string`2001720018                    The name of the secret to inject for the domain.2001920020                  - `value: string`2002120022                    The secret value to inject for the domain.2002320024        - `type: "code_interpreter"`2002520026          The type of the code interpreter tool. Always `code_interpreter`.2002720028          - `"code_interpreter"`2002920030        - `allowed_callers: optional array of "direct" or "programmatic" or null`2003120032          The tool invocation context(s).2003320034          - `"direct"`2003520036          - `"programmatic"`2003720038      - `ProgrammaticToolCalling object { type }`2003920040        - `type: "programmatic_tool_calling"`2004120042          The type of the tool. Always `programmatic_tool_calling`.2004320044          - `"programmatic_tool_calling"`2004520046      - `ImageGeneration object { type, action, background, 9 more }`2004720048        A tool that generates images using the GPT image models.2004920050        - `type: "image_generation"`2005120052          The type of the image generation tool. Always `image_generation`.2005320054          - `"image_generation"`2005520056        - `action: optional "generate" or "edit" or "auto"`2005720058          Whether to generate a new image or edit an existing image. Default: `auto`.2005920060          - `"generate"`2006120062          - `"edit"`2006320064          - `"auto"`2006520066        - `background: optional "transparent" or "opaque" or "auto"`2006720068          Set the background of the generated image. One of `transparent`, `opaque`,20069          or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including20070          their `2026-09-08` snapshots, support `opaque` and `transparent`20071          backgrounds. Transparent backgrounds are available for supported GPT Image20072          models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in20073          preview. When using `transparent`, set the output format to `png` or `webp`.20074          Default: `auto`.2007520076          - `"transparent"`2007720078          - `"opaque"`2007920080          - `"auto"`2008120082        - `input_fidelity: optional "high" or "low" or null`2008320084          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`.2008520086          - `"high"`2008720088          - `"low"`2008920090        - `input_image_mask: optional object { file_id, image_url }`2009120092          Optional mask for inpainting. Contains `image_url`20093          (string, optional) and `file_id` (string, optional).2009420095          - `file_id: optional string`2009620097            File ID for the mask image.2009820099          - `image_url: optional string`2010020101            Base64-encoded mask image.2010220103        - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2010420105          The image generation model to use. One of `gpt-image-1`,20106          `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,20107          `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,20108          `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,20109          `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:20110          `gpt-image-1`.2011120112          - `string`2011320114          - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2011520116            The image generation model to use. One of `gpt-image-1`,20117            `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,20118            `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,20119            `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,20120            `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:20121            `gpt-image-1`.2012220123            - `"gpt-image-1"`2012420125            - `"gpt-image-1-mini"`2012620127            - `"gpt-image-1.5"`2012820129            - `"gpt-image-2"`2013020131            - `"gpt-image-2-2026-04-21"`2013220133            - `"gpt-image-2.5-sunburst"`2013420135            - `"gpt-image-2.5-sunburst-2026-09-08"`2013620137            - `"gpt-image-2.5-flare"`2013820139            - `"gpt-image-2.5-flare-2026-09-08"`2014020141        - `moderation: optional "auto" or "low"`2014220143          Moderation level for the generated image. Default: `auto`.2014420145          - `"auto"`2014620147          - `"low"`2014820149        - `output_compression: optional number`2015020151          Compression level for the output image. Default: 100.2015220153        - `output_format: optional "png" or "webp" or "jpeg"`2015420155          The output format of the generated image. One of `png`, `webp`, or20156          `jpeg`. Default: `png`.2015720158          - `"png"`2015920160          - `"webp"`2016120162          - `"jpeg"`2016320164        - `partial_images: optional number`2016520166          Number of partial images to generate in streaming mode, from 0 (default value) to 3.2016720168        - `quality: optional "low" or "medium" or "high" or 3 more`2016920170          The quality of the generated image. The GPT image models support `low`,20171          `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,20172          including their `2026-09-08` snapshots, also support `xhigh` and `max`.20173          Default: `auto`.2017420175          - `"low"`2017620177          - `"medium"`2017820179          - `"high"`2018020181          - `"xhigh"`2018220183          - `"max"`2018420185          - `"auto"`2018620187        - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`2018820189          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`.2019020191          - `string`2019220193          - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`2019420195            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`.2019620197            - `"1024x1024"`2019820199            - `"1024x1536"`2020020201            - `"1536x1024"`2020220203            - `"auto"`2020420205      - `LocalShell object { type }`2020620207        A tool that allows the model to execute shell commands in a local environment.2020820209        - `type: "local_shell"`2021020211          The type of the local shell tool. Always `local_shell`.2021220213          - `"local_shell"`2021420215      - `Shell object { type, allowed_callers, environment }`2021620217        A tool that allows the model to execute shell commands.2021820219        - `type: "shell"`2022020221          The type of the shell tool. Always `shell`.2022220223          - `"shell"`2022420225        - `allowed_callers: optional array of "direct" or "programmatic" or null`2022620227          The tool invocation context(s).2022820229          - `"direct"`2023020231          - `"programmatic"`2023220233        - `environment: optional ContainerAuto or LocalEnvironment or ContainerReference or null`2023420235          - `ContainerAuto object { type, file_ids, memory_limit, 2 more }`2023620237            - `type: "container_auto"`2023820239              Automatically creates a container for this request2024020241              - `"container_auto"`2024220243            - `file_ids: optional array of string`2024420245              An optional list of uploaded files to make available to your code.2024620247            - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`2024820249              The memory limit for the container.2025020251              - `"1g"`2025220253              - `"4g"`2025420255              - `"16g"`2025620257              - `"64g"`2025820259            - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`2026020261              Network access policy for the container.2026220263              - `ContainerNetworkPolicyDisabled object { type }`2026420265              - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`2026620267            - `skills: optional array of SkillReference or InlineSkill`2026820269              An optional list of skills referenced by id or inline data.2027020271              - `SkillReference object { skill_id, type, version }`2027220273                - `skill_id: string`2027420275                  The ID of the referenced skill.2027620277                - `type: "skill_reference"`2027820279                  References a skill created with the /v1/skills endpoint.2028020281                  - `"skill_reference"`2028220283                - `version: optional string`2028420285                  Optional skill version. Use a positive integer or 'latest'. Omit for default.2028620287              - `InlineSkill object { description, name, source, type }`2028820289                - `description: string`2029020291                  The description of the skill.2029220293                - `name: string`2029420295                  The name of the skill.2029620297                - `source: InlineSkillSource`2029820299                  Inline skill payload2030020301                  - `data: string`2030220303                    Base64-encoded skill zip bundle.2030420305                  - `media_type: "application/zip"`2030620307                    The media type of the inline skill payload. Must be `application/zip`.2030820309                    - `"application/zip"`2031020311                  - `type: "base64"`2031220313                    The type of the inline skill source. Must be `base64`.2031420315                    - `"base64"`2031620317                - `type: "inline"`2031820319                  Defines an inline skill for this request.2032020321                  - `"inline"`2032220323          - `LocalEnvironment object { type, skills }`2032420325            - `type: "local"`2032620327              Use a local computer environment.2032820329              - `"local"`2033020331            - `skills: optional array of LocalSkill`2033220333              An optional list of skills.2033420335              - `description: string`2033620337                The description of the skill.2033820339              - `name: string`2034020341                The name of the skill.2034220343              - `path: string`2034420345                The path to the directory containing the skill.2034620347          - `ContainerReference object { container_id, type }`2034820349            - `container_id: string`2035020351              The ID of the referenced container.2035220353            - `type: "container_reference"`2035420355              References a container created with the /v1/containers endpoint2035620357              - `"container_reference"`2035820359      - `Custom object { name, type, allowed_callers, 4 more }`2036020361        A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)2036220363        - `name: string`2036420365          The name of the custom tool, used to identify it in tool calls.2036620367        - `type: "custom"`2036820369          The type of the custom tool. Always `custom`.2037020371          - `"custom"`2037220373        - `allowed_callers: optional array of "direct" or "programmatic" or null`2037420375          The tool invocation context(s).2037620377          - `"direct"`2037820379          - `"programmatic"`2038020381        - `async: optional boolean`2038220383          Whether the tool response can be returned asynchronously versus immediately returned on next response creation.2038420385        - `defer_loading: optional boolean`2038620387          Whether this tool should be deferred and discovered via tool search.2038820389        - `description: optional string`2039020391          Optional description of the custom tool, used to provide more context.2039220393        - `format: optional CustomToolInputFormat`2039420395          The input format for the custom tool. Default is unconstrained text.2039620397          - `Text object { type }`2039820399            Unconstrained free-form text.2040020401            - `type: "text"`2040220403              Unconstrained text format. Always `text`.2040420405              - `"text"`2040620407          - `Grammar object { definition, syntax, type }`2040820409            A grammar defined by the user.2041020411            - `definition: string`2041220413              The grammar definition.2041420415            - `syntax: "lark" or "regex"`2041620417              The syntax of the grammar definition. One of `lark` or `regex`.2041820419              - `"lark"`2042020421              - `"regex"`2042220423            - `type: "grammar"`2042420425              Grammar format. Always `grammar`.2042620427              - `"grammar"`2042820429      - `Namespace object { description, name, tools, type }`2043020431        Groups function/custom tools under a shared namespace.2043220433        - `description: string`2043420435          A description of the namespace shown to the model.2043620437        - `name: string`2043820439          The namespace name used in tool calls (for example, `crm`).2044020441        - `tools: array of object { name, type, allowed_callers, 6 more }  or object { name, type, allowed_callers, 4 more }`2044220443          The function/custom tools available inside this namespace.2044420445          - `Function object { name, type, allowed_callers, 6 more }`2044620447            - `name: string`2044820449            - `type: "function"`2045020451              - `"function"`2045220453            - `allowed_callers: optional array of "direct" or "programmatic" or null`2045420455              The tool invocation context(s).2045620457              - `"direct"`2045820459              - `"programmatic"`2046020461            - `async: optional boolean`2046220463              Whether the tool response can be returned asynchronously versus immediately returned on next response creation.2046420465            - `defer_loading: optional boolean`2046620467              Whether this function should be deferred and discovered via tool search.2046820469            - `description: optional string or null`2047020471            - `output_schema: optional map[unknown] or null`2047220473              A JSON Schema describing the JSON value encoded in string outputs for this function tool. This does not describe content-array outputs.2047420475            - `parameters: optional unknown or null`2047620477            - `strict: optional boolean or null`2047820479              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.2048020481          - `Custom object { name, type, allowed_callers, 4 more }`2048220483            A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)2048420485            - `name: string`2048620487              The name of the custom tool, used to identify it in tool calls.2048820489            - `type: "custom"`2049020491              The type of the custom tool. Always `custom`.2049220493              - `"custom"`2049420495            - `allowed_callers: optional array of "direct" or "programmatic" or null`2049620497              The tool invocation context(s).2049820499              - `"direct"`2050020501              - `"programmatic"`2050220503            - `async: optional boolean`2050420505              Whether the tool response can be returned asynchronously versus immediately returned on next response creation.2050620507            - `defer_loading: optional boolean`2050820509              Whether this tool should be deferred and discovered via tool search.2051020511            - `description: optional string`2051220513              Optional description of the custom tool, used to provide more context.2051420515            - `format: optional CustomToolInputFormat`2051620517              The input format for the custom tool. Default is unconstrained text.2051820519        - `type: "namespace"`2052020521          The type of the tool. Always `namespace`.2052220523          - `"namespace"`2052420525      - `ToolSearch object { type, description, execution, parameters }`2052620527        Hosted or BYOT tool search configuration for deferred tools.2052820529        - `type: "tool_search"`2053020531          The type of the tool. Always `tool_search`.2053220533          - `"tool_search"`2053420535        - `description: optional string or null`2053620537          Description shown to the model for a client-executed tool search tool.2053820539        - `execution: optional "server" or "client"`2054020541          Whether tool search is executed by the server or by the client.2054220543          - `"server"`2054420545          - `"client"`2054620547        - `parameters: optional unknown or null`2054820549          Parameter schema for a client-executed tool search tool.2055020551      - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`2055220553        This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](/api/docs/guides/tools-web-search).2055420555        - `type: "web_search_preview" or "web_search_preview_2025_03_11"`2055620557          The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.2055820559          - `"web_search_preview"`2056020561          - `"web_search_preview_2025_03_11"`2056220563        - `search_content_types: optional array of "text" or "image"`2056420565          - `"text"`2056620567          - `"image"`2056820569        - `search_context_size: optional "low" or "medium" or "high"`2057020571          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.2057220573          - `"low"`2057420575          - `"medium"`2057620577          - `"high"`2057820579        - `user_location: optional object { type, city, country, 2 more }  or null`2058020581          The user's location.2058220583          - `type: "approximate"`2058420585            The type of location approximation. Always `approximate`.2058620587            - `"approximate"`2058820589          - `city: optional string or null`2059020591            Free text input for the city of the user, e.g. `San Francisco`.2059220593          - `country: optional string or null`2059420595            The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.2059620597          - `region: optional string or null`2059820599            Free text input for the region of the user, e.g. `California`.2060020601          - `timezone: optional string or null`2060220603            The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.2060420605      - `ApplyPatch object { type, allowed_callers }`2060620607        Allows the assistant to create, delete, or update files using unified diffs.2060820609        - `type: "apply_patch"`2061020611          The type of the tool. Always `apply_patch`.2061220613          - `"apply_patch"`2061420615        - `allowed_callers: optional array of "direct" or "programmatic" or null`2061620617          The tool invocation context(s).2061820619          - `"direct"`2062020621          - `"programmatic"`2062220623    - `type: "tool_search_output"`2062420625      The type of the item. Always `tool_search_output`.2062620627      - `"tool_search_output"`2062820629    - `created_by: optional string`2063020631      The identifier of the actor that created the item.2063220633  - `AdditionalTools object { id, role, tools, type }`2063420635    - `id: string`2063620637      The unique ID of the additional tools item.2063820639    - `role: "unknown" or "user" or "assistant" or 5 more`2064020641      The role that provided the additional tools.2064220643      - `"unknown"`2064420645      - `"user"`2064620647      - `"assistant"`2064820649      - `"system"`2065020651      - `"critic"`2065220653      - `"discriminator"`2065420655      - `"developer"`2065620657      - `"tool"`2065820659    - `tools: array of object { name, parameters, strict, 6 more }  or object { type, vector_store_ids, filters, 2 more }  or object { type }  or 13 more`2066020661      The additional tool definitions made available at this item.2066220663      - `Function object { name, parameters, strict, 6 more }`2066420665        Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).2066620667        - `name: string`2066820669          The name of the function to call.2067020671        - `parameters: map[unknown] or null`2067220673          A JSON schema object describing the parameters of the function.2067420675        - `strict: boolean or null`2067620677          Whether strict parameter validation is enforced for this function tool.2067820679        - `type: "function"`2068020681          The type of the function tool. Always `function`.2068220683          - `"function"`2068420685        - `allowed_callers: optional array of "direct" or "programmatic" or null`2068620687          The tool invocation context(s).2068820689          - `"direct"`2069020691          - `"programmatic"`2069220693        - `async: optional boolean`2069420695        - `defer_loading: optional boolean`2069620697          Whether this function is deferred and loaded via tool search.2069820699        - `description: optional string or null`2070020701          A description of the function. Used by the model to determine whether or not to call the function.2070220703        - `output_schema: optional map[unknown] or null`2070420705          A JSON schema object describing the JSON value encoded in string outputs for this function.2070620707      - `FileSearch object { type, vector_store_ids, filters, 2 more }`2070820709        A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).2071020711        - `type: "file_search"`2071220713          The type of the file search tool. Always `file_search`.2071420715          - `"file_search"`2071620717        - `vector_store_ids: array of string`2071820719          The IDs of the vector stores to search.2072020721        - `filters: optional ComparisonFilter or CompoundFilter or null`2072220723          A filter to apply.2072420725          - `ComparisonFilter object { key, type, value }`2072620727            A filter used to compare a specified attribute key to a given value using a defined comparison operation.2072820729          - `CompoundFilter object { filters, type }`2073020731            Combine multiple filters using `and` or `or`.2073220733        - `max_num_results: optional number`2073420735          The maximum number of results to return. This number should be between 1 and 50 inclusive.2073620737        - `ranking_options: optional object { hybrid_search, ranker, score_threshold }`2073820739          Ranking options for search.2074020741          - `hybrid_search: optional object { embedding_weight, text_weight }`2074220743            Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled.2074420745            - `embedding_weight: number`2074620747              The weight of the embedding in the reciprocal ranking fusion.2074820749            - `text_weight: number`2075020751              The weight of the text in the reciprocal ranking fusion.2075220753          - `ranker: optional "auto" or "default-2024-11-15"`2075420755            The ranker to use for the file search.2075620757            - `"auto"`2075820759            - `"default-2024-11-15"`2076020761          - `score_threshold: optional number`2076220763            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.2076420765      - `Computer object { type }`2076620767        A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).2076820769        - `type: "computer"`2077020771          The type of the computer tool. Always `computer`.2077220773          - `"computer"`2077420775      - `ComputerUsePreview object { display_height, display_width, environment, type }`2077620777        A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).2077820779        - `display_height: number`2078020781          The height of the computer display.2078220783        - `display_width: number`2078420785          The width of the computer display.2078620787        - `environment: "windows" or "mac" or "linux" or 2 more`2078820789          The type of computer environment to control.2079020791          - `"windows"`2079220793          - `"mac"`2079420795          - `"linux"`2079620797          - `"ubuntu"`2079820799          - `"browser"`2080020801        - `type: "computer_use_preview"`2080220803          The type of the computer use tool. Always `computer_use_preview`.2080420805          - `"computer_use_preview"`2080620807      - `WebSearch object { type, external_web_access, filters, 2 more }`2080820809        Search the Internet for sources related to the prompt. Learn more about the20810        [web search tool](/api/docs/guides/tools-web-search).2081120812        - `type: "web_search" or "web_search_2025_08_26"`2081320814          The type of the web search tool. One of `web_search` or `web_search_2025_08_26`.2081520816          - `"web_search"`2081720818          - `"web_search_2025_08_26"`2081920820        - `external_web_access: optional boolean`2082120822          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.2082320824        - `filters: optional object { allowed_domains }  or null`2082520826          Filters for the search.2082720828          - `allowed_domains: optional array of string or null`2082920830            Allowed domains for the search. If not provided, all domains are allowed.20831            Subdomains of the provided domains are allowed as well.2083220833            Example: `["pubmed.ncbi.nlm.nih.gov"]`2083420835        - `search_context_size: optional "low" or "medium" or "high"`2083620837          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.2083820839          - `"low"`2084020841          - `"medium"`2084220843          - `"high"`2084420845        - `user_location: optional object { city, country, region, 2 more }  or null`2084620847          The approximate location of the user.2084820849          - `city: optional string or null`2085020851            Free text input for the city of the user, e.g. `San Francisco`.2085220853          - `country: optional string or null`2085420855            The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.2085620857          - `region: optional string or null`2085820859            Free text input for the region of the user, e.g. `California`.2086020861          - `timezone: optional string or null`2086220863            The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.2086420865          - `type: optional "approximate"`2086620867            The type of location approximation. Always `approximate`.2086820869            - `"approximate"`2087020871      - `Mcp object { server_label, type, allowed_callers, 9 more }`2087220873        Give the model access to additional tools via remote Model Context Protocol20874        (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).2087520876        - `server_label: string`2087720878          A label for this MCP server, used to identify it in tool calls.2087920880        - `type: "mcp"`2088120882          The type of the MCP tool. Always `mcp`.2088320884          - `"mcp"`2088520886        - `allowed_callers: optional array of "direct" or "programmatic" or null`2088720888          The tool invocation context(s).2088920890          - `"direct"`2089120892          - `"programmatic"`2089320894        - `allowed_tools: optional array of string or object { read_only, tool_names }  or null`2089520896          List of allowed tool names or a filter object.2089720898          - `McpAllowedTools = array of string`2089920900            A string array of allowed tool names2090120902          - `McpToolFilter object { read_only, tool_names }`2090320904            A filter object to specify which tools are allowed.2090520906            - `read_only: optional boolean`2090720908              Indicates whether or not a tool modifies data or is read-only. If an20909              MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),20910              it will match this filter.2091120912            - `tool_names: optional array of string`2091320914              List of allowed tool names.2091520916        - `authorization: optional string`2091720918          An OAuth access token that can be used with a remote MCP server, either20919          with a custom MCP server URL or a service connector. Your application20920          must handle the OAuth authorization flow and provide the token here.2092120922        - `connector_id: optional "connector_dropbox" or "connector_gmail" or "connector_googlecalendar" or 5 more`2092320924          Identifier for service connectors, like those available in ChatGPT. One of20925          `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more20926          about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).2092720928          This field is deprecated for models released after September 1, 2026.20929          Use `server_url` to connect to a remote MCP server, or `tunnel_id` to20930          connect through a Secure MCP Tunnel.2093120932          Currently supported `connector_id` values are:2093320934          - Dropbox: `connector_dropbox`20935          - Gmail: `connector_gmail`20936          - Google Calendar: `connector_googlecalendar`20937          - Google Drive: `connector_googledrive`20938          - Microsoft Teams: `connector_microsoftteams`20939          - Outlook Calendar: `connector_outlookcalendar`20940          - Outlook Email: `connector_outlookemail`20941          - SharePoint: `connector_sharepoint`2094220943          - `"connector_dropbox"`2094420945          - `"connector_gmail"`2094620947          - `"connector_googlecalendar"`2094820949          - `"connector_googledrive"`2095020951          - `"connector_microsoftteams"`2095220953          - `"connector_outlookcalendar"`2095420955          - `"connector_outlookemail"`2095620957          - `"connector_sharepoint"`2095820959        - `defer_loading: optional boolean`2096020961          Whether this MCP tool is deferred and discovered via tool search.2096220963        - `headers: optional map[string] or null`2096420965          Optional HTTP headers to send to the MCP server. Use for authentication20966          or other purposes.2096720968        - `require_approval: optional object { always, never }  or "always" or "never" or null`2096920970          Specify which of the MCP server's tools require approval.2097120972          - `McpToolApprovalFilter object { always, never }`2097320974            Specify which of the MCP server's tools require approval. Can be20975            `always`, `never`, or a filter object associated with tools20976            that require approval.2097720978            - `always: optional object { read_only, tool_names }`2097920980              A filter object to specify which tools are allowed.2098120982              - `read_only: optional boolean`2098320984                Indicates whether or not a tool modifies data or is read-only. If an20985                MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),20986                it will match this filter.2098720988              - `tool_names: optional array of string`2098920990                List of allowed tool names.2099120992            - `never: optional object { read_only, tool_names }`2099320994              A filter object to specify which tools are allowed.2099520996              - `read_only: optional boolean`2099720998                Indicates whether or not a tool modifies data or is read-only. If an20999                MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),21000                it will match this filter.2100121002              - `tool_names: optional array of string`2100321004                List of allowed tool names.2100521006          - `McpToolApprovalSetting = "always" or "never"`2100721008            Specify a single approval policy for all tools. One of `always` or21009            `never`. When set to `always`, all tools will require approval. When21010            set to `never`, all tools will not require approval.2101121012            - `"always"`2101321014            - `"never"`2101521016        - `server_description: optional string`2101721018          Optional description of the MCP server, used to provide more context.2101921020        - `server_url: optional string`2102121022          The URL for the MCP server. One of `server_url`, `connector_id`, or21023          `tunnel_id` must be provided.2102421025        - `tunnel_id: optional string`2102621027          The Secure MCP Tunnel ID to use instead of a direct server URL. One of21028          `server_url`, `connector_id`, or `tunnel_id` must be provided.2102921030      - `CodeInterpreter object { container, type, allowed_callers }`2103121032        A tool that runs Python code to help generate a response to a prompt.2103321034        - `container: string or object { type, file_ids, memory_limit, network_policy }`2103521036          The code interpreter container. Can be a container ID or an object that21037          specifies uploaded file IDs to make available to your code, along with an21038          optional `memory_limit` setting.2103921040          - `string`2104121042            The container ID.2104321044          - `CodeInterpreterToolAuto object { type, file_ids, memory_limit, network_policy }`2104521046            Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.2104721048            - `type: "auto"`2104921050              Always `auto`.2105121052              - `"auto"`2105321054            - `file_ids: optional array of string`2105521056              An optional list of uploaded files to make available to your code.2105721058            - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`2105921060              The memory limit for the code interpreter container.2106121062              - `"1g"`2106321064              - `"4g"`2106521066              - `"16g"`2106721068              - `"64g"`2106921070            - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`2107121072              Network access policy for the container.2107321074              - `ContainerNetworkPolicyDisabled object { type }`2107521076              - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`2107721078        - `type: "code_interpreter"`2107921080          The type of the code interpreter tool. Always `code_interpreter`.2108121082          - `"code_interpreter"`2108321084        - `allowed_callers: optional array of "direct" or "programmatic" or null`2108521086          The tool invocation context(s).2108721088          - `"direct"`2108921090          - `"programmatic"`2109121092      - `ProgrammaticToolCalling object { type }`2109321094        - `type: "programmatic_tool_calling"`2109521096          The type of the tool. Always `programmatic_tool_calling`.2109721098          - `"programmatic_tool_calling"`2109921100      - `ImageGeneration object { type, action, background, 9 more }`2110121102        A tool that generates images using the GPT image models.2110321104        - `type: "image_generation"`2110521106          The type of the image generation tool. Always `image_generation`.2110721108          - `"image_generation"`2110921110        - `action: optional "generate" or "edit" or "auto"`2111121112          Whether to generate a new image or edit an existing image. Default: `auto`.2111321114          - `"generate"`2111521116          - `"edit"`2111721118          - `"auto"`2111921120        - `background: optional "transparent" or "opaque" or "auto"`2112121122          Set the background of the generated image. One of `transparent`, `opaque`,21123          or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including21124          their `2026-09-08` snapshots, support `opaque` and `transparent`21125          backgrounds. Transparent backgrounds are available for supported GPT Image21126          models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in21127          preview. When using `transparent`, set the output format to `png` or `webp`.21128          Default: `auto`.2112921130          - `"transparent"`2113121132          - `"opaque"`2113321134          - `"auto"`2113521136        - `input_fidelity: optional "high" or "low" or null`2113721138          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`.2113921140          - `"high"`2114121142          - `"low"`2114321144        - `input_image_mask: optional object { file_id, image_url }`2114521146          Optional mask for inpainting. Contains `image_url`21147          (string, optional) and `file_id` (string, optional).2114821149          - `file_id: optional string`2115021151            File ID for the mask image.2115221153          - `image_url: optional string`2115421155            Base64-encoded mask image.2115621157        - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2115821159          The image generation model to use. One of `gpt-image-1`,21160          `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,21161          `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,21162          `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,21163          `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:21164          `gpt-image-1`.2116521166          - `string`2116721168          - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2116921170            The image generation model to use. One of `gpt-image-1`,21171            `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,21172            `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,21173            `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,21174            `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:21175            `gpt-image-1`.2117621177            - `"gpt-image-1"`2117821179            - `"gpt-image-1-mini"`2118021181            - `"gpt-image-1.5"`2118221183            - `"gpt-image-2"`2118421185            - `"gpt-image-2-2026-04-21"`2118621187            - `"gpt-image-2.5-sunburst"`2118821189            - `"gpt-image-2.5-sunburst-2026-09-08"`2119021191            - `"gpt-image-2.5-flare"`2119221193            - `"gpt-image-2.5-flare-2026-09-08"`2119421195        - `moderation: optional "auto" or "low"`2119621197          Moderation level for the generated image. Default: `auto`.2119821199          - `"auto"`2120021201          - `"low"`2120221203        - `output_compression: optional number`2120421205          Compression level for the output image. Default: 100.2120621207        - `output_format: optional "png" or "webp" or "jpeg"`2120821209          The output format of the generated image. One of `png`, `webp`, or21210          `jpeg`. Default: `png`.2121121212          - `"png"`2121321214          - `"webp"`2121521216          - `"jpeg"`2121721218        - `partial_images: optional number`2121921220          Number of partial images to generate in streaming mode, from 0 (default value) to 3.2122121222        - `quality: optional "low" or "medium" or "high" or 3 more`2122321224          The quality of the generated image. The GPT image models support `low`,21225          `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,21226          including their `2026-09-08` snapshots, also support `xhigh` and `max`.21227          Default: `auto`.2122821229          - `"low"`2123021231          - `"medium"`2123221233          - `"high"`2123421235          - `"xhigh"`2123621237          - `"max"`2123821239          - `"auto"`2124021241        - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`2124221243          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`.2124421245          - `string`2124621247          - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`2124821249            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`.2125021251            - `"1024x1024"`2125221253            - `"1024x1536"`2125421255            - `"1536x1024"`2125621257            - `"auto"`2125821259      - `LocalShell object { type }`2126021261        A tool that allows the model to execute shell commands in a local environment.2126221263        - `type: "local_shell"`2126421265          The type of the local shell tool. Always `local_shell`.2126621267          - `"local_shell"`2126821269      - `Shell object { type, allowed_callers, environment }`2127021271        A tool that allows the model to execute shell commands.2127221273        - `type: "shell"`2127421275          The type of the shell tool. Always `shell`.2127621277          - `"shell"`2127821279        - `allowed_callers: optional array of "direct" or "programmatic" or null`2128021281          The tool invocation context(s).2128221283          - `"direct"`2128421285          - `"programmatic"`2128621287        - `environment: optional ContainerAuto or LocalEnvironment or ContainerReference or null`2128821289          - `ContainerAuto object { type, file_ids, memory_limit, 2 more }`2129021291          - `LocalEnvironment object { type, skills }`2129221293          - `ContainerReference object { container_id, type }`2129421295      - `Custom object { name, type, allowed_callers, 4 more }`2129621297        A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)2129821299        - `name: string`2130021301          The name of the custom tool, used to identify it in tool calls.2130221303        - `type: "custom"`2130421305          The type of the custom tool. Always `custom`.2130621307          - `"custom"`2130821309        - `allowed_callers: optional array of "direct" or "programmatic" or null`2131021311          The tool invocation context(s).2131221313          - `"direct"`2131421315          - `"programmatic"`2131621317        - `async: optional boolean`2131821319          Whether the tool response can be returned asynchronously versus immediately returned on next response creation.2132021321        - `defer_loading: optional boolean`2132221323          Whether this tool should be deferred and discovered via tool search.2132421325        - `description: optional string`2132621327          Optional description of the custom tool, used to provide more context.2132821329        - `format: optional CustomToolInputFormat`2133021331          The input format for the custom tool. Default is unconstrained text.2133221333      - `Namespace object { description, name, tools, type }`2133421335        Groups function/custom tools under a shared namespace.2133621337        - `description: string`2133821339          A description of the namespace shown to the model.2134021341        - `name: string`2134221343          The namespace name used in tool calls (for example, `crm`).2134421345        - `tools: array of object { name, type, allowed_callers, 6 more }  or object { name, type, allowed_callers, 4 more }`2134621347          The function/custom tools available inside this namespace.2134821349          - `Function object { name, type, allowed_callers, 6 more }`2135021351            - `name: string`2135221353            - `type: "function"`2135421355              - `"function"`2135621357            - `allowed_callers: optional array of "direct" or "programmatic" or null`2135821359              The tool invocation context(s).2136021361              - `"direct"`2136221363              - `"programmatic"`2136421365            - `async: optional boolean`2136621367              Whether the tool response can be returned asynchronously versus immediately returned on next response creation.2136821369            - `defer_loading: optional boolean`2137021371              Whether this function should be deferred and discovered via tool search.2137221373            - `description: optional string or null`2137421375            - `output_schema: optional map[unknown] or null`2137621377              A JSON Schema describing the JSON value encoded in string outputs for this function tool. This does not describe content-array outputs.2137821379            - `parameters: optional unknown or null`2138021381            - `strict: optional boolean or null`2138221383              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.2138421385          - `Custom object { name, type, allowed_callers, 4 more }`2138621387            A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)2138821389            - `name: string`2139021391              The name of the custom tool, used to identify it in tool calls.2139221393            - `type: "custom"`2139421395              The type of the custom tool. Always `custom`.2139621397              - `"custom"`2139821399            - `allowed_callers: optional array of "direct" or "programmatic" or null`2140021401              The tool invocation context(s).2140221403              - `"direct"`2140421405              - `"programmatic"`2140621407            - `async: optional boolean`2140821409              Whether the tool response can be returned asynchronously versus immediately returned on next response creation.2141021411            - `defer_loading: optional boolean`2141221413              Whether this tool should be deferred and discovered via tool search.2141421415            - `description: optional string`2141621417              Optional description of the custom tool, used to provide more context.2141821419            - `format: optional CustomToolInputFormat`2142021421              The input format for the custom tool. Default is unconstrained text.2142221423        - `type: "namespace"`2142421425          The type of the tool. Always `namespace`.2142621427          - `"namespace"`2142821429      - `ToolSearch object { type, description, execution, parameters }`2143021431        Hosted or BYOT tool search configuration for deferred tools.2143221433        - `type: "tool_search"`2143421435          The type of the tool. Always `tool_search`.2143621437          - `"tool_search"`2143821439        - `description: optional string or null`2144021441          Description shown to the model for a client-executed tool search tool.2144221443        - `execution: optional "server" or "client"`2144421445          Whether tool search is executed by the server or by the client.2144621447          - `"server"`2144821449          - `"client"`2145021451        - `parameters: optional unknown or null`2145221453          Parameter schema for a client-executed tool search tool.2145421455      - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`2145621457        This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](/api/docs/guides/tools-web-search).2145821459        - `type: "web_search_preview" or "web_search_preview_2025_03_11"`2146021461          The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.2146221463          - `"web_search_preview"`2146421465          - `"web_search_preview_2025_03_11"`2146621467        - `search_content_types: optional array of "text" or "image"`2146821469          - `"text"`2147021471          - `"image"`2147221473        - `search_context_size: optional "low" or "medium" or "high"`2147421475          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.2147621477          - `"low"`2147821479          - `"medium"`2148021481          - `"high"`2148221483        - `user_location: optional object { type, city, country, 2 more }  or null`2148421485          The user's location.2148621487          - `type: "approximate"`2148821489            The type of location approximation. Always `approximate`.2149021491            - `"approximate"`2149221493          - `city: optional string or null`2149421495            Free text input for the city of the user, e.g. `San Francisco`.2149621497          - `country: optional string or null`2149821499            The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.2150021501          - `region: optional string or null`2150221503            Free text input for the region of the user, e.g. `California`.2150421505          - `timezone: optional string or null`2150621507            The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.2150821509      - `ApplyPatch object { type, allowed_callers }`2151021511        Allows the assistant to create, delete, or update files using unified diffs.2151221513        - `type: "apply_patch"`2151421515          The type of the tool. Always `apply_patch`.2151621517          - `"apply_patch"`2151821519        - `allowed_callers: optional array of "direct" or "programmatic" or null`2152021521          The tool invocation context(s).2152221523          - `"direct"`2152421525          - `"programmatic"`2152621527    - `type: "additional_tools"`2152821529      The type of the item. Always `additional_tools`.2153021531      - `"additional_tools"`2153221533  - `ConfigurationUpdate object { id, type, reasoning }`2153421535    A configuration update that applies to subsequent responses until it is21536    replaced by another configuration update.2153721538    - `id: string`2153921540      The unique ID of the configuration update item.2154121542    - `type: "configuration_update"`2154321544      The item type. Always `configuration_update`.2154521546      - `"configuration_update"`2154721548    - `reasoning: optional object { effort }`2154921550      The reasoning configuration applied by this update.2155121552      - `effort: optional ReasoningEffort or null`2155321554        The reasoning effort used for subsequent responses until another21555        configuration update replaces it.2155621557        - `"none"`2155821559        - `"minimal"`2156021561        - `"low"`2156221563        - `"medium"`2156421565        - `"high"`2156621567        - `"xhigh"`2156821569        - `"max"`2157021571  - `Reasoning object { id, summary, type, 3 more }`2157221573    A description of the chain of thought used by a reasoning model while generating21574    a response. Be sure to include these items in your `input` to the Responses API21575    for subsequent turns of a conversation if you are manually21576    [managing context](/api/docs/guides/conversation-state).2157721578    - `id: string`2157921580      The unique identifier of the reasoning content.2158121582    - `summary: array of SummaryTextContent`2158321584      Reasoning summary content.2158521586      - `text: string`2158721588        A summary of the reasoning output from the model so far.2158921590      - `type: "summary_text"`2159121592        The type of the object. Always `summary_text`.2159321594    - `type: "reasoning"`2159521596      The type of the object. Always `reasoning`.2159721598      - `"reasoning"`2159921600    - `content: optional array of object { text, type }`2160121602      Reasoning text content.2160321604      - `text: string`2160521606        The reasoning text from the model.2160721608      - `type: "reasoning_text"`2160921610        The type of the reasoning text. Always `reasoning_text`.2161121612        - `"reasoning_text"`2161321614    - `encrypted_content: optional string or null`2161521616      The encrypted content of the reasoning item. This is populated by default21617      for reasoning items returned by `POST /v1/responses` and WebSocket21618      `response.create` requests.2161921620      When streaming, use the completed reasoning item and its21621      `encrypted_content` from the `response.output_item.done` event in21622      subsequent requests. The `encrypted_content` in21623      `response.output_item.added` may be incomplete. This is especially21624      important when `store` is `false` or when using Zero Data Retention.2162521626    - `status: optional "in_progress" or "completed" or "incomplete"`2162721628      The status of the item. One of `in_progress`, `completed`, or21629      `incomplete`. Populated when items are returned via API.2163021631      - `"in_progress"`2163221633      - `"completed"`2163421635      - `"incomplete"`2163621637  - `Program object { id, call_id, code, 2 more }`2163821639    - `id: string`2164021641      The unique ID of the program item.2164221643    - `call_id: string`2164421645      The stable call ID of the program item.2164621647    - `code: string`2164821649      The JavaScript source executed by programmatic tool calling.2165021651    - `fingerprint: string`2165221653      Opaque program replay fingerprint that must be round-tripped.2165421655    - `type: "program"`2165621657      The type of the item. Always `program`.2165821659      - `"program"`2166021661  - `ProgramOutput object { id, call_id, result, 2 more }`2166221663    - `id: string`2166421665      The unique ID of the program output item.2166621667    - `call_id: string`2166821669      The call ID of the program item.2167021671    - `result: string`2167221673      The result produced by the program item.2167421675    - `status: "completed" or "incomplete"`2167621677      The terminal status of the program output item.2167821679      - `"completed"`2168021681      - `"incomplete"`2168221683    - `type: "program_output"`2168421685      The type of the item. Always `program_output`.2168621687      - `"program_output"`2168821689  - `Compaction object { id, encrypted_content, type, created_by }`2169021691    A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).2169221693    - `id: string`2169421695      The unique ID of the compaction item.2169621697    - `encrypted_content: string`2169821699      The encrypted content that was produced by compaction.2170021701    - `type: "compaction"`2170221703      The type of the item. Always `compaction`.2170421705      - `"compaction"`2170621707    - `created_by: optional string`2170821709      The identifier of the actor that created the item.2171021711  - `CodeInterpreterCall object { id, code, container_id, 3 more }`2171221713    A tool call to run code.2171421715    - `id: string`2171621717      The unique ID of the code interpreter tool call.2171821719    - `code: string or null`2172021721      The code to run, or null if not available.2172221723    - `container_id: string`2172421725      The ID of the container used to run the code.2172621727    - `outputs: array of object { logs, type }  or object { type, url }  or null`2172821729      The outputs generated by the code interpreter, such as logs or images.21730      Can be null if no outputs are available.2173121732      - `Logs object { logs, type }`2173321734        The logs output from the code interpreter.2173521736        - `logs: string`2173721738          The logs output from the code interpreter.2173921740        - `type: "logs"`2174121742          The type of the output. Always `logs`.2174321744          - `"logs"`2174521746      - `Image object { type, url }`2174721748        The image output from the code interpreter.2174921750        - `type: "image"`2175121752          The type of the output. Always `image`.2175321754          - `"image"`2175521756        - `url: string`2175721758          The URL of the image output from the code interpreter.2175921760    - `status: "in_progress" or "completed" or "incomplete" or 2 more`2176121762      The status of the code interpreter tool call. Valid values are `in_progress`, `completed`, `incomplete`, `interpreting`, and `failed`.2176321764      - `"in_progress"`2176521766      - `"completed"`2176721768      - `"incomplete"`2176921770      - `"interpreting"`2177121772      - `"failed"`2177321774    - `type: "code_interpreter_call"`2177521776      The type of the code interpreter tool call. Always `code_interpreter_call`.2177721778      - `"code_interpreter_call"`2177921780  - `LocalShellCall object { id, action, call_id, 2 more }`2178121782    A tool call to run a command on the local shell.2178321784    - `id: string`2178521786      The unique ID of the local shell call.2178721788    - `action: object { command, env, type, 3 more }`2178921790      Execute a shell command on the server.2179121792      - `command: array of string`2179321794        The command to run.2179521796      - `env: map[string]`2179721798        Environment variables to set for the command.2179921800      - `type: "exec"`2180121802        The type of the local shell action. Always `exec`.2180321804        - `"exec"`2180521806      - `timeout_ms: optional number or null`2180721808        Optional timeout in milliseconds for the command.2180921810      - `user: optional string or null`2181121812        Optional user to run the command as.2181321814      - `working_directory: optional string or null`2181521816        Optional working directory to run the command in.2181721818    - `call_id: string`2181921820      The unique ID of the local shell tool call generated by the model.2182121822    - `status: "in_progress" or "completed" or "incomplete"`2182321824      The status of the local shell call.2182521826      - `"in_progress"`2182721828      - `"completed"`2182921830      - `"incomplete"`2183121832    - `type: "local_shell_call"`2183321834      The type of the local shell call. Always `local_shell_call`.2183521836      - `"local_shell_call"`2183721838  - `LocalShellCallOutput object { id, output, type, status }`2183921840    The output of a local shell tool call.2184121842    - `id: string`2184321844      The unique ID of the local shell tool call generated by the model.2184521846    - `output: string`2184721848      A JSON string of the output of the local shell tool call.2184921850    - `type: "local_shell_call_output"`2185121852      The type of the local shell tool call output. Always `local_shell_call_output`.2185321854      - `"local_shell_call_output"`2185521856    - `status: optional "in_progress" or "completed" or "incomplete" or null`2185721858      The status of the item. One of `in_progress`, `completed`, or `incomplete`.2185921860      - `"in_progress"`2186121862      - `"completed"`2186321864      - `"incomplete"`2186521866  - `ShellCall object { id, action, call_id, 5 more }`2186721868    A tool call that executes one or more shell commands in a managed environment.2186921870    - `id: string`2187121872      The unique ID of the shell tool call. Populated when this item is returned via API.2187321874    - `action: object { commands, max_output_length, timeout_ms }`2187521876      The shell commands and limits that describe how to run the tool call.2187721878      - `commands: array of string`2187921880      - `max_output_length: number or null`2188121882        Optional maximum number of characters to return from each command.2188321884      - `timeout_ms: number or null`2188521886        Optional timeout in milliseconds for the commands.2188721888    - `call_id: string`2188921890      The unique ID of the shell tool call generated by the model.2189121892    - `environment: ResponseLocalEnvironment or ResponseContainerReference or null`2189321894      Represents the use of a local environment to perform shell actions.2189521896      - `ResponseLocalEnvironment object { type }`2189721898        Represents the use of a local environment to perform shell actions.2189921900        - `type: "local"`2190121902          The environment type. Always `local`.2190321904          - `"local"`2190521906      - `ResponseContainerReference object { container_id, type }`2190721908        Represents a container created with /v1/containers.2190921910        - `container_id: string`2191121912        - `type: "container_reference"`2191321914          The environment type. Always `container_reference`.2191521916          - `"container_reference"`2191721918    - `status: "in_progress" or "completed" or "incomplete"`2191921920      The status of the shell call. One of `in_progress`, `completed`, or `incomplete`.2192121922      - `"in_progress"`2192321924      - `"completed"`2192521926      - `"incomplete"`2192721928    - `type: "shell_call"`2192921930      The type of the item. Always `shell_call`.2193121932      - `"shell_call"`2193321934    - `caller: optional object { type }  or object { caller_id, type }  or null`2193521936      The execution context that produced this tool call.2193721938      - `Direct object { type }`2193921940        - `type: "direct"`2194121942          - `"direct"`2194321944      - `Program object { caller_id, type }`2194521946        - `caller_id: string`2194721948          The call ID of the program item that produced this tool call.2194921950        - `type: "program"`2195121952          - `"program"`2195321954    - `created_by: optional string`2195521956      The ID of the entity that created this tool call.2195721958  - `ShellCallOutput object { id, call_id, max_output_length, 5 more }`2195921960    The output of a shell tool call that was emitted.2196121962    - `id: string`2196321964      The unique ID of the shell call output. Populated when this item is returned via API.2196521966    - `call_id: string`2196721968      The unique ID of the shell tool call generated by the model.2196921970    - `max_output_length: number or null`2197121972      The maximum length of the shell command output. This is generated by the model and should be passed back with the raw output.2197321974    - `output: array of object { outcome, stderr, stdout, created_by }`2197521976      An array of shell call output contents2197721978      - `outcome: object { type }  or object { exit_code, type }`2197921980        Represents either an exit outcome (with an exit code) or a timeout outcome for a shell call output chunk.2198121982        - `Timeout object { type }`2198321984          Indicates that the shell call exceeded its configured time limit.2198521986          - `type: "timeout"`2198721988            The outcome type. Always `timeout`.2198921990            - `"timeout"`2199121992        - `Exit object { exit_code, type }`2199321994          Indicates that the shell commands finished and returned an exit code.2199521996          - `exit_code: number`2199721998            Exit code from the shell process.2199922000          - `type: "exit"`2200122002            The outcome type. Always `exit`.2200322004            - `"exit"`2200522006      - `stderr: string`2200722008        The standard error output that was captured.2200922010      - `stdout: string`2201122012        The standard output that was captured.2201322014      - `created_by: optional string`2201522016        The identifier of the actor that created the item.2201722018    - `status: "in_progress" or "completed" or "incomplete"`2201922020      The status of the shell call output. One of `in_progress`, `completed`, or `incomplete`.2202122022      - `"in_progress"`2202322024      - `"completed"`2202522026      - `"incomplete"`2202722028    - `type: "shell_call_output"`2202922030      The type of the shell call output. Always `shell_call_output`.2203122032      - `"shell_call_output"`2203322034    - `caller: optional object { type }  or object { caller_id, type }  or null`2203522036      The execution context that produced this tool call.2203722038      - `Direct object { type }`2203922040        - `type: "direct"`2204122042          - `"direct"`2204322044      - `Program object { caller_id, type }`2204522046        - `caller_id: string`2204722048          The call ID of the program item that produced this tool call.2204922050        - `type: "program"`2205122052          - `"program"`2205322054    - `created_by: optional string`2205522056      The identifier of the actor that created the item.2205722058  - `ApplyPatchCall object { id, call_id, operation, 4 more }`2205922060    A tool call that applies file diffs by creating, deleting, or updating files.2206122062    - `id: string`2206322064      The unique ID of the apply patch tool call. Populated when this item is returned via API.2206522066    - `call_id: string`2206722068      The unique ID of the apply patch tool call generated by the model.2206922070    - `operation: object { diff, path, type }  or object { path, type }  or object { diff, path, type }`2207122072      One of the create_file, delete_file, or update_file operations applied via apply_patch.2207322074      - `CreateFile object { diff, path, type }`2207522076        Instruction describing how to create a file via the apply_patch tool.2207722078        - `diff: string`2207922080          Diff to apply.2208122082        - `path: string`2208322084          Path of the file to create.2208522086        - `type: "create_file"`2208722088          Create a new file with the provided diff.2208922090          - `"create_file"`2209122092      - `DeleteFile object { path, type }`2209322094        Instruction describing how to delete a file via the apply_patch tool.2209522096        - `path: string`2209722098          Path of the file to delete.2209922100        - `type: "delete_file"`2210122102          Delete the specified file.2210322104          - `"delete_file"`2210522106      - `UpdateFile object { diff, path, type }`2210722108        Instruction describing how to update a file via the apply_patch tool.2210922110        - `diff: string`2211122112          Diff to apply.2211322114        - `path: string`2211522116          Path of the file to update.2211722118        - `type: "update_file"`2211922120          Update an existing file with the provided diff.2212122122          - `"update_file"`2212322124    - `status: "in_progress" or "completed"`2212522126      The status of the apply patch tool call. One of `in_progress` or `completed`.2212722128      - `"in_progress"`2212922130      - `"completed"`2213122132    - `type: "apply_patch_call"`2213322134      The type of the item. Always `apply_patch_call`.2213522136      - `"apply_patch_call"`2213722138    - `caller: optional object { type }  or object { caller_id, type }  or null`2213922140      The execution context that produced this tool call.2214122142      - `Direct object { type }`2214322144        - `type: "direct"`2214522146          - `"direct"`2214722148      - `Program object { caller_id, type }`2214922150        - `caller_id: string`2215122152          The call ID of the program item that produced this tool call.2215322154        - `type: "program"`2215522156          - `"program"`2215722158    - `created_by: optional string`2215922160      The ID of the entity that created this tool call.2216122162  - `ApplyPatchCallOutput object { id, call_id, status, 4 more }`2216322164    The output emitted by an apply patch tool call.2216522166    - `id: string`2216722168      The unique ID of the apply patch tool call output. Populated when this item is returned via API.2216922170    - `call_id: string`2217122172      The unique ID of the apply patch tool call generated by the model.2217322174    - `status: "completed" or "failed"`2217522176      The status of the apply patch tool call output. One of `completed` or `failed`.2217722178      - `"completed"`2217922180      - `"failed"`2218122182    - `type: "apply_patch_call_output"`2218322184      The type of the item. Always `apply_patch_call_output`.2218522186      - `"apply_patch_call_output"`2218722188    - `caller: optional object { type }  or object { caller_id, type }  or null`2218922190      The execution context that produced this tool call.2219122192      - `Direct object { type }`2219322194        - `type: "direct"`2219522196          - `"direct"`2219722198      - `Program object { caller_id, type }`2219922200        - `caller_id: string`2220122202          The call ID of the program item that produced this tool call.2220322204        - `type: "program"`2220522206          - `"program"`2220722208    - `created_by: optional string`2220922210      The ID of the entity that created this tool call output.2221122212    - `output: optional string or null`2221322214      Optional textual output returned by the apply patch tool.2221522216  - `McpListTools object { id, server_label, tools, 2 more }`2221722218    A list of tools available on an MCP server.2221922220    - `id: string`2222122222      The unique ID of the list.2222322224    - `server_label: string`2222522226      The label of the MCP server.2222722228    - `tools: array of object { input_schema, name, annotations, description }`2222922230      The tools available on the server.2223122232      - `input_schema: unknown`2223322234        The JSON schema describing the tool's input.2223522236      - `name: string`2223722238        The name of the tool.2223922240      - `annotations: optional unknown or null`2224122242        Additional annotations about the tool.2224322244      - `description: optional string or null`2224522246        The description of the tool.2224722248    - `type: "mcp_list_tools"`2224922250      The type of the item. Always `mcp_list_tools`.2225122252      - `"mcp_list_tools"`2225322254    - `error: optional string or null`2225522256      Error message if the server could not list tools.2225722258  - `McpApprovalRequest object { id, arguments, name, 2 more }`2225922260    A request for human approval of a tool invocation.2226122262    - `id: string`2226322264      The unique ID of the approval request.2226522266    - `arguments: string`2226722268      A JSON string of arguments for the tool.2226922270    - `name: string`2227122272      The name of the tool to run.2227322274    - `server_label: string`2227522276      The label of the MCP server making the request.2227722278    - `type: "mcp_approval_request"`2227922280      The type of the item. Always `mcp_approval_request`.2228122282      - `"mcp_approval_request"`2228322284  - `McpApprovalResponse object { id, approval_request_id, approve, 2 more }`2228522286    A response to an MCP approval request.2228722288    - `id: string`2228922290      The unique ID of the approval response2229122292    - `approval_request_id: string`2229322294      The ID of the approval request being answered.2229522296    - `approve: boolean`2229722298      Whether the request was approved.2229922300    - `type: "mcp_approval_response"`2230122302      The type of the item. Always `mcp_approval_response`.2230322304      - `"mcp_approval_response"`2230522306    - `reason: optional string or null`2230722308      Optional reason for the decision.2230922310  - `McpCall object { id, arguments, name, 6 more }`2231122312    An invocation of a tool on an MCP server.2231322314    - `id: string`2231522316      The unique ID of the tool call.2231722318    - `arguments: string`2231922320      A JSON string of the arguments passed to the tool.2232122322    - `name: string`2232322324      The name of the tool that was run.2232522326    - `server_label: string`2232722328      The label of the MCP server running the tool.2232922330    - `type: "mcp_call"`2233122332      The type of the item. Always `mcp_call`.2233322334      - `"mcp_call"`2233522336    - `approval_request_id: optional string or null`2233722338      Unique identifier for the MCP tool call approval request.22339      Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.2234022341    - `error: optional McpToolCallError or null`2234222343      The error from the tool call, if any.2234422345      - `McpProtocolError object { code, message, type }`2234622347        - `code: number`2234822349        - `message: string`2235022351        - `type: "mcp_protocol_error"`2235222353          - `"mcp_protocol_error"`2235422355      - `McpToolExecutionError object { content, type }`2235622357        - `content: unknown`2235822359        - `type: "mcp_tool_execution_error"`2236022361          - `"mcp_tool_execution_error"`2236222363      - `HTTPError object { code, message, type }`2236422365        - `code: number`2236622367        - `message: string`2236822369        - `type: "http_error"`2237022371          - `"http_error"`2237222373    - `output: optional string or null`2237422375      The output from the tool call.2237622377    - `status: optional "in_progress" or "completed" or "incomplete" or 2 more`2237822379      The status of the tool call. One of `in_progress`, `completed`, `incomplete`, `calling`, or `failed`.2238022381      - `"in_progress"`2238222383      - `"completed"`2238422385      - `"incomplete"`2238622387      - `"calling"`2238822389      - `"failed"`2239022391  - `CustomToolCall object { call_id, input, name, 5 more }`2239222393    A call to a custom tool created by the model.2239422395    - `call_id: string`2239622397      An identifier used to map this custom tool call to a tool call output.2239822399    - `input: string`2240022401      The input for the custom tool call generated by the model.2240222403    - `name: string`2240422405      The name of the custom tool being called.2240622407    - `type: "custom_tool_call"`2240822409      The type of the custom tool call. Always `custom_tool_call`.2241022411      - `"custom_tool_call"`2241222413    - `id: optional string`2241422415      The unique ID of the custom tool call in the OpenAI platform.2241622417    - `async: optional boolean`2241822419      Whether the custom tool call runs asynchronously.2242022421    - `caller: optional object { type }  or object { caller_id, type }  or null`2242222423      The execution context that produced this tool call.2242422425      - `Direct object { type }`2242622427        - `type: "direct"`2242822429          - `"direct"`2243022431      - `Program object { caller_id, type }`2243222433        - `caller_id: string`2243422435          The call ID of the program item that produced this tool call.2243622437        - `type: "program"`2243822439          - `"program"`2244022441    - `namespace: optional string`2244222443      The namespace of the custom tool being called.2244422445  - `CustomToolCallOutput object { call_id, output, type, 2 more }`2244622447    The output of a custom tool call from your code, being sent back to the model.2244822449    - `call_id: string`2245022451      The call ID, used to map this custom tool call output to a custom tool call.2245222453    - `output: string or array of ResponseInputText or ResponseInputImage or ResponseInputFile`2245422455      The output from the custom tool call generated by your code.22456      Can be a string or an list of output content.2245722458      - `StringOutput = string`2245922460        A string of the output of the custom tool call.2246122462      - `OutputContentList = array of ResponseInputText or ResponseInputImage or ResponseInputFile`2246322464        Text, image, or file output of the custom tool call.2246522466        - `ResponseInputText object { text, type, prompt_cache_breakpoint }`2246722468          A text input to the model.2246922470        - `ResponseInputImage object { detail, type, file_id, 2 more }`2247122472          An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).2247322474        - `ResponseInputFile object { type, detail, file_data, 4 more }`2247522476          A file input to the model.2247722478    - `type: "custom_tool_call_output"`2247922480      The type of the custom tool call output. Always `custom_tool_call_output`.2248122482      - `"custom_tool_call_output"`2248322484    - `id: optional string`2248522486      The unique ID of the custom tool call output in the OpenAI platform.2248722488    - `caller: optional object { type }  or object { caller_id, type }  or null`2248922490      The execution context that produced this tool call.2249122492      - `Direct object { type }`2249322494        - `type: "direct"`2249522496          The caller type. Always `direct`.2249722498          - `"direct"`2249922500      - `Program object { caller_id, type }`2250122502        - `caller_id: string`2250322504          The call ID of the program item that produced this tool call.2250522506        - `type: "program"`2250722508          The caller type. Always `program`.2250922510          - `"program"`2251122512### Example2251322514```http22515curl https://api.openai.com/v1/conversations/$CONVERSATION_ID/items/$ITEM_ID \22516    -H "Authorization: Bearer $OPENAI_API_KEY"22517```2251822519#### Response2252022521```json22522{22523  "id": "id",22524  "content": [22525    {22526      "text": "text",22527      "type": "input_text",22528      "prompt_cache_breakpoint": {22529        "mode": "explicit"22530      }22531    }22532  ],22533  "role": "unknown",22534  "status": "in_progress",22535  "type": "message",22536  "phase": "commentary"22537}22538```2253922540### Example2254122542```http22543curl https://api.openai.com/v1/conversations/conv_123/items/msg_abc \22544  -H "Authorization: Bearer $OPENAI_API_KEY"22545```2254622547#### Response2254822549```json22550{22551  "type": "message",22552  "id": "msg_abc",22553  "status": "completed",22554  "role": "user",22555  "content": [22556    {"type": "input_text", "text": "Hello!"}22557  ]22558}22559```2256022561## Domain Types2256222563### Conversation Item2256422565- `ConversationItem = Message or object { id, arguments, call_id, 7 more }  or object { id, output, status, 6 more }  or 26 more`2256622567  A single item within a conversation. The set of possible types are the same as the `output` type of a [Response object](/api/reference/resources/responses#%28resource%29%20responses%20%3E%20%28model%29%20response%20%3E%20%28schema%29%20%3E%20%28property%29%20output).2256822569  - `Message object { id, content, role, 3 more }`2257022571    A message to or from the model.2257222573    - `id: string`2257422575      The unique ID of the message.2257622577    - `content: array of ResponseInputText or ResponseOutputText or TextContent or 6 more`2257822579      The content of the message2258022581      - `ResponseInputText object { text, type, prompt_cache_breakpoint }`2258222583        A text input to the model.2258422585        - `text: string`2258622587          The text input to the model.2258822589        - `type: "input_text"`2259022591          The type of the input item. Always `input_text`.2259222593          - `"input_text"`2259422595        - `prompt_cache_breakpoint: optional object { mode }`2259622597          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.2259822599          - `mode: "explicit"`2260022601            The breakpoint mode. Always `explicit`.2260222603            - `"explicit"`2260422605      - `ResponseOutputText object { annotations, logprobs, text, type }`2260622607        A text output from the model.2260822609        - `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 }`2261022611          The annotations of the text output.2261222613          - `FileCitation object { file_id, filename, index, type }`2261422615            A citation to a file.2261622617            - `file_id: string`2261822619              The ID of the file.2262022621            - `filename: string`2262222623              The filename of the file cited.2262422625            - `index: number`2262622627              The index of the file in the list of files.2262822629            - `type: "file_citation"`2263022631              The type of the file citation. Always `file_citation`.2263222633              - `"file_citation"`2263422635          - `URLCitation object { end_index, start_index, title, 2 more }`2263622637            A citation for a web resource used to generate a model response.2263822639            - `end_index: number`2264022641              The index of the last character of the URL citation in the message.2264222643            - `start_index: number`2264422645              The index of the first character of the URL citation in the message.2264622647            - `title: string`2264822649              The title of the web resource.2265022651            - `type: "url_citation"`2265222653              The type of the URL citation. Always `url_citation`.2265422655              - `"url_citation"`2265622657            - `url: string`2265822659              The URL of the web resource.2266022661          - `ContainerFileCitation object { container_id, end_index, file_id, 3 more }`2266222663            A citation for a container file used to generate a model response.2266422665            - `container_id: string`2266622667              The ID of the container file.2266822669            - `end_index: number`2267022671              The index of the last character of the container file citation in the message.2267222673            - `file_id: string`2267422675              The ID of the file.2267622677            - `filename: string`2267822679              The filename of the container file cited.2268022681            - `start_index: number`2268222683              The index of the first character of the container file citation in the message.2268422685            - `type: "container_file_citation"`2268622687              The type of the container file citation. Always `container_file_citation`.2268822689              - `"container_file_citation"`2269022691          - `FilePath object { file_id, index, type }`2269222693            A path to a file.2269422695            - `file_id: string`2269622697              The ID of the file.2269822699            - `index: number`2270022701              The index of the file in the list of files.2270222703            - `type: "file_path"`2270422705              The type of the file path. Always `file_path`.2270622707              - `"file_path"`2270822709        - `logprobs: array of object { token, bytes, logprob, top_logprobs }`2271022711          - `token: string`2271222713          - `bytes: array of number`2271422715          - `logprob: number`2271622717          - `top_logprobs: array of object { token, bytes, logprob }`2271822719            - `token: string`2272022721            - `bytes: array of number`2272222723            - `logprob: number`2272422725        - `text: string`2272622727          The text output from the model.2272822729        - `type: "output_text"`2273022731          The type of the output text. Always `output_text`.2273222733          - `"output_text"`2273422735      - `TextContent object { text, type }`2273622737        A text content.2273822739        - `text: string`2274022741        - `type: "text"`2274222743          - `"text"`2274422745      - `SummaryTextContent object { text, type }`2274622747        A summary text from the model.2274822749        - `text: string`2275022751          A summary of the reasoning output from the model so far.2275222753        - `type: "summary_text"`2275422755          The type of the object. Always `summary_text`.2275622757          - `"summary_text"`2275822759      - `ReasoningText object { text, type }`2276022761        Reasoning text from the model.2276222763        - `text: string`2276422765          The reasoning text from the model.2276622767        - `type: "reasoning_text"`2276822769          The type of the reasoning text. Always `reasoning_text`.2277022771          - `"reasoning_text"`2277222773      - `ResponseOutputRefusal object { refusal, type }`2277422775        A refusal from the model.2277622777        - `refusal: string`2277822779          The refusal explanation from the model.2278022781        - `type: "refusal"`2278222783          The type of the refusal. Always `refusal`.2278422785          - `"refusal"`2278622787      - `ResponseInputImage object { detail, type, file_id, 2 more }`2278822789        An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).2279022791        - `detail: ImageDetail`2279222793          The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.2279422795          - `"low"`2279622797          - `"high"`2279822799          - `"auto"`2280022801          - `"original"`2280222803        - `type: "input_image"`2280422805          The type of the input item. Always `input_image`.2280622807          - `"input_image"`2280822809        - `file_id: optional string or null`2281022811          The ID of the file to be sent to the model.2281222813        - `image_url: optional string or null`2281422815          The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.2281622817        - `prompt_cache_breakpoint: optional object { mode }`2281822819          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.2282022821          - `mode: "explicit"`2282222823            The breakpoint mode. Always `explicit`.2282422825            - `"explicit"`2282622827      - `ComputerScreenshotContent object { detail, file_id, image_url, 2 more }`2282822829        A screenshot of a computer.2283022831        - `detail: ImageDetail`2283222833          The detail level of the screenshot image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.2283422835        - `file_id: string or null`2283622837          The identifier of an uploaded file that contains the screenshot.2283822839        - `image_url: string or null`2284022841          The URL of the screenshot image.2284222843        - `type: "computer_screenshot"`2284422845          Specifies the event type. For a computer screenshot, this property is always set to `computer_screenshot`.2284622847          - `"computer_screenshot"`2284822849        - `prompt_cache_breakpoint: optional object { mode }`2285022851          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.2285222853          - `mode: "explicit"`2285422855            The breakpoint mode. Always `explicit`.2285622857            - `"explicit"`2285822859      - `ResponseInputFile object { type, detail, file_data, 4 more }`2286022861        A file input to the model.2286222863        - `type: "input_file"`2286422865          The type of the input item. Always `input_file`.2286622867          - `"input_file"`2286822869        - `detail: optional "auto" or "low" or "high"`2287022871          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`.2287222873          - `"auto"`2287422875          - `"low"`2287622877          - `"high"`2287822879        - `file_data: optional string`2288022881          The content of the file to be sent to the model.2288222883        - `file_id: optional string or null`2288422885          The ID of the file to be sent to the model.2288622887        - `file_url: optional string`2288822889          The URL of the file to be sent to the model.2289022891        - `filename: optional string`2289222893          The name of the file to be sent to the model.2289422895        - `prompt_cache_breakpoint: optional object { mode }`2289622897          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.2289822899          - `mode: "explicit"`2290022901            The breakpoint mode. Always `explicit`.2290222903            - `"explicit"`2290422905    - `role: "unknown" or "user" or "assistant" or 5 more`2290622907      The role of the message. One of `unknown`, `user`, `assistant`, `system`, `critic`, `discriminator`, `developer`, or `tool`.2290822909      - `"unknown"`2291022911      - `"user"`2291222913      - `"assistant"`2291422915      - `"system"`2291622917      - `"critic"`2291822919      - `"discriminator"`2292022921      - `"developer"`2292222923      - `"tool"`2292422925    - `status: "in_progress" or "completed" or "incomplete"`2292622927      The status of item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API.2292822929      - `"in_progress"`2293022931      - `"completed"`2293222933      - `"incomplete"`2293422935    - `type: "message"`2293622937      The type of the message. Always set to `message`.2293822939      - `"message"`2294022941    - `phase: optional "commentary" or "final_answer" or null`2294222943      Labels an `assistant` message as intermediate commentary (`commentary`) or the final answer (`final_answer`). For models like `gpt-5.3-codex` and beyond, when sending follow-up requests, preserve and resend phase on all assistant messages — dropping it can degrade performance. Not used for user messages.2294422945      - `"commentary"`2294622947      - `"final_answer"`2294822949  - `FunctionCall object { id, arguments, call_id, 7 more }`2295022951    - `id: string`2295222953      The unique ID of the function tool call.2295422955    - `arguments: string`2295622957      A JSON string of the arguments to pass to the function.2295822959    - `call_id: string`2296022961      The unique ID of the function tool call generated by the model.2296222963    - `name: string`2296422965      The name of the function to run.2296622967    - `status: "in_progress" or "completed" or "incomplete"`2296822969      The status of the item. One of `in_progress`, `completed`, or22970      `incomplete`. Populated when items are returned via API.2297122972      - `"in_progress"`2297322974      - `"completed"`2297522976      - `"incomplete"`2297722978    - `type: "function_call"`2297922980      The type of the function tool call. Always `function_call`.2298122982      - `"function_call"`2298322984    - `async: optional boolean`2298522986      Whether the function tool call runs asynchronously.2298722988    - `caller: optional object { type }  or object { caller_id, type }  or null`2298922990      The execution context that produced this tool call.2299122992      - `Direct object { type }`2299322994        - `type: "direct"`2299522996          - `"direct"`2299722998      - `Program object { caller_id, type }`2299923000        - `caller_id: string`2300123002          The call ID of the program item that produced this tool call.2300323004        - `type: "program"`2300523006          - `"program"`2300723008    - `created_by: optional string`2300923010      The identifier of the actor that created the item.2301123012    - `namespace: optional string`2301323014      The namespace of the function to run.2301523016  - `FunctionCallOutput object { id, output, status, 6 more }`2301723018    - `id: string`2301923020      The unique ID of the function call tool output.2302123022    - `output: string or array of ResponseInputText or ResponseInputImage or ResponseInputFile`2302323024      The output from the function call generated by your code.23025      Can be a string or an list of output content.2302623027      - `StringOutput = string`2302823029        A string of the output of the function call.2303023031      - `OutputContentList = array of ResponseInputText or ResponseInputImage or ResponseInputFile`2303223033        Text, image, or file output of the function call.2303423035        - `ResponseInputText object { text, type, prompt_cache_breakpoint }`2303623037          A text input to the model.2303823039        - `ResponseInputImage object { detail, type, file_id, 2 more }`2304023041          An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).2304223043        - `ResponseInputFile object { type, detail, file_data, 4 more }`2304423045          A file input to the model.2304623047    - `status: "in_progress" or "completed" or "incomplete"`2304823049      The status of the item. One of `in_progress`, `completed`, or23050      `incomplete`. Populated when items are returned via API.2305123052      - `"in_progress"`2305323054      - `"completed"`2305523056      - `"incomplete"`2305723058    - `type: "function_call_output"`2305923060      The type of the function tool call output. Always `function_call_output`.2306123062      - `"function_call_output"`2306323064    - `call_id: optional string`2306523066      The unique ID of the function tool call generated by the model.2306723068    - `caller: optional object { type }  or object { caller_id, type }  or null`2306923070      The execution context that produced this tool call.2307123072      - `Direct object { type }`2307323074        - `type: "direct"`2307523076          The caller type. Always `direct`.2307723078          - `"direct"`2307923080      - `Program object { caller_id, type }`2308123082        - `caller_id: string`2308323084          The call ID of the program item that produced this tool call.2308523086        - `type: "program"`2308723088          The caller type. Always `program`.2308923090          - `"program"`2309123092    - `created_by: optional string`2309323094      The identifier of the actor that created the item.2309523096    - `name: optional string`2309723098      The name of the tool that produced the output.2309923100    - `namespace: optional string`2310123102      The namespace of the tool that produced the output.2310323104  - `FileSearchCall object { id, queries, status, 2 more }`2310523106    The results of a file search tool call. See the23107    [file search guide](/api/docs/guides/tools-file-search) for more information.2310823109    - `id: string`2311023111      The unique ID of the file search tool call.2311223113    - `queries: array of string`2311423115      The queries used to search for files.2311623117    - `status: "in_progress" or "searching" or "completed" or 2 more`2311823119      The status of the file search tool call. One of `in_progress`,23120      `searching`, `incomplete` or `failed`,2312123122      - `"in_progress"`2312323124      - `"searching"`2312523126      - `"completed"`2312723128      - `"incomplete"`2312923130      - `"failed"`2313123132    - `type: "file_search_call"`2313323134      The type of the file search tool call. Always `file_search_call`.2313523136      - `"file_search_call"`2313723138    - `results: optional array of object { attributes, file_id, filename, 2 more }  or null`2313923140      The results of the file search tool call.2314123142      - `attributes: optional map[string or number or boolean] or null`2314323144        Set of 16 key-value pairs that can be attached to an object. This can be23145        useful for storing additional information about the object in a structured23146        format, and querying for objects via API or the dashboard. Keys are strings23147        with a maximum length of 64 characters. Values are strings with a maximum23148        length of 512 characters, booleans, or numbers.2314923150        - `string`2315123152        - `number`2315323154        - `boolean`2315523156      - `file_id: optional string`2315723158        The unique ID of the file.2315923160      - `filename: optional string`2316123162        The name of the file.2316323164      - `score: optional number`2316523166        The relevance score of the file - a value between 0 and 1.2316723168      - `text: optional string`2316923170        The text that was retrieved from the file.2317123172  - `WebSearchCall object { id, action, status, type }`2317323174    The results of a web search tool call. See the23175    [web search guide](/api/docs/guides/tools-web-search) for more information.2317623177    - `id: string`2317823179      The unique ID of the web search tool call.2318023181    - `action: object { type, queries, query, sources }  or object { type, url }  or object { pattern, type, url }`2318223183      An object describing the specific action taken in this web search call.23184      Includes details on how the model used the web (search, open_page, find_in_page).2318523186      - `Search object { type, queries, query, sources }`2318723188        Action type "search" - Performs a web search query.2318923190        - `type: "search"`2319123192          The action type.2319323194          - `"search"`2319523196        - `queries: optional array of string`2319723198          The search queries.2319923200        - `query: optional string`2320123202          The search query.2320323204        - `sources: optional array of object { type, url }`2320523206          The sources used in the search.2320723208          - `type: "url"`2320923210            The type of source. Always `url`.2321123212            - `"url"`2321323214          - `url: string`2321523216            The URL of the source.2321723218      - `OpenPage object { type, url }`2321923220        Action type "open_page" - Opens a specific URL from search results.2322123222        - `type: "open_page"`2322323224          The action type.2322523226          - `"open_page"`2322723228        - `url: optional string or null`2322923230          The URL opened by the model.2323123232      - `FindInPage object { pattern, type, url }`2323323234        Action type "find_in_page": Searches for a pattern within a loaded page.2323523236        - `pattern: string`2323723238          The pattern or text to search for within the page.2323923240        - `type: "find_in_page"`2324123242          The action type.2324323244          - `"find_in_page"`2324523246        - `url: string`2324723248          The URL of the page searched for the pattern.2324923250    - `status: "in_progress" or "searching" or "completed" or 2 more`2325123252      The status of the web search tool call.2325323254      - `"in_progress"`2325523256      - `"searching"`2325723258      - `"completed"`2325923260      - `"failed"`2326123262      - `"incomplete"`2326323264    - `type: "web_search_call"`2326523266      The type of the web search tool call. Always `web_search_call`.2326723268      - `"web_search_call"`2326923270  - `ImageGenerationCall object { id, result, status, 7 more }`2327123272    An image generation request made by the model.2327323274    - `id: string`2327523276      The unique ID of the image generation call.2327723278    - `result: string or null`2327923280      The generated image encoded in base64.2328123282    - `status: "in_progress" or "completed" or "generating" or "failed"`2328323284      The status of the image generation call.2328523286      - `"in_progress"`2328723288      - `"completed"`2328923290      - `"generating"`2329123292      - `"failed"`2329323294    - `type: "image_generation_call"`2329523296      The type of the image generation call. Always `image_generation_call`.2329723298      - `"image_generation_call"`2329923300    - `action: optional "generate" or "edit" or "auto" or null`2330123302      The action used for image generation.2330323304      - `"generate"`2330523306      - `"edit"`2330723308      - `"auto"`2330923310    - `background: optional "transparent" or "opaque" or "auto" or null`2331123312      The background setting used for generation.2331323314      - `"transparent"`2331523316      - `"opaque"`2331723318      - `"auto"`2331923320    - `output_format: optional "png" or "webp" or "jpeg" or null`2332123322      The output format used for generation.2332323324      - `"png"`2332523326      - `"webp"`2332723328      - `"jpeg"`2332923330    - `quality: optional "low" or "medium" or "high" or 3 more or null`2333123332      The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.2333323334      - `"low"`2333523336      - `"medium"`2333723338      - `"high"`2333923340      - `"xhigh"`2334123342      - `"max"`2334323344      - `"auto"`2334523346    - `revised_prompt: optional string or null`2334723348      The prompt that was used after any model prompt rewriting.2334923350    - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`2335123352      The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.2335323354      - `string`2335523356      - `"1024x1024" or "1024x1536" or "1536x1024"`2335723358        The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.2335923360        - `"1024x1024"`2336123362        - `"1024x1536"`2336323364        - `"1536x1024"`2336523366  - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`2336723368    A tool call to a computer use tool. See the23369    [computer use guide](/api/docs/guides/tools-computer-use) for more information.2337023371    - `id: string`2337223373      The unique ID of the computer call.2337423375    - `call_id: string`2337623377      An identifier used when responding to the tool call with output.2337823379    - `pending_safety_checks: array of object { id, code, message }`2338023381      The pending safety checks for the computer call.2338223383      - `id: string`2338423385        The ID of the pending safety check.2338623387      - `code: optional string or null`2338823389        The type of the pending safety check.2339023391      - `message: optional string or null`2339223393        Details about the pending safety check.2339423395    - `status: "in_progress" or "completed" or "incomplete"`2339623397      The status of the item. One of `in_progress`, `completed`, or23398      `incomplete`. Populated when items are returned via API.2339923400      - `"in_progress"`2340123402      - `"completed"`2340323404      - `"incomplete"`2340523406    - `type: "computer_call"`2340723408      The type of the computer call. Always `computer_call`.2340923410      - `"computer_call"`2341123412    - `action: optional ComputerAction`2341323414      A click action.2341523416      - `Click object { button, type, x, 2 more }`2341723418        A click action.2341923420        - `button: "left" or "right" or "wheel" or 2 more`2342123422          Indicates which mouse button was pressed during the click. One of `left`, `right`, `wheel`, `back`, or `forward`.2342323424          - `"left"`2342523426          - `"right"`2342723428          - `"wheel"`2342923430          - `"back"`2343123432          - `"forward"`2343323434        - `type: "click"`2343523436          Specifies the event type. For a click action, this property is always `click`.2343723438          - `"click"`2343923440        - `x: number`2344123442          The x-coordinate where the click occurred.2344323444        - `y: number`2344523446          The y-coordinate where the click occurred.2344723448        - `keys: optional array of string or null`2344923450          The keys being held while clicking.2345123452      - `DoubleClick object { keys, type, x, y }`2345323454        A double click action.2345523456        - `keys: array of string or null`2345723458          The keys being held while double-clicking.2345923460        - `type: "double_click"`2346123462          Specifies the event type. For a double click action, this property is always set to `double_click`.2346323464          - `"double_click"`2346523466        - `x: number`2346723468          The x-coordinate where the double click occurred.2346923470        - `y: number`2347123472          The y-coordinate where the double click occurred.2347323474      - `Drag object { path, type, keys }`2347523476        A drag action.2347723478        - `path: array of object { x, y }`2347923480          An array of coordinates representing the path of the drag action. Coordinates will appear as an array of objects, eg2348123482          ```23483          [23484            { x: 100, y: 200 },23485            { x: 200, y: 300 }23486          ]23487          ```2348823489          - `x: number`2349023491            The x-coordinate.2349223493          - `y: number`2349423495            The y-coordinate.2349623497        - `type: "drag"`2349823499          Specifies the event type. For a drag action, this property is always set to `drag`.2350023501          - `"drag"`2350223503        - `keys: optional array of string or null`2350423505          The keys being held while dragging the mouse.2350623507      - `Keypress object { keys, type }`2350823509        A collection of keypresses the model would like to perform.2351023511        - `keys: array of string`2351223513          The combination of keys the model is requesting to be pressed. This is an array of strings, each representing a key.2351423515        - `type: "keypress"`2351623517          Specifies the event type. For a keypress action, this property is always set to `keypress`.2351823519          - `"keypress"`2352023521      - `Move object { type, x, y, keys }`2352223523        A mouse move action.2352423525        - `type: "move"`2352623527          Specifies the event type. For a move action, this property is always set to `move`.2352823529          - `"move"`2353023531        - `x: number`2353223533          The x-coordinate to move to.2353423535        - `y: number`2353623537          The y-coordinate to move to.2353823539        - `keys: optional array of string or null`2354023541          The keys being held while moving the mouse.2354223543      - `Screenshot object { type }`2354423545        A screenshot action.2354623547        - `type: "screenshot"`2354823549          Specifies the event type. For a screenshot action, this property is always set to `screenshot`.2355023551          - `"screenshot"`2355223553      - `Scroll object { scroll_x, scroll_y, type, 3 more }`2355423555        A scroll action.2355623557        - `scroll_x: number`2355823559          The horizontal scroll distance.2356023561        - `scroll_y: number`2356223563          The vertical scroll distance.2356423565        - `type: "scroll"`2356623567          Specifies the event type. For a scroll action, this property is always set to `scroll`.2356823569          - `"scroll"`2357023571        - `x: number`2357223573          The x-coordinate where the scroll occurred.2357423575        - `y: number`2357623577          The y-coordinate where the scroll occurred.2357823579        - `keys: optional array of string or null`2358023581          The keys being held while scrolling.2358223583      - `Type object { text, type }`2358423585        An action to type in text.2358623587        - `text: string`2358823589          The text to type.2359023591        - `type: "type"`2359223593          Specifies the event type. For a type action, this property is always set to `type`.2359423595          - `"type"`2359623597      - `Wait object { type }`2359823599        A wait action.2360023601        - `type: "wait"`2360223603          Specifies the event type. For a wait action, this property is always set to `wait`.2360423605          - `"wait"`2360623607    - `actions: optional ComputerActionList`2360823609      Flattened batched actions for `computer_use`. Each action includes an23610      `type` discriminator and action-specific fields.2361123612      - `Click object { button, type, x, 2 more }`2361323614        A click action.2361523616      - `DoubleClick object { keys, type, x, y }`2361723618        A double click action.2361923620      - `Drag object { path, type, keys }`2362123622        A drag action.2362323624      - `Keypress object { keys, type }`2362523626        A collection of keypresses the model would like to perform.2362723628      - `Move object { type, x, y, keys }`2362923630        A mouse move action.2363123632      - `Screenshot object { type }`2363323634        A screenshot action.2363523636      - `Scroll object { scroll_x, scroll_y, type, 3 more }`2363723638        A scroll action.2363923640      - `Type object { text, type }`2364123642        An action to type in text.2364323644      - `Wait object { type }`2364523646        A wait action.2364723648  - `ComputerCallOutput object { id, call_id, output, 4 more }`2364923650    - `id: string`2365123652      The unique ID of the computer call tool output.2365323654    - `call_id: string`2365523656      The ID of the computer tool call that produced the output.2365723658    - `output: ResponseComputerToolCallOutputScreenshot`2365923660      A computer screenshot image used with the computer use tool.2366123662      - `type: "computer_screenshot"`2366323664        Specifies the event type. For a computer screenshot, this property is23665        always set to `computer_screenshot`.2366623667        - `"computer_screenshot"`2366823669      - `file_id: optional string`2367023671        The identifier of an uploaded file that contains the screenshot.2367223673      - `image_url: optional string`2367423675        The URL of the screenshot image.2367623677    - `status: "completed" or "incomplete" or "failed" or "in_progress"`2367823679      The status of the message input. One of `in_progress`, `completed`, or23680      `incomplete`. Populated when input items are returned via API.2368123682      - `"completed"`2368323684      - `"incomplete"`2368523686      - `"failed"`2368723688      - `"in_progress"`2368923690    - `type: "computer_call_output"`2369123692      The type of the computer tool call output. Always `computer_call_output`.2369323694      - `"computer_call_output"`2369523696    - `acknowledged_safety_checks: optional array of object { id, code, message }`2369723698      The safety checks reported by the API that have been acknowledged by the23699      developer.2370023701      - `id: string`2370223703        The ID of the pending safety check.2370423705      - `code: optional string or null`2370623707        The type of the pending safety check.2370823709      - `message: optional string or null`2371023711        Details about the pending safety check.2371223713    - `created_by: optional string`2371423715      The identifier of the actor that created the item.2371623717  - `ToolSearchCall object { id, arguments, call_id, 4 more }`2371823719    - `id: string`2372023721      The unique ID of the tool search call item.2372223723    - `arguments: unknown`2372423725      Arguments used for the tool search call.2372623727    - `call_id: string or null`2372823729      The unique ID of the tool search call generated by the model.2373023731    - `execution: "server" or "client"`2373223733      Whether tool search was executed by the server or by the client.2373423735      - `"server"`2373623737      - `"client"`2373823739    - `status: "in_progress" or "completed" or "incomplete"`2374023741      The status of the tool search call item that was recorded.2374223743      - `"in_progress"`2374423745      - `"completed"`2374623747      - `"incomplete"`2374823749    - `type: "tool_search_call"`2375023751      The type of the item. Always `tool_search_call`.2375223753      - `"tool_search_call"`2375423755    - `created_by: optional string`2375623757      The identifier of the actor that created the item.2375823759  - `ToolSearchOutput object { id, call_id, execution, 4 more }`2376023761    - `id: string`2376223763      The unique ID of the tool search output item.2376423765    - `call_id: string or null`2376623767      The unique ID of the tool search call generated by the model.2376823769    - `execution: "server" or "client"`2377023771      Whether tool search was executed by the server or by the client.2377223773      - `"server"`2377423775      - `"client"`2377623777    - `status: "in_progress" or "completed" or "incomplete"`2377823779      The status of the tool search output item that was recorded.2378023781      - `"in_progress"`2378223783      - `"completed"`2378423785      - `"incomplete"`2378623787    - `tools: array of object { name, parameters, strict, 6 more }  or object { type, vector_store_ids, filters, 2 more }  or object { type }  or 13 more`2378823789      The loaded tool definitions returned by tool search.2379023791      - `Function object { name, parameters, strict, 6 more }`2379223793        Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).2379423795        - `name: string`2379623797          The name of the function to call.2379823799        - `parameters: map[unknown] or null`2380023801          A JSON schema object describing the parameters of the function.2380223803        - `strict: boolean or null`2380423805          Whether strict parameter validation is enforced for this function tool.2380623807        - `type: "function"`2380823809          The type of the function tool. Always `function`.2381023811          - `"function"`2381223813        - `allowed_callers: optional array of "direct" or "programmatic" or null`2381423815          The tool invocation context(s).2381623817          - `"direct"`2381823819          - `"programmatic"`2382023821        - `async: optional boolean`2382223823        - `defer_loading: optional boolean`2382423825          Whether this function is deferred and loaded via tool search.2382623827        - `description: optional string or null`2382823829          A description of the function. Used by the model to determine whether or not to call the function.2383023831        - `output_schema: optional map[unknown] or null`2383223833          A JSON schema object describing the JSON value encoded in string outputs for this function.2383423835      - `FileSearch object { type, vector_store_ids, filters, 2 more }`2383623837        A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).2383823839        - `type: "file_search"`2384023841          The type of the file search tool. Always `file_search`.2384223843          - `"file_search"`2384423845        - `vector_store_ids: array of string`2384623847          The IDs of the vector stores to search.2384823849        - `filters: optional ComparisonFilter or CompoundFilter or null`2385023851          A filter to apply.2385223853          - `ComparisonFilter object { key, type, value }`2385423855            A filter used to compare a specified attribute key to a given value using a defined comparison operation.2385623857            - `key: string`2385823859              The key to compare against the value.2386023861            - `type: "eq" or "ne" or "gt" or 5 more`2386223863              Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`, `in`, `nin`.2386423865              - `eq`: equals23866              - `ne`: not equal23867              - `gt`: greater than23868              - `gte`: greater than or equal23869              - `lt`: less than23870              - `lte`: less than or equal23871              - `in`: in23872              - `nin`: not in2387323874              - `"eq"`2387523876              - `"ne"`2387723878              - `"gt"`2387923880              - `"gte"`2388123882              - `"lt"`2388323884              - `"lte"`2388523886              - `"in"`2388723888              - `"nin"`2388923890            - `value: string or number or boolean or array of string or number`2389123892              The value to compare against the attribute key; supports string, number, or boolean types.2389323894              - `string`2389523896              - `number`2389723898              - `boolean`2389923900              - `array of string or number`2390123902                - `string`2390323904                - `number`2390523906          - `CompoundFilter object { filters, type }`2390723908            Combine multiple filters using `and` or `or`.2390923910            - `filters: array of ComparisonFilter or unknown`2391123912              Array of filters to combine. Items can be `ComparisonFilter` or `CompoundFilter`.2391323914              - `ComparisonFilter object { key, type, value }`2391523916                A filter used to compare a specified attribute key to a given value using a defined comparison operation.2391723918              - `unknown`2391923920            - `type: "and" or "or"`2392123922              Type of operation: `and` or `or`.2392323924              - `"and"`2392523926              - `"or"`2392723928        - `max_num_results: optional number`2392923930          The maximum number of results to return. This number should be between 1 and 50 inclusive.2393123932        - `ranking_options: optional object { hybrid_search, ranker, score_threshold }`2393323934          Ranking options for search.2393523936          - `hybrid_search: optional object { embedding_weight, text_weight }`2393723938            Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled.2393923940            - `embedding_weight: number`2394123942              The weight of the embedding in the reciprocal ranking fusion.2394323944            - `text_weight: number`2394523946              The weight of the text in the reciprocal ranking fusion.2394723948          - `ranker: optional "auto" or "default-2024-11-15"`2394923950            The ranker to use for the file search.2395123952            - `"auto"`2395323954            - `"default-2024-11-15"`2395523956          - `score_threshold: optional number`2395723958            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.2395923960      - `Computer object { type }`2396123962        A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).2396323964        - `type: "computer"`2396523966          The type of the computer tool. Always `computer`.2396723968          - `"computer"`2396923970      - `ComputerUsePreview object { display_height, display_width, environment, type }`2397123972        A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).2397323974        - `display_height: number`2397523976          The height of the computer display.2397723978        - `display_width: number`2397923980          The width of the computer display.2398123982        - `environment: "windows" or "mac" or "linux" or 2 more`2398323984          The type of computer environment to control.2398523986          - `"windows"`2398723988          - `"mac"`2398923990          - `"linux"`2399123992          - `"ubuntu"`2399323994          - `"browser"`2399523996        - `type: "computer_use_preview"`2399723998          The type of the computer use tool. Always `computer_use_preview`.2399924000          - `"computer_use_preview"`2400124002      - `WebSearch object { type, external_web_access, filters, 2 more }`2400324004        Search the Internet for sources related to the prompt. Learn more about the24005        [web search tool](/api/docs/guides/tools-web-search).2400624007        - `type: "web_search" or "web_search_2025_08_26"`2400824009          The type of the web search tool. One of `web_search` or `web_search_2025_08_26`.2401024011          - `"web_search"`2401224013          - `"web_search_2025_08_26"`2401424015        - `external_web_access: optional boolean`2401624017          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.2401824019        - `filters: optional object { allowed_domains }  or null`2402024021          Filters for the search.2402224023          - `allowed_domains: optional array of string or null`2402424025            Allowed domains for the search. If not provided, all domains are allowed.24026            Subdomains of the provided domains are allowed as well.2402724028            Example: `["pubmed.ncbi.nlm.nih.gov"]`2402924030        - `search_context_size: optional "low" or "medium" or "high"`2403124032          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.2403324034          - `"low"`2403524036          - `"medium"`2403724038          - `"high"`2403924040        - `user_location: optional object { city, country, region, 2 more }  or null`2404124042          The approximate location of the user.2404324044          - `city: optional string or null`2404524046            Free text input for the city of the user, e.g. `San Francisco`.2404724048          - `country: optional string or null`2404924050            The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.2405124052          - `region: optional string or null`2405324054            Free text input for the region of the user, e.g. `California`.2405524056          - `timezone: optional string or null`2405724058            The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.2405924060          - `type: optional "approximate"`2406124062            The type of location approximation. Always `approximate`.2406324064            - `"approximate"`2406524066      - `Mcp object { server_label, type, allowed_callers, 9 more }`2406724068        Give the model access to additional tools via remote Model Context Protocol24069        (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).2407024071        - `server_label: string`2407224073          A label for this MCP server, used to identify it in tool calls.2407424075        - `type: "mcp"`2407624077          The type of the MCP tool. Always `mcp`.2407824079          - `"mcp"`2408024081        - `allowed_callers: optional array of "direct" or "programmatic" or null`2408224083          The tool invocation context(s).2408424085          - `"direct"`2408624087          - `"programmatic"`2408824089        - `allowed_tools: optional array of string or object { read_only, tool_names }  or null`2409024091          List of allowed tool names or a filter object.2409224093          - `McpAllowedTools = array of string`2409424095            A string array of allowed tool names2409624097          - `McpToolFilter object { read_only, tool_names }`2409824099            A filter object to specify which tools are allowed.2410024101            - `read_only: optional boolean`2410224103              Indicates whether or not a tool modifies data or is read-only. If an24104              MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),24105              it will match this filter.2410624107            - `tool_names: optional array of string`2410824109              List of allowed tool names.2411024111        - `authorization: optional string`2411224113          An OAuth access token that can be used with a remote MCP server, either24114          with a custom MCP server URL or a service connector. Your application24115          must handle the OAuth authorization flow and provide the token here.2411624117        - `connector_id: optional "connector_dropbox" or "connector_gmail" or "connector_googlecalendar" or 5 more`2411824119          Identifier for service connectors, like those available in ChatGPT. One of24120          `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more24121          about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).2412224123          This field is deprecated for models released after September 1, 2026.24124          Use `server_url` to connect to a remote MCP server, or `tunnel_id` to24125          connect through a Secure MCP Tunnel.2412624127          Currently supported `connector_id` values are:2412824129          - Dropbox: `connector_dropbox`24130          - Gmail: `connector_gmail`24131          - Google Calendar: `connector_googlecalendar`24132          - Google Drive: `connector_googledrive`24133          - Microsoft Teams: `connector_microsoftteams`24134          - Outlook Calendar: `connector_outlookcalendar`24135          - Outlook Email: `connector_outlookemail`24136          - SharePoint: `connector_sharepoint`2413724138          - `"connector_dropbox"`2413924140          - `"connector_gmail"`2414124142          - `"connector_googlecalendar"`2414324144          - `"connector_googledrive"`2414524146          - `"connector_microsoftteams"`2414724148          - `"connector_outlookcalendar"`2414924150          - `"connector_outlookemail"`2415124152          - `"connector_sharepoint"`2415324154        - `defer_loading: optional boolean`2415524156          Whether this MCP tool is deferred and discovered via tool search.2415724158        - `headers: optional map[string] or null`2415924160          Optional HTTP headers to send to the MCP server. Use for authentication24161          or other purposes.2416224163        - `require_approval: optional object { always, never }  or "always" or "never" or null`2416424165          Specify which of the MCP server's tools require approval.2416624167          - `McpToolApprovalFilter object { always, never }`2416824169            Specify which of the MCP server's tools require approval. Can be24170            `always`, `never`, or a filter object associated with tools24171            that require approval.2417224173            - `always: optional object { read_only, tool_names }`2417424175              A filter object to specify which tools are allowed.2417624177              - `read_only: optional boolean`2417824179                Indicates whether or not a tool modifies data or is read-only. If an24180                MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),24181                it will match this filter.2418224183              - `tool_names: optional array of string`2418424185                List of allowed tool names.2418624187            - `never: optional object { read_only, tool_names }`2418824189              A filter object to specify which tools are allowed.2419024191              - `read_only: optional boolean`2419224193                Indicates whether or not a tool modifies data or is read-only. If an24194                MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),24195                it will match this filter.2419624197              - `tool_names: optional array of string`2419824199                List of allowed tool names.2420024201          - `McpToolApprovalSetting = "always" or "never"`2420224203            Specify a single approval policy for all tools. One of `always` or24204            `never`. When set to `always`, all tools will require approval. When24205            set to `never`, all tools will not require approval.2420624207            - `"always"`2420824209            - `"never"`2421024211        - `server_description: optional string`2421224213          Optional description of the MCP server, used to provide more context.2421424215        - `server_url: optional string`2421624217          The URL for the MCP server. One of `server_url`, `connector_id`, or24218          `tunnel_id` must be provided.2421924220        - `tunnel_id: optional string`2422124222          The Secure MCP Tunnel ID to use instead of a direct server URL. One of24223          `server_url`, `connector_id`, or `tunnel_id` must be provided.2422424225      - `CodeInterpreter object { container, type, allowed_callers }`2422624227        A tool that runs Python code to help generate a response to a prompt.2422824229        - `container: string or object { type, file_ids, memory_limit, network_policy }`2423024231          The code interpreter container. Can be a container ID or an object that24232          specifies uploaded file IDs to make available to your code, along with an24233          optional `memory_limit` setting.2423424235          - `string`2423624237            The container ID.2423824239          - `CodeInterpreterToolAuto object { type, file_ids, memory_limit, network_policy }`2424024241            Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.2424224243            - `type: "auto"`2424424245              Always `auto`.2424624247              - `"auto"`2424824249            - `file_ids: optional array of string`2425024251              An optional list of uploaded files to make available to your code.2425224253            - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`2425424255              The memory limit for the code interpreter container.2425624257              - `"1g"`2425824259              - `"4g"`2426024261              - `"16g"`2426224263              - `"64g"`2426424265            - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`2426624267              Network access policy for the container.2426824269              - `ContainerNetworkPolicyDisabled object { type }`2427024271                - `type: "disabled"`2427224273                  Disable outbound network access. Always `disabled`.2427424275                  - `"disabled"`2427624277              - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`2427824279                - `allowed_domains: array of string`2428024281                  A list of allowed domains when type is `allowlist`.2428224283                - `type: "allowlist"`2428424285                  Allow outbound network access only to specified domains. Always `allowlist`.2428624287                  - `"allowlist"`2428824289                - `domain_secrets: optional array of ContainerNetworkPolicyDomainSecret`2429024291                  Optional domain-scoped secrets for allowlisted domains.2429224293                  - `domain: string`2429424295                    The domain associated with the secret.2429624297                  - `name: string`2429824299                    The name of the secret to inject for the domain.2430024301                  - `value: string`2430224303                    The secret value to inject for the domain.2430424305        - `type: "code_interpreter"`2430624307          The type of the code interpreter tool. Always `code_interpreter`.2430824309          - `"code_interpreter"`2431024311        - `allowed_callers: optional array of "direct" or "programmatic" or null`2431224313          The tool invocation context(s).2431424315          - `"direct"`2431624317          - `"programmatic"`2431824319      - `ProgrammaticToolCalling object { type }`2432024321        - `type: "programmatic_tool_calling"`2432224323          The type of the tool. Always `programmatic_tool_calling`.2432424325          - `"programmatic_tool_calling"`2432624327      - `ImageGeneration object { type, action, background, 9 more }`2432824329        A tool that generates images using the GPT image models.2433024331        - `type: "image_generation"`2433224333          The type of the image generation tool. Always `image_generation`.2433424335          - `"image_generation"`2433624337        - `action: optional "generate" or "edit" or "auto"`2433824339          Whether to generate a new image or edit an existing image. Default: `auto`.2434024341          - `"generate"`2434224343          - `"edit"`2434424345          - `"auto"`2434624347        - `background: optional "transparent" or "opaque" or "auto"`2434824349          Set the background of the generated image. One of `transparent`, `opaque`,24350          or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including24351          their `2026-09-08` snapshots, support `opaque` and `transparent`24352          backgrounds. Transparent backgrounds are available for supported GPT Image24353          models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in24354          preview. When using `transparent`, set the output format to `png` or `webp`.24355          Default: `auto`.2435624357          - `"transparent"`2435824359          - `"opaque"`2436024361          - `"auto"`2436224363        - `input_fidelity: optional "high" or "low" or null`2436424365          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`.2436624367          - `"high"`2436824369          - `"low"`2437024371        - `input_image_mask: optional object { file_id, image_url }`2437224373          Optional mask for inpainting. Contains `image_url`24374          (string, optional) and `file_id` (string, optional).2437524376          - `file_id: optional string`2437724378            File ID for the mask image.2437924380          - `image_url: optional string`2438124382            Base64-encoded mask image.2438324384        - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2438524386          The image generation model to use. One of `gpt-image-1`,24387          `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,24388          `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,24389          `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,24390          `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:24391          `gpt-image-1`.2439224393          - `string`2439424395          - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2439624397            The image generation model to use. One of `gpt-image-1`,24398            `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,24399            `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,24400            `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,24401            `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:24402            `gpt-image-1`.2440324404            - `"gpt-image-1"`2440524406            - `"gpt-image-1-mini"`2440724408            - `"gpt-image-1.5"`2440924410            - `"gpt-image-2"`2441124412            - `"gpt-image-2-2026-04-21"`2441324414            - `"gpt-image-2.5-sunburst"`2441524416            - `"gpt-image-2.5-sunburst-2026-09-08"`2441724418            - `"gpt-image-2.5-flare"`2441924420            - `"gpt-image-2.5-flare-2026-09-08"`2442124422        - `moderation: optional "auto" or "low"`2442324424          Moderation level for the generated image. Default: `auto`.2442524426          - `"auto"`2442724428          - `"low"`2442924430        - `output_compression: optional number`2443124432          Compression level for the output image. Default: 100.2443324434        - `output_format: optional "png" or "webp" or "jpeg"`2443524436          The output format of the generated image. One of `png`, `webp`, or24437          `jpeg`. Default: `png`.2443824439          - `"png"`2444024441          - `"webp"`2444224443          - `"jpeg"`2444424445        - `partial_images: optional number`2444624447          Number of partial images to generate in streaming mode, from 0 (default value) to 3.2444824449        - `quality: optional "low" or "medium" or "high" or 3 more`2445024451          The quality of the generated image. The GPT image models support `low`,24452          `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,24453          including their `2026-09-08` snapshots, also support `xhigh` and `max`.24454          Default: `auto`.2445524456          - `"low"`2445724458          - `"medium"`2445924460          - `"high"`2446124462          - `"xhigh"`2446324464          - `"max"`2446524466          - `"auto"`2446724468        - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`2446924470          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`.2447124472          - `string`2447324474          - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`2447524476            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`.2447724478            - `"1024x1024"`2447924480            - `"1024x1536"`2448124482            - `"1536x1024"`2448324484            - `"auto"`2448524486      - `LocalShell object { type }`2448724488        A tool that allows the model to execute shell commands in a local environment.2448924490        - `type: "local_shell"`2449124492          The type of the local shell tool. Always `local_shell`.2449324494          - `"local_shell"`2449524496      - `Shell object { type, allowed_callers, environment }`2449724498        A tool that allows the model to execute shell commands.2449924500        - `type: "shell"`2450124502          The type of the shell tool. Always `shell`.2450324504          - `"shell"`2450524506        - `allowed_callers: optional array of "direct" or "programmatic" or null`2450724508          The tool invocation context(s).2450924510          - `"direct"`2451124512          - `"programmatic"`2451324514        - `environment: optional ContainerAuto or LocalEnvironment or ContainerReference or null`2451524516          - `ContainerAuto object { type, file_ids, memory_limit, 2 more }`2451724518            - `type: "container_auto"`2451924520              Automatically creates a container for this request2452124522              - `"container_auto"`2452324524            - `file_ids: optional array of string`2452524526              An optional list of uploaded files to make available to your code.2452724528            - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`2452924530              The memory limit for the container.2453124532              - `"1g"`2453324534              - `"4g"`2453524536              - `"16g"`2453724538              - `"64g"`2453924540            - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`2454124542              Network access policy for the container.2454324544              - `ContainerNetworkPolicyDisabled object { type }`2454524546              - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`2454724548            - `skills: optional array of SkillReference or InlineSkill`2454924550              An optional list of skills referenced by id or inline data.2455124552              - `SkillReference object { skill_id, type, version }`2455324554                - `skill_id: string`2455524556                  The ID of the referenced skill.2455724558                - `type: "skill_reference"`2455924560                  References a skill created with the /v1/skills endpoint.2456124562                  - `"skill_reference"`2456324564                - `version: optional string`2456524566                  Optional skill version. Use a positive integer or 'latest'. Omit for default.2456724568              - `InlineSkill object { description, name, source, type }`2456924570                - `description: string`2457124572                  The description of the skill.2457324574                - `name: string`2457524576                  The name of the skill.2457724578                - `source: InlineSkillSource`2457924580                  Inline skill payload2458124582                  - `data: string`2458324584                    Base64-encoded skill zip bundle.2458524586                  - `media_type: "application/zip"`2458724588                    The media type of the inline skill payload. Must be `application/zip`.2458924590                    - `"application/zip"`2459124592                  - `type: "base64"`2459324594                    The type of the inline skill source. Must be `base64`.2459524596                    - `"base64"`2459724598                - `type: "inline"`2459924600                  Defines an inline skill for this request.2460124602                  - `"inline"`2460324604          - `LocalEnvironment object { type, skills }`2460524606            - `type: "local"`2460724608              Use a local computer environment.2460924610              - `"local"`2461124612            - `skills: optional array of LocalSkill`2461324614              An optional list of skills.2461524616              - `description: string`2461724618                The description of the skill.2461924620              - `name: string`2462124622                The name of the skill.2462324624              - `path: string`2462524626                The path to the directory containing the skill.2462724628          - `ContainerReference object { container_id, type }`2462924630            - `container_id: string`2463124632              The ID of the referenced container.2463324634            - `type: "container_reference"`2463524636              References a container created with the /v1/containers endpoint2463724638              - `"container_reference"`2463924640      - `Custom object { name, type, allowed_callers, 4 more }`2464124642        A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)2464324644        - `name: string`2464524646          The name of the custom tool, used to identify it in tool calls.2464724648        - `type: "custom"`2464924650          The type of the custom tool. Always `custom`.2465124652          - `"custom"`2465324654        - `allowed_callers: optional array of "direct" or "programmatic" or null`2465524656          The tool invocation context(s).2465724658          - `"direct"`2465924660          - `"programmatic"`2466124662        - `async: optional boolean`2466324664          Whether the tool response can be returned asynchronously versus immediately returned on next response creation.2466524666        - `defer_loading: optional boolean`2466724668          Whether this tool should be deferred and discovered via tool search.2466924670        - `description: optional string`2467124672          Optional description of the custom tool, used to provide more context.2467324674        - `format: optional CustomToolInputFormat`2467524676          The input format for the custom tool. Default is unconstrained text.2467724678          - `Text object { type }`2467924680            Unconstrained free-form text.2468124682            - `type: "text"`2468324684              Unconstrained text format. Always `text`.2468524686              - `"text"`2468724688          - `Grammar object { definition, syntax, type }`2468924690            A grammar defined by the user.2469124692            - `definition: string`2469324694              The grammar definition.2469524696            - `syntax: "lark" or "regex"`2469724698              The syntax of the grammar definition. One of `lark` or `regex`.2469924700              - `"lark"`2470124702              - `"regex"`2470324704            - `type: "grammar"`2470524706              Grammar format. Always `grammar`.2470724708              - `"grammar"`2470924710      - `Namespace object { description, name, tools, type }`2471124712        Groups function/custom tools under a shared namespace.2471324714        - `description: string`2471524716          A description of the namespace shown to the model.2471724718        - `name: string`2471924720          The namespace name used in tool calls (for example, `crm`).2472124722        - `tools: array of object { name, type, allowed_callers, 6 more }  or object { name, type, allowed_callers, 4 more }`2472324724          The function/custom tools available inside this namespace.2472524726          - `Function object { name, type, allowed_callers, 6 more }`2472724728            - `name: string`2472924730            - `type: "function"`2473124732              - `"function"`2473324734            - `allowed_callers: optional array of "direct" or "programmatic" or null`2473524736              The tool invocation context(s).2473724738              - `"direct"`2473924740              - `"programmatic"`2474124742            - `async: optional boolean`2474324744              Whether the tool response can be returned asynchronously versus immediately returned on next response creation.2474524746            - `defer_loading: optional boolean`2474724748              Whether this function should be deferred and discovered via tool search.2474924750            - `description: optional string or null`2475124752            - `output_schema: optional map[unknown] or null`2475324754              A JSON Schema describing the JSON value encoded in string outputs for this function tool. This does not describe content-array outputs.2475524756            - `parameters: optional unknown or null`2475724758            - `strict: optional boolean or null`2475924760              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.2476124762          - `Custom object { name, type, allowed_callers, 4 more }`2476324764            A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)2476524766            - `name: string`2476724768              The name of the custom tool, used to identify it in tool calls.2476924770            - `type: "custom"`2477124772              The type of the custom tool. Always `custom`.2477324774              - `"custom"`2477524776            - `allowed_callers: optional array of "direct" or "programmatic" or null`2477724778              The tool invocation context(s).2477924780              - `"direct"`2478124782              - `"programmatic"`2478324784            - `async: optional boolean`2478524786              Whether the tool response can be returned asynchronously versus immediately returned on next response creation.2478724788            - `defer_loading: optional boolean`2478924790              Whether this tool should be deferred and discovered via tool search.2479124792            - `description: optional string`2479324794              Optional description of the custom tool, used to provide more context.2479524796            - `format: optional CustomToolInputFormat`2479724798              The input format for the custom tool. Default is unconstrained text.2479924800        - `type: "namespace"`2480124802          The type of the tool. Always `namespace`.2480324804          - `"namespace"`2480524806      - `ToolSearch object { type, description, execution, parameters }`2480724808        Hosted or BYOT tool search configuration for deferred tools.2480924810        - `type: "tool_search"`2481124812          The type of the tool. Always `tool_search`.2481324814          - `"tool_search"`2481524816        - `description: optional string or null`2481724818          Description shown to the model for a client-executed tool search tool.2481924820        - `execution: optional "server" or "client"`2482124822          Whether tool search is executed by the server or by the client.2482324824          - `"server"`2482524826          - `"client"`2482724828        - `parameters: optional unknown or null`2482924830          Parameter schema for a client-executed tool search tool.2483124832      - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`2483324834        This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](/api/docs/guides/tools-web-search).2483524836        - `type: "web_search_preview" or "web_search_preview_2025_03_11"`2483724838          The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.2483924840          - `"web_search_preview"`2484124842          - `"web_search_preview_2025_03_11"`2484324844        - `search_content_types: optional array of "text" or "image"`2484524846          - `"text"`2484724848          - `"image"`2484924850        - `search_context_size: optional "low" or "medium" or "high"`2485124852          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.2485324854          - `"low"`2485524856          - `"medium"`2485724858          - `"high"`2485924860        - `user_location: optional object { type, city, country, 2 more }  or null`2486124862          The user's location.2486324864          - `type: "approximate"`2486524866            The type of location approximation. Always `approximate`.2486724868            - `"approximate"`2486924870          - `city: optional string or null`2487124872            Free text input for the city of the user, e.g. `San Francisco`.2487324874          - `country: optional string or null`2487524876            The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.2487724878          - `region: optional string or null`2487924880            Free text input for the region of the user, e.g. `California`.2488124882          - `timezone: optional string or null`2488324884            The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.2488524886      - `ApplyPatch object { type, allowed_callers }`2488724888        Allows the assistant to create, delete, or update files using unified diffs.2488924890        - `type: "apply_patch"`2489124892          The type of the tool. Always `apply_patch`.2489324894          - `"apply_patch"`2489524896        - `allowed_callers: optional array of "direct" or "programmatic" or null`2489724898          The tool invocation context(s).2489924900          - `"direct"`2490124902          - `"programmatic"`2490324904    - `type: "tool_search_output"`2490524906      The type of the item. Always `tool_search_output`.2490724908      - `"tool_search_output"`2490924910    - `created_by: optional string`2491124912      The identifier of the actor that created the item.2491324914  - `AdditionalTools object { id, role, tools, type }`2491524916    - `id: string`2491724918      The unique ID of the additional tools item.2491924920    - `role: "unknown" or "user" or "assistant" or 5 more`2492124922      The role that provided the additional tools.2492324924      - `"unknown"`2492524926      - `"user"`2492724928      - `"assistant"`2492924930      - `"system"`2493124932      - `"critic"`2493324934      - `"discriminator"`2493524936      - `"developer"`2493724938      - `"tool"`2493924940    - `tools: array of object { name, parameters, strict, 6 more }  or object { type, vector_store_ids, filters, 2 more }  or object { type }  or 13 more`2494124942      The additional tool definitions made available at this item.2494324944      - `Function object { name, parameters, strict, 6 more }`2494524946        Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).2494724948        - `name: string`2494924950          The name of the function to call.2495124952        - `parameters: map[unknown] or null`2495324954          A JSON schema object describing the parameters of the function.2495524956        - `strict: boolean or null`2495724958          Whether strict parameter validation is enforced for this function tool.2495924960        - `type: "function"`2496124962          The type of the function tool. Always `function`.2496324964          - `"function"`2496524966        - `allowed_callers: optional array of "direct" or "programmatic" or null`2496724968          The tool invocation context(s).2496924970          - `"direct"`2497124972          - `"programmatic"`2497324974        - `async: optional boolean`2497524976        - `defer_loading: optional boolean`2497724978          Whether this function is deferred and loaded via tool search.2497924980        - `description: optional string or null`2498124982          A description of the function. Used by the model to determine whether or not to call the function.2498324984        - `output_schema: optional map[unknown] or null`2498524986          A JSON schema object describing the JSON value encoded in string outputs for this function.2498724988      - `FileSearch object { type, vector_store_ids, filters, 2 more }`2498924990        A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).2499124992        - `type: "file_search"`2499324994          The type of the file search tool. Always `file_search`.2499524996          - `"file_search"`2499724998        - `vector_store_ids: array of string`2499925000          The IDs of the vector stores to search.2500125002        - `filters: optional ComparisonFilter or CompoundFilter or null`2500325004          A filter to apply.2500525006          - `ComparisonFilter object { key, type, value }`2500725008            A filter used to compare a specified attribute key to a given value using a defined comparison operation.2500925010          - `CompoundFilter object { filters, type }`2501125012            Combine multiple filters using `and` or `or`.2501325014        - `max_num_results: optional number`2501525016          The maximum number of results to return. This number should be between 1 and 50 inclusive.2501725018        - `ranking_options: optional object { hybrid_search, ranker, score_threshold }`2501925020          Ranking options for search.2502125022          - `hybrid_search: optional object { embedding_weight, text_weight }`2502325024            Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled.2502525026            - `embedding_weight: number`2502725028              The weight of the embedding in the reciprocal ranking fusion.2502925030            - `text_weight: number`2503125032              The weight of the text in the reciprocal ranking fusion.2503325034          - `ranker: optional "auto" or "default-2024-11-15"`2503525036            The ranker to use for the file search.2503725038            - `"auto"`2503925040            - `"default-2024-11-15"`2504125042          - `score_threshold: optional number`2504325044            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.2504525046      - `Computer object { type }`2504725048        A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).2504925050        - `type: "computer"`2505125052          The type of the computer tool. Always `computer`.2505325054          - `"computer"`2505525056      - `ComputerUsePreview object { display_height, display_width, environment, type }`2505725058        A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).2505925060        - `display_height: number`2506125062          The height of the computer display.2506325064        - `display_width: number`2506525066          The width of the computer display.2506725068        - `environment: "windows" or "mac" or "linux" or 2 more`2506925070          The type of computer environment to control.2507125072          - `"windows"`2507325074          - `"mac"`2507525076          - `"linux"`2507725078          - `"ubuntu"`2507925080          - `"browser"`2508125082        - `type: "computer_use_preview"`2508325084          The type of the computer use tool. Always `computer_use_preview`.2508525086          - `"computer_use_preview"`2508725088      - `WebSearch object { type, external_web_access, filters, 2 more }`2508925090        Search the Internet for sources related to the prompt. Learn more about the25091        [web search tool](/api/docs/guides/tools-web-search).2509225093        - `type: "web_search" or "web_search_2025_08_26"`2509425095          The type of the web search tool. One of `web_search` or `web_search_2025_08_26`.2509625097          - `"web_search"`2509825099          - `"web_search_2025_08_26"`2510025101        - `external_web_access: optional boolean`2510225103          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.2510425105        - `filters: optional object { allowed_domains }  or null`2510625107          Filters for the search.2510825109          - `allowed_domains: optional array of string or null`2511025111            Allowed domains for the search. If not provided, all domains are allowed.25112            Subdomains of the provided domains are allowed as well.2511325114            Example: `["pubmed.ncbi.nlm.nih.gov"]`2511525116        - `search_context_size: optional "low" or "medium" or "high"`2511725118          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.2511925120          - `"low"`2512125122          - `"medium"`2512325124          - `"high"`2512525126        - `user_location: optional object { city, country, region, 2 more }  or null`2512725128          The approximate location of the user.2512925130          - `city: optional string or null`2513125132            Free text input for the city of the user, e.g. `San Francisco`.2513325134          - `country: optional string or null`2513525136            The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.2513725138          - `region: optional string or null`2513925140            Free text input for the region of the user, e.g. `California`.2514125142          - `timezone: optional string or null`2514325144            The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.2514525146          - `type: optional "approximate"`2514725148            The type of location approximation. Always `approximate`.2514925150            - `"approximate"`2515125152      - `Mcp object { server_label, type, allowed_callers, 9 more }`2515325154        Give the model access to additional tools via remote Model Context Protocol25155        (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).2515625157        - `server_label: string`2515825159          A label for this MCP server, used to identify it in tool calls.2516025161        - `type: "mcp"`2516225163          The type of the MCP tool. Always `mcp`.2516425165          - `"mcp"`2516625167        - `allowed_callers: optional array of "direct" or "programmatic" or null`2516825169          The tool invocation context(s).2517025171          - `"direct"`2517225173          - `"programmatic"`2517425175        - `allowed_tools: optional array of string or object { read_only, tool_names }  or null`2517625177          List of allowed tool names or a filter object.2517825179          - `McpAllowedTools = array of string`2518025181            A string array of allowed tool names2518225183          - `McpToolFilter object { read_only, tool_names }`2518425185            A filter object to specify which tools are allowed.2518625187            - `read_only: optional boolean`2518825189              Indicates whether or not a tool modifies data or is read-only. If an25190              MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),25191              it will match this filter.2519225193            - `tool_names: optional array of string`2519425195              List of allowed tool names.2519625197        - `authorization: optional string`2519825199          An OAuth access token that can be used with a remote MCP server, either25200          with a custom MCP server URL or a service connector. Your application25201          must handle the OAuth authorization flow and provide the token here.2520225203        - `connector_id: optional "connector_dropbox" or "connector_gmail" or "connector_googlecalendar" or 5 more`2520425205          Identifier for service connectors, like those available in ChatGPT. One of25206          `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more25207          about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).2520825209          This field is deprecated for models released after September 1, 2026.25210          Use `server_url` to connect to a remote MCP server, or `tunnel_id` to25211          connect through a Secure MCP Tunnel.2521225213          Currently supported `connector_id` values are:2521425215          - Dropbox: `connector_dropbox`25216          - Gmail: `connector_gmail`25217          - Google Calendar: `connector_googlecalendar`25218          - Google Drive: `connector_googledrive`25219          - Microsoft Teams: `connector_microsoftteams`25220          - Outlook Calendar: `connector_outlookcalendar`25221          - Outlook Email: `connector_outlookemail`25222          - SharePoint: `connector_sharepoint`2522325224          - `"connector_dropbox"`2522525226          - `"connector_gmail"`2522725228          - `"connector_googlecalendar"`2522925230          - `"connector_googledrive"`2523125232          - `"connector_microsoftteams"`2523325234          - `"connector_outlookcalendar"`2523525236          - `"connector_outlookemail"`2523725238          - `"connector_sharepoint"`2523925240        - `defer_loading: optional boolean`2524125242          Whether this MCP tool is deferred and discovered via tool search.2524325244        - `headers: optional map[string] or null`2524525246          Optional HTTP headers to send to the MCP server. Use for authentication25247          or other purposes.2524825249        - `require_approval: optional object { always, never }  or "always" or "never" or null`2525025251          Specify which of the MCP server's tools require approval.2525225253          - `McpToolApprovalFilter object { always, never }`2525425255            Specify which of the MCP server's tools require approval. Can be25256            `always`, `never`, or a filter object associated with tools25257            that require approval.2525825259            - `always: optional object { read_only, tool_names }`2526025261              A filter object to specify which tools are allowed.2526225263              - `read_only: optional boolean`2526425265                Indicates whether or not a tool modifies data or is read-only. If an25266                MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),25267                it will match this filter.2526825269              - `tool_names: optional array of string`2527025271                List of allowed tool names.2527225273            - `never: optional object { read_only, tool_names }`2527425275              A filter object to specify which tools are allowed.2527625277              - `read_only: optional boolean`2527825279                Indicates whether or not a tool modifies data or is read-only. If an25280                MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),25281                it will match this filter.2528225283              - `tool_names: optional array of string`2528425285                List of allowed tool names.2528625287          - `McpToolApprovalSetting = "always" or "never"`2528825289            Specify a single approval policy for all tools. One of `always` or25290            `never`. When set to `always`, all tools will require approval. When25291            set to `never`, all tools will not require approval.2529225293            - `"always"`2529425295            - `"never"`2529625297        - `server_description: optional string`2529825299          Optional description of the MCP server, used to provide more context.2530025301        - `server_url: optional string`2530225303          The URL for the MCP server. One of `server_url`, `connector_id`, or25304          `tunnel_id` must be provided.2530525306        - `tunnel_id: optional string`2530725308          The Secure MCP Tunnel ID to use instead of a direct server URL. One of25309          `server_url`, `connector_id`, or `tunnel_id` must be provided.2531025311      - `CodeInterpreter object { container, type, allowed_callers }`2531225313        A tool that runs Python code to help generate a response to a prompt.2531425315        - `container: string or object { type, file_ids, memory_limit, network_policy }`2531625317          The code interpreter container. Can be a container ID or an object that25318          specifies uploaded file IDs to make available to your code, along with an25319          optional `memory_limit` setting.2532025321          - `string`2532225323            The container ID.2532425325          - `CodeInterpreterToolAuto object { type, file_ids, memory_limit, network_policy }`2532625327            Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.2532825329            - `type: "auto"`2533025331              Always `auto`.2533225333              - `"auto"`2533425335            - `file_ids: optional array of string`2533625337              An optional list of uploaded files to make available to your code.2533825339            - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`2534025341              The memory limit for the code interpreter container.2534225343              - `"1g"`2534425345              - `"4g"`2534625347              - `"16g"`2534825349              - `"64g"`2535025351            - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`2535225353              Network access policy for the container.2535425355              - `ContainerNetworkPolicyDisabled object { type }`2535625357              - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`2535825359        - `type: "code_interpreter"`2536025361          The type of the code interpreter tool. Always `code_interpreter`.2536225363          - `"code_interpreter"`2536425365        - `allowed_callers: optional array of "direct" or "programmatic" or null`2536625367          The tool invocation context(s).2536825369          - `"direct"`2537025371          - `"programmatic"`2537225373      - `ProgrammaticToolCalling object { type }`2537425375        - `type: "programmatic_tool_calling"`2537625377          The type of the tool. Always `programmatic_tool_calling`.2537825379          - `"programmatic_tool_calling"`2538025381      - `ImageGeneration object { type, action, background, 9 more }`2538225383        A tool that generates images using the GPT image models.2538425385        - `type: "image_generation"`2538625387          The type of the image generation tool. Always `image_generation`.2538825389          - `"image_generation"`2539025391        - `action: optional "generate" or "edit" or "auto"`2539225393          Whether to generate a new image or edit an existing image. Default: `auto`.2539425395          - `"generate"`2539625397          - `"edit"`2539825399          - `"auto"`2540025401        - `background: optional "transparent" or "opaque" or "auto"`2540225403          Set the background of the generated image. One of `transparent`, `opaque`,25404          or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including25405          their `2026-09-08` snapshots, support `opaque` and `transparent`25406          backgrounds. Transparent backgrounds are available for supported GPT Image25407          models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in25408          preview. When using `transparent`, set the output format to `png` or `webp`.25409          Default: `auto`.2541025411          - `"transparent"`2541225413          - `"opaque"`2541425415          - `"auto"`2541625417        - `input_fidelity: optional "high" or "low" or null`2541825419          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`.2542025421          - `"high"`2542225423          - `"low"`2542425425        - `input_image_mask: optional object { file_id, image_url }`2542625427          Optional mask for inpainting. Contains `image_url`25428          (string, optional) and `file_id` (string, optional).2542925430          - `file_id: optional string`2543125432            File ID for the mask image.2543325434          - `image_url: optional string`2543525436            Base64-encoded mask image.2543725438        - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2543925440          The image generation model to use. One of `gpt-image-1`,25441          `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,25442          `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,25443          `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,25444          `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:25445          `gpt-image-1`.2544625447          - `string`2544825449          - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2545025451            The image generation model to use. One of `gpt-image-1`,25452            `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,25453            `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,25454            `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,25455            `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:25456            `gpt-image-1`.2545725458            - `"gpt-image-1"`2545925460            - `"gpt-image-1-mini"`2546125462            - `"gpt-image-1.5"`2546325464            - `"gpt-image-2"`2546525466            - `"gpt-image-2-2026-04-21"`2546725468            - `"gpt-image-2.5-sunburst"`2546925470            - `"gpt-image-2.5-sunburst-2026-09-08"`2547125472            - `"gpt-image-2.5-flare"`2547325474            - `"gpt-image-2.5-flare-2026-09-08"`2547525476        - `moderation: optional "auto" or "low"`2547725478          Moderation level for the generated image. Default: `auto`.2547925480          - `"auto"`2548125482          - `"low"`2548325484        - `output_compression: optional number`2548525486          Compression level for the output image. Default: 100.2548725488        - `output_format: optional "png" or "webp" or "jpeg"`2548925490          The output format of the generated image. One of `png`, `webp`, or25491          `jpeg`. Default: `png`.2549225493          - `"png"`2549425495          - `"webp"`2549625497          - `"jpeg"`2549825499        - `partial_images: optional number`2550025501          Number of partial images to generate in streaming mode, from 0 (default value) to 3.2550225503        - `quality: optional "low" or "medium" or "high" or 3 more`2550425505          The quality of the generated image. The GPT image models support `low`,25506          `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,25507          including their `2026-09-08` snapshots, also support `xhigh` and `max`.25508          Default: `auto`.2550925510          - `"low"`2551125512          - `"medium"`2551325514          - `"high"`2551525516          - `"xhigh"`2551725518          - `"max"`2551925520          - `"auto"`2552125522        - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`2552325524          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`.2552525526          - `string`2552725528          - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`2552925530            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`.2553125532            - `"1024x1024"`2553325534            - `"1024x1536"`2553525536            - `"1536x1024"`2553725538            - `"auto"`2553925540      - `LocalShell object { type }`2554125542        A tool that allows the model to execute shell commands in a local environment.2554325544        - `type: "local_shell"`2554525546          The type of the local shell tool. Always `local_shell`.2554725548          - `"local_shell"`2554925550      - `Shell object { type, allowed_callers, environment }`2555125552        A tool that allows the model to execute shell commands.2555325554        - `type: "shell"`2555525556          The type of the shell tool. Always `shell`.2555725558          - `"shell"`2555925560        - `allowed_callers: optional array of "direct" or "programmatic" or null`2556125562          The tool invocation context(s).2556325564          - `"direct"`2556525566          - `"programmatic"`2556725568        - `environment: optional ContainerAuto or LocalEnvironment or ContainerReference or null`2556925570          - `ContainerAuto object { type, file_ids, memory_limit, 2 more }`2557125572          - `LocalEnvironment object { type, skills }`2557325574          - `ContainerReference object { container_id, type }`2557525576      - `Custom object { name, type, allowed_callers, 4 more }`2557725578        A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)2557925580        - `name: string`2558125582          The name of the custom tool, used to identify it in tool calls.2558325584        - `type: "custom"`2558525586          The type of the custom tool. Always `custom`.2558725588          - `"custom"`2558925590        - `allowed_callers: optional array of "direct" or "programmatic" or null`2559125592          The tool invocation context(s).2559325594          - `"direct"`2559525596          - `"programmatic"`2559725598        - `async: optional boolean`2559925600          Whether the tool response can be returned asynchronously versus immediately returned on next response creation.2560125602        - `defer_loading: optional boolean`2560325604          Whether this tool should be deferred and discovered via tool search.2560525606        - `description: optional string`2560725608          Optional description of the custom tool, used to provide more context.2560925610        - `format: optional CustomToolInputFormat`2561125612          The input format for the custom tool. Default is unconstrained text.2561325614      - `Namespace object { description, name, tools, type }`2561525616        Groups function/custom tools under a shared namespace.2561725618        - `description: string`2561925620          A description of the namespace shown to the model.2562125622        - `name: string`2562325624          The namespace name used in tool calls (for example, `crm`).2562525626        - `tools: array of object { name, type, allowed_callers, 6 more }  or object { name, type, allowed_callers, 4 more }`2562725628          The function/custom tools available inside this namespace.2562925630          - `Function object { name, type, allowed_callers, 6 more }`2563125632            - `name: string`2563325634            - `type: "function"`2563525636              - `"function"`2563725638            - `allowed_callers: optional array of "direct" or "programmatic" or null`2563925640              The tool invocation context(s).2564125642              - `"direct"`2564325644              - `"programmatic"`2564525646            - `async: optional boolean`2564725648              Whether the tool response can be returned asynchronously versus immediately returned on next response creation.2564925650            - `defer_loading: optional boolean`2565125652              Whether this function should be deferred and discovered via tool search.2565325654            - `description: optional string or null`2565525656            - `output_schema: optional map[unknown] or null`2565725658              A JSON Schema describing the JSON value encoded in string outputs for this function tool. This does not describe content-array outputs.2565925660            - `parameters: optional unknown or null`2566125662            - `strict: optional boolean or null`2566325664              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.2566525666          - `Custom object { name, type, allowed_callers, 4 more }`2566725668            A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)2566925670            - `name: string`2567125672              The name of the custom tool, used to identify it in tool calls.2567325674            - `type: "custom"`2567525676              The type of the custom tool. Always `custom`.2567725678              - `"custom"`2567925680            - `allowed_callers: optional array of "direct" or "programmatic" or null`2568125682              The tool invocation context(s).2568325684              - `"direct"`2568525686              - `"programmatic"`2568725688            - `async: optional boolean`2568925690              Whether the tool response can be returned asynchronously versus immediately returned on next response creation.2569125692            - `defer_loading: optional boolean`2569325694              Whether this tool should be deferred and discovered via tool search.2569525696            - `description: optional string`2569725698              Optional description of the custom tool, used to provide more context.2569925700            - `format: optional CustomToolInputFormat`2570125702              The input format for the custom tool. Default is unconstrained text.2570325704        - `type: "namespace"`2570525706          The type of the tool. Always `namespace`.2570725708          - `"namespace"`2570925710      - `ToolSearch object { type, description, execution, parameters }`2571125712        Hosted or BYOT tool search configuration for deferred tools.2571325714        - `type: "tool_search"`2571525716          The type of the tool. Always `tool_search`.2571725718          - `"tool_search"`2571925720        - `description: optional string or null`2572125722          Description shown to the model for a client-executed tool search tool.2572325724        - `execution: optional "server" or "client"`2572525726          Whether tool search is executed by the server or by the client.2572725728          - `"server"`2572925730          - `"client"`2573125732        - `parameters: optional unknown or null`2573325734          Parameter schema for a client-executed tool search tool.2573525736      - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`2573725738        This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](/api/docs/guides/tools-web-search).2573925740        - `type: "web_search_preview" or "web_search_preview_2025_03_11"`2574125742          The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.2574325744          - `"web_search_preview"`2574525746          - `"web_search_preview_2025_03_11"`2574725748        - `search_content_types: optional array of "text" or "image"`2574925750          - `"text"`2575125752          - `"image"`2575325754        - `search_context_size: optional "low" or "medium" or "high"`2575525756          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.2575725758          - `"low"`2575925760          - `"medium"`2576125762          - `"high"`2576325764        - `user_location: optional object { type, city, country, 2 more }  or null`2576525766          The user's location.2576725768          - `type: "approximate"`2576925770            The type of location approximation. Always `approximate`.2577125772            - `"approximate"`2577325774          - `city: optional string or null`2577525776            Free text input for the city of the user, e.g. `San Francisco`.2577725778          - `country: optional string or null`2577925780            The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.2578125782          - `region: optional string or null`2578325784            Free text input for the region of the user, e.g. `California`.2578525786          - `timezone: optional string or null`2578725788            The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.2578925790      - `ApplyPatch object { type, allowed_callers }`2579125792        Allows the assistant to create, delete, or update files using unified diffs.2579325794        - `type: "apply_patch"`2579525796          The type of the tool. Always `apply_patch`.2579725798          - `"apply_patch"`2579925800        - `allowed_callers: optional array of "direct" or "programmatic" or null`2580125802          The tool invocation context(s).2580325804          - `"direct"`2580525806          - `"programmatic"`2580725808    - `type: "additional_tools"`2580925810      The type of the item. Always `additional_tools`.2581125812      - `"additional_tools"`2581325814  - `ConfigurationUpdate object { id, type, reasoning }`2581525816    A configuration update that applies to subsequent responses until it is25817    replaced by another configuration update.2581825819    - `id: string`2582025821      The unique ID of the configuration update item.2582225823    - `type: "configuration_update"`2582425825      The item type. Always `configuration_update`.2582625827      - `"configuration_update"`2582825829    - `reasoning: optional object { effort }`2583025831      The reasoning configuration applied by this update.2583225833      - `effort: optional ReasoningEffort or null`2583425835        The reasoning effort used for subsequent responses until another25836        configuration update replaces it.2583725838        - `"none"`2583925840        - `"minimal"`2584125842        - `"low"`2584325844        - `"medium"`2584525846        - `"high"`2584725848        - `"xhigh"`2584925850        - `"max"`2585125852  - `Reasoning object { id, summary, type, 3 more }`2585325854    A description of the chain of thought used by a reasoning model while generating25855    a response. Be sure to include these items in your `input` to the Responses API25856    for subsequent turns of a conversation if you are manually25857    [managing context](/api/docs/guides/conversation-state).2585825859    - `id: string`2586025861      The unique identifier of the reasoning content.2586225863    - `summary: array of SummaryTextContent`2586425865      Reasoning summary content.2586625867      - `text: string`2586825869        A summary of the reasoning output from the model so far.2587025871      - `type: "summary_text"`2587225873        The type of the object. Always `summary_text`.2587425875    - `type: "reasoning"`2587625877      The type of the object. Always `reasoning`.2587825879      - `"reasoning"`2588025881    - `content: optional array of object { text, type }`2588225883      Reasoning text content.2588425885      - `text: string`2588625887        The reasoning text from the model.2588825889      - `type: "reasoning_text"`2589025891        The type of the reasoning text. Always `reasoning_text`.2589225893        - `"reasoning_text"`2589425895    - `encrypted_content: optional string or null`2589625897      The encrypted content of the reasoning item. This is populated by default25898      for reasoning items returned by `POST /v1/responses` and WebSocket25899      `response.create` requests.2590025901      When streaming, use the completed reasoning item and its25902      `encrypted_content` from the `response.output_item.done` event in25903      subsequent requests. The `encrypted_content` in25904      `response.output_item.added` may be incomplete. This is especially25905      important when `store` is `false` or when using Zero Data Retention.2590625907    - `status: optional "in_progress" or "completed" or "incomplete"`2590825909      The status of the item. One of `in_progress`, `completed`, or25910      `incomplete`. Populated when items are returned via API.2591125912      - `"in_progress"`2591325914      - `"completed"`2591525916      - `"incomplete"`2591725918  - `Program object { id, call_id, code, 2 more }`2591925920    - `id: string`2592125922      The unique ID of the program item.2592325924    - `call_id: string`2592525926      The stable call ID of the program item.2592725928    - `code: string`2592925930      The JavaScript source executed by programmatic tool calling.2593125932    - `fingerprint: string`2593325934      Opaque program replay fingerprint that must be round-tripped.2593525936    - `type: "program"`2593725938      The type of the item. Always `program`.2593925940      - `"program"`2594125942  - `ProgramOutput object { id, call_id, result, 2 more }`2594325944    - `id: string`2594525946      The unique ID of the program output item.2594725948    - `call_id: string`2594925950      The call ID of the program item.2595125952    - `result: string`2595325954      The result produced by the program item.2595525956    - `status: "completed" or "incomplete"`2595725958      The terminal status of the program output item.2595925960      - `"completed"`2596125962      - `"incomplete"`2596325964    - `type: "program_output"`2596525966      The type of the item. Always `program_output`.2596725968      - `"program_output"`2596925970  - `Compaction object { id, encrypted_content, type, created_by }`2597125972    A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).2597325974    - `id: string`2597525976      The unique ID of the compaction item.2597725978    - `encrypted_content: string`2597925980      The encrypted content that was produced by compaction.2598125982    - `type: "compaction"`2598325984      The type of the item. Always `compaction`.2598525986      - `"compaction"`2598725988    - `created_by: optional string`2598925990      The identifier of the actor that created the item.2599125992  - `CodeInterpreterCall object { id, code, container_id, 3 more }`2599325994    A tool call to run code.2599525996    - `id: string`2599725998      The unique ID of the code interpreter tool call.2599926000    - `code: string or null`2600126002      The code to run, or null if not available.2600326004    - `container_id: string`2600526006      The ID of the container used to run the code.2600726008    - `outputs: array of object { logs, type }  or object { type, url }  or null`2600926010      The outputs generated by the code interpreter, such as logs or images.26011      Can be null if no outputs are available.2601226013      - `Logs object { logs, type }`2601426015        The logs output from the code interpreter.2601626017        - `logs: string`2601826019          The logs output from the code interpreter.2602026021        - `type: "logs"`2602226023          The type of the output. Always `logs`.2602426025          - `"logs"`2602626027      - `Image object { type, url }`2602826029        The image output from the code interpreter.2603026031        - `type: "image"`2603226033          The type of the output. Always `image`.2603426035          - `"image"`2603626037        - `url: string`2603826039          The URL of the image output from the code interpreter.2604026041    - `status: "in_progress" or "completed" or "incomplete" or 2 more`2604226043      The status of the code interpreter tool call. Valid values are `in_progress`, `completed`, `incomplete`, `interpreting`, and `failed`.2604426045      - `"in_progress"`2604626047      - `"completed"`2604826049      - `"incomplete"`2605026051      - `"interpreting"`2605226053      - `"failed"`2605426055    - `type: "code_interpreter_call"`2605626057      The type of the code interpreter tool call. Always `code_interpreter_call`.2605826059      - `"code_interpreter_call"`2606026061  - `LocalShellCall object { id, action, call_id, 2 more }`2606226063    A tool call to run a command on the local shell.2606426065    - `id: string`2606626067      The unique ID of the local shell call.2606826069    - `action: object { command, env, type, 3 more }`2607026071      Execute a shell command on the server.2607226073      - `command: array of string`2607426075        The command to run.2607626077      - `env: map[string]`2607826079        Environment variables to set for the command.2608026081      - `type: "exec"`2608226083        The type of the local shell action. Always `exec`.2608426085        - `"exec"`2608626087      - `timeout_ms: optional number or null`2608826089        Optional timeout in milliseconds for the command.2609026091      - `user: optional string or null`2609226093        Optional user to run the command as.2609426095      - `working_directory: optional string or null`2609626097        Optional working directory to run the command in.2609826099    - `call_id: string`2610026101      The unique ID of the local shell tool call generated by the model.2610226103    - `status: "in_progress" or "completed" or "incomplete"`2610426105      The status of the local shell call.2610626107      - `"in_progress"`2610826109      - `"completed"`2611026111      - `"incomplete"`2611226113    - `type: "local_shell_call"`2611426115      The type of the local shell call. Always `local_shell_call`.2611626117      - `"local_shell_call"`2611826119  - `LocalShellCallOutput object { id, output, type, status }`2612026121    The output of a local shell tool call.2612226123    - `id: string`2612426125      The unique ID of the local shell tool call generated by the model.2612626127    - `output: string`2612826129      A JSON string of the output of the local shell tool call.2613026131    - `type: "local_shell_call_output"`2613226133      The type of the local shell tool call output. Always `local_shell_call_output`.2613426135      - `"local_shell_call_output"`2613626137    - `status: optional "in_progress" or "completed" or "incomplete" or null`2613826139      The status of the item. One of `in_progress`, `completed`, or `incomplete`.2614026141      - `"in_progress"`2614226143      - `"completed"`2614426145      - `"incomplete"`2614626147  - `ShellCall object { id, action, call_id, 5 more }`2614826149    A tool call that executes one or more shell commands in a managed environment.2615026151    - `id: string`2615226153      The unique ID of the shell tool call. Populated when this item is returned via API.2615426155    - `action: object { commands, max_output_length, timeout_ms }`2615626157      The shell commands and limits that describe how to run the tool call.2615826159      - `commands: array of string`2616026161      - `max_output_length: number or null`2616226163        Optional maximum number of characters to return from each command.2616426165      - `timeout_ms: number or null`2616626167        Optional timeout in milliseconds for the commands.2616826169    - `call_id: string`2617026171      The unique ID of the shell tool call generated by the model.2617226173    - `environment: ResponseLocalEnvironment or ResponseContainerReference or null`2617426175      Represents the use of a local environment to perform shell actions.2617626177      - `ResponseLocalEnvironment object { type }`2617826179        Represents the use of a local environment to perform shell actions.2618026181        - `type: "local"`2618226183          The environment type. Always `local`.2618426185          - `"local"`2618626187      - `ResponseContainerReference object { container_id, type }`2618826189        Represents a container created with /v1/containers.2619026191        - `container_id: string`2619226193        - `type: "container_reference"`2619426195          The environment type. Always `container_reference`.2619626197          - `"container_reference"`2619826199    - `status: "in_progress" or "completed" or "incomplete"`2620026201      The status of the shell call. One of `in_progress`, `completed`, or `incomplete`.2620226203      - `"in_progress"`2620426205      - `"completed"`2620626207      - `"incomplete"`2620826209    - `type: "shell_call"`2621026211      The type of the item. Always `shell_call`.2621226213      - `"shell_call"`2621426215    - `caller: optional object { type }  or object { caller_id, type }  or null`2621626217      The execution context that produced this tool call.2621826219      - `Direct object { type }`2622026221        - `type: "direct"`2622226223          - `"direct"`2622426225      - `Program object { caller_id, type }`2622626227        - `caller_id: string`2622826229          The call ID of the program item that produced this tool call.2623026231        - `type: "program"`2623226233          - `"program"`2623426235    - `created_by: optional string`2623626237      The ID of the entity that created this tool call.2623826239  - `ShellCallOutput object { id, call_id, max_output_length, 5 more }`2624026241    The output of a shell tool call that was emitted.2624226243    - `id: string`2624426245      The unique ID of the shell call output. Populated when this item is returned via API.2624626247    - `call_id: string`2624826249      The unique ID of the shell tool call generated by the model.2625026251    - `max_output_length: number or null`2625226253      The maximum length of the shell command output. This is generated by the model and should be passed back with the raw output.2625426255    - `output: array of object { outcome, stderr, stdout, created_by }`2625626257      An array of shell call output contents2625826259      - `outcome: object { type }  or object { exit_code, type }`2626026261        Represents either an exit outcome (with an exit code) or a timeout outcome for a shell call output chunk.2626226263        - `Timeout object { type }`2626426265          Indicates that the shell call exceeded its configured time limit.2626626267          - `type: "timeout"`2626826269            The outcome type. Always `timeout`.2627026271            - `"timeout"`2627226273        - `Exit object { exit_code, type }`2627426275          Indicates that the shell commands finished and returned an exit code.2627626277          - `exit_code: number`2627826279            Exit code from the shell process.2628026281          - `type: "exit"`2628226283            The outcome type. Always `exit`.2628426285            - `"exit"`2628626287      - `stderr: string`2628826289        The standard error output that was captured.2629026291      - `stdout: string`2629226293        The standard output that was captured.2629426295      - `created_by: optional string`2629626297        The identifier of the actor that created the item.2629826299    - `status: "in_progress" or "completed" or "incomplete"`2630026301      The status of the shell call output. One of `in_progress`, `completed`, or `incomplete`.2630226303      - `"in_progress"`2630426305      - `"completed"`2630626307      - `"incomplete"`2630826309    - `type: "shell_call_output"`2631026311      The type of the shell call output. Always `shell_call_output`.2631226313      - `"shell_call_output"`2631426315    - `caller: optional object { type }  or object { caller_id, type }  or null`2631626317      The execution context that produced this tool call.2631826319      - `Direct object { type }`2632026321        - `type: "direct"`2632226323          - `"direct"`2632426325      - `Program object { caller_id, type }`2632626327        - `caller_id: string`2632826329          The call ID of the program item that produced this tool call.2633026331        - `type: "program"`2633226333          - `"program"`2633426335    - `created_by: optional string`2633626337      The identifier of the actor that created the item.2633826339  - `ApplyPatchCall object { id, call_id, operation, 4 more }`2634026341    A tool call that applies file diffs by creating, deleting, or updating files.2634226343    - `id: string`2634426345      The unique ID of the apply patch tool call. Populated when this item is returned via API.2634626347    - `call_id: string`2634826349      The unique ID of the apply patch tool call generated by the model.2635026351    - `operation: object { diff, path, type }  or object { path, type }  or object { diff, path, type }`2635226353      One of the create_file, delete_file, or update_file operations applied via apply_patch.2635426355      - `CreateFile object { diff, path, type }`2635626357        Instruction describing how to create a file via the apply_patch tool.2635826359        - `diff: string`2636026361          Diff to apply.2636226363        - `path: string`2636426365          Path of the file to create.2636626367        - `type: "create_file"`2636826369          Create a new file with the provided diff.2637026371          - `"create_file"`2637226373      - `DeleteFile object { path, type }`2637426375        Instruction describing how to delete a file via the apply_patch tool.2637626377        - `path: string`2637826379          Path of the file to delete.2638026381        - `type: "delete_file"`2638226383          Delete the specified file.2638426385          - `"delete_file"`2638626387      - `UpdateFile object { diff, path, type }`2638826389        Instruction describing how to update a file via the apply_patch tool.2639026391        - `diff: string`2639226393          Diff to apply.2639426395        - `path: string`2639626397          Path of the file to update.2639826399        - `type: "update_file"`2640026401          Update an existing file with the provided diff.2640226403          - `"update_file"`2640426405    - `status: "in_progress" or "completed"`2640626407      The status of the apply patch tool call. One of `in_progress` or `completed`.2640826409      - `"in_progress"`2641026411      - `"completed"`2641226413    - `type: "apply_patch_call"`2641426415      The type of the item. Always `apply_patch_call`.2641626417      - `"apply_patch_call"`2641826419    - `caller: optional object { type }  or object { caller_id, type }  or null`2642026421      The execution context that produced this tool call.2642226423      - `Direct object { type }`2642426425        - `type: "direct"`2642626427          - `"direct"`2642826429      - `Program object { caller_id, type }`2643026431        - `caller_id: string`2643226433          The call ID of the program item that produced this tool call.2643426435        - `type: "program"`2643626437          - `"program"`2643826439    - `created_by: optional string`2644026441      The ID of the entity that created this tool call.2644226443  - `ApplyPatchCallOutput object { id, call_id, status, 4 more }`2644426445    The output emitted by an apply patch tool call.2644626447    - `id: string`2644826449      The unique ID of the apply patch tool call output. Populated when this item is returned via API.2645026451    - `call_id: string`2645226453      The unique ID of the apply patch tool call generated by the model.2645426455    - `status: "completed" or "failed"`2645626457      The status of the apply patch tool call output. One of `completed` or `failed`.2645826459      - `"completed"`2646026461      - `"failed"`2646226463    - `type: "apply_patch_call_output"`2646426465      The type of the item. Always `apply_patch_call_output`.2646626467      - `"apply_patch_call_output"`2646826469    - `caller: optional object { type }  or object { caller_id, type }  or null`2647026471      The execution context that produced this tool call.2647226473      - `Direct object { type }`2647426475        - `type: "direct"`2647626477          - `"direct"`2647826479      - `Program object { caller_id, type }`2648026481        - `caller_id: string`2648226483          The call ID of the program item that produced this tool call.2648426485        - `type: "program"`2648626487          - `"program"`2648826489    - `created_by: optional string`2649026491      The ID of the entity that created this tool call output.2649226493    - `output: optional string or null`2649426495      Optional textual output returned by the apply patch tool.2649626497  - `McpListTools object { id, server_label, tools, 2 more }`2649826499    A list of tools available on an MCP server.2650026501    - `id: string`2650226503      The unique ID of the list.2650426505    - `server_label: string`2650626507      The label of the MCP server.2650826509    - `tools: array of object { input_schema, name, annotations, description }`2651026511      The tools available on the server.2651226513      - `input_schema: unknown`2651426515        The JSON schema describing the tool's input.2651626517      - `name: string`2651826519        The name of the tool.2652026521      - `annotations: optional unknown or null`2652226523        Additional annotations about the tool.2652426525      - `description: optional string or null`2652626527        The description of the tool.2652826529    - `type: "mcp_list_tools"`2653026531      The type of the item. Always `mcp_list_tools`.2653226533      - `"mcp_list_tools"`2653426535    - `error: optional string or null`2653626537      Error message if the server could not list tools.2653826539  - `McpApprovalRequest object { id, arguments, name, 2 more }`2654026541    A request for human approval of a tool invocation.2654226543    - `id: string`2654426545      The unique ID of the approval request.2654626547    - `arguments: string`2654826549      A JSON string of arguments for the tool.2655026551    - `name: string`2655226553      The name of the tool to run.2655426555    - `server_label: string`2655626557      The label of the MCP server making the request.2655826559    - `type: "mcp_approval_request"`2656026561      The type of the item. Always `mcp_approval_request`.2656226563      - `"mcp_approval_request"`2656426565  - `McpApprovalResponse object { id, approval_request_id, approve, 2 more }`2656626567    A response to an MCP approval request.2656826569    - `id: string`2657026571      The unique ID of the approval response2657226573    - `approval_request_id: string`2657426575      The ID of the approval request being answered.2657626577    - `approve: boolean`2657826579      Whether the request was approved.2658026581    - `type: "mcp_approval_response"`2658226583      The type of the item. Always `mcp_approval_response`.2658426585      - `"mcp_approval_response"`2658626587    - `reason: optional string or null`2658826589      Optional reason for the decision.2659026591  - `McpCall object { id, arguments, name, 6 more }`2659226593    An invocation of a tool on an MCP server.2659426595    - `id: string`2659626597      The unique ID of the tool call.2659826599    - `arguments: string`2660026601      A JSON string of the arguments passed to the tool.2660226603    - `name: string`2660426605      The name of the tool that was run.2660626607    - `server_label: string`2660826609      The label of the MCP server running the tool.2661026611    - `type: "mcp_call"`2661226613      The type of the item. Always `mcp_call`.2661426615      - `"mcp_call"`2661626617    - `approval_request_id: optional string or null`2661826619      Unique identifier for the MCP tool call approval request.26620      Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.2662126622    - `error: optional McpToolCallError or null`2662326624      The error from the tool call, if any.2662526626      - `McpProtocolError object { code, message, type }`2662726628        - `code: number`2662926630        - `message: string`2663126632        - `type: "mcp_protocol_error"`2663326634          - `"mcp_protocol_error"`2663526636      - `McpToolExecutionError object { content, type }`2663726638        - `content: unknown`2663926640        - `type: "mcp_tool_execution_error"`2664126642          - `"mcp_tool_execution_error"`2664326644      - `HTTPError object { code, message, type }`2664526646        - `code: number`2664726648        - `message: string`2664926650        - `type: "http_error"`2665126652          - `"http_error"`2665326654    - `output: optional string or null`2665526656      The output from the tool call.2665726658    - `status: optional "in_progress" or "completed" or "incomplete" or 2 more`2665926660      The status of the tool call. One of `in_progress`, `completed`, `incomplete`, `calling`, or `failed`.2666126662      - `"in_progress"`2666326664      - `"completed"`2666526666      - `"incomplete"`2666726668      - `"calling"`2666926670      - `"failed"`2667126672  - `CustomToolCall object { call_id, input, name, 5 more }`2667326674    A call to a custom tool created by the model.2667526676    - `call_id: string`2667726678      An identifier used to map this custom tool call to a tool call output.2667926680    - `input: string`2668126682      The input for the custom tool call generated by the model.2668326684    - `name: string`2668526686      The name of the custom tool being called.2668726688    - `type: "custom_tool_call"`2668926690      The type of the custom tool call. Always `custom_tool_call`.2669126692      - `"custom_tool_call"`2669326694    - `id: optional string`2669526696      The unique ID of the custom tool call in the OpenAI platform.2669726698    - `async: optional boolean`2669926700      Whether the custom tool call runs asynchronously.2670126702    - `caller: optional object { type }  or object { caller_id, type }  or null`2670326704      The execution context that produced this tool call.2670526706      - `Direct object { type }`2670726708        - `type: "direct"`2670926710          - `"direct"`2671126712      - `Program object { caller_id, type }`2671326714        - `caller_id: string`2671526716          The call ID of the program item that produced this tool call.2671726718        - `type: "program"`2671926720          - `"program"`2672126722    - `namespace: optional string`2672326724      The namespace of the custom tool being called.2672526726  - `CustomToolCallOutput object { call_id, output, type, 2 more }`2672726728    The output of a custom tool call from your code, being sent back to the model.2672926730    - `call_id: string`2673126732      The call ID, used to map this custom tool call output to a custom tool call.2673326734    - `output: string or array of ResponseInputText or ResponseInputImage or ResponseInputFile`2673526736      The output from the custom tool call generated by your code.26737      Can be a string or an list of output content.2673826739      - `StringOutput = string`2674026741        A string of the output of the custom tool call.2674226743      - `OutputContentList = array of ResponseInputText or ResponseInputImage or ResponseInputFile`2674426745        Text, image, or file output of the custom tool call.2674626747        - `ResponseInputText object { text, type, prompt_cache_breakpoint }`2674826749          A text input to the model.2675026751        - `ResponseInputImage object { detail, type, file_id, 2 more }`2675226753          An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).2675426755        - `ResponseInputFile object { type, detail, file_data, 4 more }`2675626757          A file input to the model.2675826759    - `type: "custom_tool_call_output"`2676026761      The type of the custom tool call output. Always `custom_tool_call_output`.2676226763      - `"custom_tool_call_output"`2676426765    - `id: optional string`2676626767      The unique ID of the custom tool call output in the OpenAI platform.2676826769    - `caller: optional object { type }  or object { caller_id, type }  or null`2677026771      The execution context that produced this tool call.2677226773      - `Direct object { type }`2677426775        - `type: "direct"`2677626777          The caller type. Always `direct`.2677826779          - `"direct"`2678026781      - `Program object { caller_id, type }`2678226783        - `caller_id: string`2678426785          The call ID of the program item that produced this tool call.2678626787        - `type: "program"`2678826789          The caller type. Always `program`.2679026791          - `"program"`2679226793### Conversation Item List2679426795- `ConversationItemList object { data, first_id, has_more, 2 more }`2679626797  A list of Conversation items.2679826799  - `data: array of ConversationItem`2680026801    A list of conversation items.2680226803    - `Message object { id, content, role, 3 more }`2680426805      A message to or from the model.2680626807      - `id: string`2680826809        The unique ID of the message.2681026811      - `content: array of ResponseInputText or ResponseOutputText or TextContent or 6 more`2681226813        The content of the message2681426815        - `ResponseInputText object { text, type, prompt_cache_breakpoint }`2681626817          A text input to the model.2681826819          - `text: string`2682026821            The text input to the model.2682226823          - `type: "input_text"`2682426825            The type of the input item. Always `input_text`.2682626827            - `"input_text"`2682826829          - `prompt_cache_breakpoint: optional object { mode }`2683026831            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.2683226833            - `mode: "explicit"`2683426835              The breakpoint mode. Always `explicit`.2683626837              - `"explicit"`2683826839        - `ResponseOutputText object { annotations, logprobs, text, type }`2684026841          A text output from the model.2684226843          - `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 }`2684426845            The annotations of the text output.2684626847            - `FileCitation object { file_id, filename, index, type }`2684826849              A citation to a file.2685026851              - `file_id: string`2685226853                The ID of the file.2685426855              - `filename: string`2685626857                The filename of the file cited.2685826859              - `index: number`2686026861                The index of the file in the list of files.2686226863              - `type: "file_citation"`2686426865                The type of the file citation. Always `file_citation`.2686626867                - `"file_citation"`2686826869            - `URLCitation object { end_index, start_index, title, 2 more }`2687026871              A citation for a web resource used to generate a model response.2687226873              - `end_index: number`2687426875                The index of the last character of the URL citation in the message.2687626877              - `start_index: number`2687826879                The index of the first character of the URL citation in the message.2688026881              - `title: string`2688226883                The title of the web resource.2688426885              - `type: "url_citation"`2688626887                The type of the URL citation. Always `url_citation`.2688826889                - `"url_citation"`2689026891              - `url: string`2689226893                The URL of the web resource.2689426895            - `ContainerFileCitation object { container_id, end_index, file_id, 3 more }`2689626897              A citation for a container file used to generate a model response.2689826899              - `container_id: string`2690026901                The ID of the container file.2690226903              - `end_index: number`2690426905                The index of the last character of the container file citation in the message.2690626907              - `file_id: string`2690826909                The ID of the file.2691026911              - `filename: string`2691226913                The filename of the container file cited.2691426915              - `start_index: number`2691626917                The index of the first character of the container file citation in the message.2691826919              - `type: "container_file_citation"`2692026921                The type of the container file citation. Always `container_file_citation`.2692226923                - `"container_file_citation"`2692426925            - `FilePath object { file_id, index, type }`2692626927              A path to a file.2692826929              - `file_id: string`2693026931                The ID of the file.2693226933              - `index: number`2693426935                The index of the file in the list of files.2693626937              - `type: "file_path"`2693826939                The type of the file path. Always `file_path`.2694026941                - `"file_path"`2694226943          - `logprobs: array of object { token, bytes, logprob, top_logprobs }`2694426945            - `token: string`2694626947            - `bytes: array of number`2694826949            - `logprob: number`2695026951            - `top_logprobs: array of object { token, bytes, logprob }`2695226953              - `token: string`2695426955              - `bytes: array of number`2695626957              - `logprob: number`2695826959          - `text: string`2696026961            The text output from the model.2696226963          - `type: "output_text"`2696426965            The type of the output text. Always `output_text`.2696626967            - `"output_text"`2696826969        - `TextContent object { text, type }`2697026971          A text content.2697226973          - `text: string`2697426975          - `type: "text"`2697626977            - `"text"`2697826979        - `SummaryTextContent object { text, type }`2698026981          A summary text from the model.2698226983          - `text: string`2698426985            A summary of the reasoning output from the model so far.2698626987          - `type: "summary_text"`2698826989            The type of the object. Always `summary_text`.2699026991            - `"summary_text"`2699226993        - `ReasoningText object { text, type }`2699426995          Reasoning text from the model.2699626997          - `text: string`2699826999            The reasoning text from the model.2700027001          - `type: "reasoning_text"`2700227003            The type of the reasoning text. Always `reasoning_text`.2700427005            - `"reasoning_text"`2700627007        - `ResponseOutputRefusal object { refusal, type }`2700827009          A refusal from the model.2701027011          - `refusal: string`2701227013            The refusal explanation from the model.2701427015          - `type: "refusal"`2701627017            The type of the refusal. Always `refusal`.2701827019            - `"refusal"`2702027021        - `ResponseInputImage object { detail, type, file_id, 2 more }`2702227023          An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).2702427025          - `detail: ImageDetail`2702627027            The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.2702827029            - `"low"`2703027031            - `"high"`2703227033            - `"auto"`2703427035            - `"original"`2703627037          - `type: "input_image"`2703827039            The type of the input item. Always `input_image`.2704027041            - `"input_image"`2704227043          - `file_id: optional string or null`2704427045            The ID of the file to be sent to the model.2704627047          - `image_url: optional string or null`2704827049            The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.2705027051          - `prompt_cache_breakpoint: optional object { mode }`2705227053            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.2705427055            - `mode: "explicit"`2705627057              The breakpoint mode. Always `explicit`.2705827059              - `"explicit"`2706027061        - `ComputerScreenshotContent object { detail, file_id, image_url, 2 more }`2706227063          A screenshot of a computer.2706427065          - `detail: ImageDetail`2706627067            The detail level of the screenshot image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.2706827069          - `file_id: string or null`2707027071            The identifier of an uploaded file that contains the screenshot.2707227073          - `image_url: string or null`2707427075            The URL of the screenshot image.2707627077          - `type: "computer_screenshot"`2707827079            Specifies the event type. For a computer screenshot, this property is always set to `computer_screenshot`.2708027081            - `"computer_screenshot"`2708227083          - `prompt_cache_breakpoint: optional object { mode }`2708427085            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.2708627087            - `mode: "explicit"`2708827089              The breakpoint mode. Always `explicit`.2709027091              - `"explicit"`2709227093        - `ResponseInputFile object { type, detail, file_data, 4 more }`2709427095          A file input to the model.2709627097          - `type: "input_file"`2709827099            The type of the input item. Always `input_file`.2710027101            - `"input_file"`2710227103          - `detail: optional "auto" or "low" or "high"`2710427105            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`.2710627107            - `"auto"`2710827109            - `"low"`2711027111            - `"high"`2711227113          - `file_data: optional string`2711427115            The content of the file to be sent to the model.2711627117          - `file_id: optional string or null`2711827119            The ID of the file to be sent to the model.2712027121          - `file_url: optional string`2712227123            The URL of the file to be sent to the model.2712427125          - `filename: optional string`2712627127            The name of the file to be sent to the model.2712827129          - `prompt_cache_breakpoint: optional object { mode }`2713027131            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.2713227133            - `mode: "explicit"`2713427135              The breakpoint mode. Always `explicit`.2713627137              - `"explicit"`2713827139      - `role: "unknown" or "user" or "assistant" or 5 more`2714027141        The role of the message. One of `unknown`, `user`, `assistant`, `system`, `critic`, `discriminator`, `developer`, or `tool`.2714227143        - `"unknown"`2714427145        - `"user"`2714627147        - `"assistant"`2714827149        - `"system"`2715027151        - `"critic"`2715227153        - `"discriminator"`2715427155        - `"developer"`2715627157        - `"tool"`2715827159      - `status: "in_progress" or "completed" or "incomplete"`2716027161        The status of item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API.2716227163        - `"in_progress"`2716427165        - `"completed"`2716627167        - `"incomplete"`2716827169      - `type: "message"`2717027171        The type of the message. Always set to `message`.2717227173        - `"message"`2717427175      - `phase: optional "commentary" or "final_answer" or null`2717627177        Labels an `assistant` message as intermediate commentary (`commentary`) or the final answer (`final_answer`). For models like `gpt-5.3-codex` and beyond, when sending follow-up requests, preserve and resend phase on all assistant messages — dropping it can degrade performance. Not used for user messages.2717827179        - `"commentary"`2718027181        - `"final_answer"`2718227183    - `FunctionCall object { id, arguments, call_id, 7 more }`2718427185      - `id: string`2718627187        The unique ID of the function tool call.2718827189      - `arguments: string`2719027191        A JSON string of the arguments to pass to the function.2719227193      - `call_id: string`2719427195        The unique ID of the function tool call generated by the model.2719627197      - `name: string`2719827199        The name of the function to run.2720027201      - `status: "in_progress" or "completed" or "incomplete"`2720227203        The status of the item. One of `in_progress`, `completed`, or27204        `incomplete`. Populated when items are returned via API.2720527206        - `"in_progress"`2720727208        - `"completed"`2720927210        - `"incomplete"`2721127212      - `type: "function_call"`2721327214        The type of the function tool call. Always `function_call`.2721527216        - `"function_call"`2721727218      - `async: optional boolean`2721927220        Whether the function tool call runs asynchronously.2722127222      - `caller: optional object { type }  or object { caller_id, type }  or null`2722327224        The execution context that produced this tool call.2722527226        - `Direct object { type }`2722727228          - `type: "direct"`2722927230            - `"direct"`2723127232        - `Program object { caller_id, type }`2723327234          - `caller_id: string`2723527236            The call ID of the program item that produced this tool call.2723727238          - `type: "program"`2723927240            - `"program"`2724127242      - `created_by: optional string`2724327244        The identifier of the actor that created the item.2724527246      - `namespace: optional string`2724727248        The namespace of the function to run.2724927250    - `FunctionCallOutput object { id, output, status, 6 more }`2725127252      - `id: string`2725327254        The unique ID of the function call tool output.2725527256      - `output: string or array of ResponseInputText or ResponseInputImage or ResponseInputFile`2725727258        The output from the function call generated by your code.27259        Can be a string or an list of output content.2726027261        - `StringOutput = string`2726227263          A string of the output of the function call.2726427265        - `OutputContentList = array of ResponseInputText or ResponseInputImage or ResponseInputFile`2726627267          Text, image, or file output of the function call.2726827269          - `ResponseInputText object { text, type, prompt_cache_breakpoint }`2727027271            A text input to the model.2727227273          - `ResponseInputImage object { detail, type, file_id, 2 more }`2727427275            An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).2727627277          - `ResponseInputFile object { type, detail, file_data, 4 more }`2727827279            A file input to the model.2728027281      - `status: "in_progress" or "completed" or "incomplete"`2728227283        The status of the item. One of `in_progress`, `completed`, or27284        `incomplete`. Populated when items are returned via API.2728527286        - `"in_progress"`2728727288        - `"completed"`2728927290        - `"incomplete"`2729127292      - `type: "function_call_output"`2729327294        The type of the function tool call output. Always `function_call_output`.2729527296        - `"function_call_output"`2729727298      - `call_id: optional string`2729927300        The unique ID of the function tool call generated by the model.2730127302      - `caller: optional object { type }  or object { caller_id, type }  or null`2730327304        The execution context that produced this tool call.2730527306        - `Direct object { type }`2730727308          - `type: "direct"`2730927310            The caller type. Always `direct`.2731127312            - `"direct"`2731327314        - `Program object { caller_id, type }`2731527316          - `caller_id: string`2731727318            The call ID of the program item that produced this tool call.2731927320          - `type: "program"`2732127322            The caller type. Always `program`.2732327324            - `"program"`2732527326      - `created_by: optional string`2732727328        The identifier of the actor that created the item.2732927330      - `name: optional string`2733127332        The name of the tool that produced the output.2733327334      - `namespace: optional string`2733527336        The namespace of the tool that produced the output.2733727338    - `FileSearchCall object { id, queries, status, 2 more }`2733927340      The results of a file search tool call. See the27341      [file search guide](/api/docs/guides/tools-file-search) for more information.2734227343      - `id: string`2734427345        The unique ID of the file search tool call.2734627347      - `queries: array of string`2734827349        The queries used to search for files.2735027351      - `status: "in_progress" or "searching" or "completed" or 2 more`2735227353        The status of the file search tool call. One of `in_progress`,27354        `searching`, `incomplete` or `failed`,2735527356        - `"in_progress"`2735727358        - `"searching"`2735927360        - `"completed"`2736127362        - `"incomplete"`2736327364        - `"failed"`2736527366      - `type: "file_search_call"`2736727368        The type of the file search tool call. Always `file_search_call`.2736927370        - `"file_search_call"`2737127372      - `results: optional array of object { attributes, file_id, filename, 2 more }  or null`2737327374        The results of the file search tool call.2737527376        - `attributes: optional map[string or number or boolean] or null`2737727378          Set of 16 key-value pairs that can be attached to an object. This can be27379          useful for storing additional information about the object in a structured27380          format, and querying for objects via API or the dashboard. Keys are strings27381          with a maximum length of 64 characters. Values are strings with a maximum27382          length of 512 characters, booleans, or numbers.2738327384          - `string`2738527386          - `number`2738727388          - `boolean`2738927390        - `file_id: optional string`2739127392          The unique ID of the file.2739327394        - `filename: optional string`2739527396          The name of the file.2739727398        - `score: optional number`2739927400          The relevance score of the file - a value between 0 and 1.2740127402        - `text: optional string`2740327404          The text that was retrieved from the file.2740527406    - `WebSearchCall object { id, action, status, type }`2740727408      The results of a web search tool call. See the27409      [web search guide](/api/docs/guides/tools-web-search) for more information.2741027411      - `id: string`2741227413        The unique ID of the web search tool call.2741427415      - `action: object { type, queries, query, sources }  or object { type, url }  or object { pattern, type, url }`2741627417        An object describing the specific action taken in this web search call.27418        Includes details on how the model used the web (search, open_page, find_in_page).2741927420        - `Search object { type, queries, query, sources }`2742127422          Action type "search" - Performs a web search query.2742327424          - `type: "search"`2742527426            The action type.2742727428            - `"search"`2742927430          - `queries: optional array of string`2743127432            The search queries.2743327434          - `query: optional string`2743527436            The search query.2743727438          - `sources: optional array of object { type, url }`2743927440            The sources used in the search.2744127442            - `type: "url"`2744327444              The type of source. Always `url`.2744527446              - `"url"`2744727448            - `url: string`2744927450              The URL of the source.2745127452        - `OpenPage object { type, url }`2745327454          Action type "open_page" - Opens a specific URL from search results.2745527456          - `type: "open_page"`2745727458            The action type.2745927460            - `"open_page"`2746127462          - `url: optional string or null`2746327464            The URL opened by the model.2746527466        - `FindInPage object { pattern, type, url }`2746727468          Action type "find_in_page": Searches for a pattern within a loaded page.2746927470          - `pattern: string`2747127472            The pattern or text to search for within the page.2747327474          - `type: "find_in_page"`2747527476            The action type.2747727478            - `"find_in_page"`2747927480          - `url: string`2748127482            The URL of the page searched for the pattern.2748327484      - `status: "in_progress" or "searching" or "completed" or 2 more`2748527486        The status of the web search tool call.2748727488        - `"in_progress"`2748927490        - `"searching"`2749127492        - `"completed"`2749327494        - `"failed"`2749527496        - `"incomplete"`2749727498      - `type: "web_search_call"`2749927500        The type of the web search tool call. Always `web_search_call`.2750127502        - `"web_search_call"`2750327504    - `ImageGenerationCall object { id, result, status, 7 more }`2750527506      An image generation request made by the model.2750727508      - `id: string`2750927510        The unique ID of the image generation call.2751127512      - `result: string or null`2751327514        The generated image encoded in base64.2751527516      - `status: "in_progress" or "completed" or "generating" or "failed"`2751727518        The status of the image generation call.2751927520        - `"in_progress"`2752127522        - `"completed"`2752327524        - `"generating"`2752527526        - `"failed"`2752727528      - `type: "image_generation_call"`2752927530        The type of the image generation call. Always `image_generation_call`.2753127532        - `"image_generation_call"`2753327534      - `action: optional "generate" or "edit" or "auto" or null`2753527536        The action used for image generation.2753727538        - `"generate"`2753927540        - `"edit"`2754127542        - `"auto"`2754327544      - `background: optional "transparent" or "opaque" or "auto" or null`2754527546        The background setting used for generation.2754727548        - `"transparent"`2754927550        - `"opaque"`2755127552        - `"auto"`2755327554      - `output_format: optional "png" or "webp" or "jpeg" or null`2755527556        The output format used for generation.2755727558        - `"png"`2755927560        - `"webp"`2756127562        - `"jpeg"`2756327564      - `quality: optional "low" or "medium" or "high" or 3 more or null`2756527566        The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.2756727568        - `"low"`2756927570        - `"medium"`2757127572        - `"high"`2757327574        - `"xhigh"`2757527576        - `"max"`2757727578        - `"auto"`2757927580      - `revised_prompt: optional string or null`2758127582        The prompt that was used after any model prompt rewriting.2758327584      - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`2758527586        The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.2758727588        - `string`2758927590        - `"1024x1024" or "1024x1536" or "1536x1024"`2759127592          The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.2759327594          - `"1024x1024"`2759527596          - `"1024x1536"`2759727598          - `"1536x1024"`2759927600    - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`2760127602      A tool call to a computer use tool. See the27603      [computer use guide](/api/docs/guides/tools-computer-use) for more information.2760427605      - `id: string`2760627607        The unique ID of the computer call.2760827609      - `call_id: string`2761027611        An identifier used when responding to the tool call with output.2761227613      - `pending_safety_checks: array of object { id, code, message }`2761427615        The pending safety checks for the computer call.2761627617        - `id: string`2761827619          The ID of the pending safety check.2762027621        - `code: optional string or null`2762227623          The type of the pending safety check.2762427625        - `message: optional string or null`2762627627          Details about the pending safety check.2762827629      - `status: "in_progress" or "completed" or "incomplete"`2763027631        The status of the item. One of `in_progress`, `completed`, or27632        `incomplete`. Populated when items are returned via API.2763327634        - `"in_progress"`2763527636        - `"completed"`2763727638        - `"incomplete"`2763927640      - `type: "computer_call"`2764127642        The type of the computer call. Always `computer_call`.2764327644        - `"computer_call"`2764527646      - `action: optional ComputerAction`2764727648        A click action.2764927650        - `Click object { button, type, x, 2 more }`2765127652          A click action.2765327654          - `button: "left" or "right" or "wheel" or 2 more`2765527656            Indicates which mouse button was pressed during the click. One of `left`, `right`, `wheel`, `back`, or `forward`.2765727658            - `"left"`2765927660            - `"right"`2766127662            - `"wheel"`2766327664            - `"back"`2766527666            - `"forward"`2766727668          - `type: "click"`2766927670            Specifies the event type. For a click action, this property is always `click`.2767127672            - `"click"`2767327674          - `x: number`2767527676            The x-coordinate where the click occurred.2767727678          - `y: number`2767927680            The y-coordinate where the click occurred.2768127682          - `keys: optional array of string or null`2768327684            The keys being held while clicking.2768527686        - `DoubleClick object { keys, type, x, y }`2768727688          A double click action.2768927690          - `keys: array of string or null`2769127692            The keys being held while double-clicking.2769327694          - `type: "double_click"`2769527696            Specifies the event type. For a double click action, this property is always set to `double_click`.2769727698            - `"double_click"`2769927700          - `x: number`2770127702            The x-coordinate where the double click occurred.2770327704          - `y: number`2770527706            The y-coordinate where the double click occurred.2770727708        - `Drag object { path, type, keys }`2770927710          A drag action.2771127712          - `path: array of object { x, y }`2771327714            An array of coordinates representing the path of the drag action. Coordinates will appear as an array of objects, eg2771527716            ```27717            [27718              { x: 100, y: 200 },27719              { x: 200, y: 300 }27720            ]27721            ```2772227723            - `x: number`2772427725              The x-coordinate.2772627727            - `y: number`2772827729              The y-coordinate.2773027731          - `type: "drag"`2773227733            Specifies the event type. For a drag action, this property is always set to `drag`.2773427735            - `"drag"`2773627737          - `keys: optional array of string or null`2773827739            The keys being held while dragging the mouse.2774027741        - `Keypress object { keys, type }`2774227743          A collection of keypresses the model would like to perform.2774427745          - `keys: array of string`2774627747            The combination of keys the model is requesting to be pressed. This is an array of strings, each representing a key.2774827749          - `type: "keypress"`2775027751            Specifies the event type. For a keypress action, this property is always set to `keypress`.2775227753            - `"keypress"`2775427755        - `Move object { type, x, y, keys }`2775627757          A mouse move action.2775827759          - `type: "move"`2776027761            Specifies the event type. For a move action, this property is always set to `move`.2776227763            - `"move"`2776427765          - `x: number`2776627767            The x-coordinate to move to.2776827769          - `y: number`2777027771            The y-coordinate to move to.2777227773          - `keys: optional array of string or null`2777427775            The keys being held while moving the mouse.2777627777        - `Screenshot object { type }`2777827779          A screenshot action.2778027781          - `type: "screenshot"`2778227783            Specifies the event type. For a screenshot action, this property is always set to `screenshot`.2778427785            - `"screenshot"`2778627787        - `Scroll object { scroll_x, scroll_y, type, 3 more }`2778827789          A scroll action.2779027791          - `scroll_x: number`2779227793            The horizontal scroll distance.2779427795          - `scroll_y: number`2779627797            The vertical scroll distance.2779827799          - `type: "scroll"`2780027801            Specifies the event type. For a scroll action, this property is always set to `scroll`.2780227803            - `"scroll"`2780427805          - `x: number`2780627807            The x-coordinate where the scroll occurred.2780827809          - `y: number`2781027811            The y-coordinate where the scroll occurred.2781227813          - `keys: optional array of string or null`2781427815            The keys being held while scrolling.2781627817        - `Type object { text, type }`2781827819          An action to type in text.2782027821          - `text: string`2782227823            The text to type.2782427825          - `type: "type"`2782627827            Specifies the event type. For a type action, this property is always set to `type`.2782827829            - `"type"`2783027831        - `Wait object { type }`2783227833          A wait action.2783427835          - `type: "wait"`2783627837            Specifies the event type. For a wait action, this property is always set to `wait`.2783827839            - `"wait"`2784027841      - `actions: optional ComputerActionList`2784227843        Flattened batched actions for `computer_use`. Each action includes an27844        `type` discriminator and action-specific fields.2784527846        - `Click object { button, type, x, 2 more }`2784727848          A click action.2784927850        - `DoubleClick object { keys, type, x, y }`2785127852          A double click action.2785327854        - `Drag object { path, type, keys }`2785527856          A drag action.2785727858        - `Keypress object { keys, type }`2785927860          A collection of keypresses the model would like to perform.2786127862        - `Move object { type, x, y, keys }`2786327864          A mouse move action.2786527866        - `Screenshot object { type }`2786727868          A screenshot action.2786927870        - `Scroll object { scroll_x, scroll_y, type, 3 more }`2787127872          A scroll action.2787327874        - `Type object { text, type }`2787527876          An action to type in text.2787727878        - `Wait object { type }`2787927880          A wait action.2788127882    - `ComputerCallOutput object { id, call_id, output, 4 more }`2788327884      - `id: string`2788527886        The unique ID of the computer call tool output.2788727888      - `call_id: string`2788927890        The ID of the computer tool call that produced the output.2789127892      - `output: ResponseComputerToolCallOutputScreenshot`2789327894        A computer screenshot image used with the computer use tool.2789527896        - `type: "computer_screenshot"`2789727898          Specifies the event type. For a computer screenshot, this property is27899          always set to `computer_screenshot`.2790027901          - `"computer_screenshot"`2790227903        - `file_id: optional string`2790427905          The identifier of an uploaded file that contains the screenshot.2790627907        - `image_url: optional string`2790827909          The URL of the screenshot image.2791027911      - `status: "completed" or "incomplete" or "failed" or "in_progress"`2791227913        The status of the message input. One of `in_progress`, `completed`, or27914        `incomplete`. Populated when input items are returned via API.2791527916        - `"completed"`2791727918        - `"incomplete"`2791927920        - `"failed"`2792127922        - `"in_progress"`2792327924      - `type: "computer_call_output"`2792527926        The type of the computer tool call output. Always `computer_call_output`.2792727928        - `"computer_call_output"`2792927930      - `acknowledged_safety_checks: optional array of object { id, code, message }`2793127932        The safety checks reported by the API that have been acknowledged by the27933        developer.2793427935        - `id: string`2793627937          The ID of the pending safety check.2793827939        - `code: optional string or null`2794027941          The type of the pending safety check.2794227943        - `message: optional string or null`2794427945          Details about the pending safety check.2794627947      - `created_by: optional string`2794827949        The identifier of the actor that created the item.2795027951    - `ToolSearchCall object { id, arguments, call_id, 4 more }`2795227953      - `id: string`2795427955        The unique ID of the tool search call item.2795627957      - `arguments: unknown`2795827959        Arguments used for the tool search call.2796027961      - `call_id: string or null`2796227963        The unique ID of the tool search call generated by the model.2796427965      - `execution: "server" or "client"`2796627967        Whether tool search was executed by the server or by the client.2796827969        - `"server"`2797027971        - `"client"`2797227973      - `status: "in_progress" or "completed" or "incomplete"`2797427975        The status of the tool search call item that was recorded.2797627977        - `"in_progress"`2797827979        - `"completed"`2798027981        - `"incomplete"`2798227983      - `type: "tool_search_call"`2798427985        The type of the item. Always `tool_search_call`.2798627987        - `"tool_search_call"`2798827989      - `created_by: optional string`2799027991        The identifier of the actor that created the item.2799227993    - `ToolSearchOutput object { id, call_id, execution, 4 more }`2799427995      - `id: string`2799627997        The unique ID of the tool search output item.2799827999      - `call_id: string or null`2800028001        The unique ID of the tool search call generated by the model.2800228003      - `execution: "server" or "client"`2800428005        Whether tool search was executed by the server or by the client.2800628007        - `"server"`2800828009        - `"client"`2801028011      - `status: "in_progress" or "completed" or "incomplete"`2801228013        The status of the tool search output item that was recorded.2801428015        - `"in_progress"`2801628017        - `"completed"`2801828019        - `"incomplete"`2802028021      - `tools: array of object { name, parameters, strict, 6 more }  or object { type, vector_store_ids, filters, 2 more }  or object { type }  or 13 more`2802228023        The loaded tool definitions returned by tool search.2802428025        - `Function object { name, parameters, strict, 6 more }`2802628027          Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).2802828029          - `name: string`2803028031            The name of the function to call.2803228033          - `parameters: map[unknown] or null`2803428035            A JSON schema object describing the parameters of the function.2803628037          - `strict: boolean or null`2803828039            Whether strict parameter validation is enforced for this function tool.2804028041          - `type: "function"`2804228043            The type of the function tool. Always `function`.2804428045            - `"function"`2804628047          - `allowed_callers: optional array of "direct" or "programmatic" or null`2804828049            The tool invocation context(s).2805028051            - `"direct"`2805228053            - `"programmatic"`2805428055          - `async: optional boolean`2805628057          - `defer_loading: optional boolean`2805828059            Whether this function is deferred and loaded via tool search.2806028061          - `description: optional string or null`2806228063            A description of the function. Used by the model to determine whether or not to call the function.2806428065          - `output_schema: optional map[unknown] or null`2806628067            A JSON schema object describing the JSON value encoded in string outputs for this function.2806828069        - `FileSearch object { type, vector_store_ids, filters, 2 more }`2807028071          A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).2807228073          - `type: "file_search"`2807428075            The type of the file search tool. Always `file_search`.2807628077            - `"file_search"`2807828079          - `vector_store_ids: array of string`2808028081            The IDs of the vector stores to search.2808228083          - `filters: optional ComparisonFilter or CompoundFilter or null`2808428085            A filter to apply.2808628087            - `ComparisonFilter object { key, type, value }`2808828089              A filter used to compare a specified attribute key to a given value using a defined comparison operation.2809028091              - `key: string`2809228093                The key to compare against the value.2809428095              - `type: "eq" or "ne" or "gt" or 5 more`2809628097                Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`, `in`, `nin`.2809828099                - `eq`: equals28100                - `ne`: not equal28101                - `gt`: greater than28102                - `gte`: greater than or equal28103                - `lt`: less than28104                - `lte`: less than or equal28105                - `in`: in28106                - `nin`: not in2810728108                - `"eq"`2810928110                - `"ne"`2811128112                - `"gt"`2811328114                - `"gte"`2811528116                - `"lt"`2811728118                - `"lte"`2811928120                - `"in"`2812128122                - `"nin"`2812328124              - `value: string or number or boolean or array of string or number`2812528126                The value to compare against the attribute key; supports string, number, or boolean types.2812728128                - `string`2812928130                - `number`2813128132                - `boolean`2813328134                - `array of string or number`2813528136                  - `string`2813728138                  - `number`2813928140            - `CompoundFilter object { filters, type }`2814128142              Combine multiple filters using `and` or `or`.2814328144              - `filters: array of ComparisonFilter or unknown`2814528146                Array of filters to combine. Items can be `ComparisonFilter` or `CompoundFilter`.2814728148                - `ComparisonFilter object { key, type, value }`2814928150                  A filter used to compare a specified attribute key to a given value using a defined comparison operation.2815128152                - `unknown`2815328154              - `type: "and" or "or"`2815528156                Type of operation: `and` or `or`.2815728158                - `"and"`2815928160                - `"or"`2816128162          - `max_num_results: optional number`2816328164            The maximum number of results to return. This number should be between 1 and 50 inclusive.2816528166          - `ranking_options: optional object { hybrid_search, ranker, score_threshold }`2816728168            Ranking options for search.2816928170            - `hybrid_search: optional object { embedding_weight, text_weight }`2817128172              Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled.2817328174              - `embedding_weight: number`2817528176                The weight of the embedding in the reciprocal ranking fusion.2817728178              - `text_weight: number`2817928180                The weight of the text in the reciprocal ranking fusion.2818128182            - `ranker: optional "auto" or "default-2024-11-15"`2818328184              The ranker to use for the file search.2818528186              - `"auto"`2818728188              - `"default-2024-11-15"`2818928190            - `score_threshold: optional number`2819128192              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.2819328194        - `Computer object { type }`2819528196          A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).2819728198          - `type: "computer"`2819928200            The type of the computer tool. Always `computer`.2820128202            - `"computer"`2820328204        - `ComputerUsePreview object { display_height, display_width, environment, type }`2820528206          A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).2820728208          - `display_height: number`2820928210            The height of the computer display.2821128212          - `display_width: number`2821328214            The width of the computer display.2821528216          - `environment: "windows" or "mac" or "linux" or 2 more`2821728218            The type of computer environment to control.2821928220            - `"windows"`2822128222            - `"mac"`2822328224            - `"linux"`2822528226            - `"ubuntu"`2822728228            - `"browser"`2822928230          - `type: "computer_use_preview"`2823128232            The type of the computer use tool. Always `computer_use_preview`.2823328234            - `"computer_use_preview"`2823528236        - `WebSearch object { type, external_web_access, filters, 2 more }`2823728238          Search the Internet for sources related to the prompt. Learn more about the28239          [web search tool](/api/docs/guides/tools-web-search).2824028241          - `type: "web_search" or "web_search_2025_08_26"`2824228243            The type of the web search tool. One of `web_search` or `web_search_2025_08_26`.2824428245            - `"web_search"`2824628247            - `"web_search_2025_08_26"`2824828249          - `external_web_access: optional boolean`2825028251            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.2825228253          - `filters: optional object { allowed_domains }  or null`2825428255            Filters for the search.2825628257            - `allowed_domains: optional array of string or null`2825828259              Allowed domains for the search. If not provided, all domains are allowed.28260              Subdomains of the provided domains are allowed as well.2826128262              Example: `["pubmed.ncbi.nlm.nih.gov"]`2826328264          - `search_context_size: optional "low" or "medium" or "high"`2826528266            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.2826728268            - `"low"`2826928270            - `"medium"`2827128272            - `"high"`2827328274          - `user_location: optional object { city, country, region, 2 more }  or null`2827528276            The approximate location of the user.2827728278            - `city: optional string or null`2827928280              Free text input for the city of the user, e.g. `San Francisco`.2828128282            - `country: optional string or null`2828328284              The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.2828528286            - `region: optional string or null`2828728288              Free text input for the region of the user, e.g. `California`.2828928290            - `timezone: optional string or null`2829128292              The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.2829328294            - `type: optional "approximate"`2829528296              The type of location approximation. Always `approximate`.2829728298              - `"approximate"`2829928300        - `Mcp object { server_label, type, allowed_callers, 9 more }`2830128302          Give the model access to additional tools via remote Model Context Protocol28303          (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).2830428305          - `server_label: string`2830628307            A label for this MCP server, used to identify it in tool calls.2830828309          - `type: "mcp"`2831028311            The type of the MCP tool. Always `mcp`.2831228313            - `"mcp"`2831428315          - `allowed_callers: optional array of "direct" or "programmatic" or null`2831628317            The tool invocation context(s).2831828319            - `"direct"`2832028321            - `"programmatic"`2832228323          - `allowed_tools: optional array of string or object { read_only, tool_names }  or null`2832428325            List of allowed tool names or a filter object.2832628327            - `McpAllowedTools = array of string`2832828329              A string array of allowed tool names2833028331            - `McpToolFilter object { read_only, tool_names }`2833228333              A filter object to specify which tools are allowed.2833428335              - `read_only: optional boolean`2833628337                Indicates whether or not a tool modifies data or is read-only. If an28338                MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),28339                it will match this filter.2834028341              - `tool_names: optional array of string`2834228343                List of allowed tool names.2834428345          - `authorization: optional string`2834628347            An OAuth access token that can be used with a remote MCP server, either28348            with a custom MCP server URL or a service connector. Your application28349            must handle the OAuth authorization flow and provide the token here.2835028351          - `connector_id: optional "connector_dropbox" or "connector_gmail" or "connector_googlecalendar" or 5 more`2835228353            Identifier for service connectors, like those available in ChatGPT. One of28354            `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more28355            about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).2835628357            This field is deprecated for models released after September 1, 2026.28358            Use `server_url` to connect to a remote MCP server, or `tunnel_id` to28359            connect through a Secure MCP Tunnel.2836028361            Currently supported `connector_id` values are:2836228363            - Dropbox: `connector_dropbox`28364            - Gmail: `connector_gmail`28365            - Google Calendar: `connector_googlecalendar`28366            - Google Drive: `connector_googledrive`28367            - Microsoft Teams: `connector_microsoftteams`28368            - Outlook Calendar: `connector_outlookcalendar`28369            - Outlook Email: `connector_outlookemail`28370            - SharePoint: `connector_sharepoint`2837128372            - `"connector_dropbox"`2837328374            - `"connector_gmail"`2837528376            - `"connector_googlecalendar"`2837728378            - `"connector_googledrive"`2837928380            - `"connector_microsoftteams"`2838128382            - `"connector_outlookcalendar"`2838328384            - `"connector_outlookemail"`2838528386            - `"connector_sharepoint"`2838728388          - `defer_loading: optional boolean`2838928390            Whether this MCP tool is deferred and discovered via tool search.2839128392          - `headers: optional map[string] or null`2839328394            Optional HTTP headers to send to the MCP server. Use for authentication28395            or other purposes.2839628397          - `require_approval: optional object { always, never }  or "always" or "never" or null`2839828399            Specify which of the MCP server's tools require approval.2840028401            - `McpToolApprovalFilter object { always, never }`2840228403              Specify which of the MCP server's tools require approval. Can be28404              `always`, `never`, or a filter object associated with tools28405              that require approval.2840628407              - `always: optional object { read_only, tool_names }`2840828409                A filter object to specify which tools are allowed.2841028411                - `read_only: optional boolean`2841228413                  Indicates whether or not a tool modifies data or is read-only. If an28414                  MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),28415                  it will match this filter.2841628417                - `tool_names: optional array of string`2841828419                  List of allowed tool names.2842028421              - `never: optional object { read_only, tool_names }`2842228423                A filter object to specify which tools are allowed.2842428425                - `read_only: optional boolean`2842628427                  Indicates whether or not a tool modifies data or is read-only. If an28428                  MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),28429                  it will match this filter.2843028431                - `tool_names: optional array of string`2843228433                  List of allowed tool names.2843428435            - `McpToolApprovalSetting = "always" or "never"`2843628437              Specify a single approval policy for all tools. One of `always` or28438              `never`. When set to `always`, all tools will require approval. When28439              set to `never`, all tools will not require approval.2844028441              - `"always"`2844228443              - `"never"`2844428445          - `server_description: optional string`2844628447            Optional description of the MCP server, used to provide more context.2844828449          - `server_url: optional string`2845028451            The URL for the MCP server. One of `server_url`, `connector_id`, or28452            `tunnel_id` must be provided.2845328454          - `tunnel_id: optional string`2845528456            The Secure MCP Tunnel ID to use instead of a direct server URL. One of28457            `server_url`, `connector_id`, or `tunnel_id` must be provided.2845828459        - `CodeInterpreter object { container, type, allowed_callers }`2846028461          A tool that runs Python code to help generate a response to a prompt.2846228463          - `container: string or object { type, file_ids, memory_limit, network_policy }`2846428465            The code interpreter container. Can be a container ID or an object that28466            specifies uploaded file IDs to make available to your code, along with an28467            optional `memory_limit` setting.2846828469            - `string`2847028471              The container ID.2847228473            - `CodeInterpreterToolAuto object { type, file_ids, memory_limit, network_policy }`2847428475              Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.2847628477              - `type: "auto"`2847828479                Always `auto`.2848028481                - `"auto"`2848228483              - `file_ids: optional array of string`2848428485                An optional list of uploaded files to make available to your code.2848628487              - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`2848828489                The memory limit for the code interpreter container.2849028491                - `"1g"`2849228493                - `"4g"`2849428495                - `"16g"`2849628497                - `"64g"`2849828499              - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`2850028501                Network access policy for the container.2850228503                - `ContainerNetworkPolicyDisabled object { type }`2850428505                  - `type: "disabled"`2850628507                    Disable outbound network access. Always `disabled`.2850828509                    - `"disabled"`2851028511                - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`2851228513                  - `allowed_domains: array of string`2851428515                    A list of allowed domains when type is `allowlist`.2851628517                  - `type: "allowlist"`2851828519                    Allow outbound network access only to specified domains. Always `allowlist`.2852028521                    - `"allowlist"`2852228523                  - `domain_secrets: optional array of ContainerNetworkPolicyDomainSecret`2852428525                    Optional domain-scoped secrets for allowlisted domains.2852628527                    - `domain: string`2852828529                      The domain associated with the secret.2853028531                    - `name: string`2853228533                      The name of the secret to inject for the domain.2853428535                    - `value: string`2853628537                      The secret value to inject for the domain.2853828539          - `type: "code_interpreter"`2854028541            The type of the code interpreter tool. Always `code_interpreter`.2854228543            - `"code_interpreter"`2854428545          - `allowed_callers: optional array of "direct" or "programmatic" or null`2854628547            The tool invocation context(s).2854828549            - `"direct"`2855028551            - `"programmatic"`2855228553        - `ProgrammaticToolCalling object { type }`2855428555          - `type: "programmatic_tool_calling"`2855628557            The type of the tool. Always `programmatic_tool_calling`.2855828559            - `"programmatic_tool_calling"`2856028561        - `ImageGeneration object { type, action, background, 9 more }`2856228563          A tool that generates images using the GPT image models.2856428565          - `type: "image_generation"`2856628567            The type of the image generation tool. Always `image_generation`.2856828569            - `"image_generation"`2857028571          - `action: optional "generate" or "edit" or "auto"`2857228573            Whether to generate a new image or edit an existing image. Default: `auto`.2857428575            - `"generate"`2857628577            - `"edit"`2857828579            - `"auto"`2858028581          - `background: optional "transparent" or "opaque" or "auto"`2858228583            Set the background of the generated image. One of `transparent`, `opaque`,28584            or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including28585            their `2026-09-08` snapshots, support `opaque` and `transparent`28586            backgrounds. Transparent backgrounds are available for supported GPT Image28587            models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in28588            preview. When using `transparent`, set the output format to `png` or `webp`.28589            Default: `auto`.2859028591            - `"transparent"`2859228593            - `"opaque"`2859428595            - `"auto"`2859628597          - `input_fidelity: optional "high" or "low" or null`2859828599            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`.2860028601            - `"high"`2860228603            - `"low"`2860428605          - `input_image_mask: optional object { file_id, image_url }`2860628607            Optional mask for inpainting. Contains `image_url`28608            (string, optional) and `file_id` (string, optional).2860928610            - `file_id: optional string`2861128612              File ID for the mask image.2861328614            - `image_url: optional string`2861528616              Base64-encoded mask image.2861728618          - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2861928620            The image generation model to use. One of `gpt-image-1`,28621            `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,28622            `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,28623            `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,28624            `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:28625            `gpt-image-1`.2862628627            - `string`2862828629            - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2863028631              The image generation model to use. One of `gpt-image-1`,28632              `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,28633              `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,28634              `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,28635              `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:28636              `gpt-image-1`.2863728638              - `"gpt-image-1"`2863928640              - `"gpt-image-1-mini"`2864128642              - `"gpt-image-1.5"`2864328644              - `"gpt-image-2"`2864528646              - `"gpt-image-2-2026-04-21"`2864728648              - `"gpt-image-2.5-sunburst"`2864928650              - `"gpt-image-2.5-sunburst-2026-09-08"`2865128652              - `"gpt-image-2.5-flare"`2865328654              - `"gpt-image-2.5-flare-2026-09-08"`2865528656          - `moderation: optional "auto" or "low"`2865728658            Moderation level for the generated image. Default: `auto`.2865928660            - `"auto"`2866128662            - `"low"`2866328664          - `output_compression: optional number`2866528666            Compression level for the output image. Default: 100.2866728668          - `output_format: optional "png" or "webp" or "jpeg"`2866928670            The output format of the generated image. One of `png`, `webp`, or28671            `jpeg`. Default: `png`.2867228673            - `"png"`2867428675            - `"webp"`2867628677            - `"jpeg"`2867828679          - `partial_images: optional number`2868028681            Number of partial images to generate in streaming mode, from 0 (default value) to 3.2868228683          - `quality: optional "low" or "medium" or "high" or 3 more`2868428685            The quality of the generated image. The GPT image models support `low`,28686            `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,28687            including their `2026-09-08` snapshots, also support `xhigh` and `max`.28688            Default: `auto`.2868928690            - `"low"`2869128692            - `"medium"`2869328694            - `"high"`2869528696            - `"xhigh"`2869728698            - `"max"`2869928700            - `"auto"`2870128702          - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`2870328704            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`.2870528706            - `string`2870728708            - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`2870928710              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`.2871128712              - `"1024x1024"`2871328714              - `"1024x1536"`2871528716              - `"1536x1024"`2871728718              - `"auto"`2871928720        - `LocalShell object { type }`2872128722          A tool that allows the model to execute shell commands in a local environment.2872328724          - `type: "local_shell"`2872528726            The type of the local shell tool. Always `local_shell`.2872728728            - `"local_shell"`2872928730        - `Shell object { type, allowed_callers, environment }`2873128732          A tool that allows the model to execute shell commands.2873328734          - `type: "shell"`2873528736            The type of the shell tool. Always `shell`.2873728738            - `"shell"`2873928740          - `allowed_callers: optional array of "direct" or "programmatic" or null`2874128742            The tool invocation context(s).2874328744            - `"direct"`2874528746            - `"programmatic"`2874728748          - `environment: optional ContainerAuto or LocalEnvironment or ContainerReference or null`2874928750            - `ContainerAuto object { type, file_ids, memory_limit, 2 more }`2875128752              - `type: "container_auto"`2875328754                Automatically creates a container for this request2875528756                - `"container_auto"`2875728758              - `file_ids: optional array of string`2875928760                An optional list of uploaded files to make available to your code.2876128762              - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`2876328764                The memory limit for the container.2876528766                - `"1g"`2876728768                - `"4g"`2876928770                - `"16g"`2877128772                - `"64g"`2877328774              - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`2877528776                Network access policy for the container.2877728778                - `ContainerNetworkPolicyDisabled object { type }`2877928780                - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`2878128782              - `skills: optional array of SkillReference or InlineSkill`2878328784                An optional list of skills referenced by id or inline data.2878528786                - `SkillReference object { skill_id, type, version }`2878728788                  - `skill_id: string`2878928790                    The ID of the referenced skill.2879128792                  - `type: "skill_reference"`2879328794                    References a skill created with the /v1/skills endpoint.2879528796                    - `"skill_reference"`2879728798                  - `version: optional string`2879928800                    Optional skill version. Use a positive integer or 'latest'. Omit for default.2880128802                - `InlineSkill object { description, name, source, type }`2880328804                  - `description: string`2880528806                    The description of the skill.2880728808                  - `name: string`2880928810                    The name of the skill.2881128812                  - `source: InlineSkillSource`2881328814                    Inline skill payload2881528816                    - `data: string`2881728818                      Base64-encoded skill zip bundle.2881928820                    - `media_type: "application/zip"`2882128822                      The media type of the inline skill payload. Must be `application/zip`.2882328824                      - `"application/zip"`2882528826                    - `type: "base64"`2882728828                      The type of the inline skill source. Must be `base64`.2882928830                      - `"base64"`2883128832                  - `type: "inline"`2883328834                    Defines an inline skill for this request.2883528836                    - `"inline"`2883728838            - `LocalEnvironment object { type, skills }`2883928840              - `type: "local"`2884128842                Use a local computer environment.2884328844                - `"local"`2884528846              - `skills: optional array of LocalSkill`2884728848                An optional list of skills.2884928850                - `description: string`2885128852                  The description of the skill.2885328854                - `name: string`2885528856                  The name of the skill.2885728858                - `path: string`2885928860                  The path to the directory containing the skill.2886128862            - `ContainerReference object { container_id, type }`2886328864              - `container_id: string`2886528866                The ID of the referenced container.2886728868              - `type: "container_reference"`2886928870                References a container created with the /v1/containers endpoint2887128872                - `"container_reference"`2887328874        - `Custom object { name, type, allowed_callers, 4 more }`2887528876          A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)2887728878          - `name: string`2887928880            The name of the custom tool, used to identify it in tool calls.2888128882          - `type: "custom"`2888328884            The type of the custom tool. Always `custom`.2888528886            - `"custom"`2888728888          - `allowed_callers: optional array of "direct" or "programmatic" or null`2888928890            The tool invocation context(s).2889128892            - `"direct"`2889328894            - `"programmatic"`2889528896          - `async: optional boolean`2889728898            Whether the tool response can be returned asynchronously versus immediately returned on next response creation.2889928900          - `defer_loading: optional boolean`2890128902            Whether this tool should be deferred and discovered via tool search.2890328904          - `description: optional string`2890528906            Optional description of the custom tool, used to provide more context.2890728908          - `format: optional CustomToolInputFormat`2890928910            The input format for the custom tool. Default is unconstrained text.2891128912            - `Text object { type }`2891328914              Unconstrained free-form text.2891528916              - `type: "text"`2891728918                Unconstrained text format. Always `text`.2891928920                - `"text"`2892128922            - `Grammar object { definition, syntax, type }`2892328924              A grammar defined by the user.2892528926              - `definition: string`2892728928                The grammar definition.2892928930              - `syntax: "lark" or "regex"`2893128932                The syntax of the grammar definition. One of `lark` or `regex`.2893328934                - `"lark"`2893528936                - `"regex"`2893728938              - `type: "grammar"`2893928940                Grammar format. Always `grammar`.2894128942                - `"grammar"`2894328944        - `Namespace object { description, name, tools, type }`2894528946          Groups function/custom tools under a shared namespace.2894728948          - `description: string`2894928950            A description of the namespace shown to the model.2895128952          - `name: string`2895328954            The namespace name used in tool calls (for example, `crm`).2895528956          - `tools: array of object { name, type, allowed_callers, 6 more }  or object { name, type, allowed_callers, 4 more }`2895728958            The function/custom tools available inside this namespace.2895928960            - `Function object { name, type, allowed_callers, 6 more }`2896128962              - `name: string`2896328964              - `type: "function"`2896528966                - `"function"`2896728968              - `allowed_callers: optional array of "direct" or "programmatic" or null`2896928970                The tool invocation context(s).2897128972                - `"direct"`2897328974                - `"programmatic"`2897528976              - `async: optional boolean`2897728978                Whether the tool response can be returned asynchronously versus immediately returned on next response creation.2897928980              - `defer_loading: optional boolean`2898128982                Whether this function should be deferred and discovered via tool search.2898328984              - `description: optional string or null`2898528986              - `output_schema: optional map[unknown] or null`2898728988                A JSON Schema describing the JSON value encoded in string outputs for this function tool. This does not describe content-array outputs.2898928990              - `parameters: optional unknown or null`2899128992              - `strict: optional boolean or null`2899328994                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.2899528996            - `Custom object { name, type, allowed_callers, 4 more }`2899728998              A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)2899929000              - `name: string`2900129002                The name of the custom tool, used to identify it in tool calls.2900329004              - `type: "custom"`2900529006                The type of the custom tool. Always `custom`.2900729008                - `"custom"`2900929010              - `allowed_callers: optional array of "direct" or "programmatic" or null`2901129012                The tool invocation context(s).2901329014                - `"direct"`2901529016                - `"programmatic"`2901729018              - `async: optional boolean`2901929020                Whether the tool response can be returned asynchronously versus immediately returned on next response creation.2902129022              - `defer_loading: optional boolean`2902329024                Whether this tool should be deferred and discovered via tool search.2902529026              - `description: optional string`2902729028                Optional description of the custom tool, used to provide more context.2902929030              - `format: optional CustomToolInputFormat`2903129032                The input format for the custom tool. Default is unconstrained text.2903329034          - `type: "namespace"`2903529036            The type of the tool. Always `namespace`.2903729038            - `"namespace"`2903929040        - `ToolSearch object { type, description, execution, parameters }`2904129042          Hosted or BYOT tool search configuration for deferred tools.2904329044          - `type: "tool_search"`2904529046            The type of the tool. Always `tool_search`.2904729048            - `"tool_search"`2904929050          - `description: optional string or null`2905129052            Description shown to the model for a client-executed tool search tool.2905329054          - `execution: optional "server" or "client"`2905529056            Whether tool search is executed by the server or by the client.2905729058            - `"server"`2905929060            - `"client"`2906129062          - `parameters: optional unknown or null`2906329064            Parameter schema for a client-executed tool search tool.2906529066        - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`2906729068          This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](/api/docs/guides/tools-web-search).2906929070          - `type: "web_search_preview" or "web_search_preview_2025_03_11"`2907129072            The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.2907329074            - `"web_search_preview"`2907529076            - `"web_search_preview_2025_03_11"`2907729078          - `search_content_types: optional array of "text" or "image"`2907929080            - `"text"`2908129082            - `"image"`2908329084          - `search_context_size: optional "low" or "medium" or "high"`2908529086            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.2908729088            - `"low"`2908929090            - `"medium"`2909129092            - `"high"`2909329094          - `user_location: optional object { type, city, country, 2 more }  or null`2909529096            The user's location.2909729098            - `type: "approximate"`2909929100              The type of location approximation. Always `approximate`.2910129102              - `"approximate"`2910329104            - `city: optional string or null`2910529106              Free text input for the city of the user, e.g. `San Francisco`.2910729108            - `country: optional string or null`2910929110              The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.2911129112            - `region: optional string or null`2911329114              Free text input for the region of the user, e.g. `California`.2911529116            - `timezone: optional string or null`2911729118              The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.2911929120        - `ApplyPatch object { type, allowed_callers }`2912129122          Allows the assistant to create, delete, or update files using unified diffs.2912329124          - `type: "apply_patch"`2912529126            The type of the tool. Always `apply_patch`.2912729128            - `"apply_patch"`2912929130          - `allowed_callers: optional array of "direct" or "programmatic" or null`2913129132            The tool invocation context(s).2913329134            - `"direct"`2913529136            - `"programmatic"`2913729138      - `type: "tool_search_output"`2913929140        The type of the item. Always `tool_search_output`.2914129142        - `"tool_search_output"`2914329144      - `created_by: optional string`2914529146        The identifier of the actor that created the item.2914729148    - `AdditionalTools object { id, role, tools, type }`2914929150      - `id: string`2915129152        The unique ID of the additional tools item.2915329154      - `role: "unknown" or "user" or "assistant" or 5 more`2915529156        The role that provided the additional tools.2915729158        - `"unknown"`2915929160        - `"user"`2916129162        - `"assistant"`2916329164        - `"system"`2916529166        - `"critic"`2916729168        - `"discriminator"`2916929170        - `"developer"`2917129172        - `"tool"`2917329174      - `tools: array of object { name, parameters, strict, 6 more }  or object { type, vector_store_ids, filters, 2 more }  or object { type }  or 13 more`2917529176        The additional tool definitions made available at this item.2917729178        - `Function object { name, parameters, strict, 6 more }`2917929180          Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).2918129182          - `name: string`2918329184            The name of the function to call.2918529186          - `parameters: map[unknown] or null`2918729188            A JSON schema object describing the parameters of the function.2918929190          - `strict: boolean or null`2919129192            Whether strict parameter validation is enforced for this function tool.2919329194          - `type: "function"`2919529196            The type of the function tool. Always `function`.2919729198            - `"function"`2919929200          - `allowed_callers: optional array of "direct" or "programmatic" or null`2920129202            The tool invocation context(s).2920329204            - `"direct"`2920529206            - `"programmatic"`2920729208          - `async: optional boolean`2920929210          - `defer_loading: optional boolean`2921129212            Whether this function is deferred and loaded via tool search.2921329214          - `description: optional string or null`2921529216            A description of the function. Used by the model to determine whether or not to call the function.2921729218          - `output_schema: optional map[unknown] or null`2921929220            A JSON schema object describing the JSON value encoded in string outputs for this function.2922129222        - `FileSearch object { type, vector_store_ids, filters, 2 more }`2922329224          A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).2922529226          - `type: "file_search"`2922729228            The type of the file search tool. Always `file_search`.2922929230            - `"file_search"`2923129232          - `vector_store_ids: array of string`2923329234            The IDs of the vector stores to search.2923529236          - `filters: optional ComparisonFilter or CompoundFilter or null`2923729238            A filter to apply.2923929240            - `ComparisonFilter object { key, type, value }`2924129242              A filter used to compare a specified attribute key to a given value using a defined comparison operation.2924329244            - `CompoundFilter object { filters, type }`2924529246              Combine multiple filters using `and` or `or`.2924729248          - `max_num_results: optional number`2924929250            The maximum number of results to return. This number should be between 1 and 50 inclusive.2925129252          - `ranking_options: optional object { hybrid_search, ranker, score_threshold }`2925329254            Ranking options for search.2925529256            - `hybrid_search: optional object { embedding_weight, text_weight }`2925729258              Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled.2925929260              - `embedding_weight: number`2926129262                The weight of the embedding in the reciprocal ranking fusion.2926329264              - `text_weight: number`2926529266                The weight of the text in the reciprocal ranking fusion.2926729268            - `ranker: optional "auto" or "default-2024-11-15"`2926929270              The ranker to use for the file search.2927129272              - `"auto"`2927329274              - `"default-2024-11-15"`2927529276            - `score_threshold: optional number`2927729278              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.2927929280        - `Computer object { type }`2928129282          A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).2928329284          - `type: "computer"`2928529286            The type of the computer tool. Always `computer`.2928729288            - `"computer"`2928929290        - `ComputerUsePreview object { display_height, display_width, environment, type }`2929129292          A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).2929329294          - `display_height: number`2929529296            The height of the computer display.2929729298          - `display_width: number`2929929300            The width of the computer display.2930129302          - `environment: "windows" or "mac" or "linux" or 2 more`2930329304            The type of computer environment to control.2930529306            - `"windows"`2930729308            - `"mac"`2930929310            - `"linux"`2931129312            - `"ubuntu"`2931329314            - `"browser"`2931529316          - `type: "computer_use_preview"`2931729318            The type of the computer use tool. Always `computer_use_preview`.2931929320            - `"computer_use_preview"`2932129322        - `WebSearch object { type, external_web_access, filters, 2 more }`2932329324          Search the Internet for sources related to the prompt. Learn more about the29325          [web search tool](/api/docs/guides/tools-web-search).2932629327          - `type: "web_search" or "web_search_2025_08_26"`2932829329            The type of the web search tool. One of `web_search` or `web_search_2025_08_26`.2933029331            - `"web_search"`2933229333            - `"web_search_2025_08_26"`2933429335          - `external_web_access: optional boolean`2933629337            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.2933829339          - `filters: optional object { allowed_domains }  or null`2934029341            Filters for the search.2934229343            - `allowed_domains: optional array of string or null`2934429345              Allowed domains for the search. If not provided, all domains are allowed.29346              Subdomains of the provided domains are allowed as well.2934729348              Example: `["pubmed.ncbi.nlm.nih.gov"]`2934929350          - `search_context_size: optional "low" or "medium" or "high"`2935129352            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.2935329354            - `"low"`2935529356            - `"medium"`2935729358            - `"high"`2935929360          - `user_location: optional object { city, country, region, 2 more }  or null`2936129362            The approximate location of the user.2936329364            - `city: optional string or null`2936529366              Free text input for the city of the user, e.g. `San Francisco`.2936729368            - `country: optional string or null`2936929370              The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.2937129372            - `region: optional string or null`2937329374              Free text input for the region of the user, e.g. `California`.2937529376            - `timezone: optional string or null`2937729378              The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.2937929380            - `type: optional "approximate"`2938129382              The type of location approximation. Always `approximate`.2938329384              - `"approximate"`2938529386        - `Mcp object { server_label, type, allowed_callers, 9 more }`2938729388          Give the model access to additional tools via remote Model Context Protocol29389          (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).2939029391          - `server_label: string`2939229393            A label for this MCP server, used to identify it in tool calls.2939429395          - `type: "mcp"`2939629397            The type of the MCP tool. Always `mcp`.2939829399            - `"mcp"`2940029401          - `allowed_callers: optional array of "direct" or "programmatic" or null`2940229403            The tool invocation context(s).2940429405            - `"direct"`2940629407            - `"programmatic"`2940829409          - `allowed_tools: optional array of string or object { read_only, tool_names }  or null`2941029411            List of allowed tool names or a filter object.2941229413            - `McpAllowedTools = array of string`2941429415              A string array of allowed tool names2941629417            - `McpToolFilter object { read_only, tool_names }`2941829419              A filter object to specify which tools are allowed.2942029421              - `read_only: optional boolean`2942229423                Indicates whether or not a tool modifies data or is read-only. If an29424                MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),29425                it will match this filter.2942629427              - `tool_names: optional array of string`2942829429                List of allowed tool names.2943029431          - `authorization: optional string`2943229433            An OAuth access token that can be used with a remote MCP server, either29434            with a custom MCP server URL or a service connector. Your application29435            must handle the OAuth authorization flow and provide the token here.2943629437          - `connector_id: optional "connector_dropbox" or "connector_gmail" or "connector_googlecalendar" or 5 more`2943829439            Identifier for service connectors, like those available in ChatGPT. One of29440            `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more29441            about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).2944229443            This field is deprecated for models released after September 1, 2026.29444            Use `server_url` to connect to a remote MCP server, or `tunnel_id` to29445            connect through a Secure MCP Tunnel.2944629447            Currently supported `connector_id` values are:2944829449            - Dropbox: `connector_dropbox`29450            - Gmail: `connector_gmail`29451            - Google Calendar: `connector_googlecalendar`29452            - Google Drive: `connector_googledrive`29453            - Microsoft Teams: `connector_microsoftteams`29454            - Outlook Calendar: `connector_outlookcalendar`29455            - Outlook Email: `connector_outlookemail`29456            - SharePoint: `connector_sharepoint`2945729458            - `"connector_dropbox"`2945929460            - `"connector_gmail"`2946129462            - `"connector_googlecalendar"`2946329464            - `"connector_googledrive"`2946529466            - `"connector_microsoftteams"`2946729468            - `"connector_outlookcalendar"`2946929470            - `"connector_outlookemail"`2947129472            - `"connector_sharepoint"`2947329474          - `defer_loading: optional boolean`2947529476            Whether this MCP tool is deferred and discovered via tool search.2947729478          - `headers: optional map[string] or null`2947929480            Optional HTTP headers to send to the MCP server. Use for authentication29481            or other purposes.2948229483          - `require_approval: optional object { always, never }  or "always" or "never" or null`2948429485            Specify which of the MCP server's tools require approval.2948629487            - `McpToolApprovalFilter object { always, never }`2948829489              Specify which of the MCP server's tools require approval. Can be29490              `always`, `never`, or a filter object associated with tools29491              that require approval.2949229493              - `always: optional object { read_only, tool_names }`2949429495                A filter object to specify which tools are allowed.2949629497                - `read_only: optional boolean`2949829499                  Indicates whether or not a tool modifies data or is read-only. If an29500                  MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),29501                  it will match this filter.2950229503                - `tool_names: optional array of string`2950429505                  List of allowed tool names.2950629507              - `never: optional object { read_only, tool_names }`2950829509                A filter object to specify which tools are allowed.2951029511                - `read_only: optional boolean`2951229513                  Indicates whether or not a tool modifies data or is read-only. If an29514                  MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),29515                  it will match this filter.2951629517                - `tool_names: optional array of string`2951829519                  List of allowed tool names.2952029521            - `McpToolApprovalSetting = "always" or "never"`2952229523              Specify a single approval policy for all tools. One of `always` or29524              `never`. When set to `always`, all tools will require approval. When29525              set to `never`, all tools will not require approval.2952629527              - `"always"`2952829529              - `"never"`2953029531          - `server_description: optional string`2953229533            Optional description of the MCP server, used to provide more context.2953429535          - `server_url: optional string`2953629537            The URL for the MCP server. One of `server_url`, `connector_id`, or29538            `tunnel_id` must be provided.2953929540          - `tunnel_id: optional string`2954129542            The Secure MCP Tunnel ID to use instead of a direct server URL. One of29543            `server_url`, `connector_id`, or `tunnel_id` must be provided.2954429545        - `CodeInterpreter object { container, type, allowed_callers }`2954629547          A tool that runs Python code to help generate a response to a prompt.2954829549          - `container: string or object { type, file_ids, memory_limit, network_policy }`2955029551            The code interpreter container. Can be a container ID or an object that29552            specifies uploaded file IDs to make available to your code, along with an29553            optional `memory_limit` setting.2955429555            - `string`2955629557              The container ID.2955829559            - `CodeInterpreterToolAuto object { type, file_ids, memory_limit, network_policy }`2956029561              Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.2956229563              - `type: "auto"`2956429565                Always `auto`.2956629567                - `"auto"`2956829569              - `file_ids: optional array of string`2957029571                An optional list of uploaded files to make available to your code.2957229573              - `memory_limit: optional "1g" or "4g" or "16g" or "64g" or null`2957429575                The memory limit for the code interpreter container.2957629577                - `"1g"`2957829579                - `"4g"`2958029581                - `"16g"`2958229583                - `"64g"`2958429585              - `network_policy: optional ContainerNetworkPolicyDisabled or ContainerNetworkPolicyAllowlist`2958629587                Network access policy for the container.2958829589                - `ContainerNetworkPolicyDisabled object { type }`2959029591                - `ContainerNetworkPolicyAllowlist object { allowed_domains, type, domain_secrets }`2959229593          - `type: "code_interpreter"`2959429595            The type of the code interpreter tool. Always `code_interpreter`.2959629597            - `"code_interpreter"`2959829599          - `allowed_callers: optional array of "direct" or "programmatic" or null`2960029601            The tool invocation context(s).2960229603            - `"direct"`2960429605            - `"programmatic"`2960629607        - `ProgrammaticToolCalling object { type }`2960829609          - `type: "programmatic_tool_calling"`2961029611            The type of the tool. Always `programmatic_tool_calling`.2961229613            - `"programmatic_tool_calling"`2961429615        - `ImageGeneration object { type, action, background, 9 more }`2961629617          A tool that generates images using the GPT image models.2961829619          - `type: "image_generation"`2962029621            The type of the image generation tool. Always `image_generation`.2962229623            - `"image_generation"`2962429625          - `action: optional "generate" or "edit" or "auto"`2962629627            Whether to generate a new image or edit an existing image. Default: `auto`.2962829629            - `"generate"`2963029631            - `"edit"`2963229633            - `"auto"`2963429635          - `background: optional "transparent" or "opaque" or "auto"`2963629637            Set the background of the generated image. One of `transparent`, `opaque`,29638            or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including29639            their `2026-09-08` snapshots, support `opaque` and `transparent`29640            backgrounds. Transparent backgrounds are available for supported GPT Image29641            models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in29642            preview. When using `transparent`, set the output format to `png` or `webp`.29643            Default: `auto`.2964429645            - `"transparent"`2964629647            - `"opaque"`2964829649            - `"auto"`2965029651          - `input_fidelity: optional "high" or "low" or null`2965229653            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`.2965429655            - `"high"`2965629657            - `"low"`2965829659          - `input_image_mask: optional object { file_id, image_url }`2966029661            Optional mask for inpainting. Contains `image_url`29662            (string, optional) and `file_id` (string, optional).2966329664            - `file_id: optional string`2966529666              File ID for the mask image.2966729668            - `image_url: optional string`2966929670              Base64-encoded mask image.2967129672          - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2967329674            The image generation model to use. One of `gpt-image-1`,29675            `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,29676            `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,29677            `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,29678            `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:29679            `gpt-image-1`.2968029681            - `string`2968229683            - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2968429685              The image generation model to use. One of `gpt-image-1`,29686              `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,29687              `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,29688              `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,29689              `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:29690              `gpt-image-1`.2969129692              - `"gpt-image-1"`2969329694              - `"gpt-image-1-mini"`2969529696              - `"gpt-image-1.5"`2969729698              - `"gpt-image-2"`2969929700              - `"gpt-image-2-2026-04-21"`2970129702              - `"gpt-image-2.5-sunburst"`2970329704              - `"gpt-image-2.5-sunburst-2026-09-08"`2970529706              - `"gpt-image-2.5-flare"`2970729708              - `"gpt-image-2.5-flare-2026-09-08"`2970929710          - `moderation: optional "auto" or "low"`2971129712            Moderation level for the generated image. Default: `auto`.2971329714            - `"auto"`2971529716            - `"low"`2971729718          - `output_compression: optional number`2971929720            Compression level for the output image. Default: 100.2972129722          - `output_format: optional "png" or "webp" or "jpeg"`2972329724            The output format of the generated image. One of `png`, `webp`, or29725            `jpeg`. Default: `png`.2972629727            - `"png"`2972829729            - `"webp"`2973029731            - `"jpeg"`2973229733          - `partial_images: optional number`2973429735            Number of partial images to generate in streaming mode, from 0 (default value) to 3.2973629737          - `quality: optional "low" or "medium" or "high" or 3 more`2973829739            The quality of the generated image. The GPT image models support `low`,29740            `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,29741            including their `2026-09-08` snapshots, also support `xhigh` and `max`.29742            Default: `auto`.2974329744            - `"low"`2974529746            - `"medium"`2974729748            - `"high"`2974929750            - `"xhigh"`2975129752            - `"max"`2975329754            - `"auto"`2975529756          - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`2975729758            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`.2975929760            - `string`2976129762            - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`2976329764              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`.2976529766              - `"1024x1024"`2976729768              - `"1024x1536"`2976929770              - `"1536x1024"`2977129772              - `"auto"`2977329774        - `LocalShell object { type }`2977529776          A tool that allows the model to execute shell commands in a local environment.2977729778          - `type: "local_shell"`2977929780            The type of the local shell tool. Always `local_shell`.2978129782            - `"local_shell"`2978329784        - `Shell object { type, allowed_callers, environment }`2978529786          A tool that allows the model to execute shell commands.2978729788          - `type: "shell"`2978929790            The type of the shell tool. Always `shell`.2979129792            - `"shell"`2979329794          - `allowed_callers: optional array of "direct" or "programmatic" or null`2979529796            The tool invocation context(s).2979729798            - `"direct"`2979929800            - `"programmatic"`2980129802          - `environment: optional ContainerAuto or LocalEnvironment or ContainerReference or null`2980329804            - `ContainerAuto object { type, file_ids, memory_limit, 2 more }`2980529806            - `LocalEnvironment object { type, skills }`2980729808            - `ContainerReference object { container_id, type }`2980929810        - `Custom object { name, type, allowed_callers, 4 more }`2981129812          A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)2981329814          - `name: string`2981529816            The name of the custom tool, used to identify it in tool calls.2981729818          - `type: "custom"`2981929820            The type of the custom tool. Always `custom`.2982129822            - `"custom"`2982329824          - `allowed_callers: optional array of "direct" or "programmatic" or null`2982529826            The tool invocation context(s).2982729828            - `"direct"`2982929830            - `"programmatic"`2983129832          - `async: optional boolean`2983329834            Whether the tool response can be returned asynchronously versus immediately returned on next response creation.2983529836          - `defer_loading: optional boolean`2983729838            Whether this tool should be deferred and discovered via tool search.2983929840          - `description: optional string`2984129842            Optional description of the custom tool, used to provide more context.2984329844          - `format: optional CustomToolInputFormat`2984529846            The input format for the custom tool. Default is unconstrained text.2984729848        - `Namespace object { description, name, tools, type }`2984929850          Groups function/custom tools under a shared namespace.2985129852          - `description: string`2985329854            A description of the namespace shown to the model.2985529856          - `name: string`2985729858            The namespace name used in tool calls (for example, `crm`).2985929860          - `tools: array of object { name, type, allowed_callers, 6 more }  or object { name, type, allowed_callers, 4 more }`2986129862            The function/custom tools available inside this namespace.2986329864            - `Function object { name, type, allowed_callers, 6 more }`2986529866              - `name: string`2986729868              - `type: "function"`2986929870                - `"function"`2987129872              - `allowed_callers: optional array of "direct" or "programmatic" or null`2987329874                The tool invocation context(s).2987529876                - `"direct"`2987729878                - `"programmatic"`2987929880              - `async: optional boolean`2988129882                Whether the tool response can be returned asynchronously versus immediately returned on next response creation.2988329884              - `defer_loading: optional boolean`2988529886                Whether this function should be deferred and discovered via tool search.2988729888              - `description: optional string or null`2988929890              - `output_schema: optional map[unknown] or null`2989129892                A JSON Schema describing the JSON value encoded in string outputs for this function tool. This does not describe content-array outputs.2989329894              - `parameters: optional unknown or null`2989529896              - `strict: optional boolean or null`2989729898                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.2989929900            - `Custom object { name, type, allowed_callers, 4 more }`2990129902              A custom tool that processes input using a specified format. Learn more about   [custom tools](/api/docs/guides/function-calling#custom-tools)2990329904              - `name: string`2990529906                The name of the custom tool, used to identify it in tool calls.2990729908              - `type: "custom"`2990929910                The type of the custom tool. Always `custom`.2991129912                - `"custom"`2991329914              - `allowed_callers: optional array of "direct" or "programmatic" or null`2991529916                The tool invocation context(s).2991729918                - `"direct"`2991929920                - `"programmatic"`2992129922              - `async: optional boolean`2992329924                Whether the tool response can be returned asynchronously versus immediately returned on next response creation.2992529926              - `defer_loading: optional boolean`2992729928                Whether this tool should be deferred and discovered via tool search.2992929930              - `description: optional string`2993129932                Optional description of the custom tool, used to provide more context.2993329934              - `format: optional CustomToolInputFormat`2993529936                The input format for the custom tool. Default is unconstrained text.2993729938          - `type: "namespace"`2993929940            The type of the tool. Always `namespace`.2994129942            - `"namespace"`2994329944        - `ToolSearch object { type, description, execution, parameters }`2994529946          Hosted or BYOT tool search configuration for deferred tools.2994729948          - `type: "tool_search"`2994929950            The type of the tool. Always `tool_search`.2995129952            - `"tool_search"`2995329954          - `description: optional string or null`2995529956            Description shown to the model for a client-executed tool search tool.2995729958          - `execution: optional "server" or "client"`2995929960            Whether tool search is executed by the server or by the client.2996129962            - `"server"`2996329964            - `"client"`2996529966          - `parameters: optional unknown or null`2996729968            Parameter schema for a client-executed tool search tool.2996929970        - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`2997129972          This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](/api/docs/guides/tools-web-search).2997329974          - `type: "web_search_preview" or "web_search_preview_2025_03_11"`2997529976            The type of the web search tool. One of `web_search_preview` or `web_search_preview_2025_03_11`.2997729978            - `"web_search_preview"`2997929980            - `"web_search_preview_2025_03_11"`2998129982          - `search_content_types: optional array of "text" or "image"`2998329984            - `"text"`2998529986            - `"image"`2998729988          - `search_context_size: optional "low" or "medium" or "high"`2998929990            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.2999129992            - `"low"`2999329994            - `"medium"`2999529996            - `"high"`2999729998          - `user_location: optional object { type, city, country, 2 more }  or null`2999930000            The user's location.3000130002            - `type: "approximate"`3000330004              The type of location approximation. Always `approximate`.3000530006              - `"approximate"`3000730008            - `city: optional string or null`3000930010              Free text input for the city of the user, e.g. `San Francisco`.3001130012            - `country: optional string or null`3001330014              The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.3001530016            - `region: optional string or null`3001730018              Free text input for the region of the user, e.g. `California`.3001930020            - `timezone: optional string or null`3002130022              The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the user, e.g. `America/Los_Angeles`.3002330024        - `ApplyPatch object { type, allowed_callers }`3002530026          Allows the assistant to create, delete, or update files using unified diffs.3002730028          - `type: "apply_patch"`3002930030            The type of the tool. Always `apply_patch`.3003130032            - `"apply_patch"`3003330034          - `allowed_callers: optional array of "direct" or "programmatic" or null`3003530036            The tool invocation context(s).3003730038            - `"direct"`3003930040            - `"programmatic"`3004130042      - `type: "additional_tools"`3004330044        The type of the item. Always `additional_tools`.3004530046        - `"additional_tools"`3004730048    - `ConfigurationUpdate object { id, type, reasoning }`3004930050      A configuration update that applies to subsequent responses until it is30051      replaced by another configuration update.3005230053      - `id: string`3005430055        The unique ID of the configuration update item.3005630057      - `type: "configuration_update"`3005830059        The item type. Always `configuration_update`.3006030061        - `"configuration_update"`3006230063      - `reasoning: optional object { effort }`3006430065        The reasoning configuration applied by this update.3006630067        - `effort: optional ReasoningEffort or null`3006830069          The reasoning effort used for subsequent responses until another30070          configuration update replaces it.3007130072          - `"none"`3007330074          - `"minimal"`3007530076          - `"low"`3007730078          - `"medium"`3007930080          - `"high"`3008130082          - `"xhigh"`3008330084          - `"max"`3008530086    - `Reasoning object { id, summary, type, 3 more }`3008730088      A description of the chain of thought used by a reasoning model while generating30089      a response. Be sure to include these items in your `input` to the Responses API30090      for subsequent turns of a conversation if you are manually30091      [managing context](/api/docs/guides/conversation-state).3009230093      - `id: string`3009430095        The unique identifier of the reasoning content.3009630097      - `summary: array of SummaryTextContent`3009830099        Reasoning summary content.3010030101        - `text: string`3010230103          A summary of the reasoning output from the model so far.3010430105        - `type: "summary_text"`3010630107          The type of the object. Always `summary_text`.3010830109      - `type: "reasoning"`3011030111        The type of the object. Always `reasoning`.3011230113        - `"reasoning"`3011430115      - `content: optional array of object { text, type }`3011630117        Reasoning text content.3011830119        - `text: string`3012030121          The reasoning text from the model.3012230123        - `type: "reasoning_text"`3012430125          The type of the reasoning text. Always `reasoning_text`.3012630127          - `"reasoning_text"`3012830129      - `encrypted_content: optional string or null`3013030131        The encrypted content of the reasoning item. This is populated by default30132        for reasoning items returned by `POST /v1/responses` and WebSocket30133        `response.create` requests.3013430135        When streaming, use the completed reasoning item and its30136        `encrypted_content` from the `response.output_item.done` event in30137        subsequent requests. The `encrypted_content` in30138        `response.output_item.added` may be incomplete. This is especially30139        important when `store` is `false` or when using Zero Data Retention.3014030141      - `status: optional "in_progress" or "completed" or "incomplete"`3014230143        The status of the item. One of `in_progress`, `completed`, or30144        `incomplete`. Populated when items are returned via API.3014530146        - `"in_progress"`3014730148        - `"completed"`3014930150        - `"incomplete"`3015130152    - `Program object { id, call_id, code, 2 more }`3015330154      - `id: string`3015530156        The unique ID of the program item.3015730158      - `call_id: string`3015930160        The stable call ID of the program item.3016130162      - `code: string`3016330164        The JavaScript source executed by programmatic tool calling.3016530166      - `fingerprint: string`3016730168        Opaque program replay fingerprint that must be round-tripped.3016930170      - `type: "program"`3017130172        The type of the item. Always `program`.3017330174        - `"program"`3017530176    - `ProgramOutput object { id, call_id, result, 2 more }`3017730178      - `id: string`3017930180        The unique ID of the program output item.3018130182      - `call_id: string`3018330184        The call ID of the program item.3018530186      - `result: string`3018730188        The result produced by the program item.3018930190      - `status: "completed" or "incomplete"`3019130192        The terminal status of the program output item.3019330194        - `"completed"`3019530196        - `"incomplete"`3019730198      - `type: "program_output"`3019930200        The type of the item. Always `program_output`.3020130202        - `"program_output"`3020330204    - `Compaction object { id, encrypted_content, type, created_by }`3020530206      A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).3020730208      - `id: string`3020930210        The unique ID of the compaction item.3021130212      - `encrypted_content: string`3021330214        The encrypted content that was produced by compaction.3021530216      - `type: "compaction"`3021730218        The type of the item. Always `compaction`.3021930220        - `"compaction"`3022130222      - `created_by: optional string`3022330224        The identifier of the actor that created the item.3022530226    - `CodeInterpreterCall object { id, code, container_id, 3 more }`3022730228      A tool call to run code.3022930230      - `id: string`3023130232        The unique ID of the code interpreter tool call.3023330234      - `code: string or null`3023530236        The code to run, or null if not available.3023730238      - `container_id: string`3023930240        The ID of the container used to run the code.3024130242      - `outputs: array of object { logs, type }  or object { type, url }  or null`3024330244        The outputs generated by the code interpreter, such as logs or images.30245        Can be null if no outputs are available.3024630247        - `Logs object { logs, type }`3024830249          The logs output from the code interpreter.3025030251          - `logs: string`3025230253            The logs output from the code interpreter.3025430255          - `type: "logs"`3025630257            The type of the output. Always `logs`.3025830259            - `"logs"`3026030261        - `Image object { type, url }`3026230263          The image output from the code interpreter.3026430265          - `type: "image"`3026630267            The type of the output. Always `image`.3026830269            - `"image"`3027030271          - `url: string`3027230273            The URL of the image output from the code interpreter.3027430275      - `status: "in_progress" or "completed" or "incomplete" or 2 more`3027630277        The status of the code interpreter tool call. Valid values are `in_progress`, `completed`, `incomplete`, `interpreting`, and `failed`.3027830279        - `"in_progress"`3028030281        - `"completed"`3028230283        - `"incomplete"`3028430285        - `"interpreting"`3028630287        - `"failed"`3028830289      - `type: "code_interpreter_call"`3029030291        The type of the code interpreter tool call. Always `code_interpreter_call`.3029230293        - `"code_interpreter_call"`3029430295    - `LocalShellCall object { id, action, call_id, 2 more }`3029630297      A tool call to run a command on the local shell.3029830299      - `id: string`3030030301        The unique ID of the local shell call.3030230303      - `action: object { command, env, type, 3 more }`3030430305        Execute a shell command on the server.3030630307        - `command: array of string`3030830309          The command to run.3031030311        - `env: map[string]`3031230313          Environment variables to set for the command.3031430315        - `type: "exec"`3031630317          The type of the local shell action. Always `exec`.3031830319          - `"exec"`3032030321        - `timeout_ms: optional number or null`3032230323          Optional timeout in milliseconds for the command.3032430325        - `user: optional string or null`3032630327          Optional user to run the command as.3032830329        - `working_directory: optional string or null`3033030331          Optional working directory to run the command in.3033230333      - `call_id: string`3033430335        The unique ID of the local shell tool call generated by the model.3033630337      - `status: "in_progress" or "completed" or "incomplete"`3033830339        The status of the local shell call.3034030341        - `"in_progress"`3034230343        - `"completed"`3034430345        - `"incomplete"`3034630347      - `type: "local_shell_call"`3034830349        The type of the local shell call. Always `local_shell_call`.3035030351        - `"local_shell_call"`3035230353    - `LocalShellCallOutput object { id, output, type, status }`3035430355      The output of a local shell tool call.3035630357      - `id: string`3035830359        The unique ID of the local shell tool call generated by the model.3036030361      - `output: string`3036230363        A JSON string of the output of the local shell tool call.3036430365      - `type: "local_shell_call_output"`3036630367        The type of the local shell tool call output. Always `local_shell_call_output`.3036830369        - `"local_shell_call_output"`3037030371      - `status: optional "in_progress" or "completed" or "incomplete" or null`3037230373        The status of the item. One of `in_progress`, `completed`, or `incomplete`.3037430375        - `"in_progress"`3037630377        - `"completed"`3037830379        - `"incomplete"`3038030381    - `ShellCall object { id, action, call_id, 5 more }`3038230383      A tool call that executes one or more shell commands in a managed environment.3038430385      - `id: string`3038630387        The unique ID of the shell tool call. Populated when this item is returned via API.3038830389      - `action: object { commands, max_output_length, timeout_ms }`3039030391        The shell commands and limits that describe how to run the tool call.3039230393        - `commands: array of string`3039430395        - `max_output_length: number or null`3039630397          Optional maximum number of characters to return from each command.3039830399        - `timeout_ms: number or null`3040030401          Optional timeout in milliseconds for the commands.3040230403      - `call_id: string`3040430405        The unique ID of the shell tool call generated by the model.3040630407      - `environment: ResponseLocalEnvironment or ResponseContainerReference or null`3040830409        Represents the use of a local environment to perform shell actions.3041030411        - `ResponseLocalEnvironment object { type }`3041230413          Represents the use of a local environment to perform shell actions.3041430415          - `type: "local"`3041630417            The environment type. Always `local`.3041830419            - `"local"`3042030421        - `ResponseContainerReference object { container_id, type }`3042230423          Represents a container created with /v1/containers.3042430425          - `container_id: string`3042630427          - `type: "container_reference"`3042830429            The environment type. Always `container_reference`.3043030431            - `"container_reference"`3043230433      - `status: "in_progress" or "completed" or "incomplete"`3043430435        The status of the shell call. One of `in_progress`, `completed`, or `incomplete`.3043630437        - `"in_progress"`3043830439        - `"completed"`3044030441        - `"incomplete"`3044230443      - `type: "shell_call"`3044430445        The type of the item. Always `shell_call`.3044630447        - `"shell_call"`3044830449      - `caller: optional object { type }  or object { caller_id, type }  or null`3045030451        The execution context that produced this tool call.3045230453        - `Direct object { type }`3045430455          - `type: "direct"`3045630457            - `"direct"`3045830459        - `Program object { caller_id, type }`3046030461          - `caller_id: string`3046230463            The call ID of the program item that produced this tool call.3046430465          - `type: "program"`3046630467            - `"program"`3046830469      - `created_by: optional string`3047030471        The ID of the entity that created this tool call.3047230473    - `ShellCallOutput object { id, call_id, max_output_length, 5 more }`3047430475      The output of a shell tool call that was emitted.3047630477      - `id: string`3047830479        The unique ID of the shell call output. Populated when this item is returned via API.3048030481      - `call_id: string`3048230483        The unique ID of the shell tool call generated by the model.3048430485      - `max_output_length: number or null`3048630487        The maximum length of the shell command output. This is generated by the model and should be passed back with the raw output.3048830489      - `output: array of object { outcome, stderr, stdout, created_by }`3049030491        An array of shell call output contents3049230493        - `outcome: object { type }  or object { exit_code, type }`3049430495          Represents either an exit outcome (with an exit code) or a timeout outcome for a shell call output chunk.3049630497          - `Timeout object { type }`3049830499            Indicates that the shell call exceeded its configured time limit.3050030501            - `type: "timeout"`3050230503              The outcome type. Always `timeout`.3050430505              - `"timeout"`3050630507          - `Exit object { exit_code, type }`3050830509            Indicates that the shell commands finished and returned an exit code.3051030511            - `exit_code: number`3051230513              Exit code from the shell process.3051430515            - `type: "exit"`3051630517              The outcome type. Always `exit`.3051830519              - `"exit"`3052030521        - `stderr: string`3052230523          The standard error output that was captured.3052430525        - `stdout: string`3052630527          The standard output that was captured.3052830529        - `created_by: optional string`3053030531          The identifier of the actor that created the item.3053230533      - `status: "in_progress" or "completed" or "incomplete"`3053430535        The status of the shell call output. One of `in_progress`, `completed`, or `incomplete`.3053630537        - `"in_progress"`3053830539        - `"completed"`3054030541        - `"incomplete"`3054230543      - `type: "shell_call_output"`3054430545        The type of the shell call output. Always `shell_call_output`.3054630547        - `"shell_call_output"`3054830549      - `caller: optional object { type }  or object { caller_id, type }  or null`3055030551        The execution context that produced this tool call.3055230553        - `Direct object { type }`3055430555          - `type: "direct"`3055630557            - `"direct"`3055830559        - `Program object { caller_id, type }`3056030561          - `caller_id: string`3056230563            The call ID of the program item that produced this tool call.3056430565          - `type: "program"`3056630567            - `"program"`3056830569      - `created_by: optional string`3057030571        The identifier of the actor that created the item.3057230573    - `ApplyPatchCall object { id, call_id, operation, 4 more }`3057430575      A tool call that applies file diffs by creating, deleting, or updating files.3057630577      - `id: string`3057830579        The unique ID of the apply patch tool call. Populated when this item is returned via API.3058030581      - `call_id: string`3058230583        The unique ID of the apply patch tool call generated by the model.3058430585      - `operation: object { diff, path, type }  or object { path, type }  or object { diff, path, type }`3058630587        One of the create_file, delete_file, or update_file operations applied via apply_patch.3058830589        - `CreateFile object { diff, path, type }`3059030591          Instruction describing how to create a file via the apply_patch tool.3059230593          - `diff: string`3059430595            Diff to apply.3059630597          - `path: string`3059830599            Path of the file to create.3060030601          - `type: "create_file"`3060230603            Create a new file with the provided diff.3060430605            - `"create_file"`3060630607        - `DeleteFile object { path, type }`3060830609          Instruction describing how to delete a file via the apply_patch tool.3061030611          - `path: string`3061230613            Path of the file to delete.3061430615          - `type: "delete_file"`3061630617            Delete the specified file.3061830619            - `"delete_file"`3062030621        - `UpdateFile object { diff, path, type }`3062230623          Instruction describing how to update a file via the apply_patch tool.3062430625          - `diff: string`3062630627            Diff to apply.3062830629          - `path: string`3063030631            Path of the file to update.3063230633          - `type: "update_file"`3063430635            Update an existing file with the provided diff.3063630637            - `"update_file"`3063830639      - `status: "in_progress" or "completed"`3064030641        The status of the apply patch tool call. One of `in_progress` or `completed`.3064230643        - `"in_progress"`3064430645        - `"completed"`3064630647      - `type: "apply_patch_call"`3064830649        The type of the item. Always `apply_patch_call`.3065030651        - `"apply_patch_call"`3065230653      - `caller: optional object { type }  or object { caller_id, type }  or null`3065430655        The execution context that produced this tool call.3065630657        - `Direct object { type }`3065830659          - `type: "direct"`3066030661            - `"direct"`3066230663        - `Program object { caller_id, type }`3066430665          - `caller_id: string`3066630667            The call ID of the program item that produced this tool call.3066830669          - `type: "program"`3067030671            - `"program"`3067230673      - `created_by: optional string`3067430675        The ID of the entity that created this tool call.3067630677    - `ApplyPatchCallOutput object { id, call_id, status, 4 more }`3067830679      The output emitted by an apply patch tool call.3068030681      - `id: string`3068230683        The unique ID of the apply patch tool call output. Populated when this item is returned via API.3068430685      - `call_id: string`3068630687        The unique ID of the apply patch tool call generated by the model.3068830689      - `status: "completed" or "failed"`3069030691        The status of the apply patch tool call output. One of `completed` or `failed`.3069230693        - `"completed"`3069430695        - `"failed"`3069630697      - `type: "apply_patch_call_output"`3069830699        The type of the item. Always `apply_patch_call_output`.3070030701        - `"apply_patch_call_output"`3070230703      - `caller: optional object { type }  or object { caller_id, type }  or null`3070430705        The execution context that produced this tool call.3070630707        - `Direct object { type }`3070830709          - `type: "direct"`3071030711            - `"direct"`3071230713        - `Program object { caller_id, type }`3071430715          - `caller_id: string`3071630717            The call ID of the program item that produced this tool call.3071830719          - `type: "program"`3072030721            - `"program"`3072230723      - `created_by: optional string`3072430725        The ID of the entity that created this tool call output.3072630727      - `output: optional string or null`3072830729        Optional textual output returned by the apply patch tool.3073030731    - `McpListTools object { id, server_label, tools, 2 more }`3073230733      A list of tools available on an MCP server.3073430735      - `id: string`3073630737        The unique ID of the list.3073830739      - `server_label: string`3074030741        The label of the MCP server.3074230743      - `tools: array of object { input_schema, name, annotations, description }`3074430745        The tools available on the server.3074630747        - `input_schema: unknown`3074830749          The JSON schema describing the tool's input.3075030751        - `name: string`3075230753          The name of the tool.3075430755        - `annotations: optional unknown or null`3075630757          Additional annotations about the tool.3075830759        - `description: optional string or null`3076030761          The description of the tool.3076230763      - `type: "mcp_list_tools"`3076430765        The type of the item. Always `mcp_list_tools`.3076630767        - `"mcp_list_tools"`3076830769      - `error: optional string or null`3077030771        Error message if the server could not list tools.3077230773    - `McpApprovalRequest object { id, arguments, name, 2 more }`3077430775      A request for human approval of a tool invocation.3077630777      - `id: string`3077830779        The unique ID of the approval request.3078030781      - `arguments: string`3078230783        A JSON string of arguments for the tool.3078430785      - `name: string`3078630787        The name of the tool to run.3078830789      - `server_label: string`3079030791        The label of the MCP server making the request.3079230793      - `type: "mcp_approval_request"`3079430795        The type of the item. Always `mcp_approval_request`.3079630797        - `"mcp_approval_request"`3079830799    - `McpApprovalResponse object { id, approval_request_id, approve, 2 more }`3080030801      A response to an MCP approval request.3080230803      - `id: string`3080430805        The unique ID of the approval response3080630807      - `approval_request_id: string`3080830809        The ID of the approval request being answered.3081030811      - `approve: boolean`3081230813        Whether the request was approved.3081430815      - `type: "mcp_approval_response"`3081630817        The type of the item. Always `mcp_approval_response`.3081830819        - `"mcp_approval_response"`3082030821      - `reason: optional string or null`3082230823        Optional reason for the decision.3082430825    - `McpCall object { id, arguments, name, 6 more }`3082630827      An invocation of a tool on an MCP server.3082830829      - `id: string`3083030831        The unique ID of the tool call.3083230833      - `arguments: string`3083430835        A JSON string of the arguments passed to the tool.3083630837      - `name: string`3083830839        The name of the tool that was run.3084030841      - `server_label: string`3084230843        The label of the MCP server running the tool.3084430845      - `type: "mcp_call"`3084630847        The type of the item. Always `mcp_call`.3084830849        - `"mcp_call"`3085030851      - `approval_request_id: optional string or null`3085230853        Unique identifier for the MCP tool call approval request.30854        Include this value in a subsequent `mcp_approval_response` input to approve or reject the corresponding tool call.3085530856      - `error: optional McpToolCallError or null`3085730858        The error from the tool call, if any.3085930860        - `McpProtocolError object { code, message, type }`3086130862          - `code: number`3086330864          - `message: string`3086530866          - `type: "mcp_protocol_error"`3086730868            - `"mcp_protocol_error"`3086930870        - `McpToolExecutionError object { content, type }`3087130872          - `content: unknown`3087330874          - `type: "mcp_tool_execution_error"`3087530876            - `"mcp_tool_execution_error"`3087730878        - `HTTPError object { code, message, type }`3087930880          - `code: number`3088130882          - `message: string`3088330884          - `type: "http_error"`3088530886            - `"http_error"`3088730888      - `output: optional string or null`3088930890        The output from the tool call.3089130892      - `status: optional "in_progress" or "completed" or "incomplete" or 2 more`3089330894        The status of the tool call. One of `in_progress`, `completed`, `incomplete`, `calling`, or `failed`.3089530896        - `"in_progress"`3089730898        - `"completed"`3089930900        - `"incomplete"`3090130902        - `"calling"`3090330904        - `"failed"`3090530906    - `CustomToolCall object { call_id, input, name, 5 more }`3090730908      A call to a custom tool created by the model.3090930910      - `call_id: string`3091130912        An identifier used to map this custom tool call to a tool call output.3091330914      - `input: string`3091530916        The input for the custom tool call generated by the model.3091730918      - `name: string`3091930920        The name of the custom tool being called.3092130922      - `type: "custom_tool_call"`3092330924        The type of the custom tool call. Always `custom_tool_call`.3092530926        - `"custom_tool_call"`3092730928      - `id: optional string`3092930930        The unique ID of the custom tool call in the OpenAI platform.3093130932      - `async: optional boolean`3093330934        Whether the custom tool call runs asynchronously.3093530936      - `caller: optional object { type }  or object { caller_id, type }  or null`3093730938        The execution context that produced this tool call.3093930940        - `Direct object { type }`3094130942          - `type: "direct"`3094330944            - `"direct"`3094530946        - `Program object { caller_id, type }`3094730948          - `caller_id: string`3094930950            The call ID of the program item that produced this tool call.3095130952          - `type: "program"`3095330954            - `"program"`3095530956      - `namespace: optional string`3095730958        The namespace of the custom tool being called.3095930960    - `CustomToolCallOutput object { call_id, output, type, 2 more }`3096130962      The output of a custom tool call from your code, being sent back to the model.3096330964      - `call_id: string`3096530966        The call ID, used to map this custom tool call output to a custom tool call.3096730968      - `output: string or array of ResponseInputText or ResponseInputImage or ResponseInputFile`3096930970        The output from the custom tool call generated by your code.30971        Can be a string or an list of output content.3097230973        - `StringOutput = string`3097430975          A string of the output of the custom tool call.3097630977        - `OutputContentList = array of ResponseInputText or ResponseInputImage or ResponseInputFile`3097830979          Text, image, or file output of the custom tool call.3098030981          - `ResponseInputText object { text, type, prompt_cache_breakpoint }`3098230983            A text input to the model.3098430985          - `ResponseInputImage object { detail, type, file_id, 2 more }`3098630987            An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).3098830989          - `ResponseInputFile object { type, detail, file_data, 4 more }`3099030991            A file input to the model.3099230993      - `type: "custom_tool_call_output"`3099430995        The type of the custom tool call output. Always `custom_tool_call_output`.3099630997        - `"custom_tool_call_output"`3099830999      - `id: optional string`3100031001        The unique ID of the custom tool call output in the OpenAI platform.3100231003      - `caller: optional object { type }  or object { caller_id, type }  or null`3100431005        The execution context that produced this tool call.3100631007        - `Direct object { type }`3100831009          - `type: "direct"`3101031011            The caller type. Always `direct`.3101231013            - `"direct"`3101431015        - `Program object { caller_id, type }`3101631017          - `caller_id: string`3101831019            The call ID of the program item that produced this tool call.3102031021          - `type: "program"`3102231023            The caller type. Always `program`.3102431025            - `"program"`3102631027  - `first_id: string`3102831029    The ID of the first item in the list.3103031031  - `has_more: boolean`3103231033    Whether there are more items available.3103431035  - `last_id: string`3103631037    The ID of the last item in the list.3103831039  - `object: "list"`3104031041    The type of object returned, must be `list`.3104231043    - `"list"`31044
Files main
Menu

Theme