2 2
3**post** `/responses?beta=true`3**post** `/responses?beta=true`
4 4
5Creates a model response. Provide [text](/docs/guides/text) or5Creates a model response. Provide [text](/api/docs/guides/text) or
6[image](/docs/guides/images) inputs to generate [text](/docs/guides/text)6[image](/api/docs/guides/images-vision) inputs to generate [text](/api/docs/guides/text)
7or [JSON](/docs/guides/structured-outputs) outputs. Have the model call7or [JSON](/api/docs/guides/structured-outputs) outputs. Have the model call
8your own [custom code](/docs/guides/function-calling) or use built-in8your own [custom code](/api/docs/guides/function-calling) or use built-in
9[tools](/docs/guides/tools) like [web search](/docs/guides/tools-web-search)9[tools](/api/docs/guides/tools) like [web search](/api/docs/guides/tools-web-search)
10or [file search](/docs/guides/tools-file-search) to use your own data10or [file search](/api/docs/guides/tools-file-search) to use your own data
11as input for the model's response.11as input for the model's response.
12 12
13### Header Parameters13### Header Parameters
21- `background: optional boolean or null`21- `background: optional boolean or null`
22 22
23 Whether to run the model response in the background.23 Whether to run the model response in the background.
24 [Learn more](/docs/guides/background).24 [Learn more](/api/docs/guides/background).
25 25
26- `context_management: optional array of object { type, compact_threshold } or null`26- `context_management: optional array of object { type, compact_threshold } or null`
27 27
86 86
87 Learn more:87 Learn more:
88 88
89 - [Text inputs and outputs](/docs/guides/text)89 - [Text inputs and outputs](/api/docs/guides/text)
90 - [Image inputs](/docs/guides/images)90 - [Image inputs](/api/docs/guides/images-vision)
91 - [File inputs](/docs/guides/pdf-files)91 - [File inputs](/api/docs/guides/file-inputs)
92 - [Conversation state](/docs/guides/conversation-state)92 - [Conversation state](/api/docs/guides/conversation-state)
93 - [Function calling](/docs/guides/function-calling)93 - [Function calling](/api/docs/guides/function-calling)
94 94
95 - `TextInput = string`95 - `TextInput = string`
96 96
150 150
151 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`151 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`
152 152
153 An image input to the model. Learn about [image inputs](/docs/guides/vision).153 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).
154 154
155 - `detail: BetaImageDetail`155 - `detail: BetaImageDetail`
156 156
509 - `FileSearchCall object { id, queries, status, 3 more }`509 - `FileSearchCall object { id, queries, status, 3 more }`
510 510
511 The results of a file search tool call. See the511 The results of a file search tool call. See the
512 [file search guide](/docs/guides/tools-file-search) for more information.512 [file search guide](/api/docs/guides/tools-file-search) for more information.
513 513
514 - `id: string`514 - `id: string`
515 515
585 - `ComputerCall object { id, call_id, pending_safety_checks, 5 more }`585 - `ComputerCall object { id, call_id, pending_safety_checks, 5 more }`
586 586
587 A tool call to a computer use tool. See the587 A tool call to a computer use tool. See the
588 [computer use guide](/docs/guides/tools-computer-use) for more information.588 [computer use guide](/api/docs/guides/tools-computer-use) for more information.
589 589
590 - `id: string`590 - `id: string`
591 591
946 - `WebSearchCall object { id, action, status, 2 more }`946 - `WebSearchCall object { id, action, status, 2 more }`
947 947
948 The results of a web search tool call. See the948 The results of a web search tool call. See the
949 [web search guide](/docs/guides/tools-web-search) for more information.949 [web search guide](/api/docs/guides/tools-web-search) for more information.
950 950
951 - `id: string`951 - `id: string`
952 952
1052 - `FunctionCall object { arguments, call_id, name, 7 more }`1052 - `FunctionCall object { arguments, call_id, name, 7 more }`
1053 1053
1054 A tool call to run a function. See the1054 A tool call to run a function. See the
1055 [function calling guide](/docs/guides/function-calling) for more information.1055 [function calling guide](/api/docs/guides/function-calling) for more information.
1056 1056
1057 - `arguments: string`1057 - `arguments: string`
1058 1058
1165 1165
1166 - `BetaResponseInputImageContent object { type, detail, file_id, 2 more }`1166 - `BetaResponseInputImageContent object { type, detail, file_id, 2 more }`
1167 1167
1168 An image input to the model. Learn about [image inputs](/docs/guides/vision)1168 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision)
1169 1169
1170 - `type: "input_image"`1170 - `type: "input_image"`
1171 1171
1323 1323
1324 - `BetaResponseInputImageContent object { type, detail, file_id, 2 more }`1324 - `BetaResponseInputImageContent object { type, detail, file_id, 2 more }`
1325 1325
1326 An image input to the model. Learn about [image inputs](/docs/guides/vision)1326 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision)
1327 1327
1328 - `EncryptedContent object { encrypted_content, type }`1328 - `EncryptedContent object { encrypted_content, type }`
1329 1329
1589 1589
1590 - `Function object { name, parameters, strict, 6 more }`1590 - `Function object { name, parameters, strict, 6 more }`
1591 1591
1592 Defines a function in your own code the model can choose to call. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).1592 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).
1593 1593
1594 - `name: string`1594 - `name: string`
1595 1595
1633 1633
1634 - `FileSearch object { type, vector_store_ids, filters, 2 more }`1634 - `FileSearch object { type, vector_store_ids, filters, 2 more }`
1635 1635
1636 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](https://platform.openai.com/docs/guides/tools-file-search).1636 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).
1637 1637
1638 - `type: "file_search"`1638 - `type: "file_search"`
1639 1639
1807 1807
1808 - `Computer object { type }`1808 - `Computer object { type }`
1809 1809
1810 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1810 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).
1811 1811
1812 - `type: "computer"`1812 - `type: "computer"`
1813 1813
1817 1817
1818 - `ComputerUsePreview object { display_height, display_width, environment, type }`1818 - `ComputerUsePreview object { display_height, display_width, environment, type }`
1819 1819
1820 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1820 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).
1821 1821
1822 - `display_height: number`1822 - `display_height: number`
1823 1823
1850 - `WebSearch object { type, external_web_access, filters, 2 more }`1850 - `WebSearch object { type, external_web_access, filters, 2 more }`
1851 1851
1852 Search the Internet for sources related to the prompt. Learn more about the1852 Search the Internet for sources related to the prompt. Learn more about the
1853 [web search tool](/docs/guides/tools-web-search).1853 [web search tool](/api/docs/guides/tools-web-search).
1854 1854
1855 - `type: "web_search" or "web_search_2025_08_26"`1855 - `type: "web_search" or "web_search_2025_08_26"`
1856 1856
1914 - `Mcp object { server_label, type, allowed_callers, 9 more }`1914 - `Mcp object { server_label, type, allowed_callers, 9 more }`
1915 1915
1916 Give the model access to additional tools via remote Model Context Protocol1916 Give the model access to additional tools via remote Model Context Protocol
1917 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).1917 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).
1918 1918
1919 - `server_label: string`1919 - `server_label: string`
1920 1920
1966 1966
1967 Identifier for service connectors, like those available in ChatGPT. One of1967 Identifier for service connectors, like those available in ChatGPT. One of
1968 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more1968 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more
1969 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).1969 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).
1970 1970
1971 Currently supported `connector_id` values are:1971 Currently supported `connector_id` values are:
1972 1972
2190 2190
2191 - `background: optional "transparent" or "opaque" or "auto"`2191 - `background: optional "transparent" or "opaque" or "auto"`
2192 2192
2193 Set the background of the generated image. One of `transparent`,2193 Set the background of the generated image. One of `transparent`, `opaque`,
2194 `opaque`, or `auto`. Transparent backgrounds are available for2194 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including
2195 supported GPT Image models. For `gpt-image-2` and2195 their `2026-09-08` snapshots, support `opaque` and `transparent`
2196 `gpt-image-2-2026-04-21`, this support is in preview. When using2196 backgrounds. Transparent backgrounds are available for supported GPT Image
2197 `transparent`, set the output format to `png` or `webp`. Default: `auto`.2197 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in
2198 preview. When using `transparent`, set the output format to `png` or `webp`.
2199 Default: `auto`.
2198 2200
2199 - `"transparent"`2201 - `"transparent"`
2200 2202
2223 2225
2224 Base64-encoded mask image.2226 Base64-encoded mask image.
2225 2227
2226 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2228 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`
2227 2229
2228 The image generation model to use. One of `gpt-image-1`,2230 The image generation model to use. One of `gpt-image-1`,
2229 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2231 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
2230 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2232 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
2233 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
2234 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:
2231 `gpt-image-1`.2235 `gpt-image-1`.
2232 2236
2233 - `string`2237 - `string`
2234 2238
2235 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2239 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`
2236 2240
2237 The image generation model to use. One of `gpt-image-1`,2241 The image generation model to use. One of `gpt-image-1`,
2238 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2242 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
2239 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2243 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
2244 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
2245 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:
2240 `gpt-image-1`.2246 `gpt-image-1`.
2241 2247
2242 - `"gpt-image-1"`2248 - `"gpt-image-1"`
2249 2255
2250 - `"gpt-image-2-2026-04-21"`2256 - `"gpt-image-2-2026-04-21"`
2251 2257
2258 - `"gpt-image-2.5-sunburst"`
2259
2260 - `"gpt-image-2.5-sunburst-2026-09-08"`
2261
2262 - `"gpt-image-2.5-flare"`
2263
2264 - `"gpt-image-2.5-flare-2026-09-08"`
2265
2252 - `moderation: optional "auto" or "low"`2266 - `moderation: optional "auto" or "low"`
2253 2267
2254 Moderation level for the generated image. Default: `auto`.2268 Moderation level for the generated image. Default: `auto`.
2276 2290
2277 Number of partial images to generate in streaming mode, from 0 (default value) to 3.2291 Number of partial images to generate in streaming mode, from 0 (default value) to 3.
2278 2292
2279 - `quality: optional "low" or "medium" or "high" or "auto"`2293 - `quality: optional "low" or "medium" or "high" or 3 more`
2280 2294
2281 The quality of the generated image. One of `low`, `medium`, `high`,2295 The quality of the generated image. The GPT image models support `low`,
2282 or `auto`. Default: `auto`.2296 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,
2297 including their `2026-09-08` snapshots, also support `xhigh` and `max`.
2298 Default: `auto`.
2283 2299
2284 - `"low"`2300 - `"low"`
2285 2301
2287 2303
2288 - `"high"`2304 - `"high"`
2289 2305
2306 - `"xhigh"`
2307
2308 - `"max"`
2309
2290 - `"auto"`2310 - `"auto"`
2291 2311
2292 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`2312 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`
2293 2313
2294 The size of the generated images. For `gpt-image-2` and `gpt-image-2-2026-04-21`, 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`.2314 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`.
2295 2315
2296 - `string`2316 - `string`
2297 2317
2298 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`2318 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`
2299 2319
2300 The size of the generated images. For `gpt-image-2` and `gpt-image-2-2026-04-21`, 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`.2320 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`.
2301 2321
2302 - `"1024x1024"`2322 - `"1024x1024"`
2303 2323
2463 2483
2464 - `Custom object { name, type, allowed_callers, 4 more }`2484 - `Custom object { name, type, allowed_callers, 4 more }`
2465 2485
2466 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2486 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)
2467 2487
2468 - `name: string`2488 - `name: string`
2469 2489
2585 2605
2586 - `Custom object { name, type, allowed_callers, 4 more }`2606 - `Custom object { name, type, allowed_callers, 4 more }`
2587 2607
2588 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2608 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)
2589 2609
2590 - `name: string`2610 - `name: string`
2591 2611
2687 2707
2688 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`2708 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`
2689 2709
2690 This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search).2710 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).
2691 2711
2692 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`2712 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`
2693 2713
2811 2831
2812 - `Function object { name, parameters, strict, 6 more }`2832 - `Function object { name, parameters, strict, 6 more }`
2813 2833
2814 Defines a function in your own code the model can choose to call. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).2834 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).
2815 2835
2816 - `name: string`2836 - `name: string`
2817 2837
2855 2875
2856 - `FileSearch object { type, vector_store_ids, filters, 2 more }`2876 - `FileSearch object { type, vector_store_ids, filters, 2 more }`
2857 2877
2858 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](https://platform.openai.com/docs/guides/tools-file-search).2878 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).
2859 2879
2860 - `type: "file_search"`2880 - `type: "file_search"`
2861 2881
3029 3049
3030 - `Computer object { type }`3050 - `Computer object { type }`
3031 3051
3032 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).3052 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).
3033 3053
3034 - `type: "computer"`3054 - `type: "computer"`
3035 3055
3039 3059
3040 - `ComputerUsePreview object { display_height, display_width, environment, type }`3060 - `ComputerUsePreview object { display_height, display_width, environment, type }`
3041 3061
3042 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).3062 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).
3043 3063
3044 - `display_height: number`3064 - `display_height: number`
3045 3065
3072 - `WebSearch object { type, external_web_access, filters, 2 more }`3092 - `WebSearch object { type, external_web_access, filters, 2 more }`
3073 3093
3074 Search the Internet for sources related to the prompt. Learn more about the3094 Search the Internet for sources related to the prompt. Learn more about the
3075 [web search tool](/docs/guides/tools-web-search).3095 [web search tool](/api/docs/guides/tools-web-search).
3076 3096
3077 - `type: "web_search" or "web_search_2025_08_26"`3097 - `type: "web_search" or "web_search_2025_08_26"`
3078 3098
3136 - `Mcp object { server_label, type, allowed_callers, 9 more }`3156 - `Mcp object { server_label, type, allowed_callers, 9 more }`
3137 3157
3138 Give the model access to additional tools via remote Model Context Protocol3158 Give the model access to additional tools via remote Model Context Protocol
3139 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).3159 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).
3140 3160
3141 - `server_label: string`3161 - `server_label: string`
3142 3162
3188 3208
3189 Identifier for service connectors, like those available in ChatGPT. One of3209 Identifier for service connectors, like those available in ChatGPT. One of
3190 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more3210 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more
3191 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).3211 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).
3192 3212
3193 Currently supported `connector_id` values are:3213 Currently supported `connector_id` values are:
3194 3214
3380 3400
3381 - `background: optional "transparent" or "opaque" or "auto"`3401 - `background: optional "transparent" or "opaque" or "auto"`
3382 3402
3383 Set the background of the generated image. One of `transparent`,3403 Set the background of the generated image. One of `transparent`, `opaque`,
3384 `opaque`, or `auto`. Transparent backgrounds are available for3404 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including
3385 supported GPT Image models. For `gpt-image-2` and3405 their `2026-09-08` snapshots, support `opaque` and `transparent`
3386 `gpt-image-2-2026-04-21`, this support is in preview. When using3406 backgrounds. Transparent backgrounds are available for supported GPT Image
3387 `transparent`, set the output format to `png` or `webp`. Default: `auto`.3407 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in
3408 preview. When using `transparent`, set the output format to `png` or `webp`.
3409 Default: `auto`.
3388 3410
3389 - `"transparent"`3411 - `"transparent"`
3390 3412
3413 3435
3414 Base64-encoded mask image.3436 Base64-encoded mask image.
3415 3437
3416 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`3438 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`
3417 3439
3418 The image generation model to use. One of `gpt-image-1`,3440 The image generation model to use. One of `gpt-image-1`,
3419 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,3441 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
3420 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:3442 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
3443 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
3444 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:
3421 `gpt-image-1`.3445 `gpt-image-1`.
3422 3446
3423 - `string`3447 - `string`
3424 3448
3425 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`3449 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`
3426 3450
3427 The image generation model to use. One of `gpt-image-1`,3451 The image generation model to use. One of `gpt-image-1`,
3428 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,3452 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
3429 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:3453 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
3454 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
3455 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:
3430 `gpt-image-1`.3456 `gpt-image-1`.
3431 3457
3432 - `"gpt-image-1"`3458 - `"gpt-image-1"`
3439 3465
3440 - `"gpt-image-2-2026-04-21"`3466 - `"gpt-image-2-2026-04-21"`
3441 3467
3468 - `"gpt-image-2.5-sunburst"`
3469
3470 - `"gpt-image-2.5-sunburst-2026-09-08"`
3471
3472 - `"gpt-image-2.5-flare"`
3473
3474 - `"gpt-image-2.5-flare-2026-09-08"`
3475
3442 - `moderation: optional "auto" or "low"`3476 - `moderation: optional "auto" or "low"`
3443 3477
3444 Moderation level for the generated image. Default: `auto`.3478 Moderation level for the generated image. Default: `auto`.
3466 3500
3467 Number of partial images to generate in streaming mode, from 0 (default value) to 3.3501 Number of partial images to generate in streaming mode, from 0 (default value) to 3.
3468 3502
3469 - `quality: optional "low" or "medium" or "high" or "auto"`3503 - `quality: optional "low" or "medium" or "high" or 3 more`
3470 3504
3471 The quality of the generated image. One of `low`, `medium`, `high`,3505 The quality of the generated image. The GPT image models support `low`,
3472 or `auto`. Default: `auto`.3506 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,
3507 including their `2026-09-08` snapshots, also support `xhigh` and `max`.
3508 Default: `auto`.
3473 3509
3474 - `"low"`3510 - `"low"`
3475 3511
3477 3513
3478 - `"high"`3514 - `"high"`
3479 3515
3516 - `"xhigh"`
3517
3518 - `"max"`
3519
3480 - `"auto"`3520 - `"auto"`
3481 3521
3482 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`3522 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`
3483 3523
3484 The size of the generated images. For `gpt-image-2` and `gpt-image-2-2026-04-21`, 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`.3524 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`.
3485 3525
3486 - `string`3526 - `string`
3487 3527
3488 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`3528 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`
3489 3529
3490 The size of the generated images. For `gpt-image-2` and `gpt-image-2-2026-04-21`, 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`.3530 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`.
3491 3531
3492 - `"1024x1024"`3532 - `"1024x1024"`
3493 3533
3535 3575
3536 - `Custom object { name, type, allowed_callers, 4 more }`3576 - `Custom object { name, type, allowed_callers, 4 more }`
3537 3577
3538 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3578 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)
3539 3579
3540 - `name: string`3580 - `name: string`
3541 3581
3657 3697
3658 - `Custom object { name, type, allowed_callers, 4 more }`3698 - `Custom object { name, type, allowed_callers, 4 more }`
3659 3699
3660 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3700 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)
3661 3701
3662 - `name: string`3702 - `name: string`
3663 3703
3759 3799
3760 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`3800 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`
3761 3801
3762 This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search).3802 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).
3763 3803
3764 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`3804 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`
3765 3805
3899 A description of the chain of thought used by a reasoning model while generating3939 A description of the chain of thought used by a reasoning model while generating
3900 a response. Be sure to include these items in your `input` to the Responses API3940 a response. Be sure to include these items in your `input` to the Responses API
3901 for subsequent turns of a conversation if you are manually3941 for subsequent turns of a conversation if you are manually
3902 [managing context](/docs/guides/conversation-state).3942 [managing context](/api/docs/guides/conversation-state).
3903 3943
3904 - `id: string`3944 - `id: string`
3905 3945
3972 4012
3973 - `Compaction object { encrypted_content, type, id, agent }`4013 - `Compaction object { encrypted_content, type, id, agent }`
3974 4014
3975 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).4015 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).
3976 4016
3977 - `encrypted_content: string`4017 - `encrypted_content: string`
3978 4018
3996 4036
3997 The canonical name of the agent that produced this item.4037 The canonical name of the agent that produced this item.
3998 4038
3999 - `ImageGenerationCall object { id, result, status, 2 more }`4039 - `ImageGenerationCall object { id, result, status, 4 more }`
4000 4040
4001 An image generation request made by the model.4041 An image generation request made by the model.
4002 4042
4034 4074
4035 The canonical name of the agent that produced this item.4075 The canonical name of the agent that produced this item.
4036 4076
4077 - `quality: optional "low" or "medium" or "high" or 3 more or null`
4078
4079 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.
4080
4081 - `"low"`
4082
4083 - `"medium"`
4084
4085 - `"high"`
4086
4087 - `"xhigh"`
4088
4089 - `"max"`
4090
4091 - `"auto"`
4092
4093 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`
4094
4095 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
4096
4097 - `string`
4098
4099 - `"1024x1024" or "1024x1536" or "1536x1024"`
4100
4101 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
4102
4103 - `"1024x1024"`
4104
4105 - `"1024x1536"`
4106
4107 - `"1536x1024"`
4108
4037 - `CodeInterpreterCall object { id, code, container_id, 4 more }`4109 - `CodeInterpreterCall object { id, code, container_id, 4 more }`
4038 4110
4039 A tool call to run code.4111 A tool call to run code.
4809 4881
4810 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`4882 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`
4811 4883
4812 An image input to the model. Learn about [image inputs](/docs/guides/vision).4884 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).
4813 4885
4814 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`4886 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`
4815 4887
5041 5113
5042- `max_output_tokens: optional number or null`5114- `max_output_tokens: optional number or null`
5043 5115
5044 An upper bound for the number of tokens that can be generated for a response, including visible output tokens and [reasoning tokens](/docs/guides/reasoning).5116 An upper bound for the number of tokens that can be generated for a response, including visible output tokens and [reasoning tokens](/api/docs/guides/reasoning).
5045 5117
5046- `max_tool_calls: optional number or null`5118- `max_tool_calls: optional number or null`
5047 5119
5060 5132
5061 Model ID used to generate the response, like `gpt-6-astra`. OpenAI5133 Model ID used to generate the response, like `gpt-6-astra`. OpenAI
5062 offers a wide range of models with different capabilities, performance5134 offers a wide range of models with different capabilities, performance
5063 characteristics, and price points. Refer to the [model guide](/docs/models)5135 characteristics, and price points. Refer to the [model guide](/api/docs/models)
5064 to browse and compare available models.5136 to browse and compare available models.
5065 5137
5066 - `"gpt-6-astra" or "gpt-5.6-sol" or "gpt-5.6-terra" or 100 more`5138 - `"gpt-6-astra" or "gpt-5.6-sol" or "gpt-5.6-terra" or 100 more`
5067 5139
5068 Model ID used to generate the response, like `gpt-6-astra`. OpenAI5140 Model ID used to generate the response, like `gpt-6-astra`. OpenAI
5069 offers a wide range of models with different capabilities, performance5141 offers a wide range of models with different capabilities, performance
5070 characteristics, and price points. Refer to the [model guide](/docs/models)5142 characteristics, and price points. Refer to the [model guide](/api/docs/models)
5071 to browse and compare available models.5143 to browse and compare available models.
5072 5144
5073 - `"gpt-6-astra"`5145 - `"gpt-6-astra"`
5331 5403
5332 The unique ID of the previous response to the model. Use this to5404 The unique ID of the previous response to the model. Use this to
5333 create multi-turn conversations. Learn more about5405 create multi-turn conversations. Learn more about
5334 [conversation state](/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.5406 [conversation state](/api/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.
5335 5407
5336- `prompt: optional BetaResponsePrompt or null`5408- `prompt: optional BetaResponsePrompt or null`
5337 5409
5338 Reference to a prompt template and its variables.5410 Reference to a prompt template and its variables.
5339 [Learn more](/docs/guides/text?api-mode=responses#reusable-prompts).5411 [Learn more](/api/docs/guides/text?api-mode=responses#version-prompts-in-code).
5340 5412
5341 - `id: string`5413 - `id: string`
5342 5414
5356 5428
5357 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`5429 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`
5358 5430
5359 An image input to the model. Learn about [image inputs](/docs/guides/vision).5431 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).
5360 5432
5361 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`5433 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`
5362 5434
5368 5440
5369- `prompt_cache_key: optional string or null`5441- `prompt_cache_key: optional string or null`
5370 5442
5371 Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the `user` field. [Learn more](/docs/guides/prompt-caching).5443 Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the `user` field. [Learn more](/api/docs/guides/prompt-caching).
5372 5444
5373- `prompt_cache_options: optional object { comparison_response_id, mode, ttl }`5445- `prompt_cache_options: optional object { comparison_response_id, mode, ttl }`
5374 5446
5375 Options for prompt caching. Supported for `gpt-5.6` and later models. By default, OpenAI automatically chooses one implicit cache breakpoint. You can add explicit breakpoints to content blocks with `prompt_cache_breakpoint`. Each request can write up to four breakpoints. For cache matching, OpenAI considers up to the latest 80 breakpoints in the conversation, without a content-block lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The `ttl` defaults to `30m`, which is currently the only supported value. See the [prompt caching guide](/docs/guides/prompt-caching) for current details.5447 Options for prompt caching. Supported for `gpt-5.6` and later models. By default, OpenAI automatically chooses one implicit cache breakpoint. You can add explicit breakpoints to content blocks with `prompt_cache_breakpoint`. Each request can write up to four breakpoints. For cache matching, OpenAI considers up to the latest 80 breakpoints in the conversation, without a content-block lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The `ttl` defaults to `30m`, which is currently the only supported value. See the [prompt caching guide](/api/docs/guides/prompt-caching) for current details.
5376 5448
5377 - `comparison_response_id: optional string or null`5449 - `comparison_response_id: optional string or null`
5378 5450
5396 5468
5397 Deprecated. Use `prompt_cache_options.ttl` instead.5469 Deprecated. Use `prompt_cache_options.ttl` instead.
5398 5470
5399 The retention policy for the prompt cache. Set to `24h` to enable extended prompt caching, which keeps cached prefixes active for longer, up to a maximum of 24 hours. [Learn more](/docs/guides/prompt-caching#prompt-cache-retention).5471 The retention policy for the prompt cache. Set to `24h` to enable extended prompt caching, which keeps cached prefixes active for longer, up to a maximum of 24 hours. [Learn more](/api/docs/guides/prompt-caching#prompt-cache-retention).
5400 This field expresses a maximum retention policy, while5472 This field expresses a maximum retention policy, while
5401 `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two5473 `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two
5402 fields are independent and do not interact.5474 fields are independent and do not interact.
5414- `reasoning: optional object { context, effort, generate_summary, 2 more } or null`5486- `reasoning: optional object { context, effort, generate_summary, 2 more } or null`
5415 5487
5416 Configuration options for5488 Configuration options for
5417 [reasoning models](https://platform.openai.com/docs/guides/reasoning).5489 [reasoning models](/api/docs/guides/reasoning).
5418 5490
5419 - `context: optional "auto" or "current_turn" or "all_turns" or null`5491 - `context: optional "auto" or "current_turn" or "all_turns" or null`
5420 5492
5439 Reducing reasoning effort can result in faster responses and fewer tokens5511 Reducing reasoning effort can result in faster responses and fewer tokens
5440 used on reasoning in a response. Not all reasoning models support every5512 used on reasoning in a response. Not all reasoning models support every
5441 value. See the5513 value. See the
5442 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)5514 [reasoning guide](/api/docs/guides/reasoning)
5443 for model-specific support.5515 for model-specific support.
5444 5516
5445 - `"none"`5517 - `"none"`
5505- `safety_identifier: optional string or null`5577- `safety_identifier: optional string or null`
5506 5578
5507 A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.5579 A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.
5508 The IDs should be a string that uniquely identifies each user, with a maximum length of 64 characters. We recommend hashing their username or email address, in order to avoid sending us any identifying information. [Learn more](/docs/guides/safety-best-practices#safety-identifiers).5580 The IDs should be a string that uniquely identifies each user, with a maximum length of 64 characters. We recommend hashing their username or email address, in order to avoid sending us any identifying information. [Learn more](/api/docs/guides/safety-best-practices#implement-safety-identifiers).
5509 5581
5510- `service_tier: optional BetaServiceTier or null`5582- `service_tier: optional BetaServiceTier or null`
5511 5583
5513 5585
5514 - If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.5586 - If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.
5515 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.5587 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.
5516 - If set to '[flex](/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.5588 - If set to '[flex](/api/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.
5517 - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level, include the `service_tier=fast` or `service_tier=priority` parameter for Responses or Chat Completions. The response will show `service_tier=priority` regardless of if you specify `service_tier=fast` or `priority` in your request.5589 - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level, include the `service_tier=fast` or `service_tier=priority` parameter for Responses or Chat Completions. The response will show `service_tier=priority` regardless of if you specify `service_tier=fast` or `priority` in your request.
5518 - If set to 'ultrafast', then the request will be processed with the access-controlled Ultrafast Processing service tier. This tier is currently available for `gpt-5.6-sol`; a response served through it will show `service_tier=ultrafast`.5590 - If set to 'ultrafast', then the request will be processed with the access-controlled Ultrafast Processing service tier. This tier is currently available for `gpt-5.6-sol`; a response served through it will show `service_tier=ultrafast`.
5519 - When not set, the default behavior is 'auto'.5591 - When not set, the default behavior is 'auto'.
5545 5617
5546 If set to true, the model response data will be streamed to the client5618 If set to true, the model response data will be streamed to the client
5547 as it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).5619 as it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
5548 See the [Streaming section below](/docs/api-reference/responses-streaming)5620 See the [Streaming section below](/api/reference/resources/responses/streaming-events)
5549 for more information.5621 for more information.
5550 5622
5551- `stream_options: optional object { include_obfuscation } or null`5623- `stream_options: optional object { include_obfuscation } or null`
5572 Configuration options for a text response from the model. Can be plain5644 Configuration options for a text response from the model. Can be plain
5573 text or structured JSON data. Learn more:5645 text or structured JSON data. Learn more:
5574 5646
5575 - [Text inputs and outputs](/docs/guides/text)5647 - [Text inputs and outputs](/api/docs/guides/text)
5576 - [Structured Outputs](/docs/guides/structured-outputs)5648 - [Structured Outputs](/api/docs/guides/structured-outputs)
5577 5649
5578 - `format: optional BetaResponseFormatTextConfig`5650 - `format: optional BetaResponseFormatTextConfig`
5579 5651
5581 5653
5582 Configuring `{ "type": "json_schema" }` enables Structured Outputs,5654 Configuring `{ "type": "json_schema" }` enables Structured Outputs,
5583 which ensures the model will match your supplied JSON schema. Learn more in the5655 which ensures the model will match your supplied JSON schema. Learn more in the
5584 [Structured Outputs guide](/docs/guides/structured-outputs).5656 [Structured Outputs guide](/api/docs/guides/structured-outputs).
5585 5657
5586 The default format is `{ "type": "text" }` with no additional options.5658 The default format is `{ "type": "text" }` with no additional options.
5587 5659
5604 - `BetaResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`5676 - `BetaResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`
5605 5677
5606 JSON Schema response format. Used to generate structured JSON responses.5678 JSON Schema response format. Used to generate structured JSON responses.
5607 Learn more about [Structured Outputs](/docs/guides/structured-outputs).5679 Learn more about [Structured Outputs](/api/docs/guides/structured-outputs).
5608 5680
5609 - `name: string`5681 - `name: string`
5610 5682
5633 If set to true, the model will always follow the exact schema defined5705 If set to true, the model will always follow the exact schema defined
5634 in the `schema` field. Only a subset of JSON Schema is supported when5706 in the `schema` field. Only a subset of JSON Schema is supported when
5635 `strict` is `true`. To learn more, read the [Structured Outputs5707 `strict` is `true`. To learn more, read the [Structured Outputs
5636 guide](/docs/guides/structured-outputs).5708 guide](/api/docs/guides/structured-outputs).
5637 5709
5638 - `JSONObject object { type }`5710 - `JSONObject object { type }`
5639 5711
5724 - `BetaToolChoiceTypes object { type }`5796 - `BetaToolChoiceTypes object { type }`
5725 5797
5726 Indicates that the model should use a built-in tool to generate a response.5798 Indicates that the model should use a built-in tool to generate a response.
5727 [Learn more about built-in tools](/docs/guides/tools).5799 [Learn more about built-in tools](/api/docs/guides/tools).
5728 5800
5729 - `type: "file_search" or "web_search_preview" or "computer" or 5 more`5801 - `type: "file_search" or "web_search_preview" or "computer" or 5 more`
5730 5802
5731 The type of hosted tool the model should to use. Learn more about5803 The type of hosted tool the model should to use. Learn more about
5732 [built-in tools](/docs/guides/tools).5804 [built-in tools](/api/docs/guides/tools).
5733 5805
5734 Allowed values are:5806 Allowed values are:
5735 5807
5839 We support the following categories of tools:5911 We support the following categories of tools:
5840 5912
5841 - **Built-in tools**: Tools that are provided by OpenAI that extend the5913 - **Built-in tools**: Tools that are provided by OpenAI that extend the
5842 model's capabilities, like [web search](/docs/guides/tools-web-search)5914 model's capabilities, like [web search](/api/docs/guides/tools-web-search)
5843 or [file search](/docs/guides/tools-file-search). Learn more about5915 or [file search](/api/docs/guides/tools-file-search). Learn more about
5844 [built-in tools](/docs/guides/tools).5916 [built-in tools](/api/docs/guides/tools).
5845 - **MCP Tools**: Integrations with third-party systems via custom MCP servers5917 - **MCP Tools**: Integrations with third-party systems via custom MCP servers
5846 or predefined connectors such as Google Drive and SharePoint. Learn more about5918 or predefined connectors such as Google Drive and SharePoint. Learn more about
5847 [MCP Tools](/docs/guides/tools-connectors-mcp).5919 [MCP Tools](/api/docs/guides/tools-connectors-mcp).
5848 - **Function calls (custom tools)**: Functions that are defined by you,5920 - **Function calls (custom tools)**: Functions that are defined by you,
5849 enabling the model to call your own code with strongly typed arguments5921 enabling the model to call your own code with strongly typed arguments
5850 and outputs. Learn more about5922 and outputs. Learn more about
5851 [function calling](/docs/guides/function-calling). You can also use5923 [function calling](/api/docs/guides/function-calling). You can also use
5852 custom tools to call your own code.5924 custom tools to call your own code.
5853 5925
5854 - `Function object { name, parameters, strict, 6 more }`5926 - `Function object { name, parameters, strict, 6 more }`
5855 5927
5856 Defines a function in your own code the model can choose to call. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).5928 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).
5857 5929
5858 - `name: string`5930 - `name: string`
5859 5931
5897 5969
5898 - `FileSearch object { type, vector_store_ids, filters, 2 more }`5970 - `FileSearch object { type, vector_store_ids, filters, 2 more }`
5899 5971
5900 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](https://platform.openai.com/docs/guides/tools-file-search).5972 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).
5901 5973
5902 - `type: "file_search"`5974 - `type: "file_search"`
5903 5975
6071 6143
6072 - `Computer object { type }`6144 - `Computer object { type }`
6073 6145
6074 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).6146 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).
6075 6147
6076 - `type: "computer"`6148 - `type: "computer"`
6077 6149
6081 6153
6082 - `ComputerUsePreview object { display_height, display_width, environment, type }`6154 - `ComputerUsePreview object { display_height, display_width, environment, type }`
6083 6155
6084 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).6156 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).
6085 6157
6086 - `display_height: number`6158 - `display_height: number`
6087 6159
6114 - `WebSearch object { type, external_web_access, filters, 2 more }`6186 - `WebSearch object { type, external_web_access, filters, 2 more }`
6115 6187
6116 Search the Internet for sources related to the prompt. Learn more about the6188 Search the Internet for sources related to the prompt. Learn more about the
6117 [web search tool](/docs/guides/tools-web-search).6189 [web search tool](/api/docs/guides/tools-web-search).
6118 6190
6119 - `type: "web_search" or "web_search_2025_08_26"`6191 - `type: "web_search" or "web_search_2025_08_26"`
6120 6192
6178 - `Mcp object { server_label, type, allowed_callers, 9 more }`6250 - `Mcp object { server_label, type, allowed_callers, 9 more }`
6179 6251
6180 Give the model access to additional tools via remote Model Context Protocol6252 Give the model access to additional tools via remote Model Context Protocol
6181 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).6253 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).
6182 6254
6183 - `server_label: string`6255 - `server_label: string`
6184 6256
6230 6302
6231 Identifier for service connectors, like those available in ChatGPT. One of6303 Identifier for service connectors, like those available in ChatGPT. One of
6232 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more6304 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more
6233 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).6305 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).
6234 6306
6235 Currently supported `connector_id` values are:6307 Currently supported `connector_id` values are:
6236 6308
6422 6494
6423 - `background: optional "transparent" or "opaque" or "auto"`6495 - `background: optional "transparent" or "opaque" or "auto"`
6424 6496
6425 Set the background of the generated image. One of `transparent`,6497 Set the background of the generated image. One of `transparent`, `opaque`,
6426 `opaque`, or `auto`. Transparent backgrounds are available for6498 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including
6427 supported GPT Image models. For `gpt-image-2` and6499 their `2026-09-08` snapshots, support `opaque` and `transparent`
6428 `gpt-image-2-2026-04-21`, this support is in preview. When using6500 backgrounds. Transparent backgrounds are available for supported GPT Image
6429 `transparent`, set the output format to `png` or `webp`. Default: `auto`.6501 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in
6502 preview. When using `transparent`, set the output format to `png` or `webp`.
6503 Default: `auto`.
6430 6504
6431 - `"transparent"`6505 - `"transparent"`
6432 6506
6455 6529
6456 Base64-encoded mask image.6530 Base64-encoded mask image.
6457 6531
6458 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`6532 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`
6459 6533
6460 The image generation model to use. One of `gpt-image-1`,6534 The image generation model to use. One of `gpt-image-1`,
6461 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,6535 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
6462 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:6536 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
6537 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
6538 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:
6463 `gpt-image-1`.6539 `gpt-image-1`.
6464 6540
6465 - `string`6541 - `string`
6466 6542
6467 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`6543 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`
6468 6544
6469 The image generation model to use. One of `gpt-image-1`,6545 The image generation model to use. One of `gpt-image-1`,
6470 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,6546 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
6471 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:6547 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
6548 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
6549 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:
6472 `gpt-image-1`.6550 `gpt-image-1`.
6473 6551
6474 - `"gpt-image-1"`6552 - `"gpt-image-1"`
6481 6559
6482 - `"gpt-image-2-2026-04-21"`6560 - `"gpt-image-2-2026-04-21"`
6483 6561
6562 - `"gpt-image-2.5-sunburst"`
6563
6564 - `"gpt-image-2.5-sunburst-2026-09-08"`
6565
6566 - `"gpt-image-2.5-flare"`
6567
6568 - `"gpt-image-2.5-flare-2026-09-08"`
6569
6484 - `moderation: optional "auto" or "low"`6570 - `moderation: optional "auto" or "low"`
6485 6571
6486 Moderation level for the generated image. Default: `auto`.6572 Moderation level for the generated image. Default: `auto`.
6508 6594
6509 Number of partial images to generate in streaming mode, from 0 (default value) to 3.6595 Number of partial images to generate in streaming mode, from 0 (default value) to 3.
6510 6596
6511 - `quality: optional "low" or "medium" or "high" or "auto"`6597 - `quality: optional "low" or "medium" or "high" or 3 more`
6512 6598
6513 The quality of the generated image. One of `low`, `medium`, `high`,6599 The quality of the generated image. The GPT image models support `low`,
6514 or `auto`. Default: `auto`.6600 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,
6601 including their `2026-09-08` snapshots, also support `xhigh` and `max`.
6602 Default: `auto`.
6515 6603
6516 - `"low"`6604 - `"low"`
6517 6605
6519 6607
6520 - `"high"`6608 - `"high"`
6521 6609
6610 - `"xhigh"`
6611
6612 - `"max"`
6613
6522 - `"auto"`6614 - `"auto"`
6523 6615
6524 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`6616 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`
6525 6617
6526 The size of the generated images. For `gpt-image-2` and `gpt-image-2-2026-04-21`, 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`.6618 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`.
6527 6619
6528 - `string`6620 - `string`
6529 6621
6530 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`6622 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`
6531 6623
6532 The size of the generated images. For `gpt-image-2` and `gpt-image-2-2026-04-21`, 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`.6624 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`.
6533 6625
6534 - `"1024x1024"`6626 - `"1024x1024"`
6535 6627
6577 6669
6578 - `Custom object { name, type, allowed_callers, 4 more }`6670 - `Custom object { name, type, allowed_callers, 4 more }`
6579 6671
6580 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)6672 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)
6581 6673
6582 - `name: string`6674 - `name: string`
6583 6675
6699 6791
6700 - `Custom object { name, type, allowed_callers, 4 more }`6792 - `Custom object { name, type, allowed_callers, 4 more }`
6701 6793
6702 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)6794 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)
6703 6795
6704 - `name: string`6796 - `name: string`
6705 6797
6801 6893
6802 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`6894 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`
6803 6895
6804 This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search).6896 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).
6805 6897
6806 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`6898 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`
6807 6899
6905 6997
6906 This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.6998 This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.
6907 A stable identifier for your end-users.6999 A stable identifier for your end-users.
6908 Used to boost cache hit rates by better bucketing similar requests and to help OpenAI detect and prevent abuse. [Learn more](/docs/guides/safety-best-practices#safety-identifiers).7000 Used to boost cache hit rates by better bucketing similar requests and to help OpenAI detect and prevent abuse. [Learn more](/api/docs/guides/safety-best-practices#implement-safety-identifiers).
6909 7001
6910### Returns7002### Returns
6911 7003
7090 7182
7091 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`7183 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`
7092 7184
7093 An image input to the model. Learn about [image inputs](/docs/guides/vision).7185 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).
7094 7186
7095 - `detail: BetaImageDetail`7187 - `detail: BetaImageDetail`
7096 7188
7449 - `FileSearchCall object { id, queries, status, 3 more }`7541 - `FileSearchCall object { id, queries, status, 3 more }`
7450 7542
7451 The results of a file search tool call. See the7543 The results of a file search tool call. See the
7452 [file search guide](/docs/guides/tools-file-search) for more information.7544 [file search guide](/api/docs/guides/tools-file-search) for more information.
7453 7545
7454 - `id: string`7546 - `id: string`
7455 7547
7525 - `ComputerCall object { id, call_id, pending_safety_checks, 5 more }`7617 - `ComputerCall object { id, call_id, pending_safety_checks, 5 more }`
7526 7618
7527 A tool call to a computer use tool. See the7619 A tool call to a computer use tool. See the
7528 [computer use guide](/docs/guides/tools-computer-use) for more information.7620 [computer use guide](/api/docs/guides/tools-computer-use) for more information.
7529 7621
7530 - `id: string`7622 - `id: string`
7531 7623
7886 - `WebSearchCall object { id, action, status, 2 more }`7978 - `WebSearchCall object { id, action, status, 2 more }`
7887 7979
7888 The results of a web search tool call. See the7980 The results of a web search tool call. See the
7889 [web search guide](/docs/guides/tools-web-search) for more information.7981 [web search guide](/api/docs/guides/tools-web-search) for more information.
7890 7982
7891 - `id: string`7983 - `id: string`
7892 7984
7992 - `FunctionCall object { arguments, call_id, name, 7 more }`8084 - `FunctionCall object { arguments, call_id, name, 7 more }`
7993 8085
7994 A tool call to run a function. See the8086 A tool call to run a function. See the
7995 [function calling guide](/docs/guides/function-calling) for more information.8087 [function calling guide](/api/docs/guides/function-calling) for more information.
7996 8088
7997 - `arguments: string`8089 - `arguments: string`
7998 8090
8105 8197
8106 - `BetaResponseInputImageContent object { type, detail, file_id, 2 more }`8198 - `BetaResponseInputImageContent object { type, detail, file_id, 2 more }`
8107 8199
8108 An image input to the model. Learn about [image inputs](/docs/guides/vision)8200 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision)
8109 8201
8110 - `type: "input_image"`8202 - `type: "input_image"`
8111 8203
8263 8355
8264 - `BetaResponseInputImageContent object { type, detail, file_id, 2 more }`8356 - `BetaResponseInputImageContent object { type, detail, file_id, 2 more }`
8265 8357
8266 An image input to the model. Learn about [image inputs](/docs/guides/vision)8358 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision)
8267 8359
8268 - `EncryptedContent object { encrypted_content, type }`8360 - `EncryptedContent object { encrypted_content, type }`
8269 8361
8529 8621
8530 - `Function object { name, parameters, strict, 6 more }`8622 - `Function object { name, parameters, strict, 6 more }`
8531 8623
8532 Defines a function in your own code the model can choose to call. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).8624 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).
8533 8625
8534 - `name: string`8626 - `name: string`
8535 8627
8573 8665
8574 - `FileSearch object { type, vector_store_ids, filters, 2 more }`8666 - `FileSearch object { type, vector_store_ids, filters, 2 more }`
8575 8667
8576 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](https://platform.openai.com/docs/guides/tools-file-search).8668 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).
8577 8669
8578 - `type: "file_search"`8670 - `type: "file_search"`
8579 8671
8747 8839
8748 - `Computer object { type }`8840 - `Computer object { type }`
8749 8841
8750 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).8842 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).
8751 8843
8752 - `type: "computer"`8844 - `type: "computer"`
8753 8845
8757 8849
8758 - `ComputerUsePreview object { display_height, display_width, environment, type }`8850 - `ComputerUsePreview object { display_height, display_width, environment, type }`
8759 8851
8760 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).8852 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).
8761 8853
8762 - `display_height: number`8854 - `display_height: number`
8763 8855
8790 - `WebSearch object { type, external_web_access, filters, 2 more }`8882 - `WebSearch object { type, external_web_access, filters, 2 more }`
8791 8883
8792 Search the Internet for sources related to the prompt. Learn more about the8884 Search the Internet for sources related to the prompt. Learn more about the
8793 [web search tool](/docs/guides/tools-web-search).8885 [web search tool](/api/docs/guides/tools-web-search).
8794 8886
8795 - `type: "web_search" or "web_search_2025_08_26"`8887 - `type: "web_search" or "web_search_2025_08_26"`
8796 8888
8854 - `Mcp object { server_label, type, allowed_callers, 9 more }`8946 - `Mcp object { server_label, type, allowed_callers, 9 more }`
8855 8947
8856 Give the model access to additional tools via remote Model Context Protocol8948 Give the model access to additional tools via remote Model Context Protocol
8857 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).8949 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).
8858 8950
8859 - `server_label: string`8951 - `server_label: string`
8860 8952
8906 8998
8907 Identifier for service connectors, like those available in ChatGPT. One of8999 Identifier for service connectors, like those available in ChatGPT. One of
8908 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more9000 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more
8909 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).9001 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).
8910 9002
8911 Currently supported `connector_id` values are:9003 Currently supported `connector_id` values are:
8912 9004
9130 9222
9131 - `background: optional "transparent" or "opaque" or "auto"`9223 - `background: optional "transparent" or "opaque" or "auto"`
9132 9224
9133 Set the background of the generated image. One of `transparent`,9225 Set the background of the generated image. One of `transparent`, `opaque`,
9134 `opaque`, or `auto`. Transparent backgrounds are available for9226 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including
9135 supported GPT Image models. For `gpt-image-2` and9227 their `2026-09-08` snapshots, support `opaque` and `transparent`
9136 `gpt-image-2-2026-04-21`, this support is in preview. When using9228 backgrounds. Transparent backgrounds are available for supported GPT Image
9137 `transparent`, set the output format to `png` or `webp`. Default: `auto`.9229 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in
9230 preview. When using `transparent`, set the output format to `png` or `webp`.
9231 Default: `auto`.
9138 9232
9139 - `"transparent"`9233 - `"transparent"`
9140 9234
9163 9257
9164 Base64-encoded mask image.9258 Base64-encoded mask image.
9165 9259
9166 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`9260 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`
9167 9261
9168 The image generation model to use. One of `gpt-image-1`,9262 The image generation model to use. One of `gpt-image-1`,
9169 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,9263 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
9170 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:9264 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
9265 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
9266 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:
9171 `gpt-image-1`.9267 `gpt-image-1`.
9172 9268
9173 - `string`9269 - `string`
9174 9270
9175 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`9271 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`
9176 9272
9177 The image generation model to use. One of `gpt-image-1`,9273 The image generation model to use. One of `gpt-image-1`,
9178 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,9274 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
9179 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:9275 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
9276 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
9277 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:
9180 `gpt-image-1`.9278 `gpt-image-1`.
9181 9279
9182 - `"gpt-image-1"`9280 - `"gpt-image-1"`
9189 9287
9190 - `"gpt-image-2-2026-04-21"`9288 - `"gpt-image-2-2026-04-21"`
9191 9289
9290 - `"gpt-image-2.5-sunburst"`
9291
9292 - `"gpt-image-2.5-sunburst-2026-09-08"`
9293
9294 - `"gpt-image-2.5-flare"`
9295
9296 - `"gpt-image-2.5-flare-2026-09-08"`
9297
9192 - `moderation: optional "auto" or "low"`9298 - `moderation: optional "auto" or "low"`
9193 9299
9194 Moderation level for the generated image. Default: `auto`.9300 Moderation level for the generated image. Default: `auto`.
9216 9322
9217 Number of partial images to generate in streaming mode, from 0 (default value) to 3.9323 Number of partial images to generate in streaming mode, from 0 (default value) to 3.
9218 9324
9219 - `quality: optional "low" or "medium" or "high" or "auto"`9325 - `quality: optional "low" or "medium" or "high" or 3 more`
9220 9326
9221 The quality of the generated image. One of `low`, `medium`, `high`,9327 The quality of the generated image. The GPT image models support `low`,
9222 or `auto`. Default: `auto`.9328 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,
9329 including their `2026-09-08` snapshots, also support `xhigh` and `max`.
9330 Default: `auto`.
9223 9331
9224 - `"low"`9332 - `"low"`
9225 9333
9227 9335
9228 - `"high"`9336 - `"high"`
9229 9337
9338 - `"xhigh"`
9339
9340 - `"max"`
9341
9230 - `"auto"`9342 - `"auto"`
9231 9343
9232 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`9344 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`
9233 9345
9234 The size of the generated images. For `gpt-image-2` and `gpt-image-2-2026-04-21`, 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`.9346 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`.
9235 9347
9236 - `string`9348 - `string`
9237 9349
9238 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`9350 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`
9239 9351
9240 The size of the generated images. For `gpt-image-2` and `gpt-image-2-2026-04-21`, 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`.9352 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`.
9241 9353
9242 - `"1024x1024"`9354 - `"1024x1024"`
9243 9355
9403 9515
9404 - `Custom object { name, type, allowed_callers, 4 more }`9516 - `Custom object { name, type, allowed_callers, 4 more }`
9405 9517
9406 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)9518 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)
9407 9519
9408 - `name: string`9520 - `name: string`
9409 9521
9525 9637
9526 - `Custom object { name, type, allowed_callers, 4 more }`9638 - `Custom object { name, type, allowed_callers, 4 more }`
9527 9639
9528 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)9640 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)
9529 9641
9530 - `name: string`9642 - `name: string`
9531 9643
9627 9739
9628 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`9740 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`
9629 9741
9630 This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search).9742 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).
9631 9743
9632 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`9744 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`
9633 9745
9751 9863
9752 - `Function object { name, parameters, strict, 6 more }`9864 - `Function object { name, parameters, strict, 6 more }`
9753 9865
9754 Defines a function in your own code the model can choose to call. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).9866 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).
9755 9867
9756 - `name: string`9868 - `name: string`
9757 9869
9795 9907
9796 - `FileSearch object { type, vector_store_ids, filters, 2 more }`9908 - `FileSearch object { type, vector_store_ids, filters, 2 more }`
9797 9909
9798 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](https://platform.openai.com/docs/guides/tools-file-search).9910 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).
9799 9911
9800 - `type: "file_search"`9912 - `type: "file_search"`
9801 9913
9969 10081
9970 - `Computer object { type }`10082 - `Computer object { type }`
9971 10083
9972 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).10084 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).
9973 10085
9974 - `type: "computer"`10086 - `type: "computer"`
9975 10087
9979 10091
9980 - `ComputerUsePreview object { display_height, display_width, environment, type }`10092 - `ComputerUsePreview object { display_height, display_width, environment, type }`
9981 10093
9982 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).10094 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).
9983 10095
9984 - `display_height: number`10096 - `display_height: number`
9985 10097
10012 - `WebSearch object { type, external_web_access, filters, 2 more }`10124 - `WebSearch object { type, external_web_access, filters, 2 more }`
10013 10125
10014 Search the Internet for sources related to the prompt. Learn more about the10126 Search the Internet for sources related to the prompt. Learn more about the
10015 [web search tool](/docs/guides/tools-web-search).10127 [web search tool](/api/docs/guides/tools-web-search).
10016 10128
10017 - `type: "web_search" or "web_search_2025_08_26"`10129 - `type: "web_search" or "web_search_2025_08_26"`
10018 10130
10076 - `Mcp object { server_label, type, allowed_callers, 9 more }`10188 - `Mcp object { server_label, type, allowed_callers, 9 more }`
10077 10189
10078 Give the model access to additional tools via remote Model Context Protocol10190 Give the model access to additional tools via remote Model Context Protocol
10079 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).10191 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).
10080 10192
10081 - `server_label: string`10193 - `server_label: string`
10082 10194
10128 10240
10129 Identifier for service connectors, like those available in ChatGPT. One of10241 Identifier for service connectors, like those available in ChatGPT. One of
10130 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more10242 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more
10131 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).10243 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).
10132 10244
10133 Currently supported `connector_id` values are:10245 Currently supported `connector_id` values are:
10134 10246
10320 10432
10321 - `background: optional "transparent" or "opaque" or "auto"`10433 - `background: optional "transparent" or "opaque" or "auto"`
10322 10434
10323 Set the background of the generated image. One of `transparent`,10435 Set the background of the generated image. One of `transparent`, `opaque`,
10324 `opaque`, or `auto`. Transparent backgrounds are available for10436 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including
10325 supported GPT Image models. For `gpt-image-2` and10437 their `2026-09-08` snapshots, support `opaque` and `transparent`
10326 `gpt-image-2-2026-04-21`, this support is in preview. When using10438 backgrounds. Transparent backgrounds are available for supported GPT Image
10327 `transparent`, set the output format to `png` or `webp`. Default: `auto`.10439 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in
10440 preview. When using `transparent`, set the output format to `png` or `webp`.
10441 Default: `auto`.
10328 10442
10329 - `"transparent"`10443 - `"transparent"`
10330 10444
10353 10467
10354 Base64-encoded mask image.10468 Base64-encoded mask image.
10355 10469
10356 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`10470 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`
10357 10471
10358 The image generation model to use. One of `gpt-image-1`,10472 The image generation model to use. One of `gpt-image-1`,
10359 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,10473 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
10360 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:10474 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
10475 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
10476 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:
10361 `gpt-image-1`.10477 `gpt-image-1`.
10362 10478
10363 - `string`10479 - `string`
10364 10480
10365 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`10481 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`
10366 10482
10367 The image generation model to use. One of `gpt-image-1`,10483 The image generation model to use. One of `gpt-image-1`,
10368 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,10484 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
10369 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:10485 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
10486 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
10487 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:
10370 `gpt-image-1`.10488 `gpt-image-1`.
10371 10489
10372 - `"gpt-image-1"`10490 - `"gpt-image-1"`
10379 10497
10380 - `"gpt-image-2-2026-04-21"`10498 - `"gpt-image-2-2026-04-21"`
10381 10499
10500 - `"gpt-image-2.5-sunburst"`
10501
10502 - `"gpt-image-2.5-sunburst-2026-09-08"`
10503
10504 - `"gpt-image-2.5-flare"`
10505
10506 - `"gpt-image-2.5-flare-2026-09-08"`
10507
10382 - `moderation: optional "auto" or "low"`10508 - `moderation: optional "auto" or "low"`
10383 10509
10384 Moderation level for the generated image. Default: `auto`.10510 Moderation level for the generated image. Default: `auto`.
10406 10532
10407 Number of partial images to generate in streaming mode, from 0 (default value) to 3.10533 Number of partial images to generate in streaming mode, from 0 (default value) to 3.
10408 10534
10409 - `quality: optional "low" or "medium" or "high" or "auto"`10535 - `quality: optional "low" or "medium" or "high" or 3 more`
10410 10536
10411 The quality of the generated image. One of `low`, `medium`, `high`,10537 The quality of the generated image. The GPT image models support `low`,
10412 or `auto`. Default: `auto`.10538 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,
10539 including their `2026-09-08` snapshots, also support `xhigh` and `max`.
10540 Default: `auto`.
10413 10541
10414 - `"low"`10542 - `"low"`
10415 10543
10417 10545
10418 - `"high"`10546 - `"high"`
10419 10547
10548 - `"xhigh"`
10549
10550 - `"max"`
10551
10420 - `"auto"`10552 - `"auto"`
10421 10553
10422 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`10554 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`
10423 10555
10424 The size of the generated images. For `gpt-image-2` and `gpt-image-2-2026-04-21`, 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`.10556 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`.
10425 10557
10426 - `string`10558 - `string`
10427 10559
10428 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`10560 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`
10429 10561
10430 The size of the generated images. For `gpt-image-2` and `gpt-image-2-2026-04-21`, 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`.10562 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`.
10431 10563
10432 - `"1024x1024"`10564 - `"1024x1024"`
10433 10565
10475 10607
10476 - `Custom object { name, type, allowed_callers, 4 more }`10608 - `Custom object { name, type, allowed_callers, 4 more }`
10477 10609
10478 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)10610 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)
10479 10611
10480 - `name: string`10612 - `name: string`
10481 10613
10597 10729
10598 - `Custom object { name, type, allowed_callers, 4 more }`10730 - `Custom object { name, type, allowed_callers, 4 more }`
10599 10731
10600 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)10732 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)
10601 10733
10602 - `name: string`10734 - `name: string`
10603 10735
10699 10831
10700 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`10832 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`
10701 10833
10702 This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search).10834 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).
10703 10835
10704 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`10836 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`
10705 10837
10839 A description of the chain of thought used by a reasoning model while generating10971 A description of the chain of thought used by a reasoning model while generating
10840 a response. Be sure to include these items in your `input` to the Responses API10972 a response. Be sure to include these items in your `input` to the Responses API
10841 for subsequent turns of a conversation if you are manually10973 for subsequent turns of a conversation if you are manually
10842 [managing context](/docs/guides/conversation-state).10974 [managing context](/api/docs/guides/conversation-state).
10843 10975
10844 - `id: string`10976 - `id: string`
10845 10977
10912 11044
10913 - `Compaction object { encrypted_content, type, id, agent }`11045 - `Compaction object { encrypted_content, type, id, agent }`
10914 11046
10915 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).11047 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).
10916 11048
10917 - `encrypted_content: string`11049 - `encrypted_content: string`
10918 11050
10936 11068
10937 The canonical name of the agent that produced this item.11069 The canonical name of the agent that produced this item.
10938 11070
10939 - `ImageGenerationCall object { id, result, status, 2 more }`11071 - `ImageGenerationCall object { id, result, status, 4 more }`
10940 11072
10941 An image generation request made by the model.11073 An image generation request made by the model.
10942 11074
10974 11106
10975 The canonical name of the agent that produced this item.11107 The canonical name of the agent that produced this item.
10976 11108
11109 - `quality: optional "low" or "medium" or "high" or 3 more or null`
11110
11111 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.
11112
11113 - `"low"`
11114
11115 - `"medium"`
11116
11117 - `"high"`
11118
11119 - `"xhigh"`
11120
11121 - `"max"`
11122
11123 - `"auto"`
11124
11125 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`
11126
11127 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
11128
11129 - `string`
11130
11131 - `"1024x1024" or "1024x1536" or "1536x1024"`
11132
11133 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
11134
11135 - `"1024x1024"`
11136
11137 - `"1024x1536"`
11138
11139 - `"1536x1024"`
11140
10977 - `CodeInterpreterCall object { id, code, container_id, 4 more }`11141 - `CodeInterpreterCall object { id, code, container_id, 4 more }`
10978 11142
10979 A tool call to run code.11143 A tool call to run code.
11749 11913
11750 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`11914 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`
11751 11915
11752 An image input to the model. Learn about [image inputs](/docs/guides/vision).11916 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).
11753 11917
11754 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`11918 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`
11755 11919
11984 12148
11985 Model ID used to generate the response, like `gpt-6-astra`. OpenAI12149 Model ID used to generate the response, like `gpt-6-astra`. OpenAI
11986 offers a wide range of models with different capabilities, performance12150 offers a wide range of models with different capabilities, performance
11987 characteristics, and price points. Refer to the [model guide](/docs/models)12151 characteristics, and price points. Refer to the [model guide](/api/docs/models)
11988 to browse and compare available models.12152 to browse and compare available models.
11989 12153
11990 - `"gpt-6-astra" or "gpt-5.6-sol" or "gpt-5.6-terra" or 100 more`12154 - `"gpt-6-astra" or "gpt-5.6-sol" or "gpt-5.6-terra" or 100 more`
11991 12155
11992 Model ID used to generate the response, like `gpt-6-astra`. OpenAI12156 Model ID used to generate the response, like `gpt-6-astra`. OpenAI
11993 offers a wide range of models with different capabilities, performance12157 offers a wide range of models with different capabilities, performance
11994 characteristics, and price points. Refer to the [model guide](/docs/models)12158 characteristics, and price points. Refer to the [model guide](/api/docs/models)
11995 to browse and compare available models.12159 to browse and compare available models.
11996 12160
11997 - `"gpt-6-astra"`12161 - `"gpt-6-astra"`
12226 - `FileSearchCall object { id, queries, status, 3 more }`12390 - `FileSearchCall object { id, queries, status, 3 more }`
12227 12391
12228 The results of a file search tool call. See the12392 The results of a file search tool call. See the
12229 [file search guide](/docs/guides/tools-file-search) for more information.12393 [file search guide](/api/docs/guides/tools-file-search) for more information.
12230 12394
12231 - `id: string`12395 - `id: string`
12232 12396
12302 - `FunctionCall object { arguments, call_id, name, 7 more }`12466 - `FunctionCall object { arguments, call_id, name, 7 more }`
12303 12467
12304 A tool call to run a function. See the12468 A tool call to run a function. See the
12305 [function calling guide](/docs/guides/function-calling) for more information.12469 [function calling guide](/api/docs/guides/function-calling) for more information.
12306 12470
12307 - `arguments: string`12471 - `arguments: string`
12308 12472
12398 12562
12399 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`12563 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`
12400 12564
12401 An image input to the model. Learn about [image inputs](/docs/guides/vision).12565 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).
12402 12566
12403 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`12567 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`
12404 12568
12535 12699
12536 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`12700 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`
12537 12701
12538 An image input to the model. Learn about [image inputs](/docs/guides/vision).12702 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).
12539 12703
12540 - `ComputerScreenshot object { detail, file_id, image_url, 2 more }`12704 - `ComputerScreenshot object { detail, file_id, image_url, 2 more }`
12541 12705
12710 - `WebSearchCall object { id, action, status, 2 more }`12874 - `WebSearchCall object { id, action, status, 2 more }`
12711 12875
12712 The results of a web search tool call. See the12876 The results of a web search tool call. See the
12713 [web search guide](/docs/guides/tools-web-search) for more information.12877 [web search guide](/api/docs/guides/tools-web-search) for more information.
12714 12878
12715 - `id: string`12879 - `id: string`
12716 12880
12816 - `ComputerCall object { id, call_id, pending_safety_checks, 5 more }`12980 - `ComputerCall object { id, call_id, pending_safety_checks, 5 more }`
12817 12981
12818 A tool call to a computer use tool. See the12982 A tool call to a computer use tool. See the
12819 [computer use guide](/docs/guides/tools-computer-use) for more information.12983 [computer use guide](/api/docs/guides/tools-computer-use) for more information.
12820 12984
12821 - `id: string`12985 - `id: string`
12822 12986
12943 A description of the chain of thought used by a reasoning model while generating13107 A description of the chain of thought used by a reasoning model while generating
12944 a response. Be sure to include these items in your `input` to the Responses API13108 a response. Be sure to include these items in your `input` to the Responses API
12945 for subsequent turns of a conversation if you are manually13109 for subsequent turns of a conversation if you are manually
12946 [managing context](/docs/guides/conversation-state).13110 [managing context](/api/docs/guides/conversation-state).
12947 13111
12948 - `id: string`13112 - `id: string`
12949 13113
13166 13330
13167 - `Function object { name, parameters, strict, 6 more }`13331 - `Function object { name, parameters, strict, 6 more }`
13168 13332
13169 Defines a function in your own code the model can choose to call. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).13333 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).
13170 13334
13171 - `name: string`13335 - `name: string`
13172 13336
13210 13374
13211 - `FileSearch object { type, vector_store_ids, filters, 2 more }`13375 - `FileSearch object { type, vector_store_ids, filters, 2 more }`
13212 13376
13213 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](https://platform.openai.com/docs/guides/tools-file-search).13377 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).
13214 13378
13215 - `type: "file_search"`13379 - `type: "file_search"`
13216 13380
13384 13548
13385 - `Computer object { type }`13549 - `Computer object { type }`
13386 13550
13387 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).13551 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).
13388 13552
13389 - `type: "computer"`13553 - `type: "computer"`
13390 13554
13394 13558
13395 - `ComputerUsePreview object { display_height, display_width, environment, type }`13559 - `ComputerUsePreview object { display_height, display_width, environment, type }`
13396 13560
13397 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).13561 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).
13398 13562
13399 - `display_height: number`13563 - `display_height: number`
13400 13564
13427 - `WebSearch object { type, external_web_access, filters, 2 more }`13591 - `WebSearch object { type, external_web_access, filters, 2 more }`
13428 13592
13429 Search the Internet for sources related to the prompt. Learn more about the13593 Search the Internet for sources related to the prompt. Learn more about the
13430 [web search tool](/docs/guides/tools-web-search).13594 [web search tool](/api/docs/guides/tools-web-search).
13431 13595
13432 - `type: "web_search" or "web_search_2025_08_26"`13596 - `type: "web_search" or "web_search_2025_08_26"`
13433 13597
13491 - `Mcp object { server_label, type, allowed_callers, 9 more }`13655 - `Mcp object { server_label, type, allowed_callers, 9 more }`
13492 13656
13493 Give the model access to additional tools via remote Model Context Protocol13657 Give the model access to additional tools via remote Model Context Protocol
13494 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).13658 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).
13495 13659
13496 - `server_label: string`13660 - `server_label: string`
13497 13661
13543 13707
13544 Identifier for service connectors, like those available in ChatGPT. One of13708 Identifier for service connectors, like those available in ChatGPT. One of
13545 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more13709 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more
13546 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).13710 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).
13547 13711
13548 Currently supported `connector_id` values are:13712 Currently supported `connector_id` values are:
13549 13713
13735 13899
13736 - `background: optional "transparent" or "opaque" or "auto"`13900 - `background: optional "transparent" or "opaque" or "auto"`
13737 13901
13738 Set the background of the generated image. One of `transparent`,13902 Set the background of the generated image. One of `transparent`, `opaque`,
13739 `opaque`, or `auto`. Transparent backgrounds are available for13903 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including
13740 supported GPT Image models. For `gpt-image-2` and13904 their `2026-09-08` snapshots, support `opaque` and `transparent`
13741 `gpt-image-2-2026-04-21`, this support is in preview. When using13905 backgrounds. Transparent backgrounds are available for supported GPT Image
13742 `transparent`, set the output format to `png` or `webp`. Default: `auto`.13906 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in
13907 preview. When using `transparent`, set the output format to `png` or `webp`.
13908 Default: `auto`.
13743 13909
13744 - `"transparent"`13910 - `"transparent"`
13745 13911
13768 13934
13769 Base64-encoded mask image.13935 Base64-encoded mask image.
13770 13936
13771 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`13937 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`
13772 13938
13773 The image generation model to use. One of `gpt-image-1`,13939 The image generation model to use. One of `gpt-image-1`,
13774 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,13940 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
13775 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:13941 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
13942 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
13943 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:
13776 `gpt-image-1`.13944 `gpt-image-1`.
13777 13945
13778 - `string`13946 - `string`
13779 13947
13780 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`13948 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`
13781 13949
13782 The image generation model to use. One of `gpt-image-1`,13950 The image generation model to use. One of `gpt-image-1`,
13783 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,13951 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
13784 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:13952 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
13953 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
13954 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:
13785 `gpt-image-1`.13955 `gpt-image-1`.
13786 13956
13787 - `"gpt-image-1"`13957 - `"gpt-image-1"`
13794 13964
13795 - `"gpt-image-2-2026-04-21"`13965 - `"gpt-image-2-2026-04-21"`
13796 13966
13967 - `"gpt-image-2.5-sunburst"`
13968
13969 - `"gpt-image-2.5-sunburst-2026-09-08"`
13970
13971 - `"gpt-image-2.5-flare"`
13972
13973 - `"gpt-image-2.5-flare-2026-09-08"`
13974
13797 - `moderation: optional "auto" or "low"`13975 - `moderation: optional "auto" or "low"`
13798 13976
13799 Moderation level for the generated image. Default: `auto`.13977 Moderation level for the generated image. Default: `auto`.
13821 13999
13822 Number of partial images to generate in streaming mode, from 0 (default value) to 3.14000 Number of partial images to generate in streaming mode, from 0 (default value) to 3.
13823 14001
13824 - `quality: optional "low" or "medium" or "high" or "auto"`14002 - `quality: optional "low" or "medium" or "high" or 3 more`
13825 14003
13826 The quality of the generated image. One of `low`, `medium`, `high`,14004 The quality of the generated image. The GPT image models support `low`,
13827 or `auto`. Default: `auto`.14005 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,
14006 including their `2026-09-08` snapshots, also support `xhigh` and `max`.
14007 Default: `auto`.
13828 14008
13829 - `"low"`14009 - `"low"`
13830 14010
13832 14012
13833 - `"high"`14013 - `"high"`
13834 14014
14015 - `"xhigh"`
14016
14017 - `"max"`
14018
13835 - `"auto"`14019 - `"auto"`
13836 14020
13837 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`14021 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`
13838 14022
13839 The size of the generated images. For `gpt-image-2` and `gpt-image-2-2026-04-21`, 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`.14023 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`.
13840 14024
13841 - `string`14025 - `string`
13842 14026
13843 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`14027 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`
13844 14028
13845 The size of the generated images. For `gpt-image-2` and `gpt-image-2-2026-04-21`, 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`.14029 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`.
13846 14030
13847 - `"1024x1024"`14031 - `"1024x1024"`
13848 14032
13890 14074
13891 - `Custom object { name, type, allowed_callers, 4 more }`14075 - `Custom object { name, type, allowed_callers, 4 more }`
13892 14076
13893 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)14077 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)
13894 14078
13895 - `name: string`14079 - `name: string`
13896 14080
14012 14196
14013 - `Custom object { name, type, allowed_callers, 4 more }`14197 - `Custom object { name, type, allowed_callers, 4 more }`
14014 14198
14015 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)14199 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)
14016 14200
14017 - `name: string`14201 - `name: string`
14018 14202
14114 14298
14115 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`14299 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`
14116 14300
14117 This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search).14301 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).
14118 14302
14119 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`14303 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`
14120 14304
14234 14418
14235 - `Function object { name, parameters, strict, 6 more }`14419 - `Function object { name, parameters, strict, 6 more }`
14236 14420
14237 Defines a function in your own code the model can choose to call. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).14421 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).
14238 14422
14239 - `name: string`14423 - `name: string`
14240 14424
14278 14462
14279 - `FileSearch object { type, vector_store_ids, filters, 2 more }`14463 - `FileSearch object { type, vector_store_ids, filters, 2 more }`
14280 14464
14281 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](https://platform.openai.com/docs/guides/tools-file-search).14465 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).
14282 14466
14283 - `type: "file_search"`14467 - `type: "file_search"`
14284 14468
14452 14636
14453 - `Computer object { type }`14637 - `Computer object { type }`
14454 14638
14455 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).14639 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).
14456 14640
14457 - `type: "computer"`14641 - `type: "computer"`
14458 14642
14462 14646
14463 - `ComputerUsePreview object { display_height, display_width, environment, type }`14647 - `ComputerUsePreview object { display_height, display_width, environment, type }`
14464 14648
14465 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).14649 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).
14466 14650
14467 - `display_height: number`14651 - `display_height: number`
14468 14652
14495 - `WebSearch object { type, external_web_access, filters, 2 more }`14679 - `WebSearch object { type, external_web_access, filters, 2 more }`
14496 14680
14497 Search the Internet for sources related to the prompt. Learn more about the14681 Search the Internet for sources related to the prompt. Learn more about the
14498 [web search tool](/docs/guides/tools-web-search).14682 [web search tool](/api/docs/guides/tools-web-search).
14499 14683
14500 - `type: "web_search" or "web_search_2025_08_26"`14684 - `type: "web_search" or "web_search_2025_08_26"`
14501 14685
14559 - `Mcp object { server_label, type, allowed_callers, 9 more }`14743 - `Mcp object { server_label, type, allowed_callers, 9 more }`
14560 14744
14561 Give the model access to additional tools via remote Model Context Protocol14745 Give the model access to additional tools via remote Model Context Protocol
14562 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).14746 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).
14563 14747
14564 - `server_label: string`14748 - `server_label: string`
14565 14749
14611 14795
14612 Identifier for service connectors, like those available in ChatGPT. One of14796 Identifier for service connectors, like those available in ChatGPT. One of
14613 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more14797 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more
14614 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).14798 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).
14615 14799
14616 Currently supported `connector_id` values are:14800 Currently supported `connector_id` values are:
14617 14801
14803 14987
14804 - `background: optional "transparent" or "opaque" or "auto"`14988 - `background: optional "transparent" or "opaque" or "auto"`
14805 14989
14806 Set the background of the generated image. One of `transparent`,14990 Set the background of the generated image. One of `transparent`, `opaque`,
14807 `opaque`, or `auto`. Transparent backgrounds are available for14991 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including
14808 supported GPT Image models. For `gpt-image-2` and14992 their `2026-09-08` snapshots, support `opaque` and `transparent`
14809 `gpt-image-2-2026-04-21`, this support is in preview. When using14993 backgrounds. Transparent backgrounds are available for supported GPT Image
14810 `transparent`, set the output format to `png` or `webp`. Default: `auto`.14994 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in
14995 preview. When using `transparent`, set the output format to `png` or `webp`.
14996 Default: `auto`.
14811 14997
14812 - `"transparent"`14998 - `"transparent"`
14813 14999
14836 15022
14837 Base64-encoded mask image.15023 Base64-encoded mask image.
14838 15024
14839 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`15025 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`
14840 15026
14841 The image generation model to use. One of `gpt-image-1`,15027 The image generation model to use. One of `gpt-image-1`,
14842 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,15028 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
14843 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:15029 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
15030 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
15031 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:
14844 `gpt-image-1`.15032 `gpt-image-1`.
14845 15033
14846 - `string`15034 - `string`
14847 15035
14848 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`15036 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`
14849 15037
14850 The image generation model to use. One of `gpt-image-1`,15038 The image generation model to use. One of `gpt-image-1`,
14851 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,15039 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
14852 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:15040 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
15041 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
15042 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:
14853 `gpt-image-1`.15043 `gpt-image-1`.
14854 15044
14855 - `"gpt-image-1"`15045 - `"gpt-image-1"`
14862 15052
14863 - `"gpt-image-2-2026-04-21"`15053 - `"gpt-image-2-2026-04-21"`
14864 15054
15055 - `"gpt-image-2.5-sunburst"`
15056
15057 - `"gpt-image-2.5-sunburst-2026-09-08"`
15058
15059 - `"gpt-image-2.5-flare"`
15060
15061 - `"gpt-image-2.5-flare-2026-09-08"`
15062
14865 - `moderation: optional "auto" or "low"`15063 - `moderation: optional "auto" or "low"`
14866 15064
14867 Moderation level for the generated image. Default: `auto`.15065 Moderation level for the generated image. Default: `auto`.
14889 15087
14890 Number of partial images to generate in streaming mode, from 0 (default value) to 3.15088 Number of partial images to generate in streaming mode, from 0 (default value) to 3.
14891 15089
14892 - `quality: optional "low" or "medium" or "high" or "auto"`15090 - `quality: optional "low" or "medium" or "high" or 3 more`
14893 15091
14894 The quality of the generated image. One of `low`, `medium`, `high`,15092 The quality of the generated image. The GPT image models support `low`,
14895 or `auto`. Default: `auto`.15093 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,
15094 including their `2026-09-08` snapshots, also support `xhigh` and `max`.
15095 Default: `auto`.
14896 15096
14897 - `"low"`15097 - `"low"`
14898 15098
14900 15100
14901 - `"high"`15101 - `"high"`
14902 15102
15103 - `"xhigh"`
15104
15105 - `"max"`
15106
14903 - `"auto"`15107 - `"auto"`
14904 15108
14905 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`15109 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`
14906 15110
14907 The size of the generated images. For `gpt-image-2` and `gpt-image-2-2026-04-21`, 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`.15111 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`.
14908 15112
14909 - `string`15113 - `string`
14910 15114
14911 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`15115 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`
14912 15116
14913 The size of the generated images. For `gpt-image-2` and `gpt-image-2-2026-04-21`, 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`.15117 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`.
14914 15118
14915 - `"1024x1024"`15119 - `"1024x1024"`
14916 15120
14958 15162
14959 - `Custom object { name, type, allowed_callers, 4 more }`15163 - `Custom object { name, type, allowed_callers, 4 more }`
14960 15164
14961 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)15165 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)
14962 15166
14963 - `name: string`15167 - `name: string`
14964 15168
15080 15284
15081 - `Custom object { name, type, allowed_callers, 4 more }`15285 - `Custom object { name, type, allowed_callers, 4 more }`
15082 15286
15083 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)15287 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)
15084 15288
15085 - `name: string`15289 - `name: string`
15086 15290
15182 15386
15183 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`15387 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`
15184 15388
15185 This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search).15389 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).
15186 15390
15187 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`15391 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`
15188 15392
15268 15472
15269 - `Compaction object { id, encrypted_content, type, 2 more }`15473 - `Compaction object { id, encrypted_content, type, 2 more }`
15270 15474
15271 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).15475 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).
15272 15476
15273 - `id: string`15477 - `id: string`
15274 15478
15296 15500
15297 The identifier of the actor that created the item.15501 The identifier of the actor that created the item.
15298 15502
15299 - `ImageGenerationCall object { id, result, status, 2 more }`15503 - `ImageGenerationCall object { id, result, status, 4 more }`
15300 15504
15301 An image generation request made by the model.15505 An image generation request made by the model.
15302 15506
15334 15538
15335 The canonical name of the agent that produced this item.15539 The canonical name of the agent that produced this item.
15336 15540
15541 - `quality: optional "low" or "medium" or "high" or 3 more or null`
15542
15543 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.
15544
15545 - `"low"`
15546
15547 - `"medium"`
15548
15549 - `"high"`
15550
15551 - `"xhigh"`
15552
15553 - `"max"`
15554
15555 - `"auto"`
15556
15557 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`
15558
15559 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
15560
15561 - `string`
15562
15563 - `"1024x1024" or "1024x1536" or "1536x1024"`
15564
15565 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
15566
15567 - `"1024x1024"`
15568
15569 - `"1024x1536"`
15570
15571 - `"1536x1024"`
15572
15337 - `CodeInterpreterCall object { id, code, container_id, 4 more }`15573 - `CodeInterpreterCall object { id, code, container_id, 4 more }`
15338 15574
15339 A tool call to run code.15575 A tool call to run code.
16165 16401
16166 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`16402 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`
16167 16403
16168 An image input to the model. Learn about [image inputs](/docs/guides/vision).16404 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).
16169 16405
16170 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`16406 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`
16171 16407
16296 - `BetaToolChoiceTypes object { type }`16532 - `BetaToolChoiceTypes object { type }`
16297 16533
16298 Indicates that the model should use a built-in tool to generate a response.16534 Indicates that the model should use a built-in tool to generate a response.
16299 [Learn more about built-in tools](/docs/guides/tools).16535 [Learn more about built-in tools](/api/docs/guides/tools).
16300 16536
16301 - `type: "file_search" or "web_search_preview" or "computer" or 5 more`16537 - `type: "file_search" or "web_search_preview" or "computer" or 5 more`
16302 16538
16303 The type of hosted tool the model should to use. Learn more about16539 The type of hosted tool the model should to use. Learn more about
16304 [built-in tools](/docs/guides/tools).16540 [built-in tools](/api/docs/guides/tools).
16305 16541
16306 Allowed values are:16542 Allowed values are:
16307 16543
16411 We support the following categories of tools:16647 We support the following categories of tools:
16412 16648
16413 - **Built-in tools**: Tools that are provided by OpenAI that extend the16649 - **Built-in tools**: Tools that are provided by OpenAI that extend the
16414 model's capabilities, like [web search](/docs/guides/tools-web-search)16650 model's capabilities, like [web search](/api/docs/guides/tools-web-search)
16415 or [file search](/docs/guides/tools-file-search). Learn more about16651 or [file search](/api/docs/guides/tools-file-search). Learn more about
16416 [built-in tools](/docs/guides/tools).16652 [built-in tools](/api/docs/guides/tools).
16417 - **MCP Tools**: Integrations with third-party systems via custom MCP servers16653 - **MCP Tools**: Integrations with third-party systems via custom MCP servers
16418 or predefined connectors such as Google Drive and SharePoint. Learn more about16654 or predefined connectors such as Google Drive and SharePoint. Learn more about
16419 [MCP Tools](/docs/guides/tools-connectors-mcp).16655 [MCP Tools](/api/docs/guides/tools-connectors-mcp).
16420 - **Function calls (custom tools)**: Functions that are defined by you,16656 - **Function calls (custom tools)**: Functions that are defined by you,
16421 enabling the model to call your own code with strongly typed arguments16657 enabling the model to call your own code with strongly typed arguments
16422 and outputs. Learn more about16658 and outputs. Learn more about
16423 [function calling](/docs/guides/function-calling). You can also use16659 [function calling](/api/docs/guides/function-calling). You can also use
16424 custom tools to call your own code.16660 custom tools to call your own code.
16425 16661
16426 - `Function object { name, parameters, strict, 6 more }`16662 - `Function object { name, parameters, strict, 6 more }`
16427 16663
16428 Defines a function in your own code the model can choose to call. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).16664 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).
16429 16665
16430 - `name: string`16666 - `name: string`
16431 16667
16469 16705
16470 - `FileSearch object { type, vector_store_ids, filters, 2 more }`16706 - `FileSearch object { type, vector_store_ids, filters, 2 more }`
16471 16707
16472 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](https://platform.openai.com/docs/guides/tools-file-search).16708 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).
16473 16709
16474 - `type: "file_search"`16710 - `type: "file_search"`
16475 16711
16643 16879
16644 - `Computer object { type }`16880 - `Computer object { type }`
16645 16881
16646 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).16882 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).
16647 16883
16648 - `type: "computer"`16884 - `type: "computer"`
16649 16885
16653 16889
16654 - `ComputerUsePreview object { display_height, display_width, environment, type }`16890 - `ComputerUsePreview object { display_height, display_width, environment, type }`
16655 16891
16656 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).16892 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).
16657 16893
16658 - `display_height: number`16894 - `display_height: number`
16659 16895
16686 - `WebSearch object { type, external_web_access, filters, 2 more }`16922 - `WebSearch object { type, external_web_access, filters, 2 more }`
16687 16923
16688 Search the Internet for sources related to the prompt. Learn more about the16924 Search the Internet for sources related to the prompt. Learn more about the
16689 [web search tool](/docs/guides/tools-web-search).16925 [web search tool](/api/docs/guides/tools-web-search).
16690 16926
16691 - `type: "web_search" or "web_search_2025_08_26"`16927 - `type: "web_search" or "web_search_2025_08_26"`
16692 16928
16750 - `Mcp object { server_label, type, allowed_callers, 9 more }`16986 - `Mcp object { server_label, type, allowed_callers, 9 more }`
16751 16987
16752 Give the model access to additional tools via remote Model Context Protocol16988 Give the model access to additional tools via remote Model Context Protocol
16753 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).16989 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).
16754 16990
16755 - `server_label: string`16991 - `server_label: string`
16756 16992
16802 17038
16803 Identifier for service connectors, like those available in ChatGPT. One of17039 Identifier for service connectors, like those available in ChatGPT. One of
16804 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more17040 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more
16805 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).17041 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).
16806 17042
16807 Currently supported `connector_id` values are:17043 Currently supported `connector_id` values are:
16808 17044
16994 17230
16995 - `background: optional "transparent" or "opaque" or "auto"`17231 - `background: optional "transparent" or "opaque" or "auto"`
16996 17232
16997 Set the background of the generated image. One of `transparent`,17233 Set the background of the generated image. One of `transparent`, `opaque`,
16998 `opaque`, or `auto`. Transparent backgrounds are available for17234 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including
16999 supported GPT Image models. For `gpt-image-2` and17235 their `2026-09-08` snapshots, support `opaque` and `transparent`
17000 `gpt-image-2-2026-04-21`, this support is in preview. When using17236 backgrounds. Transparent backgrounds are available for supported GPT Image
17001 `transparent`, set the output format to `png` or `webp`. Default: `auto`.17237 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in
17238 preview. When using `transparent`, set the output format to `png` or `webp`.
17239 Default: `auto`.
17002 17240
17003 - `"transparent"`17241 - `"transparent"`
17004 17242
17027 17265
17028 Base64-encoded mask image.17266 Base64-encoded mask image.
17029 17267
17030 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`17268 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`
17031 17269
17032 The image generation model to use. One of `gpt-image-1`,17270 The image generation model to use. One of `gpt-image-1`,
17033 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,17271 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
17034 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:17272 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
17273 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
17274 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:
17035 `gpt-image-1`.17275 `gpt-image-1`.
17036 17276
17037 - `string`17277 - `string`
17038 17278
17039 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`17279 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`
17040 17280
17041 The image generation model to use. One of `gpt-image-1`,17281 The image generation model to use. One of `gpt-image-1`,
17042 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,17282 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
17043 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:17283 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
17284 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
17285 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:
17044 `gpt-image-1`.17286 `gpt-image-1`.
17045 17287
17046 - `"gpt-image-1"`17288 - `"gpt-image-1"`
17053 17295
17054 - `"gpt-image-2-2026-04-21"`17296 - `"gpt-image-2-2026-04-21"`
17055 17297
17298 - `"gpt-image-2.5-sunburst"`
17299
17300 - `"gpt-image-2.5-sunburst-2026-09-08"`
17301
17302 - `"gpt-image-2.5-flare"`
17303
17304 - `"gpt-image-2.5-flare-2026-09-08"`
17305
17056 - `moderation: optional "auto" or "low"`17306 - `moderation: optional "auto" or "low"`
17057 17307
17058 Moderation level for the generated image. Default: `auto`.17308 Moderation level for the generated image. Default: `auto`.
17080 17330
17081 Number of partial images to generate in streaming mode, from 0 (default value) to 3.17331 Number of partial images to generate in streaming mode, from 0 (default value) to 3.
17082 17332
17083 - `quality: optional "low" or "medium" or "high" or "auto"`17333 - `quality: optional "low" or "medium" or "high" or 3 more`
17084 17334
17085 The quality of the generated image. One of `low`, `medium`, `high`,17335 The quality of the generated image. The GPT image models support `low`,
17086 or `auto`. Default: `auto`.17336 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,
17337 including their `2026-09-08` snapshots, also support `xhigh` and `max`.
17338 Default: `auto`.
17087 17339
17088 - `"low"`17340 - `"low"`
17089 17341
17091 17343
17092 - `"high"`17344 - `"high"`
17093 17345
17346 - `"xhigh"`
17347
17348 - `"max"`
17349
17094 - `"auto"`17350 - `"auto"`
17095 17351
17096 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`17352 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`
17097 17353
17098 The size of the generated images. For `gpt-image-2` and `gpt-image-2-2026-04-21`, 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`.17354 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`.
17099 17355
17100 - `string`17356 - `string`
17101 17357
17102 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`17358 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`
17103 17359
17104 The size of the generated images. For `gpt-image-2` and `gpt-image-2-2026-04-21`, 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`.17360 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`.
17105 17361
17106 - `"1024x1024"`17362 - `"1024x1024"`
17107 17363
17149 17405
17150 - `Custom object { name, type, allowed_callers, 4 more }`17406 - `Custom object { name, type, allowed_callers, 4 more }`
17151 17407
17152 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)17408 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)
17153 17409
17154 - `name: string`17410 - `name: string`
17155 17411
17271 17527
17272 - `Custom object { name, type, allowed_callers, 4 more }`17528 - `Custom object { name, type, allowed_callers, 4 more }`
17273 17529
17274 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)17530 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)
17275 17531
17276 - `name: string`17532 - `name: string`
17277 17533
17373 17629
17374 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`17630 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`
17375 17631
17376 This tool searches the web for relevant results to use in a response. Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search).17632 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).
17377 17633
17378 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`17634 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`
17379 17635
17455 - `background: optional boolean or null`17711 - `background: optional boolean or null`
17456 17712
17457 Whether to run the model response in the background.17713 Whether to run the model response in the background.
17458 [Learn more](/docs/guides/background).17714 [Learn more](/api/docs/guides/background).
17459 17715
17460 - `completed_at: optional number or null`17716 - `completed_at: optional number or null`
17461 17717
17472 17728
17473 - `max_output_tokens: optional number or null`17729 - `max_output_tokens: optional number or null`
17474 17730
17475 An upper bound for the number of tokens that can be generated for a response, including visible output tokens and [reasoning tokens](/docs/guides/reasoning).17731 An upper bound for the number of tokens that can be generated for a response, including visible output tokens and [reasoning tokens](/api/docs/guides/reasoning).
17476 17732
17477 - `max_tool_calls: optional number or null`17733 - `max_tool_calls: optional number or null`
17478 17734
17604 17860
17605 The unique ID of the previous response to the model. Use this to17861 The unique ID of the previous response to the model. Use this to
17606 create multi-turn conversations. Learn more about17862 create multi-turn conversations. Learn more about
17607 [conversation state](/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.17863 [conversation state](/api/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.
17608 17864
17609 - `prompt: optional BetaResponsePrompt or null`17865 - `prompt: optional BetaResponsePrompt or null`
17610 17866
17611 Reference to a prompt template and its variables.17867 Reference to a prompt template and its variables.
17612 [Learn more](/docs/guides/text?api-mode=responses#reusable-prompts).17868 [Learn more](/api/docs/guides/text?api-mode=responses#version-prompts-in-code).
17613 17869
17614 - `id: string`17870 - `id: string`
17615 17871
17629 17885
17630 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`17886 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`
17631 17887
17632 An image input to the model. Learn about [image inputs](/docs/guides/vision).17888 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).
17633 17889
17634 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`17890 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`
17635 17891
17699 17955
17700 - `prompt_cache_key: optional string or null`17956 - `prompt_cache_key: optional string or null`
17701 17957
17702 Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the `user` field. [Learn more](/docs/guides/prompt-caching).17958 Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the `user` field. [Learn more](/api/docs/guides/prompt-caching).
17703 17959
17704 - `prompt_cache_options: optional object { mode, ttl, comparison_response_id }`17960 - `prompt_cache_options: optional object { mode, ttl, comparison_response_id }`
17705 17961
17727 17983
17728 Deprecated. Use `prompt_cache_options.ttl` instead.17984 Deprecated. Use `prompt_cache_options.ttl` instead.
17729 17985
17730 The retention policy for the prompt cache. Set to `24h` to enable extended prompt caching, which keeps cached prefixes active for longer, up to a maximum of 24 hours. [Learn more](/docs/guides/prompt-caching#prompt-cache-retention).17986 The retention policy for the prompt cache. Set to `24h` to enable extended prompt caching, which keeps cached prefixes active for longer, up to a maximum of 24 hours. [Learn more](/api/docs/guides/prompt-caching#prompt-cache-retention).
17731 This field expresses a maximum retention policy, while17987 This field expresses a maximum retention policy, while
17732 `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two17988 `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two
17733 fields are independent and do not interact.17989 fields are independent and do not interact.
17745 - `reasoning: optional object { context, effort, generate_summary, 2 more } or null`18001 - `reasoning: optional object { context, effort, generate_summary, 2 more } or null`
17746 18002
17747 Configuration options for18003 Configuration options for
17748 [reasoning models](https://platform.openai.com/docs/guides/reasoning).18004 [reasoning models](/api/docs/guides/reasoning).
17749 18005
17750 - `context: optional "auto" or "current_turn" or "all_turns" or null`18006 - `context: optional "auto" or "current_turn" or "all_turns" or null`
17751 18007
17770 Reducing reasoning effort can result in faster responses and fewer tokens18026 Reducing reasoning effort can result in faster responses and fewer tokens
17771 used on reasoning in a response. Not all reasoning models support every18027 used on reasoning in a response. Not all reasoning models support every
17772 value. See the18028 value. See the
17773 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)18029 [reasoning guide](/api/docs/guides/reasoning)
17774 for model-specific support.18030 for model-specific support.
17775 18031
17776 - `"none"`18032 - `"none"`
17836 - `safety_identifier: optional string or null`18092 - `safety_identifier: optional string or null`
17837 18093
17838 A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.18094 A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.
17839 The IDs should be a string that uniquely identifies each user, with a maximum length of 64 characters. We recommend hashing their username or email address, in order to avoid sending us any identifying information. [Learn more](/docs/guides/safety-best-practices#safety-identifiers).18095 The IDs should be a string that uniquely identifies each user, with a maximum length of 64 characters. We recommend hashing their username or email address, in order to avoid sending us any identifying information. [Learn more](/api/docs/guides/safety-best-practices#implement-safety-identifiers).
17840 18096
17841 - `service_tier: optional BetaServiceTier or null`18097 - `service_tier: optional BetaServiceTier or null`
17842 18098
17844 18100
17845 - If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.18101 - If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.
17846 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.18102 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.
17847 - If set to '[flex](/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.18103 - If set to '[flex](/api/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.
17848 - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level, include the `service_tier=fast` or `service_tier=priority` parameter for Responses or Chat Completions. The response will show `service_tier=priority` regardless of if you specify `service_tier=fast` or `priority` in your request.18104 - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level, include the `service_tier=fast` or `service_tier=priority` parameter for Responses or Chat Completions. The response will show `service_tier=priority` regardless of if you specify `service_tier=fast` or `priority` in your request.
17849 - If set to 'ultrafast', then the request will be processed with the access-controlled Ultrafast Processing service tier. This tier is currently available for `gpt-5.6-sol`; a response served through it will show `service_tier=ultrafast`.18105 - If set to 'ultrafast', then the request will be processed with the access-controlled Ultrafast Processing service tier. This tier is currently available for `gpt-5.6-sol`; a response served through it will show `service_tier=ultrafast`.
17850 - When not set, the default behavior is 'auto'.18106 - When not set, the default behavior is 'auto'.
17887 Configuration options for a text response from the model. Can be plain18143 Configuration options for a text response from the model. Can be plain
17888 text or structured JSON data. Learn more:18144 text or structured JSON data. Learn more:
17889 18145
17890 - [Text inputs and outputs](/docs/guides/text)18146 - [Text inputs and outputs](/api/docs/guides/text)
17891 - [Structured Outputs](/docs/guides/structured-outputs)18147 - [Structured Outputs](/api/docs/guides/structured-outputs)
17892 18148
17893 - `format: optional BetaResponseFormatTextConfig`18149 - `format: optional BetaResponseFormatTextConfig`
17894 18150
17896 18152
17897 Configuring `{ "type": "json_schema" }` enables Structured Outputs,18153 Configuring `{ "type": "json_schema" }` enables Structured Outputs,
17898 which ensures the model will match your supplied JSON schema. Learn more in the18154 which ensures the model will match your supplied JSON schema. Learn more in the
17899 [Structured Outputs guide](/docs/guides/structured-outputs).18155 [Structured Outputs guide](/api/docs/guides/structured-outputs).
17900 18156
17901 The default format is `{ "type": "text" }` with no additional options.18157 The default format is `{ "type": "text" }` with no additional options.
17902 18158
17919 - `BetaResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`18175 - `BetaResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`
17920 18176
17921 JSON Schema response format. Used to generate structured JSON responses.18177 JSON Schema response format. Used to generate structured JSON responses.
17922 Learn more about [Structured Outputs](/docs/guides/structured-outputs).18178 Learn more about [Structured Outputs](/api/docs/guides/structured-outputs).
17923 18179
17924 - `name: string`18180 - `name: string`
17925 18181
17948 If set to true, the model will always follow the exact schema defined18204 If set to true, the model will always follow the exact schema defined
17949 in the `schema` field. Only a subset of JSON Schema is supported when18205 in the `schema` field. Only a subset of JSON Schema is supported when
17950 `strict` is `true`. To learn more, read the [Structured Outputs18206 `strict` is `true`. To learn more, read the [Structured Outputs
17951 guide](/docs/guides/structured-outputs).18207 guide](/api/docs/guides/structured-outputs).
17952 18208
17953 - `JSONObject object { type }`18209 - `JSONObject object { type }`
17954 18210
18017 - `cached_tokens: number`18273 - `cached_tokens: number`
18018 18274
18019 The number of tokens that were retrieved from the cache.18275 The number of tokens that were retrieved from the cache.
18020 [More on prompt caching](/docs/guides/prompt-caching).18276 [More on prompt caching](/api/docs/guides/prompt-caching).
18021 18277
18022 - `output_tokens: number`18278 - `output_tokens: number`
18023 18279
18039 18295
18040 This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.18296 This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.
18041 A stable identifier for your end-users.18297 A stable identifier for your end-users.
18042 Used to boost cache hit rates by better bucketing similar requests and to help OpenAI detect and prevent abuse. [Learn more](/docs/guides/safety-best-practices#safety-identifiers).18298 Used to boost cache hit rates by better bucketing similar requests and to help OpenAI detect and prevent abuse. [Learn more](/api/docs/guides/safety-best-practices#implement-safety-identifiers).
18043 18299
18044### Example18300### Example
18045 18301