SpyBara
Go Premium

Reference 2026-09-08 01:58 UTC to 2026-09-09 16:02 UTC

82 files changed +5,288 −2,658. View all changes and history on the product overview
2026
Wed 30 22:59 Tue 29 22:57 Mon 28 22:57 Sun 27 23:58 Sat 26 23:59 Fri 25 23:58 Thu 24 23:58 Wed 23 23:58 Tue 22 23:57 Mon 21 23:00 Sat 19 23:00 Fri 18 22:59 Wed 16 22:58 Fri 11 20:00 Thu 10 18:01 Wed 9 16:02 Fri 4 23:59 Thu 3 23:00 Wed 2 01:58 Tue 1 01:57
Details

442 442 

443 - `parameters: optional FunctionParameters`443 - `parameters: optional FunctionParameters`

444 444 

445 The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.445 The parameters the functions accepts, described as a JSON Schema object. See the [guide](/api/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.

446 446 

447 Omitting `parameters` defines a function with an empty parameter list.447 Omitting `parameters` defines a function with an empty parameter list.

448 448 

449 - `strict: optional boolean or null`449 - `strict: optional boolean or null`

450 450 

451 Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](/docs/guides/function-calling).451 Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](/api/docs/guides/function-calling).

452 452 

453### Function Parameters453### Function Parameters

454 454 

455- `FunctionParameters = map[unknown]`455- `FunctionParameters = map[unknown]`

456 456 

457 The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.457 The parameters the functions accepts, described as a JSON Schema object. See the [guide](/api/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.

458 458 

459 Omitting `parameters` defines a function with an empty parameter list.459 Omitting `parameters` defines a function with an empty parameter list.

460 460 


474- `Reasoning object { context, effort, generate_summary, 2 more }`474- `Reasoning object { context, effort, generate_summary, 2 more }`

475 475 

476 Configuration options for476 Configuration options for

477 [reasoning models](https://platform.openai.com/docs/guides/reasoning).477 [reasoning models](/api/docs/guides/reasoning).

478 478 

479 - `context: optional "auto" or "current_turn" or "all_turns" or null`479 - `context: optional "auto" or "current_turn" or "all_turns" or null`

480 480 


499 Reducing reasoning effort can result in faster responses and fewer tokens499 Reducing reasoning effort can result in faster responses and fewer tokens

500 used on reasoning in a response. Not all reasoning models support every500 used on reasoning in a response. Not all reasoning models support every

501 value. See the501 value. See the

502 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)502 [reasoning guide](/api/docs/guides/reasoning)

503 for model-specific support.503 for model-specific support.

504 504 

505 - `"none"`505 - `"none"`


571 Reducing reasoning effort can result in faster responses and fewer tokens571 Reducing reasoning effort can result in faster responses and fewer tokens

572 used on reasoning in a response. Not all reasoning models support every572 used on reasoning in a response. Not all reasoning models support every

573 value. See the573 value. See the

574 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)574 [reasoning guide](/api/docs/guides/reasoning)

575 for model-specific support.575 for model-specific support.

576 576 

577 - `"none"`577 - `"none"`


608- `ResponseFormatJSONSchema object { json_schema, type }`608- `ResponseFormatJSONSchema object { json_schema, type }`

609 609 

610 JSON Schema response format. Used to generate structured JSON responses.610 JSON Schema response format. Used to generate structured JSON responses.

611 Learn more about [Structured Outputs](/docs/guides/structured-outputs).611 Learn more about [Structured Outputs](/api/docs/guides/structured-outputs).

612 612 

613 - `json_schema: object { name, description, schema, strict }`613 - `json_schema: object { name, description, schema, strict }`

614 614 


635 If set to true, the model will always follow the exact schema defined635 If set to true, the model will always follow the exact schema defined

636 in the `schema` field. Only a subset of JSON Schema is supported when636 in the `schema` field. Only a subset of JSON Schema is supported when

637 `strict` is `true`. To learn more, read the [Structured Outputs637 `strict` is `true`. To learn more, read the [Structured Outputs

638 guide](/docs/guides/structured-outputs).638 guide](/api/docs/guides/structured-outputs).

639 639 

640 - `type: "json_schema"`640 - `type: "json_schema"`

641 641 


660- `ResponseFormatTextGrammar object { grammar, type }`660- `ResponseFormatTextGrammar object { grammar, type }`

661 661 

662 A custom grammar for the model to follow when generating text.662 A custom grammar for the model to follow when generating text.

663 Learn more in the [custom grammars guide](/docs/guides/custom-grammars).663 Learn more in the [custom grammars guide](/api/docs/guides/function-calling#context-free-grammars).

664 664 

665 - `grammar: string`665 - `grammar: string`

666 666 


677- `ResponseFormatTextPython object { type }`677- `ResponseFormatTextPython object { type }`

678 678 

679 Configure the model to generate valid Python code. See the679 Configure the model to generate valid Python code. See the

680 [custom grammars guide](/docs/guides/custom-grammars) for more details.680 [custom grammars guide](/api/docs/guides/function-calling#context-free-grammars) for more details.

681 681 

682 - `type: "python"`682 - `type: "python"`

683 683 

Details

44 44 

45- `event_types: optional array of "api_key.created" or "api_key.updated" or "api_key.deleted" or 144 more`45- `event_types: optional array of "api_key.created" or "api_key.updated" or "api_key.deleted" or 144 more`

46 46 

47 Return only events with a `type` in one of these values. For example, `project.created`. For all options, see the documentation for the [audit log object](/docs/api-reference/audit-logs/object).47 Return only events with a `type` in one of these values. For example, `project.created`. For all options, see the documentation for the [audit log object](/api/reference/resources/admin/subresources/organization/subresources/audit_logs).

48 48 

49 - `"api_key.created"`49 - `"api_key.created"`

50 50 

Details

16 16 

17- `geography: optional string or null`17- `geography: optional string or null`

18 18 

19 Create the project with the specified data residency region. Your organization must have access to Data residency functionality in order to use. See [data residency controls](/docs/guides/your-data#data-residency-controls) to review the functionality and limitations of setting this field.19 Create the project with the specified data residency region. Your organization must have access to Data residency functionality in order to use. See [data residency controls](/api/docs/guides/your-data#data-residency-controls) to review the functionality and limitations of setting this field.

20 Deprecated: use `residency` instead. Do not provide both `geography` and `residency`.20 Deprecated: use `residency` instead. Do not provide both `geography` and `residency`.

21 21 

22- `residency: optional ProjectResidency or null`22- `residency: optional ProjectResidency or null`

23 23 

24 Create the project with the specified residency configuration. Your organization must have access to the requested residency configuration in order to use it. See [data residency controls](/docs/guides/your-data#data-residency-controls) to review the functionality and limitations of setting this field.24 Create the project with the specified residency configuration. Your organization must have access to the requested residency configuration in order to use it. See [data residency controls](/api/docs/guides/your-data#data-residency-controls) to review the functionality and limitations of setting this field.

25 25 

26 - `"GLOBAL"`26 - `"GLOBAL"`

27 27 

Details

120 120 

121 The redacted value of the API key121 The redacted value of the API key

122 122 

123 - `expires_at: optional number or null`

124 

125 The Unix timestamp (in seconds) when the API key expires, or null if it does not expire.

126 

123- `has_more: boolean`127- `has_more: boolean`

124 128 

125- `object: "list"`129- `object: "list"`


165 }169 }

166 },170 },

167 "owner_project_access": "active",171 "owner_project_access": "active",

168 "redacted_value": "redacted_value"172 "redacted_value": "redacted_value",

173 "expires_at": 0

169 }174 }

170 ],175 ],

171 "has_more": true,176 "has_more": true,

Details

12 12 

13### Returns13### Returns

14 14 

15- `ProjectAPIKey object { id, created_at, last_used_at, 5 more }`15- `ProjectAPIKey object { id, created_at, last_used_at, 6 more }`

16 16 

17 Represents an individual API key in a project.17 Represents an individual API key in a project.

18 18 


104 104 

105 The redacted value of the API key105 The redacted value of the API key

106 106 

107 - `expires_at: optional number or null`

108 

109 The Unix timestamp (in seconds) when the API key expires, or null if it does not expire.

110 

107### Example111### Example

108 112 

109```http113```http


137 }141 }

138 },142 },

139 "owner_project_access": "active",143 "owner_project_access": "active",

140 "redacted_value": "redacted_value"144 "redacted_value": "redacted_value",

145 "expires_at": 0

141}146}

142```147```

143 148 

Details

18 18 

19 Create the service account without default roles or an API key.19 Create the service account without default roles or an API key.

20 20 

21- `expires_in_seconds: optional number or null`

22 

23 Number of seconds until the initial API key expires. If omitted or null, the key does not expire unless the effective organization or project policy requires an expiration. When a policy sets a maximum lifetime, this value must be provided and must not exceed that limit. A non-null value cannot be used when `create_service_account_only` is true.

24 

21### Returns25### Returns

22 26 

23- `id: string`27- `id: string`

24 28 

25- `api_key: object { id, created_at, name, 2 more } or null`29- `api_key: object { id, created_at, name, 3 more } or null`

26 30 

27 - `id: string`31 - `id: string`

28 32 


38 42 

39 - `value: string`43 - `value: string`

40 44 

45 - `expires_at: optional number or null`

46 

47 The Unix timestamp (in seconds) when the API key expires, or null if it does not expire.

48 

41- `created_at: number`49- `created_at: number`

42 50 

43- `name: string`51- `name: string`


75 "created_at": 0,83 "created_at": 0,

76 "name": "name",84 "name": "name",

77 "object": "organization.project.service_account.api_key",85 "object": "organization.project.service_account.api_key",

78 "value": "value"86 "value": "value",

87 "expires_at": 0

79 },88 },

80 "created_at": 0,89 "created_at": 0,

81 "name": "name",90 "name": "name",

Details

14 14 

15- `model: string or SpeechModel`15- `model: string or SpeechModel`

16 16 

17 One of the available [TTS models](/docs/models#tts): `tts-1`, `tts-1-hd`, `gpt-4o-mini-tts`, or `gpt-4o-mini-tts-2025-12-15`.17 One of the available [TTS models](/api/docs/guides/text-to-speech): `tts-1`, `tts-1-hd`, `gpt-4o-mini-tts`, or `gpt-4o-mini-tts-2025-12-15`.

18 18 

19 - `string`19 - `string`

20 20 


30 30 

31- `voice: string or "alloy" or "ash" or "ballad" or 7 more or object { id }`31- `voice: string or "alloy" or "ash" or "ballad" or 7 more or object { id }`

32 32 

33 The voice to use when generating the audio. Supported built-in voices are `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`, `shimmer`, `verse`, `marin`, and `cedar`. You may also provide a custom voice object with an `id`, for example `{ "id": "voice_1234" }`. Previews of the voices are available in the [Text to speech guide](/docs/guides/text-to-speech#voice-options).33 The voice to use when generating the audio. Supported built-in voices are `alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `onyx`, `nova`, `sage`, `shimmer`, `verse`, `marin`, and `cedar`. You may also provide a custom voice object with an `id`, for example `{ "id": "voice_1234" }`. Previews of the voices are available in the [Text to speech guide](/api/docs/guides/text-to-speech#voice-options).

34 34 

35 - `string`35 - `string`

36 36 

Details

4 4 

5## transcript.text.segment5## transcript.text.segment

6 6 

7Emitted when a diarized transcription returns a completed segment with speaker information. Only emitted when you [create a transcription](https://developers.openai.com/docs/api-reference/audio/create-transcription) with `stream` set to `true` and `response_format` set to `diarized_json`.7Emitted when a diarized transcription returns a completed segment with speaker information. Only emitted when you [create a transcription](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create) with `stream` set to `true` and `response_format` set to `diarized_json`.

8 8 

9### Schema9### Schema

10 10 


15 "(resource) audio.transcriptions > (model) transcription_text_segment_event > (schema)": {15 "(resource) audio.transcriptions > (model) transcription_text_segment_event > (schema)": {

16 "kind": "HttpDeclTypeAlias",16 "kind": "HttpDeclTypeAlias",

17 "oasRef": "#/components/schemas/TranscriptTextSegmentEvent",17 "oasRef": "#/components/schemas/TranscriptTextSegmentEvent",

18 "docstring": "Emitted when a diarized transcription returns a completed segment with speaker information. Only emitted when you [create a transcription](/docs/api-reference/audio/create-transcription) with `stream` set to `true` and `response_format` set to `diarized_json`.\n",18 "docstring": "Emitted when a diarized transcription returns a completed segment with speaker information. Only emitted when you [create a transcription](/api/reference/resources/audio/subresources/transcriptions/methods/create) with `stream` set to `true` and `response_format` set to `diarized_json`.\n",

19 "ident": "TranscriptionTextSegmentEvent",19 "ident": "TranscriptionTextSegmentEvent",

20 "type": {20 "type": {

21 "kind": "HttpTypeObject",21 "kind": "HttpTypeObject",


175 175 

176## transcript.text.delta176## transcript.text.delta

177 177 

178Emitted when there is an additional text delta. This is also the first event emitted when the transcription starts. Only emitted when you [create a transcription](https://developers.openai.com/docs/api-reference/audio/create-transcription) with the `Stream` parameter set to `true`.178Emitted when there is an additional text delta. This is also the first event emitted when the transcription starts. Only emitted when you [create a transcription](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create) with the `Stream` parameter set to `true`.

179 179 

180### Schema180### Schema

181 181 


186 "(resource) audio.transcriptions > (model) transcription_text_delta_event > (schema)": {186 "(resource) audio.transcriptions > (model) transcription_text_delta_event > (schema)": {

187 "kind": "HttpDeclTypeAlias",187 "kind": "HttpDeclTypeAlias",

188 "oasRef": "#/components/schemas/TranscriptTextDeltaEvent",188 "oasRef": "#/components/schemas/TranscriptTextDeltaEvent",

189 "docstring": "Emitted when there is an additional text delta. This is also the first event emitted when the transcription starts. Only emitted when you [create a transcription](/docs/api-reference/audio/create-transcription) with the `Stream` parameter set to `true`.",189 "docstring": "Emitted when there is an additional text delta. This is also the first event emitted when the transcription starts. Only emitted when you [create a transcription](/api/reference/resources/audio/subresources/transcriptions/methods/create) with the `Stream` parameter set to `true`.",

190 "ident": "TranscriptionTextDeltaEvent",190 "ident": "TranscriptionTextDeltaEvent",

191 "type": {191 "type": {

192 "kind": "HttpTypeObject",192 "kind": "HttpTypeObject",


256 "oasRef": "#/components/schemas/TranscriptTextDeltaEvent/properties/logprobs",256 "oasRef": "#/components/schemas/TranscriptTextDeltaEvent/properties/logprobs",

257 "deprecated": false,257 "deprecated": false,

258 "key": "logprobs",258 "key": "logprobs",

259 "docstring": "The log probabilities of the delta. Only included if you [create a transcription](/docs/api-reference/audio/create-transcription) with the `include[]` parameter set to `logprobs`.\n",259 "docstring": "The log probabilities of the delta. Only included if you [create a transcription](/api/reference/resources/audio/subresources/transcriptions/methods/create) with the `include[]` parameter set to `logprobs`.\n",

260 "type": {260 "type": {

261 "kind": "HttpTypeArray",261 "kind": "HttpTypeArray",

262 "oasRef": "#/components/schemas/TranscriptTextDeltaEvent/properties/logprobs",262 "oasRef": "#/components/schemas/TranscriptTextDeltaEvent/properties/logprobs",


366 366 

367## transcript.text.done367## transcript.text.done

368 368 

369Emitted when the transcription is complete. Contains the complete transcription text. Only emitted when you [create a transcription](https://developers.openai.com/docs/api-reference/audio/create-transcription) with the `Stream` parameter set to `true`.369Emitted when the transcription is complete. Contains the complete transcription text. Only emitted when you [create a transcription](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create) with the `Stream` parameter set to `true`.

370 370 

371### Schema371### Schema

372 372 


377 "(resource) audio.transcriptions > (model) transcription_text_done_event > (schema)": {377 "(resource) audio.transcriptions > (model) transcription_text_done_event > (schema)": {

378 "kind": "HttpDeclTypeAlias",378 "kind": "HttpDeclTypeAlias",

379 "oasRef": "#/components/schemas/TranscriptTextDoneEvent",379 "oasRef": "#/components/schemas/TranscriptTextDoneEvent",

380 "docstring": "Emitted when the transcription is complete. Contains the complete transcription text. Only emitted when you [create a transcription](/docs/api-reference/audio/create-transcription) with the `Stream` parameter set to `true`.",380 "docstring": "Emitted when the transcription is complete. Contains the complete transcription text. Only emitted when you [create a transcription](/api/reference/resources/audio/subresources/transcriptions/methods/create) with the `Stream` parameter set to `true`.",

381 "ident": "TranscriptionTextDoneEvent",381 "ident": "TranscriptionTextDoneEvent",

382 "type": {382 "type": {

383 "kind": "HttpTypeObject",383 "kind": "HttpTypeObject",


474 "oasRef": "#/components/schemas/TranscriptTextDoneEvent/properties/logprobs",474 "oasRef": "#/components/schemas/TranscriptTextDoneEvent/properties/logprobs",

475 "deprecated": false,475 "deprecated": false,

476 "key": "logprobs",476 "key": "logprobs",

477 "docstring": "The log probabilities of the individual tokens in the transcription. Only included if you [create a transcription](/docs/api-reference/audio/create-transcription) with the `include[]` parameter set to `logprobs`.\n",477 "docstring": "The log probabilities of the individual tokens in the transcription. Only included if you [create a transcription](/api/reference/resources/audio/subresources/transcriptions/methods/create) with the `include[]` parameter set to `logprobs`.\n",

478 "type": {478 "type": {

479 "kind": "HttpTypeArray",479 "kind": "HttpTypeArray",

480 "oasRef": "#/components/schemas/TranscriptTextDoneEvent/properties/logprobs",480 "oasRef": "#/components/schemas/TranscriptTextDoneEvent/properties/logprobs",

Details

130 Model ID used to process the batch, like `gpt-6-astra`. OpenAI130 Model ID used to process the batch, like `gpt-6-astra`. OpenAI

131 offers a wide range of models with different capabilities, performance131 offers a wide range of models with different capabilities, performance

132 characteristics, and price points. Refer to the [model132 characteristics, and price points. Refer to the [model

133 guide](/docs/models) to browse and compare available models.133 guide](/api/docs/models) to browse and compare available models.

134 134 

135 - `output_file_id: optional string`135 - `output_file_id: optional string`

136 136 


169 - `cached_tokens: number`169 - `cached_tokens: number`

170 170 

171 The number of tokens that were retrieved from the cache. [More on171 The number of tokens that were retrieved from the cache. [More on

172 prompt caching](/docs/guides/prompt-caching).172 prompt caching](/api/docs/guides/prompt-caching).

173 173 

174 - `output_tokens: number`174 - `output_tokens: number`

175 175 

Details

36 36 

37 The ID of an uploaded file that contains requests for the new batch.37 The ID of an uploaded file that contains requests for the new batch.

38 38 

39 See [upload file](/docs/api-reference/files/create) for how to upload a file.39 See [upload file](/api/reference/resources/files/methods/create) for how to upload a file.

40 40 

41 Your input file must be formatted as a [JSONL file](/docs/api-reference/batch/request-input), and must be uploaded with the purpose `batch`. The file can contain up to 50,000 requests, and can be up to 200 MB in size.41 Your input file must be formatted as a [JSONL file](/api/docs/guides/batch#1-prepare-your-batch-file), and must be uploaded with the purpose `batch`. The file can contain up to 50,000 requests, and can be up to 200 MB in size.

42 42 

43- `metadata: optional Metadata or null`43- `metadata: optional Metadata or null`

44 44 


185 Model ID used to process the batch, like `gpt-6-astra`. OpenAI185 Model ID used to process the batch, like `gpt-6-astra`. OpenAI

186 offers a wide range of models with different capabilities, performance186 offers a wide range of models with different capabilities, performance

187 characteristics, and price points. Refer to the [model187 characteristics, and price points. Refer to the [model

188 guide](/docs/models) to browse and compare available models.188 guide](/api/docs/models) to browse and compare available models.

189 189 

190 - `output_file_id: optional string`190 - `output_file_id: optional string`

191 191 


224 - `cached_tokens: number`224 - `cached_tokens: number`

225 225 

226 The number of tokens that were retrieved from the cache. [More on226 The number of tokens that were retrieved from the cache. [More on

227 prompt caching](/docs/guides/prompt-caching).227 prompt caching](/api/docs/guides/prompt-caching).

228 228 

229 - `output_tokens: number`229 - `output_tokens: number`

230 230 

Details

136 Model ID used to process the batch, like `gpt-6-astra`. OpenAI136 Model ID used to process the batch, like `gpt-6-astra`. OpenAI

137 offers a wide range of models with different capabilities, performance137 offers a wide range of models with different capabilities, performance

138 characteristics, and price points. Refer to the [model138 characteristics, and price points. Refer to the [model

139 guide](/docs/models) to browse and compare available models.139 guide](/api/docs/models) to browse and compare available models.

140 140 

141 - `output_file_id: optional string`141 - `output_file_id: optional string`

142 142 


175 - `cached_tokens: number`175 - `cached_tokens: number`

176 176 

177 The number of tokens that were retrieved from the cache. [More on177 The number of tokens that were retrieved from the cache. [More on

178 prompt caching](/docs/guides/prompt-caching).178 prompt caching](/api/docs/guides/prompt-caching).

179 179 

180 - `output_tokens: number`180 - `output_tokens: number`

181 181 

Details

130 Model ID used to process the batch, like `gpt-6-astra`. OpenAI130 Model ID used to process the batch, like `gpt-6-astra`. OpenAI

131 offers a wide range of models with different capabilities, performance131 offers a wide range of models with different capabilities, performance

132 characteristics, and price points. Refer to the [model132 characteristics, and price points. Refer to the [model

133 guide](/docs/models) to browse and compare available models.133 guide](/api/docs/models) to browse and compare available models.

134 134 

135 - `output_file_id: optional string`135 - `output_file_id: optional string`

136 136 


169 - `cached_tokens: number`169 - `cached_tokens: number`

170 170 

171 The number of tokens that were retrieved from the cache. [More on171 The number of tokens that were retrieved from the cache. [More on

172 prompt caching](/docs/guides/prompt-caching).172 prompt caching](/api/docs/guides/prompt-caching).

173 173 

174 - `output_tokens: number`174 - `output_tokens: number`

175 175 

Details

4 4 

5Cancels a model response with the given ID. Only responses created with5Cancels a model response with the given ID. Only responses created with

6the `background` parameter set to `true` can be cancelled.6the `background` parameter set to `true` can be cancelled.

7[Learn more](/docs/guides/background).7[Learn more](/api/docs/guides/background).

8 8 

9### Header Parameters9### Header Parameters

10 10 


199 199 

200 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`200 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`

201 201 

202 An image input to the model. Learn about [image inputs](/docs/guides/vision).202 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

203 203 

204 - `detail: BetaImageDetail`204 - `detail: BetaImageDetail`

205 205 


558 - `FileSearchCall object { id, queries, status, 3 more }`558 - `FileSearchCall object { id, queries, status, 3 more }`

559 559 

560 The results of a file search tool call. See the560 The results of a file search tool call. See the

561 [file search guide](/docs/guides/tools-file-search) for more information.561 [file search guide](/api/docs/guides/tools-file-search) for more information.

562 562 

563 - `id: string`563 - `id: string`

564 564 


634 - `ComputerCall object { id, call_id, pending_safety_checks, 5 more }`634 - `ComputerCall object { id, call_id, pending_safety_checks, 5 more }`

635 635 

636 A tool call to a computer use tool. See the636 A tool call to a computer use tool. See the

637 [computer use guide](/docs/guides/tools-computer-use) for more information.637 [computer use guide](/api/docs/guides/tools-computer-use) for more information.

638 638 

639 - `id: string`639 - `id: string`

640 640 


995 - `WebSearchCall object { id, action, status, 2 more }`995 - `WebSearchCall object { id, action, status, 2 more }`

996 996 

997 The results of a web search tool call. See the997 The results of a web search tool call. See the

998 [web search guide](/docs/guides/tools-web-search) for more information.998 [web search guide](/api/docs/guides/tools-web-search) for more information.

999 999 

1000 - `id: string`1000 - `id: string`

1001 1001 


1101 - `FunctionCall object { arguments, call_id, name, 7 more }`1101 - `FunctionCall object { arguments, call_id, name, 7 more }`

1102 1102 

1103 A tool call to run a function. See the1103 A tool call to run a function. See the

1104 [function calling guide](/docs/guides/function-calling) for more information.1104 [function calling guide](/api/docs/guides/function-calling) for more information.

1105 1105 

1106 - `arguments: string`1106 - `arguments: string`

1107 1107 


1214 1214 

1215 - `BetaResponseInputImageContent object { type, detail, file_id, 2 more }`1215 - `BetaResponseInputImageContent object { type, detail, file_id, 2 more }`

1216 1216 

1217 An image input to the model. Learn about [image inputs](/docs/guides/vision)1217 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision)

1218 1218 

1219 - `type: "input_image"`1219 - `type: "input_image"`

1220 1220 


1372 1372 

1373 - `BetaResponseInputImageContent object { type, detail, file_id, 2 more }`1373 - `BetaResponseInputImageContent object { type, detail, file_id, 2 more }`

1374 1374 

1375 An image input to the model. Learn about [image inputs](/docs/guides/vision)1375 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision)

1376 1376 

1377 - `EncryptedContent object { encrypted_content, type }`1377 - `EncryptedContent object { encrypted_content, type }`

1378 1378 


1638 1638 

1639 - `Function object { name, parameters, strict, 6 more }`1639 - `Function object { name, parameters, strict, 6 more }`

1640 1640 

1641 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).1641 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

1642 1642 

1643 - `name: string`1643 - `name: string`

1644 1644 


1682 1682 

1683 - `FileSearch object { type, vector_store_ids, filters, 2 more }`1683 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

1684 1684 

1685 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).1685 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

1686 1686 

1687 - `type: "file_search"`1687 - `type: "file_search"`

1688 1688 


1856 1856 

1857 - `Computer object { type }`1857 - `Computer object { type }`

1858 1858 

1859 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1859 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1860 1860 

1861 - `type: "computer"`1861 - `type: "computer"`

1862 1862 


1866 1866 

1867 - `ComputerUsePreview object { display_height, display_width, environment, type }`1867 - `ComputerUsePreview object { display_height, display_width, environment, type }`

1868 1868 

1869 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1869 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1870 1870 

1871 - `display_height: number`1871 - `display_height: number`

1872 1872 


1899 - `WebSearch object { type, external_web_access, filters, 2 more }`1899 - `WebSearch object { type, external_web_access, filters, 2 more }`

1900 1900 

1901 Search the Internet for sources related to the prompt. Learn more about the1901 Search the Internet for sources related to the prompt. Learn more about the

1902 [web search tool](/docs/guides/tools-web-search).1902 [web search tool](/api/docs/guides/tools-web-search).

1903 1903 

1904 - `type: "web_search" or "web_search_2025_08_26"`1904 - `type: "web_search" or "web_search_2025_08_26"`

1905 1905 


1963 - `Mcp object { server_label, type, allowed_callers, 9 more }`1963 - `Mcp object { server_label, type, allowed_callers, 9 more }`

1964 1964 

1965 Give the model access to additional tools via remote Model Context Protocol1965 Give the model access to additional tools via remote Model Context Protocol

1966 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).1966 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

1967 1967 

1968 - `server_label: string`1968 - `server_label: string`

1969 1969 


2015 2015 

2016 Identifier for service connectors, like those available in ChatGPT. One of2016 Identifier for service connectors, like those available in ChatGPT. One of

2017 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more2017 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

2018 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).2018 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

2019 2019 

2020 Currently supported `connector_id` values are:2020 Currently supported `connector_id` values are:

2021 2021 


2239 2239 

2240 - `background: optional "transparent" or "opaque" or "auto"`2240 - `background: optional "transparent" or "opaque" or "auto"`

2241 2241 

2242 Set the background of the generated image. One of `transparent`,2242 Set the background of the generated image. One of `transparent`, `opaque`,

2243 `opaque`, or `auto`. Transparent backgrounds are available for2243 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

2244 supported GPT Image models. For `gpt-image-2` and2244 their `2026-09-08` snapshots, support `opaque` and `transparent`

2245 `gpt-image-2-2026-04-21`, this support is in preview. When using2245 backgrounds. Transparent backgrounds are available for supported GPT Image

2246 `transparent`, set the output format to `png` or `webp`. Default: `auto`.2246 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

2247 preview. When using `transparent`, set the output format to `png` or `webp`.

2248 Default: `auto`.

2247 2249 

2248 - `"transparent"`2250 - `"transparent"`

2249 2251 


2272 2274 

2273 Base64-encoded mask image.2275 Base64-encoded mask image.

2274 2276 

2275 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2277 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2276 2278 

2277 The image generation model to use. One of `gpt-image-1`,2279 The image generation model to use. One of `gpt-image-1`,

2278 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2280 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2279 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2281 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2282 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2283 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2280 `gpt-image-1`.2284 `gpt-image-1`.

2281 2285 

2282 - `string`2286 - `string`

2283 2287 

2284 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2288 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2285 2289 

2286 The image generation model to use. One of `gpt-image-1`,2290 The image generation model to use. One of `gpt-image-1`,

2287 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2291 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2288 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2292 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2293 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2294 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2289 `gpt-image-1`.2295 `gpt-image-1`.

2290 2296 

2291 - `"gpt-image-1"`2297 - `"gpt-image-1"`


2298 2304 

2299 - `"gpt-image-2-2026-04-21"`2305 - `"gpt-image-2-2026-04-21"`

2300 2306 

2307 - `"gpt-image-2.5-sunburst"`

2308 

2309 - `"gpt-image-2.5-sunburst-2026-09-08"`

2310 

2311 - `"gpt-image-2.5-flare"`

2312 

2313 - `"gpt-image-2.5-flare-2026-09-08"`

2314 

2301 - `moderation: optional "auto" or "low"`2315 - `moderation: optional "auto" or "low"`

2302 2316 

2303 Moderation level for the generated image. Default: `auto`.2317 Moderation level for the generated image. Default: `auto`.


2325 2339 

2326 Number of partial images to generate in streaming mode, from 0 (default value) to 3.2340 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

2327 2341 

2328 - `quality: optional "low" or "medium" or "high" or "auto"`2342 - `quality: optional "low" or "medium" or "high" or 3 more`

2329 2343 

2330 The quality of the generated image. One of `low`, `medium`, `high`,2344 The quality of the generated image. The GPT image models support `low`,

2331 or `auto`. Default: `auto`.2345 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

2346 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

2347 Default: `auto`.

2332 2348 

2333 - `"low"`2349 - `"low"`

2334 2350 


2336 2352 

2337 - `"high"`2353 - `"high"`

2338 2354 

2355 - `"xhigh"`

2356 

2357 - `"max"`

2358 

2339 - `"auto"`2359 - `"auto"`

2340 2360 

2341 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`2361 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2342 2362 

2343 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`.2363 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`.

2344 2364 

2345 - `string`2365 - `string`

2346 2366 

2347 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`2367 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2348 2368 

2349 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`.2369 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`.

2350 2370 

2351 - `"1024x1024"`2371 - `"1024x1024"`

2352 2372 


2512 2532 

2513 - `Custom object { name, type, allowed_callers, 4 more }`2533 - `Custom object { name, type, allowed_callers, 4 more }`

2514 2534 

2515 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2535 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2516 2536 

2517 - `name: string`2537 - `name: string`

2518 2538 


2634 2654 

2635 - `Custom object { name, type, allowed_callers, 4 more }`2655 - `Custom object { name, type, allowed_callers, 4 more }`

2636 2656 

2637 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2657 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2638 2658 

2639 - `name: string`2659 - `name: string`

2640 2660 


2736 2756 

2737 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`2757 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

2738 2758 

2739 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).2759 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).

2740 2760 

2741 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`2761 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

2742 2762 


2860 2880 

2861 - `Function object { name, parameters, strict, 6 more }`2881 - `Function object { name, parameters, strict, 6 more }`

2862 2882 

2863 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).2883 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

2864 2884 

2865 - `name: string`2885 - `name: string`

2866 2886 


2904 2924 

2905 - `FileSearch object { type, vector_store_ids, filters, 2 more }`2925 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

2906 2926 

2907 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).2927 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

2908 2928 

2909 - `type: "file_search"`2929 - `type: "file_search"`

2910 2930 


3078 3098 

3079 - `Computer object { type }`3099 - `Computer object { type }`

3080 3100 

3081 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).3101 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

3082 3102 

3083 - `type: "computer"`3103 - `type: "computer"`

3084 3104 


3088 3108 

3089 - `ComputerUsePreview object { display_height, display_width, environment, type }`3109 - `ComputerUsePreview object { display_height, display_width, environment, type }`

3090 3110 

3091 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).3111 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

3092 3112 

3093 - `display_height: number`3113 - `display_height: number`

3094 3114 


3121 - `WebSearch object { type, external_web_access, filters, 2 more }`3141 - `WebSearch object { type, external_web_access, filters, 2 more }`

3122 3142 

3123 Search the Internet for sources related to the prompt. Learn more about the3143 Search the Internet for sources related to the prompt. Learn more about the

3124 [web search tool](/docs/guides/tools-web-search).3144 [web search tool](/api/docs/guides/tools-web-search).

3125 3145 

3126 - `type: "web_search" or "web_search_2025_08_26"`3146 - `type: "web_search" or "web_search_2025_08_26"`

3127 3147 


3185 - `Mcp object { server_label, type, allowed_callers, 9 more }`3205 - `Mcp object { server_label, type, allowed_callers, 9 more }`

3186 3206 

3187 Give the model access to additional tools via remote Model Context Protocol3207 Give the model access to additional tools via remote Model Context Protocol

3188 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).3208 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

3189 3209 

3190 - `server_label: string`3210 - `server_label: string`

3191 3211 


3237 3257 

3238 Identifier for service connectors, like those available in ChatGPT. One of3258 Identifier for service connectors, like those available in ChatGPT. One of

3239 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more3259 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

3240 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).3260 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

3241 3261 

3242 Currently supported `connector_id` values are:3262 Currently supported `connector_id` values are:

3243 3263 


3429 3449 

3430 - `background: optional "transparent" or "opaque" or "auto"`3450 - `background: optional "transparent" or "opaque" or "auto"`

3431 3451 

3432 Set the background of the generated image. One of `transparent`,3452 Set the background of the generated image. One of `transparent`, `opaque`,

3433 `opaque`, or `auto`. Transparent backgrounds are available for3453 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

3434 supported GPT Image models. For `gpt-image-2` and3454 their `2026-09-08` snapshots, support `opaque` and `transparent`

3435 `gpt-image-2-2026-04-21`, this support is in preview. When using3455 backgrounds. Transparent backgrounds are available for supported GPT Image

3436 `transparent`, set the output format to `png` or `webp`. Default: `auto`.3456 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

3457 preview. When using `transparent`, set the output format to `png` or `webp`.

3458 Default: `auto`.

3437 3459 

3438 - `"transparent"`3460 - `"transparent"`

3439 3461 


3462 3484 

3463 Base64-encoded mask image.3485 Base64-encoded mask image.

3464 3486 

3465 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`3487 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

3466 3488 

3467 The image generation model to use. One of `gpt-image-1`,3489 The image generation model to use. One of `gpt-image-1`,

3468 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,3490 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

3469 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:3491 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3492 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3493 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

3470 `gpt-image-1`.3494 `gpt-image-1`.

3471 3495 

3472 - `string`3496 - `string`

3473 3497 

3474 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`3498 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

3475 3499 

3476 The image generation model to use. One of `gpt-image-1`,3500 The image generation model to use. One of `gpt-image-1`,

3477 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,3501 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

3478 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:3502 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3503 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3504 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

3479 `gpt-image-1`.3505 `gpt-image-1`.

3480 3506 

3481 - `"gpt-image-1"`3507 - `"gpt-image-1"`


3488 3514 

3489 - `"gpt-image-2-2026-04-21"`3515 - `"gpt-image-2-2026-04-21"`

3490 3516 

3517 - `"gpt-image-2.5-sunburst"`

3518 

3519 - `"gpt-image-2.5-sunburst-2026-09-08"`

3520 

3521 - `"gpt-image-2.5-flare"`

3522 

3523 - `"gpt-image-2.5-flare-2026-09-08"`

3524 

3491 - `moderation: optional "auto" or "low"`3525 - `moderation: optional "auto" or "low"`

3492 3526 

3493 Moderation level for the generated image. Default: `auto`.3527 Moderation level for the generated image. Default: `auto`.


3515 3549 

3516 Number of partial images to generate in streaming mode, from 0 (default value) to 3.3550 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

3517 3551 

3518 - `quality: optional "low" or "medium" or "high" or "auto"`3552 - `quality: optional "low" or "medium" or "high" or 3 more`

3519 3553 

3520 The quality of the generated image. One of `low`, `medium`, `high`,3554 The quality of the generated image. The GPT image models support `low`,

3521 or `auto`. Default: `auto`.3555 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

3556 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

3557 Default: `auto`.

3522 3558 

3523 - `"low"`3559 - `"low"`

3524 3560 


3526 3562 

3527 - `"high"`3563 - `"high"`

3528 3564 

3565 - `"xhigh"`

3566 

3567 - `"max"`

3568 

3529 - `"auto"`3569 - `"auto"`

3530 3570 

3531 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`3571 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

3532 3572 

3533 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`.3573 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`.

3534 3574 

3535 - `string`3575 - `string`

3536 3576 

3537 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`3577 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

3538 3578 

3539 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`.3579 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`.

3540 3580 

3541 - `"1024x1024"`3581 - `"1024x1024"`

3542 3582 


3584 3624 

3585 - `Custom object { name, type, allowed_callers, 4 more }`3625 - `Custom object { name, type, allowed_callers, 4 more }`

3586 3626 

3587 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3627 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

3588 3628 

3589 - `name: string`3629 - `name: string`

3590 3630 


3706 3746 

3707 - `Custom object { name, type, allowed_callers, 4 more }`3747 - `Custom object { name, type, allowed_callers, 4 more }`

3708 3748 

3709 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3749 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

3710 3750 

3711 - `name: string`3751 - `name: string`

3712 3752 


3808 3848 

3809 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`3849 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

3810 3850 

3811 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).3851 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).

3812 3852 

3813 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`3853 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

3814 3854 


3948 A description of the chain of thought used by a reasoning model while generating3988 A description of the chain of thought used by a reasoning model while generating

3949 a response. Be sure to include these items in your `input` to the Responses API3989 a response. Be sure to include these items in your `input` to the Responses API

3950 for subsequent turns of a conversation if you are manually3990 for subsequent turns of a conversation if you are manually

3951 [managing context](/docs/guides/conversation-state).3991 [managing context](/api/docs/guides/conversation-state).

3952 3992 

3953 - `id: string`3993 - `id: string`

3954 3994 


4021 4061 

4022 - `Compaction object { encrypted_content, type, id, agent }`4062 - `Compaction object { encrypted_content, type, id, agent }`

4023 4063 

4024 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).4064 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).

4025 4065 

4026 - `encrypted_content: string`4066 - `encrypted_content: string`

4027 4067 


4045 4085 

4046 The canonical name of the agent that produced this item.4086 The canonical name of the agent that produced this item.

4047 4087 

4048 - `ImageGenerationCall object { id, result, status, 2 more }`4088 - `ImageGenerationCall object { id, result, status, 4 more }`

4049 4089 

4050 An image generation request made by the model.4090 An image generation request made by the model.

4051 4091 


4083 4123 

4084 The canonical name of the agent that produced this item.4124 The canonical name of the agent that produced this item.

4085 4125 

4126 - `quality: optional "low" or "medium" or "high" or 3 more or null`

4127 

4128 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.

4129 

4130 - `"low"`

4131 

4132 - `"medium"`

4133 

4134 - `"high"`

4135 

4136 - `"xhigh"`

4137 

4138 - `"max"`

4139 

4140 - `"auto"`

4141 

4142 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`

4143 

4144 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

4145 

4146 - `string`

4147 

4148 - `"1024x1024" or "1024x1536" or "1536x1024"`

4149 

4150 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

4151 

4152 - `"1024x1024"`

4153 

4154 - `"1024x1536"`

4155 

4156 - `"1536x1024"`

4157 

4086 - `CodeInterpreterCall object { id, code, container_id, 4 more }`4158 - `CodeInterpreterCall object { id, code, container_id, 4 more }`

4087 4159 

4088 A tool call to run code.4160 A tool call to run code.


4858 4930 

4859 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`4931 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`

4860 4932 

4861 An image input to the model. Learn about [image inputs](/docs/guides/vision).4933 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

4862 4934 

4863 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`4935 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`

4864 4936 


5093 5165 

5094 Model ID used to generate the response, like `gpt-6-astra`. OpenAI5166 Model ID used to generate the response, like `gpt-6-astra`. OpenAI

5095 offers a wide range of models with different capabilities, performance5167 offers a wide range of models with different capabilities, performance

5096 characteristics, and price points. Refer to the [model guide](/docs/models)5168 characteristics, and price points. Refer to the [model guide](/api/docs/models)

5097 to browse and compare available models.5169 to browse and compare available models.

5098 5170 

5099 - `"gpt-6-astra" or "gpt-5.6-sol" or "gpt-5.6-terra" or 100 more`5171 - `"gpt-6-astra" or "gpt-5.6-sol" or "gpt-5.6-terra" or 100 more`

5100 5172 

5101 Model ID used to generate the response, like `gpt-6-astra`. OpenAI5173 Model ID used to generate the response, like `gpt-6-astra`. OpenAI

5102 offers a wide range of models with different capabilities, performance5174 offers a wide range of models with different capabilities, performance

5103 characteristics, and price points. Refer to the [model guide](/docs/models)5175 characteristics, and price points. Refer to the [model guide](/api/docs/models)

5104 to browse and compare available models.5176 to browse and compare available models.

5105 5177 

5106 - `"gpt-6-astra"`5178 - `"gpt-6-astra"`


5335 - `FileSearchCall object { id, queries, status, 3 more }`5407 - `FileSearchCall object { id, queries, status, 3 more }`

5336 5408 

5337 The results of a file search tool call. See the5409 The results of a file search tool call. See the

5338 [file search guide](/docs/guides/tools-file-search) for more information.5410 [file search guide](/api/docs/guides/tools-file-search) for more information.

5339 5411 

5340 - `id: string`5412 - `id: string`

5341 5413 


5411 - `FunctionCall object { arguments, call_id, name, 7 more }`5483 - `FunctionCall object { arguments, call_id, name, 7 more }`

5412 5484 

5413 A tool call to run a function. See the5485 A tool call to run a function. See the

5414 [function calling guide](/docs/guides/function-calling) for more information.5486 [function calling guide](/api/docs/guides/function-calling) for more information.

5415 5487 

5416 - `arguments: string`5488 - `arguments: string`

5417 5489 


5507 5579 

5508 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`5580 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`

5509 5581 

5510 An image input to the model. Learn about [image inputs](/docs/guides/vision).5582 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

5511 5583 

5512 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`5584 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`

5513 5585 


5644 5716 

5645 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`5717 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`

5646 5718 

5647 An image input to the model. Learn about [image inputs](/docs/guides/vision).5719 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

5648 5720 

5649 - `ComputerScreenshot object { detail, file_id, image_url, 2 more }`5721 - `ComputerScreenshot object { detail, file_id, image_url, 2 more }`

5650 5722 


5819 - `WebSearchCall object { id, action, status, 2 more }`5891 - `WebSearchCall object { id, action, status, 2 more }`

5820 5892 

5821 The results of a web search tool call. See the5893 The results of a web search tool call. See the

5822 [web search guide](/docs/guides/tools-web-search) for more information.5894 [web search guide](/api/docs/guides/tools-web-search) for more information.

5823 5895 

5824 - `id: string`5896 - `id: string`

5825 5897 


5925 - `ComputerCall object { id, call_id, pending_safety_checks, 5 more }`5997 - `ComputerCall object { id, call_id, pending_safety_checks, 5 more }`

5926 5998 

5927 A tool call to a computer use tool. See the5999 A tool call to a computer use tool. See the

5928 [computer use guide](/docs/guides/tools-computer-use) for more information.6000 [computer use guide](/api/docs/guides/tools-computer-use) for more information.

5929 6001 

5930 - `id: string`6002 - `id: string`

5931 6003 


6052 A description of the chain of thought used by a reasoning model while generating6124 A description of the chain of thought used by a reasoning model while generating

6053 a response. Be sure to include these items in your `input` to the Responses API6125 a response. Be sure to include these items in your `input` to the Responses API

6054 for subsequent turns of a conversation if you are manually6126 for subsequent turns of a conversation if you are manually

6055 [managing context](/docs/guides/conversation-state).6127 [managing context](/api/docs/guides/conversation-state).

6056 6128 

6057 - `id: string`6129 - `id: string`

6058 6130 


6275 6347 

6276 - `Function object { name, parameters, strict, 6 more }`6348 - `Function object { name, parameters, strict, 6 more }`

6277 6349 

6278 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).6350 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

6279 6351 

6280 - `name: string`6352 - `name: string`

6281 6353 


6319 6391 

6320 - `FileSearch object { type, vector_store_ids, filters, 2 more }`6392 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

6321 6393 

6322 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).6394 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

6323 6395 

6324 - `type: "file_search"`6396 - `type: "file_search"`

6325 6397 


6493 6565 

6494 - `Computer object { type }`6566 - `Computer object { type }`

6495 6567 

6496 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).6568 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

6497 6569 

6498 - `type: "computer"`6570 - `type: "computer"`

6499 6571 


6503 6575 

6504 - `ComputerUsePreview object { display_height, display_width, environment, type }`6576 - `ComputerUsePreview object { display_height, display_width, environment, type }`

6505 6577 

6506 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).6578 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

6507 6579 

6508 - `display_height: number`6580 - `display_height: number`

6509 6581 


6536 - `WebSearch object { type, external_web_access, filters, 2 more }`6608 - `WebSearch object { type, external_web_access, filters, 2 more }`

6537 6609 

6538 Search the Internet for sources related to the prompt. Learn more about the6610 Search the Internet for sources related to the prompt. Learn more about the

6539 [web search tool](/docs/guides/tools-web-search).6611 [web search tool](/api/docs/guides/tools-web-search).

6540 6612 

6541 - `type: "web_search" or "web_search_2025_08_26"`6613 - `type: "web_search" or "web_search_2025_08_26"`

6542 6614 


6600 - `Mcp object { server_label, type, allowed_callers, 9 more }`6672 - `Mcp object { server_label, type, allowed_callers, 9 more }`

6601 6673 

6602 Give the model access to additional tools via remote Model Context Protocol6674 Give the model access to additional tools via remote Model Context Protocol

6603 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).6675 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

6604 6676 

6605 - `server_label: string`6677 - `server_label: string`

6606 6678 


6652 6724 

6653 Identifier for service connectors, like those available in ChatGPT. One of6725 Identifier for service connectors, like those available in ChatGPT. One of

6654 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more6726 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

6655 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).6727 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

6656 6728 

6657 Currently supported `connector_id` values are:6729 Currently supported `connector_id` values are:

6658 6730 


6844 6916 

6845 - `background: optional "transparent" or "opaque" or "auto"`6917 - `background: optional "transparent" or "opaque" or "auto"`

6846 6918 

6847 Set the background of the generated image. One of `transparent`,6919 Set the background of the generated image. One of `transparent`, `opaque`,

6848 `opaque`, or `auto`. Transparent backgrounds are available for6920 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

6849 supported GPT Image models. For `gpt-image-2` and6921 their `2026-09-08` snapshots, support `opaque` and `transparent`

6850 `gpt-image-2-2026-04-21`, this support is in preview. When using6922 backgrounds. Transparent backgrounds are available for supported GPT Image

6851 `transparent`, set the output format to `png` or `webp`. Default: `auto`.6923 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

6924 preview. When using `transparent`, set the output format to `png` or `webp`.

6925 Default: `auto`.

6852 6926 

6853 - `"transparent"`6927 - `"transparent"`

6854 6928 


6877 6951 

6878 Base64-encoded mask image.6952 Base64-encoded mask image.

6879 6953 

6880 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`6954 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

6881 6955 

6882 The image generation model to use. One of `gpt-image-1`,6956 The image generation model to use. One of `gpt-image-1`,

6883 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,6957 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

6884 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:6958 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6959 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6960 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

6885 `gpt-image-1`.6961 `gpt-image-1`.

6886 6962 

6887 - `string`6963 - `string`

6888 6964 

6889 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`6965 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

6890 6966 

6891 The image generation model to use. One of `gpt-image-1`,6967 The image generation model to use. One of `gpt-image-1`,

6892 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,6968 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

6893 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:6969 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6970 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6971 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

6894 `gpt-image-1`.6972 `gpt-image-1`.

6895 6973 

6896 - `"gpt-image-1"`6974 - `"gpt-image-1"`


6903 6981 

6904 - `"gpt-image-2-2026-04-21"`6982 - `"gpt-image-2-2026-04-21"`

6905 6983 

6984 - `"gpt-image-2.5-sunburst"`

6985 

6986 - `"gpt-image-2.5-sunburst-2026-09-08"`

6987 

6988 - `"gpt-image-2.5-flare"`

6989 

6990 - `"gpt-image-2.5-flare-2026-09-08"`

6991 

6906 - `moderation: optional "auto" or "low"`6992 - `moderation: optional "auto" or "low"`

6907 6993 

6908 Moderation level for the generated image. Default: `auto`.6994 Moderation level for the generated image. Default: `auto`.


6930 7016 

6931 Number of partial images to generate in streaming mode, from 0 (default value) to 3.7017 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

6932 7018 

6933 - `quality: optional "low" or "medium" or "high" or "auto"`7019 - `quality: optional "low" or "medium" or "high" or 3 more`

6934 7020 

6935 The quality of the generated image. One of `low`, `medium`, `high`,7021 The quality of the generated image. The GPT image models support `low`,

6936 or `auto`. Default: `auto`.7022 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

7023 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

7024 Default: `auto`.

6937 7025 

6938 - `"low"`7026 - `"low"`

6939 7027 


6941 7029 

6942 - `"high"`7030 - `"high"`

6943 7031 

7032 - `"xhigh"`

7033 

7034 - `"max"`

7035 

6944 - `"auto"`7036 - `"auto"`

6945 7037 

6946 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`7038 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

6947 7039 

6948 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`.7040 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`.

6949 7041 

6950 - `string`7042 - `string`

6951 7043 

6952 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`7044 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

6953 7045 

6954 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`.7046 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`.

6955 7047 

6956 - `"1024x1024"`7048 - `"1024x1024"`

6957 7049 


6999 7091 

7000 - `Custom object { name, type, allowed_callers, 4 more }`7092 - `Custom object { name, type, allowed_callers, 4 more }`

7001 7093 

7002 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)7094 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

7003 7095 

7004 - `name: string`7096 - `name: string`

7005 7097 


7121 7213 

7122 - `Custom object { name, type, allowed_callers, 4 more }`7214 - `Custom object { name, type, allowed_callers, 4 more }`

7123 7215 

7124 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)7216 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

7125 7217 

7126 - `name: string`7218 - `name: string`

7127 7219 


7223 7315 

7224 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`7316 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

7225 7317 

7226 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).7318 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).

7227 7319 

7228 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`7320 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

7229 7321 


7343 7435 

7344 - `Function object { name, parameters, strict, 6 more }`7436 - `Function object { name, parameters, strict, 6 more }`

7345 7437 

7346 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).7438 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

7347 7439 

7348 - `name: string`7440 - `name: string`

7349 7441 


7387 7479 

7388 - `FileSearch object { type, vector_store_ids, filters, 2 more }`7480 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

7389 7481 

7390 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).7482 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

7391 7483 

7392 - `type: "file_search"`7484 - `type: "file_search"`

7393 7485 


7561 7653 

7562 - `Computer object { type }`7654 - `Computer object { type }`

7563 7655 

7564 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).7656 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

7565 7657 

7566 - `type: "computer"`7658 - `type: "computer"`

7567 7659 


7571 7663 

7572 - `ComputerUsePreview object { display_height, display_width, environment, type }`7664 - `ComputerUsePreview object { display_height, display_width, environment, type }`

7573 7665 

7574 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).7666 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

7575 7667 

7576 - `display_height: number`7668 - `display_height: number`

7577 7669 


7604 - `WebSearch object { type, external_web_access, filters, 2 more }`7696 - `WebSearch object { type, external_web_access, filters, 2 more }`

7605 7697 

7606 Search the Internet for sources related to the prompt. Learn more about the7698 Search the Internet for sources related to the prompt. Learn more about the

7607 [web search tool](/docs/guides/tools-web-search).7699 [web search tool](/api/docs/guides/tools-web-search).

7608 7700 

7609 - `type: "web_search" or "web_search_2025_08_26"`7701 - `type: "web_search" or "web_search_2025_08_26"`

7610 7702 


7668 - `Mcp object { server_label, type, allowed_callers, 9 more }`7760 - `Mcp object { server_label, type, allowed_callers, 9 more }`

7669 7761 

7670 Give the model access to additional tools via remote Model Context Protocol7762 Give the model access to additional tools via remote Model Context Protocol

7671 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).7763 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

7672 7764 

7673 - `server_label: string`7765 - `server_label: string`

7674 7766 


7720 7812 

7721 Identifier for service connectors, like those available in ChatGPT. One of7813 Identifier for service connectors, like those available in ChatGPT. One of

7722 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more7814 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

7723 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).7815 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

7724 7816 

7725 Currently supported `connector_id` values are:7817 Currently supported `connector_id` values are:

7726 7818 


7912 8004 

7913 - `background: optional "transparent" or "opaque" or "auto"`8005 - `background: optional "transparent" or "opaque" or "auto"`

7914 8006 

7915 Set the background of the generated image. One of `transparent`,8007 Set the background of the generated image. One of `transparent`, `opaque`,

7916 `opaque`, or `auto`. Transparent backgrounds are available for8008 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

7917 supported GPT Image models. For `gpt-image-2` and8009 their `2026-09-08` snapshots, support `opaque` and `transparent`

7918 `gpt-image-2-2026-04-21`, this support is in preview. When using8010 backgrounds. Transparent backgrounds are available for supported GPT Image

7919 `transparent`, set the output format to `png` or `webp`. Default: `auto`.8011 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

8012 preview. When using `transparent`, set the output format to `png` or `webp`.

8013 Default: `auto`.

7920 8014 

7921 - `"transparent"`8015 - `"transparent"`

7922 8016 


7945 8039 

7946 Base64-encoded mask image.8040 Base64-encoded mask image.

7947 8041 

7948 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`8042 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

7949 8043 

7950 The image generation model to use. One of `gpt-image-1`,8044 The image generation model to use. One of `gpt-image-1`,

7951 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,8045 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

7952 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:8046 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

8047 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

8048 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

7953 `gpt-image-1`.8049 `gpt-image-1`.

7954 8050 

7955 - `string`8051 - `string`

7956 8052 

7957 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`8053 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

7958 8054 

7959 The image generation model to use. One of `gpt-image-1`,8055 The image generation model to use. One of `gpt-image-1`,

7960 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,8056 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

7961 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:8057 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

8058 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

8059 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

7962 `gpt-image-1`.8060 `gpt-image-1`.

7963 8061 

7964 - `"gpt-image-1"`8062 - `"gpt-image-1"`


7971 8069 

7972 - `"gpt-image-2-2026-04-21"`8070 - `"gpt-image-2-2026-04-21"`

7973 8071 

8072 - `"gpt-image-2.5-sunburst"`

8073 

8074 - `"gpt-image-2.5-sunburst-2026-09-08"`

8075 

8076 - `"gpt-image-2.5-flare"`

8077 

8078 - `"gpt-image-2.5-flare-2026-09-08"`

8079 

7974 - `moderation: optional "auto" or "low"`8080 - `moderation: optional "auto" or "low"`

7975 8081 

7976 Moderation level for the generated image. Default: `auto`.8082 Moderation level for the generated image. Default: `auto`.


7998 8104 

7999 Number of partial images to generate in streaming mode, from 0 (default value) to 3.8105 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

8000 8106 

8001 - `quality: optional "low" or "medium" or "high" or "auto"`8107 - `quality: optional "low" or "medium" or "high" or 3 more`

8002 8108 

8003 The quality of the generated image. One of `low`, `medium`, `high`,8109 The quality of the generated image. The GPT image models support `low`,

8004 or `auto`. Default: `auto`.8110 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

8111 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

8112 Default: `auto`.

8005 8113 

8006 - `"low"`8114 - `"low"`

8007 8115 


8009 8117 

8010 - `"high"`8118 - `"high"`

8011 8119 

8120 - `"xhigh"`

8121 

8122 - `"max"`

8123 

8012 - `"auto"`8124 - `"auto"`

8013 8125 

8014 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`8126 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

8015 8127 

8016 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`.8128 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`.

8017 8129 

8018 - `string`8130 - `string`

8019 8131 

8020 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`8132 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

8021 8133 

8022 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`.8134 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`.

8023 8135 

8024 - `"1024x1024"`8136 - `"1024x1024"`

8025 8137 


8067 8179 

8068 - `Custom object { name, type, allowed_callers, 4 more }`8180 - `Custom object { name, type, allowed_callers, 4 more }`

8069 8181 

8070 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)8182 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

8071 8183 

8072 - `name: string`8184 - `name: string`

8073 8185 


8189 8301 

8190 - `Custom object { name, type, allowed_callers, 4 more }`8302 - `Custom object { name, type, allowed_callers, 4 more }`

8191 8303 

8192 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)8304 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

8193 8305 

8194 - `name: string`8306 - `name: string`

8195 8307 


8291 8403 

8292 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`8404 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

8293 8405 

8294 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).8406 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).

8295 8407 

8296 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`8408 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

8297 8409 


8377 8489 

8378 - `Compaction object { id, encrypted_content, type, 2 more }`8490 - `Compaction object { id, encrypted_content, type, 2 more }`

8379 8491 

8380 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).8492 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).

8381 8493 

8382 - `id: string`8494 - `id: string`

8383 8495 


8405 8517 

8406 The identifier of the actor that created the item.8518 The identifier of the actor that created the item.

8407 8519 

8408 - `ImageGenerationCall object { id, result, status, 2 more }`8520 - `ImageGenerationCall object { id, result, status, 4 more }`

8409 8521 

8410 An image generation request made by the model.8522 An image generation request made by the model.

8411 8523 


8443 8555 

8444 The canonical name of the agent that produced this item.8556 The canonical name of the agent that produced this item.

8445 8557 

8558 - `quality: optional "low" or "medium" or "high" or 3 more or null`

8559 

8560 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.

8561 

8562 - `"low"`

8563 

8564 - `"medium"`

8565 

8566 - `"high"`

8567 

8568 - `"xhigh"`

8569 

8570 - `"max"`

8571 

8572 - `"auto"`

8573 

8574 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`

8575 

8576 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

8577 

8578 - `string`

8579 

8580 - `"1024x1024" or "1024x1536" or "1536x1024"`

8581 

8582 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

8583 

8584 - `"1024x1024"`

8585 

8586 - `"1024x1536"`

8587 

8588 - `"1536x1024"`

8589 

8446 - `CodeInterpreterCall object { id, code, container_id, 4 more }`8590 - `CodeInterpreterCall object { id, code, container_id, 4 more }`

8447 8591 

8448 A tool call to run code.8592 A tool call to run code.


9274 9418 

9275 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`9419 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`

9276 9420 

9277 An image input to the model. Learn about [image inputs](/docs/guides/vision).9421 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

9278 9422 

9279 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`9423 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`

9280 9424 


9405 - `BetaToolChoiceTypes object { type }`9549 - `BetaToolChoiceTypes object { type }`

9406 9550 

9407 Indicates that the model should use a built-in tool to generate a response.9551 Indicates that the model should use a built-in tool to generate a response.

9408 [Learn more about built-in tools](/docs/guides/tools).9552 [Learn more about built-in tools](/api/docs/guides/tools).

9409 9553 

9410 - `type: "file_search" or "web_search_preview" or "computer" or 5 more`9554 - `type: "file_search" or "web_search_preview" or "computer" or 5 more`

9411 9555 

9412 The type of hosted tool the model should to use. Learn more about9556 The type of hosted tool the model should to use. Learn more about

9413 [built-in tools](/docs/guides/tools).9557 [built-in tools](/api/docs/guides/tools).

9414 9558 

9415 Allowed values are:9559 Allowed values are:

9416 9560 


9520 We support the following categories of tools:9664 We support the following categories of tools:

9521 9665 

9522 - **Built-in tools**: Tools that are provided by OpenAI that extend the9666 - **Built-in tools**: Tools that are provided by OpenAI that extend the

9523 model's capabilities, like [web search](/docs/guides/tools-web-search)9667 model's capabilities, like [web search](/api/docs/guides/tools-web-search)

9524 or [file search](/docs/guides/tools-file-search). Learn more about9668 or [file search](/api/docs/guides/tools-file-search). Learn more about

9525 [built-in tools](/docs/guides/tools).9669 [built-in tools](/api/docs/guides/tools).

9526 - **MCP Tools**: Integrations with third-party systems via custom MCP servers9670 - **MCP Tools**: Integrations with third-party systems via custom MCP servers

9527 or predefined connectors such as Google Drive and SharePoint. Learn more about9671 or predefined connectors such as Google Drive and SharePoint. Learn more about

9528 [MCP Tools](/docs/guides/tools-connectors-mcp).9672 [MCP Tools](/api/docs/guides/tools-connectors-mcp).

9529 - **Function calls (custom tools)**: Functions that are defined by you,9673 - **Function calls (custom tools)**: Functions that are defined by you,

9530 enabling the model to call your own code with strongly typed arguments9674 enabling the model to call your own code with strongly typed arguments

9531 and outputs. Learn more about9675 and outputs. Learn more about

9532 [function calling](/docs/guides/function-calling). You can also use9676 [function calling](/api/docs/guides/function-calling). You can also use

9533 custom tools to call your own code.9677 custom tools to call your own code.

9534 9678 

9535 - `Function object { name, parameters, strict, 6 more }`9679 - `Function object { name, parameters, strict, 6 more }`

9536 9680 

9537 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).9681 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

9538 9682 

9539 - `name: string`9683 - `name: string`

9540 9684 


9578 9722 

9579 - `FileSearch object { type, vector_store_ids, filters, 2 more }`9723 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

9580 9724 

9581 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).9725 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

9582 9726 

9583 - `type: "file_search"`9727 - `type: "file_search"`

9584 9728 


9752 9896 

9753 - `Computer object { type }`9897 - `Computer object { type }`

9754 9898 

9755 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).9899 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

9756 9900 

9757 - `type: "computer"`9901 - `type: "computer"`

9758 9902 


9762 9906 

9763 - `ComputerUsePreview object { display_height, display_width, environment, type }`9907 - `ComputerUsePreview object { display_height, display_width, environment, type }`

9764 9908 

9765 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).9909 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

9766 9910 

9767 - `display_height: number`9911 - `display_height: number`

9768 9912 


9795 - `WebSearch object { type, external_web_access, filters, 2 more }`9939 - `WebSearch object { type, external_web_access, filters, 2 more }`

9796 9940 

9797 Search the Internet for sources related to the prompt. Learn more about the9941 Search the Internet for sources related to the prompt. Learn more about the

9798 [web search tool](/docs/guides/tools-web-search).9942 [web search tool](/api/docs/guides/tools-web-search).

9799 9943 

9800 - `type: "web_search" or "web_search_2025_08_26"`9944 - `type: "web_search" or "web_search_2025_08_26"`

9801 9945 


9859 - `Mcp object { server_label, type, allowed_callers, 9 more }`10003 - `Mcp object { server_label, type, allowed_callers, 9 more }`

9860 10004 

9861 Give the model access to additional tools via remote Model Context Protocol10005 Give the model access to additional tools via remote Model Context Protocol

9862 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).10006 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

9863 10007 

9864 - `server_label: string`10008 - `server_label: string`

9865 10009 


9911 10055 

9912 Identifier for service connectors, like those available in ChatGPT. One of10056 Identifier for service connectors, like those available in ChatGPT. One of

9913 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more10057 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

9914 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).10058 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

9915 10059 

9916 Currently supported `connector_id` values are:10060 Currently supported `connector_id` values are:

9917 10061 


10103 10247 

10104 - `background: optional "transparent" or "opaque" or "auto"`10248 - `background: optional "transparent" or "opaque" or "auto"`

10105 10249 

10106 Set the background of the generated image. One of `transparent`,10250 Set the background of the generated image. One of `transparent`, `opaque`,

10107 `opaque`, or `auto`. Transparent backgrounds are available for10251 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

10108 supported GPT Image models. For `gpt-image-2` and10252 their `2026-09-08` snapshots, support `opaque` and `transparent`

10109 `gpt-image-2-2026-04-21`, this support is in preview. When using10253 backgrounds. Transparent backgrounds are available for supported GPT Image

10110 `transparent`, set the output format to `png` or `webp`. Default: `auto`.10254 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

10255 preview. When using `transparent`, set the output format to `png` or `webp`.

10256 Default: `auto`.

10111 10257 

10112 - `"transparent"`10258 - `"transparent"`

10113 10259 


10136 10282 

10137 Base64-encoded mask image.10283 Base64-encoded mask image.

10138 10284 

10139 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`10285 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

10140 10286 

10141 The image generation model to use. One of `gpt-image-1`,10287 The image generation model to use. One of `gpt-image-1`,

10142 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,10288 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

10143 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:10289 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

10290 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

10291 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

10144 `gpt-image-1`.10292 `gpt-image-1`.

10145 10293 

10146 - `string`10294 - `string`

10147 10295 

10148 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`10296 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

10149 10297 

10150 The image generation model to use. One of `gpt-image-1`,10298 The image generation model to use. One of `gpt-image-1`,

10151 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,10299 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

10152 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:10300 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

10301 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

10302 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

10153 `gpt-image-1`.10303 `gpt-image-1`.

10154 10304 

10155 - `"gpt-image-1"`10305 - `"gpt-image-1"`


10162 10312 

10163 - `"gpt-image-2-2026-04-21"`10313 - `"gpt-image-2-2026-04-21"`

10164 10314 

10315 - `"gpt-image-2.5-sunburst"`

10316 

10317 - `"gpt-image-2.5-sunburst-2026-09-08"`

10318 

10319 - `"gpt-image-2.5-flare"`

10320 

10321 - `"gpt-image-2.5-flare-2026-09-08"`

10322 

10165 - `moderation: optional "auto" or "low"`10323 - `moderation: optional "auto" or "low"`

10166 10324 

10167 Moderation level for the generated image. Default: `auto`.10325 Moderation level for the generated image. Default: `auto`.


10189 10347 

10190 Number of partial images to generate in streaming mode, from 0 (default value) to 3.10348 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

10191 10349 

10192 - `quality: optional "low" or "medium" or "high" or "auto"`10350 - `quality: optional "low" or "medium" or "high" or 3 more`

10193 10351 

10194 The quality of the generated image. One of `low`, `medium`, `high`,10352 The quality of the generated image. The GPT image models support `low`,

10195 or `auto`. Default: `auto`.10353 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

10354 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

10355 Default: `auto`.

10196 10356 

10197 - `"low"`10357 - `"low"`

10198 10358 


10200 10360 

10201 - `"high"`10361 - `"high"`

10202 10362 

10363 - `"xhigh"`

10364 

10365 - `"max"`

10366 

10203 - `"auto"`10367 - `"auto"`

10204 10368 

10205 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`10369 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

10206 10370 

10207 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`.10371 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`.

10208 10372 

10209 - `string`10373 - `string`

10210 10374 

10211 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`10375 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

10212 10376 

10213 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`.10377 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`.

10214 10378 

10215 - `"1024x1024"`10379 - `"1024x1024"`

10216 10380 


10258 10422 

10259 - `Custom object { name, type, allowed_callers, 4 more }`10423 - `Custom object { name, type, allowed_callers, 4 more }`

10260 10424 

10261 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)10425 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

10262 10426 

10263 - `name: string`10427 - `name: string`

10264 10428 


10380 10544 

10381 - `Custom object { name, type, allowed_callers, 4 more }`10545 - `Custom object { name, type, allowed_callers, 4 more }`

10382 10546 

10383 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)10547 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

10384 10548 

10385 - `name: string`10549 - `name: string`

10386 10550 


10482 10646 

10483 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`10647 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

10484 10648 

10485 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).10649 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).

10486 10650 

10487 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`10651 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

10488 10652 


10564 - `background: optional boolean or null`10728 - `background: optional boolean or null`

10565 10729 

10566 Whether to run the model response in the background.10730 Whether to run the model response in the background.

10567 [Learn more](/docs/guides/background).10731 [Learn more](/api/docs/guides/background).

10568 10732 

10569 - `completed_at: optional number or null`10733 - `completed_at: optional number or null`

10570 10734 


10581 10745 

10582 - `max_output_tokens: optional number or null`10746 - `max_output_tokens: optional number or null`

10583 10747 

10584 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).10748 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).

10585 10749 

10586 - `max_tool_calls: optional number or null`10750 - `max_tool_calls: optional number or null`

10587 10751 


10713 10877 

10714 The unique ID of the previous response to the model. Use this to10878 The unique ID of the previous response to the model. Use this to

10715 create multi-turn conversations. Learn more about10879 create multi-turn conversations. Learn more about

10716 [conversation state](/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.10880 [conversation state](/api/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.

10717 10881 

10718 - `prompt: optional BetaResponsePrompt or null`10882 - `prompt: optional BetaResponsePrompt or null`

10719 10883 

10720 Reference to a prompt template and its variables.10884 Reference to a prompt template and its variables.

10721 [Learn more](/docs/guides/text?api-mode=responses#reusable-prompts).10885 [Learn more](/api/docs/guides/text?api-mode=responses#version-prompts-in-code).

10722 10886 

10723 - `id: string`10887 - `id: string`

10724 10888 


10738 10902 

10739 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`10903 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`

10740 10904 

10741 An image input to the model. Learn about [image inputs](/docs/guides/vision).10905 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

10742 10906 

10743 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`10907 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`

10744 10908 


10808 10972 

10809 - `prompt_cache_key: optional string or null`10973 - `prompt_cache_key: optional string or null`

10810 10974 

10811 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).10975 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).

10812 10976 

10813 - `prompt_cache_options: optional object { mode, ttl, comparison_response_id }`10977 - `prompt_cache_options: optional object { mode, ttl, comparison_response_id }`

10814 10978 


10836 11000 

10837 Deprecated. Use `prompt_cache_options.ttl` instead.11001 Deprecated. Use `prompt_cache_options.ttl` instead.

10838 11002 

10839 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).11003 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).

10840 This field expresses a maximum retention policy, while11004 This field expresses a maximum retention policy, while

10841 `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two11005 `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two

10842 fields are independent and do not interact.11006 fields are independent and do not interact.


10854 - `reasoning: optional object { context, effort, generate_summary, 2 more } or null`11018 - `reasoning: optional object { context, effort, generate_summary, 2 more } or null`

10855 11019 

10856 Configuration options for11020 Configuration options for

10857 [reasoning models](https://platform.openai.com/docs/guides/reasoning).11021 [reasoning models](/api/docs/guides/reasoning).

10858 11022 

10859 - `context: optional "auto" or "current_turn" or "all_turns" or null`11023 - `context: optional "auto" or "current_turn" or "all_turns" or null`

10860 11024 


10879 Reducing reasoning effort can result in faster responses and fewer tokens11043 Reducing reasoning effort can result in faster responses and fewer tokens

10880 used on reasoning in a response. Not all reasoning models support every11044 used on reasoning in a response. Not all reasoning models support every

10881 value. See the11045 value. See the

10882 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)11046 [reasoning guide](/api/docs/guides/reasoning)

10883 for model-specific support.11047 for model-specific support.

10884 11048 

10885 - `"none"`11049 - `"none"`


10945 - `safety_identifier: optional string or null`11109 - `safety_identifier: optional string or null`

10946 11110 

10947 A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.11111 A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.

10948 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).11112 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).

10949 11113 

10950 - `service_tier: optional BetaServiceTier or null`11114 - `service_tier: optional BetaServiceTier or null`

10951 11115 


10953 11117 

10954 - 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'.11118 - 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'.

10955 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.11119 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.

10956 - If set to '[flex](/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.11120 - If set to '[flex](/api/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.

10957 - 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.11121 - 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.

10958 - 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`.11122 - 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`.

10959 - When not set, the default behavior is 'auto'.11123 - When not set, the default behavior is 'auto'.


10996 Configuration options for a text response from the model. Can be plain11160 Configuration options for a text response from the model. Can be plain

10997 text or structured JSON data. Learn more:11161 text or structured JSON data. Learn more:

10998 11162 

10999 - [Text inputs and outputs](/docs/guides/text)11163 - [Text inputs and outputs](/api/docs/guides/text)

11000 - [Structured Outputs](/docs/guides/structured-outputs)11164 - [Structured Outputs](/api/docs/guides/structured-outputs)

11001 11165 

11002 - `format: optional BetaResponseFormatTextConfig`11166 - `format: optional BetaResponseFormatTextConfig`

11003 11167 


11005 11169 

11006 Configuring `{ "type": "json_schema" }` enables Structured Outputs,11170 Configuring `{ "type": "json_schema" }` enables Structured Outputs,

11007 which ensures the model will match your supplied JSON schema. Learn more in the11171 which ensures the model will match your supplied JSON schema. Learn more in the

11008 [Structured Outputs guide](/docs/guides/structured-outputs).11172 [Structured Outputs guide](/api/docs/guides/structured-outputs).

11009 11173 

11010 The default format is `{ "type": "text" }` with no additional options.11174 The default format is `{ "type": "text" }` with no additional options.

11011 11175 


11028 - `BetaResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`11192 - `BetaResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`

11029 11193 

11030 JSON Schema response format. Used to generate structured JSON responses.11194 JSON Schema response format. Used to generate structured JSON responses.

11031 Learn more about [Structured Outputs](/docs/guides/structured-outputs).11195 Learn more about [Structured Outputs](/api/docs/guides/structured-outputs).

11032 11196 

11033 - `name: string`11197 - `name: string`

11034 11198 


11057 If set to true, the model will always follow the exact schema defined11221 If set to true, the model will always follow the exact schema defined

11058 in the `schema` field. Only a subset of JSON Schema is supported when11222 in the `schema` field. Only a subset of JSON Schema is supported when

11059 `strict` is `true`. To learn more, read the [Structured Outputs11223 `strict` is `true`. To learn more, read the [Structured Outputs

11060 guide](/docs/guides/structured-outputs).11224 guide](/api/docs/guides/structured-outputs).

11061 11225 

11062 - `JSONObject object { type }`11226 - `JSONObject object { type }`

11063 11227 


11126 - `cached_tokens: number`11290 - `cached_tokens: number`

11127 11291 

11128 The number of tokens that were retrieved from the cache.11292 The number of tokens that were retrieved from the cache.

11129 [More on prompt caching](/docs/guides/prompt-caching).11293 [More on prompt caching](/api/docs/guides/prompt-caching).

11130 11294 

11131 - `output_tokens: number`11295 - `output_tokens: number`

11132 11296 


11148 11312 

11149 This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.11313 This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.

11150 A stable identifier for your end-users.11314 A stable identifier for your end-users.

11151 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).11315 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).

11152 11316 

11153### Example11317### Example

11154 11318 

Details

4 4 

5Compact a conversation. Returns a compacted response object.5Compact a conversation. Returns a compacted response object.

6 6 

7Learn when and how to compact long-running conversations in the [conversation state guide](/docs/guides/conversation-state#managing-the-context-window). For ZDR-compatible compaction details, see [Compaction (advanced)](/docs/guides/conversation-state#compaction-advanced).7Learn when and how to compact long-running conversations in the [conversation state guide](/api/docs/guides/conversation-state#managing-the-context-window). For ZDR-compatible compaction details, see [Compaction (advanced)](/api/docs/guides/conversation-state#compaction-advanced).

8 8 

9### Header Parameters9### Header Parameters

10 10 


16 16 

17- `model: "gpt-6-astra" or "gpt-5.6-sol" or "gpt-5.6-terra" or 100 more or string or null`17- `model: "gpt-6-astra" or "gpt-5.6-sol" or "gpt-5.6-terra" or 100 more or string or null`

18 18 

19 Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](/docs/models) to browse and compare available models.19 Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](/api/docs/models) to browse and compare available models.

20 20 

21 - `"gpt-6-astra" or "gpt-5.6-sol" or "gpt-5.6-terra" or 100 more`21 - `"gpt-6-astra" or "gpt-5.6-sol" or "gpt-5.6-terra" or 100 more`

22 22 

23 Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](/docs/models) to browse and compare available models.23 Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](/api/docs/models) to browse and compare available models.

24 24 

25 - `"gpt-6-astra"`25 - `"gpt-6-astra"`

26 26 


290 290 

291 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`291 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`

292 292 

293 An image input to the model. Learn about [image inputs](/docs/guides/vision).293 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

294 294 

295 - `detail: BetaImageDetail`295 - `detail: BetaImageDetail`

296 296 


649 - `FileSearchCall object { id, queries, status, 3 more }`649 - `FileSearchCall object { id, queries, status, 3 more }`

650 650 

651 The results of a file search tool call. See the651 The results of a file search tool call. See the

652 [file search guide](/docs/guides/tools-file-search) for more information.652 [file search guide](/api/docs/guides/tools-file-search) for more information.

653 653 

654 - `id: string`654 - `id: string`

655 655 


725 - `ComputerCall object { id, call_id, pending_safety_checks, 5 more }`725 - `ComputerCall object { id, call_id, pending_safety_checks, 5 more }`

726 726 

727 A tool call to a computer use tool. See the727 A tool call to a computer use tool. See the

728 [computer use guide](/docs/guides/tools-computer-use) for more information.728 [computer use guide](/api/docs/guides/tools-computer-use) for more information.

729 729 

730 - `id: string`730 - `id: string`

731 731 


1086 - `WebSearchCall object { id, action, status, 2 more }`1086 - `WebSearchCall object { id, action, status, 2 more }`

1087 1087 

1088 The results of a web search tool call. See the1088 The results of a web search tool call. See the

1089 [web search guide](/docs/guides/tools-web-search) for more information.1089 [web search guide](/api/docs/guides/tools-web-search) for more information.

1090 1090 

1091 - `id: string`1091 - `id: string`

1092 1092 


1192 - `FunctionCall object { arguments, call_id, name, 7 more }`1192 - `FunctionCall object { arguments, call_id, name, 7 more }`

1193 1193 

1194 A tool call to run a function. See the1194 A tool call to run a function. See the

1195 [function calling guide](/docs/guides/function-calling) for more information.1195 [function calling guide](/api/docs/guides/function-calling) for more information.

1196 1196 

1197 - `arguments: string`1197 - `arguments: string`

1198 1198 


1305 1305 

1306 - `BetaResponseInputImageContent object { type, detail, file_id, 2 more }`1306 - `BetaResponseInputImageContent object { type, detail, file_id, 2 more }`

1307 1307 

1308 An image input to the model. Learn about [image inputs](/docs/guides/vision)1308 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision)

1309 1309 

1310 - `type: "input_image"`1310 - `type: "input_image"`

1311 1311 


1463 1463 

1464 - `BetaResponseInputImageContent object { type, detail, file_id, 2 more }`1464 - `BetaResponseInputImageContent object { type, detail, file_id, 2 more }`

1465 1465 

1466 An image input to the model. Learn about [image inputs](/docs/guides/vision)1466 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision)

1467 1467 

1468 - `EncryptedContent object { encrypted_content, type }`1468 - `EncryptedContent object { encrypted_content, type }`

1469 1469 


1729 1729 

1730 - `Function object { name, parameters, strict, 6 more }`1730 - `Function object { name, parameters, strict, 6 more }`

1731 1731 

1732 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).1732 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

1733 1733 

1734 - `name: string`1734 - `name: string`

1735 1735 


1773 1773 

1774 - `FileSearch object { type, vector_store_ids, filters, 2 more }`1774 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

1775 1775 

1776 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).1776 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

1777 1777 

1778 - `type: "file_search"`1778 - `type: "file_search"`

1779 1779 


1947 1947 

1948 - `Computer object { type }`1948 - `Computer object { type }`

1949 1949 

1950 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1950 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1951 1951 

1952 - `type: "computer"`1952 - `type: "computer"`

1953 1953 


1957 1957 

1958 - `ComputerUsePreview object { display_height, display_width, environment, type }`1958 - `ComputerUsePreview object { display_height, display_width, environment, type }`

1959 1959 

1960 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1960 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1961 1961 

1962 - `display_height: number`1962 - `display_height: number`

1963 1963 


1990 - `WebSearch object { type, external_web_access, filters, 2 more }`1990 - `WebSearch object { type, external_web_access, filters, 2 more }`

1991 1991 

1992 Search the Internet for sources related to the prompt. Learn more about the1992 Search the Internet for sources related to the prompt. Learn more about the

1993 [web search tool](/docs/guides/tools-web-search).1993 [web search tool](/api/docs/guides/tools-web-search).

1994 1994 

1995 - `type: "web_search" or "web_search_2025_08_26"`1995 - `type: "web_search" or "web_search_2025_08_26"`

1996 1996 


2054 - `Mcp object { server_label, type, allowed_callers, 9 more }`2054 - `Mcp object { server_label, type, allowed_callers, 9 more }`

2055 2055 

2056 Give the model access to additional tools via remote Model Context Protocol2056 Give the model access to additional tools via remote Model Context Protocol

2057 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).2057 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

2058 2058 

2059 - `server_label: string`2059 - `server_label: string`

2060 2060 


2106 2106 

2107 Identifier for service connectors, like those available in ChatGPT. One of2107 Identifier for service connectors, like those available in ChatGPT. One of

2108 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more2108 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

2109 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).2109 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

2110 2110 

2111 Currently supported `connector_id` values are:2111 Currently supported `connector_id` values are:

2112 2112 


2330 2330 

2331 - `background: optional "transparent" or "opaque" or "auto"`2331 - `background: optional "transparent" or "opaque" or "auto"`

2332 2332 

2333 Set the background of the generated image. One of `transparent`,2333 Set the background of the generated image. One of `transparent`, `opaque`,

2334 `opaque`, or `auto`. Transparent backgrounds are available for2334 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

2335 supported GPT Image models. For `gpt-image-2` and2335 their `2026-09-08` snapshots, support `opaque` and `transparent`

2336 `gpt-image-2-2026-04-21`, this support is in preview. When using2336 backgrounds. Transparent backgrounds are available for supported GPT Image

2337 `transparent`, set the output format to `png` or `webp`. Default: `auto`.2337 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

2338 preview. When using `transparent`, set the output format to `png` or `webp`.

2339 Default: `auto`.

2338 2340 

2339 - `"transparent"`2341 - `"transparent"`

2340 2342 


2363 2365 

2364 Base64-encoded mask image.2366 Base64-encoded mask image.

2365 2367 

2366 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2368 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2367 2369 

2368 The image generation model to use. One of `gpt-image-1`,2370 The image generation model to use. One of `gpt-image-1`,

2369 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2371 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2370 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2372 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2373 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2374 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2371 `gpt-image-1`.2375 `gpt-image-1`.

2372 2376 

2373 - `string`2377 - `string`

2374 2378 

2375 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2379 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2376 2380 

2377 The image generation model to use. One of `gpt-image-1`,2381 The image generation model to use. One of `gpt-image-1`,

2378 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2382 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2379 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2383 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2384 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2385 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2380 `gpt-image-1`.2386 `gpt-image-1`.

2381 2387 

2382 - `"gpt-image-1"`2388 - `"gpt-image-1"`


2389 2395 

2390 - `"gpt-image-2-2026-04-21"`2396 - `"gpt-image-2-2026-04-21"`

2391 2397 

2398 - `"gpt-image-2.5-sunburst"`

2399 

2400 - `"gpt-image-2.5-sunburst-2026-09-08"`

2401 

2402 - `"gpt-image-2.5-flare"`

2403 

2404 - `"gpt-image-2.5-flare-2026-09-08"`

2405 

2392 - `moderation: optional "auto" or "low"`2406 - `moderation: optional "auto" or "low"`

2393 2407 

2394 Moderation level for the generated image. Default: `auto`.2408 Moderation level for the generated image. Default: `auto`.


2416 2430 

2417 Number of partial images to generate in streaming mode, from 0 (default value) to 3.2431 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

2418 2432 

2419 - `quality: optional "low" or "medium" or "high" or "auto"`2433 - `quality: optional "low" or "medium" or "high" or 3 more`

2420 2434 

2421 The quality of the generated image. One of `low`, `medium`, `high`,2435 The quality of the generated image. The GPT image models support `low`,

2422 or `auto`. Default: `auto`.2436 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

2437 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

2438 Default: `auto`.

2423 2439 

2424 - `"low"`2440 - `"low"`

2425 2441 


2427 2443 

2428 - `"high"`2444 - `"high"`

2429 2445 

2446 - `"xhigh"`

2447 

2448 - `"max"`

2449 

2430 - `"auto"`2450 - `"auto"`

2431 2451 

2432 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`2452 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2433 2453 

2434 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`.2454 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`.

2435 2455 

2436 - `string`2456 - `string`

2437 2457 

2438 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`2458 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2439 2459 

2440 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`.2460 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`.

2441 2461 

2442 - `"1024x1024"`2462 - `"1024x1024"`

2443 2463 


2603 2623 

2604 - `Custom object { name, type, allowed_callers, 4 more }`2624 - `Custom object { name, type, allowed_callers, 4 more }`

2605 2625 

2606 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2626 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2607 2627 

2608 - `name: string`2628 - `name: string`

2609 2629 


2725 2745 

2726 - `Custom object { name, type, allowed_callers, 4 more }`2746 - `Custom object { name, type, allowed_callers, 4 more }`

2727 2747 

2728 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2748 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2729 2749 

2730 - `name: string`2750 - `name: string`

2731 2751 


2827 2847 

2828 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`2848 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

2829 2849 

2830 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).2850 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).

2831 2851 

2832 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`2852 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

2833 2853 


2951 2971 

2952 - `Function object { name, parameters, strict, 6 more }`2972 - `Function object { name, parameters, strict, 6 more }`

2953 2973 

2954 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).2974 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

2955 2975 

2956 - `name: string`2976 - `name: string`

2957 2977 


2995 3015 

2996 - `FileSearch object { type, vector_store_ids, filters, 2 more }`3016 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

2997 3017 

2998 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).3018 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

2999 3019 

3000 - `type: "file_search"`3020 - `type: "file_search"`

3001 3021 


3169 3189 

3170 - `Computer object { type }`3190 - `Computer object { type }`

3171 3191 

3172 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).3192 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

3173 3193 

3174 - `type: "computer"`3194 - `type: "computer"`

3175 3195 


3179 3199 

3180 - `ComputerUsePreview object { display_height, display_width, environment, type }`3200 - `ComputerUsePreview object { display_height, display_width, environment, type }`

3181 3201 

3182 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).3202 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

3183 3203 

3184 - `display_height: number`3204 - `display_height: number`

3185 3205 


3212 - `WebSearch object { type, external_web_access, filters, 2 more }`3232 - `WebSearch object { type, external_web_access, filters, 2 more }`

3213 3233 

3214 Search the Internet for sources related to the prompt. Learn more about the3234 Search the Internet for sources related to the prompt. Learn more about the

3215 [web search tool](/docs/guides/tools-web-search).3235 [web search tool](/api/docs/guides/tools-web-search).

3216 3236 

3217 - `type: "web_search" or "web_search_2025_08_26"`3237 - `type: "web_search" or "web_search_2025_08_26"`

3218 3238 


3276 - `Mcp object { server_label, type, allowed_callers, 9 more }`3296 - `Mcp object { server_label, type, allowed_callers, 9 more }`

3277 3297 

3278 Give the model access to additional tools via remote Model Context Protocol3298 Give the model access to additional tools via remote Model Context Protocol

3279 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).3299 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

3280 3300 

3281 - `server_label: string`3301 - `server_label: string`

3282 3302 


3328 3348 

3329 Identifier for service connectors, like those available in ChatGPT. One of3349 Identifier for service connectors, like those available in ChatGPT. One of

3330 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more3350 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

3331 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).3351 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

3332 3352 

3333 Currently supported `connector_id` values are:3353 Currently supported `connector_id` values are:

3334 3354 


3520 3540 

3521 - `background: optional "transparent" or "opaque" or "auto"`3541 - `background: optional "transparent" or "opaque" or "auto"`

3522 3542 

3523 Set the background of the generated image. One of `transparent`,3543 Set the background of the generated image. One of `transparent`, `opaque`,

3524 `opaque`, or `auto`. Transparent backgrounds are available for3544 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

3525 supported GPT Image models. For `gpt-image-2` and3545 their `2026-09-08` snapshots, support `opaque` and `transparent`

3526 `gpt-image-2-2026-04-21`, this support is in preview. When using3546 backgrounds. Transparent backgrounds are available for supported GPT Image

3527 `transparent`, set the output format to `png` or `webp`. Default: `auto`.3547 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

3548 preview. When using `transparent`, set the output format to `png` or `webp`.

3549 Default: `auto`.

3528 3550 

3529 - `"transparent"`3551 - `"transparent"`

3530 3552 


3553 3575 

3554 Base64-encoded mask image.3576 Base64-encoded mask image.

3555 3577 

3556 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`3578 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

3557 3579 

3558 The image generation model to use. One of `gpt-image-1`,3580 The image generation model to use. One of `gpt-image-1`,

3559 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,3581 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

3560 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:3582 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3583 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3584 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

3561 `gpt-image-1`.3585 `gpt-image-1`.

3562 3586 

3563 - `string`3587 - `string`

3564 3588 

3565 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`3589 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

3566 3590 

3567 The image generation model to use. One of `gpt-image-1`,3591 The image generation model to use. One of `gpt-image-1`,

3568 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,3592 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

3569 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:3593 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3594 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3595 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

3570 `gpt-image-1`.3596 `gpt-image-1`.

3571 3597 

3572 - `"gpt-image-1"`3598 - `"gpt-image-1"`


3579 3605 

3580 - `"gpt-image-2-2026-04-21"`3606 - `"gpt-image-2-2026-04-21"`

3581 3607 

3608 - `"gpt-image-2.5-sunburst"`

3609 

3610 - `"gpt-image-2.5-sunburst-2026-09-08"`

3611 

3612 - `"gpt-image-2.5-flare"`

3613 

3614 - `"gpt-image-2.5-flare-2026-09-08"`

3615 

3582 - `moderation: optional "auto" or "low"`3616 - `moderation: optional "auto" or "low"`

3583 3617 

3584 Moderation level for the generated image. Default: `auto`.3618 Moderation level for the generated image. Default: `auto`.


3606 3640 

3607 Number of partial images to generate in streaming mode, from 0 (default value) to 3.3641 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

3608 3642 

3609 - `quality: optional "low" or "medium" or "high" or "auto"`3643 - `quality: optional "low" or "medium" or "high" or 3 more`

3610 3644 

3611 The quality of the generated image. One of `low`, `medium`, `high`,3645 The quality of the generated image. The GPT image models support `low`,

3612 or `auto`. Default: `auto`.3646 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

3647 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

3648 Default: `auto`.

3613 3649 

3614 - `"low"`3650 - `"low"`

3615 3651 


3617 3653 

3618 - `"high"`3654 - `"high"`

3619 3655 

3656 - `"xhigh"`

3657 

3658 - `"max"`

3659 

3620 - `"auto"`3660 - `"auto"`

3621 3661 

3622 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`3662 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

3623 3663 

3624 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`.3664 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`.

3625 3665 

3626 - `string`3666 - `string`

3627 3667 

3628 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`3668 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

3629 3669 

3630 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`.3670 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`.

3631 3671 

3632 - `"1024x1024"`3672 - `"1024x1024"`

3633 3673 


3675 3715 

3676 - `Custom object { name, type, allowed_callers, 4 more }`3716 - `Custom object { name, type, allowed_callers, 4 more }`

3677 3717 

3678 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3718 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

3679 3719 

3680 - `name: string`3720 - `name: string`

3681 3721 


3797 3837 

3798 - `Custom object { name, type, allowed_callers, 4 more }`3838 - `Custom object { name, type, allowed_callers, 4 more }`

3799 3839 

3800 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3840 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

3801 3841 

3802 - `name: string`3842 - `name: string`

3803 3843 


3899 3939 

3900 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`3940 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

3901 3941 

3902 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).3942 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).

3903 3943 

3904 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`3944 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

3905 3945 


4039 A description of the chain of thought used by a reasoning model while generating4079 A description of the chain of thought used by a reasoning model while generating

4040 a response. Be sure to include these items in your `input` to the Responses API4080 a response. Be sure to include these items in your `input` to the Responses API

4041 for subsequent turns of a conversation if you are manually4081 for subsequent turns of a conversation if you are manually

4042 [managing context](/docs/guides/conversation-state).4082 [managing context](/api/docs/guides/conversation-state).

4043 4083 

4044 - `id: string`4084 - `id: string`

4045 4085 


4112 4152 

4113 - `Compaction object { encrypted_content, type, id, agent }`4153 - `Compaction object { encrypted_content, type, id, agent }`

4114 4154 

4115 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).4155 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).

4116 4156 

4117 - `encrypted_content: string`4157 - `encrypted_content: string`

4118 4158 


4136 4176 

4137 The canonical name of the agent that produced this item.4177 The canonical name of the agent that produced this item.

4138 4178 

4139 - `ImageGenerationCall object { id, result, status, 2 more }`4179 - `ImageGenerationCall object { id, result, status, 4 more }`

4140 4180 

4141 An image generation request made by the model.4181 An image generation request made by the model.

4142 4182 


4174 4214 

4175 The canonical name of the agent that produced this item.4215 The canonical name of the agent that produced this item.

4176 4216 

4217 - `quality: optional "low" or "medium" or "high" or 3 more or null`

4218 

4219 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.

4220 

4221 - `"low"`

4222 

4223 - `"medium"`

4224 

4225 - `"high"`

4226 

4227 - `"xhigh"`

4228 

4229 - `"max"`

4230 

4231 - `"auto"`

4232 

4233 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`

4234 

4235 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

4236 

4237 - `string`

4238 

4239 - `"1024x1024" or "1024x1536" or "1536x1024"`

4240 

4241 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

4242 

4243 - `"1024x1024"`

4244 

4245 - `"1024x1536"`

4246 

4247 - `"1536x1024"`

4248 

4177 - `CodeInterpreterCall object { id, code, container_id, 4 more }`4249 - `CodeInterpreterCall object { id, code, container_id, 4 more }`

4178 4250 

4179 A tool call to run code.4251 A tool call to run code.


4949 5021 

4950 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`5022 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`

4951 5023 

4952 An image input to the model. Learn about [image inputs](/docs/guides/vision).5024 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

4953 5025 

4954 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`5026 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`

4955 5027 


5178 5250 

5179- `previous_response_id: optional string or null`5251- `previous_response_id: optional string or null`

5180 5252 

5181 The unique ID of the previous response to the model. Use this to create multi-turn conversations. Learn more about [conversation state](/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.5253 The unique ID of the previous response to the model. Use this to create multi-turn conversations. Learn more about [conversation state](/api/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.

5182 5254 

5183- `prompt_cache_key: optional string or null`5255- `prompt_cache_key: optional string or null`

5184 5256 


5186 5258 

5187- `prompt_cache_options: optional object { mode, ttl } or null`5259- `prompt_cache_options: optional object { mode, ttl } or null`

5188 5260 

5189 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.5261 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.

5190 5262 

5191 - `mode: optional "implicit" or "explicit"`5263 - `mode: optional "implicit" or "explicit"`

5192 5264 


5212 5284 

5213- `service_tier: optional "auto" or "default" or "fast" or 2 more or null`5285- `service_tier: optional "auto" or "default" or "fast" or 2 more or null`

5214 5286 

5215 Specifies the processing type used for serving the request. - 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'. - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model. - If set to '[flex](/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier. - 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. For models with a dedicated Fast tier, either value resolves to `service_tier=fast`; for other models, either value resolves to `service_tier=priority`. - When not set, the default behavior is 'auto'.5287 Specifies the processing type used for serving the request. - 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'. - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model. - If set to '[flex](/api/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier. - 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. For models with a dedicated Fast tier, either value resolves to `service_tier=fast`; for other models, either value resolves to `service_tier=priority`. - When not set, the default behavior is 'auto'.

5216 When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.5288 When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.

5217 5289 

5218 - `"auto"`5290 - `"auto"`


5467 5539 

5468 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`5540 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`

5469 5541 

5470 An image input to the model. Learn about [image inputs](/docs/guides/vision).5542 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

5471 5543 

5472 - `detail: BetaImageDetail`5544 - `detail: BetaImageDetail`

5473 5545 


5720 - `FunctionCall object { arguments, call_id, name, 7 more }`5792 - `FunctionCall object { arguments, call_id, name, 7 more }`

5721 5793 

5722 A tool call to run a function. See the5794 A tool call to run a function. See the

5723 [function calling guide](/docs/guides/function-calling) for more information.5795 [function calling guide](/api/docs/guides/function-calling) for more information.

5724 5796 

5725 - `arguments: string`5797 - `arguments: string`

5726 5798 


5977 6049 

5978 - `Function object { name, parameters, strict, 6 more }`6050 - `Function object { name, parameters, strict, 6 more }`

5979 6051 

5980 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).6052 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

5981 6053 

5982 - `name: string`6054 - `name: string`

5983 6055 


6021 6093 

6022 - `FileSearch object { type, vector_store_ids, filters, 2 more }`6094 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

6023 6095 

6024 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).6096 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

6025 6097 

6026 - `type: "file_search"`6098 - `type: "file_search"`

6027 6099 


6195 6267 

6196 - `Computer object { type }`6268 - `Computer object { type }`

6197 6269 

6198 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).6270 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

6199 6271 

6200 - `type: "computer"`6272 - `type: "computer"`

6201 6273 


6205 6277 

6206 - `ComputerUsePreview object { display_height, display_width, environment, type }`6278 - `ComputerUsePreview object { display_height, display_width, environment, type }`

6207 6279 

6208 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).6280 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

6209 6281 

6210 - `display_height: number`6282 - `display_height: number`

6211 6283 


6238 - `WebSearch object { type, external_web_access, filters, 2 more }`6310 - `WebSearch object { type, external_web_access, filters, 2 more }`

6239 6311 

6240 Search the Internet for sources related to the prompt. Learn more about the6312 Search the Internet for sources related to the prompt. Learn more about the

6241 [web search tool](/docs/guides/tools-web-search).6313 [web search tool](/api/docs/guides/tools-web-search).

6242 6314 

6243 - `type: "web_search" or "web_search_2025_08_26"`6315 - `type: "web_search" or "web_search_2025_08_26"`

6244 6316 


6302 - `Mcp object { server_label, type, allowed_callers, 9 more }`6374 - `Mcp object { server_label, type, allowed_callers, 9 more }`

6303 6375 

6304 Give the model access to additional tools via remote Model Context Protocol6376 Give the model access to additional tools via remote Model Context Protocol

6305 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).6377 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

6306 6378 

6307 - `server_label: string`6379 - `server_label: string`

6308 6380 


6354 6426 

6355 Identifier for service connectors, like those available in ChatGPT. One of6427 Identifier for service connectors, like those available in ChatGPT. One of

6356 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more6428 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

6357 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).6429 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

6358 6430 

6359 Currently supported `connector_id` values are:6431 Currently supported `connector_id` values are:

6360 6432 


6578 6650 

6579 - `background: optional "transparent" or "opaque" or "auto"`6651 - `background: optional "transparent" or "opaque" or "auto"`

6580 6652 

6581 Set the background of the generated image. One of `transparent`,6653 Set the background of the generated image. One of `transparent`, `opaque`,

6582 `opaque`, or `auto`. Transparent backgrounds are available for6654 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

6583 supported GPT Image models. For `gpt-image-2` and6655 their `2026-09-08` snapshots, support `opaque` and `transparent`

6584 `gpt-image-2-2026-04-21`, this support is in preview. When using6656 backgrounds. Transparent backgrounds are available for supported GPT Image

6585 `transparent`, set the output format to `png` or `webp`. Default: `auto`.6657 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

6658 preview. When using `transparent`, set the output format to `png` or `webp`.

6659 Default: `auto`.

6586 6660 

6587 - `"transparent"`6661 - `"transparent"`

6588 6662 


6611 6685 

6612 Base64-encoded mask image.6686 Base64-encoded mask image.

6613 6687 

6614 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`6688 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

6615 6689 

6616 The image generation model to use. One of `gpt-image-1`,6690 The image generation model to use. One of `gpt-image-1`,

6617 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,6691 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

6618 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:6692 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6693 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6694 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

6619 `gpt-image-1`.6695 `gpt-image-1`.

6620 6696 

6621 - `string`6697 - `string`

6622 6698 

6623 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`6699 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

6624 6700 

6625 The image generation model to use. One of `gpt-image-1`,6701 The image generation model to use. One of `gpt-image-1`,

6626 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,6702 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

6627 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:6703 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6704 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6705 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

6628 `gpt-image-1`.6706 `gpt-image-1`.

6629 6707 

6630 - `"gpt-image-1"`6708 - `"gpt-image-1"`


6637 6715 

6638 - `"gpt-image-2-2026-04-21"`6716 - `"gpt-image-2-2026-04-21"`

6639 6717 

6718 - `"gpt-image-2.5-sunburst"`

6719 

6720 - `"gpt-image-2.5-sunburst-2026-09-08"`

6721 

6722 - `"gpt-image-2.5-flare"`

6723 

6724 - `"gpt-image-2.5-flare-2026-09-08"`

6725 

6640 - `moderation: optional "auto" or "low"`6726 - `moderation: optional "auto" or "low"`

6641 6727 

6642 Moderation level for the generated image. Default: `auto`.6728 Moderation level for the generated image. Default: `auto`.


6664 6750 

6665 Number of partial images to generate in streaming mode, from 0 (default value) to 3.6751 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

6666 6752 

6667 - `quality: optional "low" or "medium" or "high" or "auto"`6753 - `quality: optional "low" or "medium" or "high" or 3 more`

6668 6754 

6669 The quality of the generated image. One of `low`, `medium`, `high`,6755 The quality of the generated image. The GPT image models support `low`,

6670 or `auto`. Default: `auto`.6756 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

6757 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

6758 Default: `auto`.

6671 6759 

6672 - `"low"`6760 - `"low"`

6673 6761 


6675 6763 

6676 - `"high"`6764 - `"high"`

6677 6765 

6766 - `"xhigh"`

6767 

6768 - `"max"`

6769 

6678 - `"auto"`6770 - `"auto"`

6679 6771 

6680 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`6772 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

6681 6773 

6682 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`.6774 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`.

6683 6775 

6684 - `string`6776 - `string`

6685 6777 

6686 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`6778 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

6687 6779 

6688 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`.6780 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`.

6689 6781 

6690 - `"1024x1024"`6782 - `"1024x1024"`

6691 6783 


6851 6943 

6852 - `Custom object { name, type, allowed_callers, 4 more }`6944 - `Custom object { name, type, allowed_callers, 4 more }`

6853 6945 

6854 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)6946 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

6855 6947 

6856 - `name: string`6948 - `name: string`

6857 6949 


6973 7065 

6974 - `Custom object { name, type, allowed_callers, 4 more }`7066 - `Custom object { name, type, allowed_callers, 4 more }`

6975 7067 

6976 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)7068 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

6977 7069 

6978 - `name: string`7070 - `name: string`

6979 7071 


7075 7167 

7076 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`7168 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

7077 7169 

7078 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).7170 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).

7079 7171 

7080 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`7172 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

7081 7173 


7195 7287 

7196 - `Function object { name, parameters, strict, 6 more }`7288 - `Function object { name, parameters, strict, 6 more }`

7197 7289 

7198 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).7290 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

7199 7291 

7200 - `name: string`7292 - `name: string`

7201 7293 


7239 7331 

7240 - `FileSearch object { type, vector_store_ids, filters, 2 more }`7332 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

7241 7333 

7242 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).7334 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

7243 7335 

7244 - `type: "file_search"`7336 - `type: "file_search"`

7245 7337 


7413 7505 

7414 - `Computer object { type }`7506 - `Computer object { type }`

7415 7507 

7416 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).7508 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

7417 7509 

7418 - `type: "computer"`7510 - `type: "computer"`

7419 7511 


7423 7515 

7424 - `ComputerUsePreview object { display_height, display_width, environment, type }`7516 - `ComputerUsePreview object { display_height, display_width, environment, type }`

7425 7517 

7426 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).7518 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

7427 7519 

7428 - `display_height: number`7520 - `display_height: number`

7429 7521 


7456 - `WebSearch object { type, external_web_access, filters, 2 more }`7548 - `WebSearch object { type, external_web_access, filters, 2 more }`

7457 7549 

7458 Search the Internet for sources related to the prompt. Learn more about the7550 Search the Internet for sources related to the prompt. Learn more about the

7459 [web search tool](/docs/guides/tools-web-search).7551 [web search tool](/api/docs/guides/tools-web-search).

7460 7552 

7461 - `type: "web_search" or "web_search_2025_08_26"`7553 - `type: "web_search" or "web_search_2025_08_26"`

7462 7554 


7520 - `Mcp object { server_label, type, allowed_callers, 9 more }`7612 - `Mcp object { server_label, type, allowed_callers, 9 more }`

7521 7613 

7522 Give the model access to additional tools via remote Model Context Protocol7614 Give the model access to additional tools via remote Model Context Protocol

7523 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).7615 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

7524 7616 

7525 - `server_label: string`7617 - `server_label: string`

7526 7618 


7572 7664 

7573 Identifier for service connectors, like those available in ChatGPT. One of7665 Identifier for service connectors, like those available in ChatGPT. One of

7574 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more7666 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

7575 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).7667 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

7576 7668 

7577 Currently supported `connector_id` values are:7669 Currently supported `connector_id` values are:

7578 7670 


7764 7856 

7765 - `background: optional "transparent" or "opaque" or "auto"`7857 - `background: optional "transparent" or "opaque" or "auto"`

7766 7858 

7767 Set the background of the generated image. One of `transparent`,7859 Set the background of the generated image. One of `transparent`, `opaque`,

7768 `opaque`, or `auto`. Transparent backgrounds are available for7860 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

7769 supported GPT Image models. For `gpt-image-2` and7861 their `2026-09-08` snapshots, support `opaque` and `transparent`

7770 `gpt-image-2-2026-04-21`, this support is in preview. When using7862 backgrounds. Transparent backgrounds are available for supported GPT Image

7771 `transparent`, set the output format to `png` or `webp`. Default: `auto`.7863 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

7864 preview. When using `transparent`, set the output format to `png` or `webp`.

7865 Default: `auto`.

7772 7866 

7773 - `"transparent"`7867 - `"transparent"`

7774 7868 


7797 7891 

7798 Base64-encoded mask image.7892 Base64-encoded mask image.

7799 7893 

7800 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`7894 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

7801 7895 

7802 The image generation model to use. One of `gpt-image-1`,7896 The image generation model to use. One of `gpt-image-1`,

7803 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,7897 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

7804 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:7898 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

7899 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

7900 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

7805 `gpt-image-1`.7901 `gpt-image-1`.

7806 7902 

7807 - `string`7903 - `string`

7808 7904 

7809 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`7905 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

7810 7906 

7811 The image generation model to use. One of `gpt-image-1`,7907 The image generation model to use. One of `gpt-image-1`,

7812 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,7908 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

7813 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:7909 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

7910 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

7911 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

7814 `gpt-image-1`.7912 `gpt-image-1`.

7815 7913 

7816 - `"gpt-image-1"`7914 - `"gpt-image-1"`


7823 7921 

7824 - `"gpt-image-2-2026-04-21"`7922 - `"gpt-image-2-2026-04-21"`

7825 7923 

7924 - `"gpt-image-2.5-sunburst"`

7925 

7926 - `"gpt-image-2.5-sunburst-2026-09-08"`

7927 

7928 - `"gpt-image-2.5-flare"`

7929 

7930 - `"gpt-image-2.5-flare-2026-09-08"`

7931 

7826 - `moderation: optional "auto" or "low"`7932 - `moderation: optional "auto" or "low"`

7827 7933 

7828 Moderation level for the generated image. Default: `auto`.7934 Moderation level for the generated image. Default: `auto`.


7850 7956 

7851 Number of partial images to generate in streaming mode, from 0 (default value) to 3.7957 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

7852 7958 

7853 - `quality: optional "low" or "medium" or "high" or "auto"`7959 - `quality: optional "low" or "medium" or "high" or 3 more`

7854 7960 

7855 The quality of the generated image. One of `low`, `medium`, `high`,7961 The quality of the generated image. The GPT image models support `low`,

7856 or `auto`. Default: `auto`.7962 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

7963 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

7964 Default: `auto`.

7857 7965 

7858 - `"low"`7966 - `"low"`

7859 7967 


7861 7969 

7862 - `"high"`7970 - `"high"`

7863 7971 

7972 - `"xhigh"`

7973 

7974 - `"max"`

7975 

7864 - `"auto"`7976 - `"auto"`

7865 7977 

7866 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`7978 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

7867 7979 

7868 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`.7980 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`.

7869 7981 

7870 - `string`7982 - `string`

7871 7983 

7872 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`7984 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

7873 7985 

7874 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`.7986 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`.

7875 7987 

7876 - `"1024x1024"`7988 - `"1024x1024"`

7877 7989 


7919 8031 

7920 - `Custom object { name, type, allowed_callers, 4 more }`8032 - `Custom object { name, type, allowed_callers, 4 more }`

7921 8033 

7922 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)8034 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

7923 8035 

7924 - `name: string`8036 - `name: string`

7925 8037 


8041 8153 

8042 - `Custom object { name, type, allowed_callers, 4 more }`8154 - `Custom object { name, type, allowed_callers, 4 more }`

8043 8155 

8044 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)8156 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

8045 8157 

8046 - `name: string`8158 - `name: string`

8047 8159 


8143 8255 

8144 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`8256 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

8145 8257 

8146 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).8258 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).

8147 8259 

8148 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`8260 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

8149 8261 


8293 8405 

8294 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`8406 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`

8295 8407 

8296 An image input to the model. Learn about [image inputs](/docs/guides/vision).8408 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

8297 8409 

8298 - `ComputerScreenshot object { detail, file_id, image_url, 2 more }`8410 - `ComputerScreenshot object { detail, file_id, image_url, 2 more }`

8299 8411 


8386 8498 

8387 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`8499 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`

8388 8500 

8389 An image input to the model. Learn about [image inputs](/docs/guides/vision).8501 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

8390 8502 

8391 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`8503 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`

8392 8504 


8461 - `FileSearchCall object { id, queries, status, 3 more }`8573 - `FileSearchCall object { id, queries, status, 3 more }`

8462 8574 

8463 The results of a file search tool call. See the8575 The results of a file search tool call. See the

8464 [file search guide](/docs/guides/tools-file-search) for more information.8576 [file search guide](/api/docs/guides/tools-file-search) for more information.

8465 8577 

8466 - `id: string`8578 - `id: string`

8467 8579 


8537 - `WebSearchCall object { id, action, status, 2 more }`8649 - `WebSearchCall object { id, action, status, 2 more }`

8538 8650 

8539 The results of a web search tool call. See the8651 The results of a web search tool call. See the

8540 [web search guide](/docs/guides/tools-web-search) for more information.8652 [web search guide](/api/docs/guides/tools-web-search) for more information.

8541 8653 

8542 - `id: string`8654 - `id: string`

8543 8655 


8640 8752 

8641 The canonical name of the agent that produced this item.8753 The canonical name of the agent that produced this item.

8642 8754 

8643 - `ImageGenerationCall object { id, result, status, 2 more }`8755 - `ImageGenerationCall object { id, result, status, 4 more }`

8644 8756 

8645 An image generation request made by the model.8757 An image generation request made by the model.

8646 8758 


8678 8790 

8679 The canonical name of the agent that produced this item.8791 The canonical name of the agent that produced this item.

8680 8792 

8793 - `quality: optional "low" or "medium" or "high" or 3 more or null`

8794 

8795 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.

8796 

8797 - `"low"`

8798 

8799 - `"medium"`

8800 

8801 - `"high"`

8802 

8803 - `"xhigh"`

8804 

8805 - `"max"`

8806 

8807 - `"auto"`

8808 

8809 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`

8810 

8811 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

8812 

8813 - `string`

8814 

8815 - `"1024x1024" or "1024x1536" or "1536x1024"`

8816 

8817 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

8818 

8819 - `"1024x1024"`

8820 

8821 - `"1024x1536"`

8822 

8823 - `"1536x1024"`

8824 

8681 - `ComputerCall object { id, call_id, pending_safety_checks, 5 more }`8825 - `ComputerCall object { id, call_id, pending_safety_checks, 5 more }`

8682 8826 

8683 A tool call to a computer use tool. See the8827 A tool call to a computer use tool. See the

8684 [computer use guide](/docs/guides/tools-computer-use) for more information.8828 [computer use guide](/api/docs/guides/tools-computer-use) for more information.

8685 8829 

8686 - `id: string`8830 - `id: string`

8687 8831 


9050 A description of the chain of thought used by a reasoning model while generating9194 A description of the chain of thought used by a reasoning model while generating

9051 a response. Be sure to include these items in your `input` to the Responses API9195 a response. Be sure to include these items in your `input` to the Responses API

9052 for subsequent turns of a conversation if you are manually9196 for subsequent turns of a conversation if you are manually

9053 [managing context](/docs/guides/conversation-state).9197 [managing context](/api/docs/guides/conversation-state).

9054 9198 

9055 - `id: string`9199 - `id: string`

9056 9200 


9123 9267 

9124 - `Compaction object { id, encrypted_content, type, 2 more }`9268 - `Compaction object { id, encrypted_content, type, 2 more }`

9125 9269 

9126 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).9270 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).

9127 9271 

9128 - `id: string`9272 - `id: string`

9129 9273 


10008 10152 

10009 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`10153 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`

10010 10154 

10011 An image input to the model. Learn about [image inputs](/docs/guides/vision).10155 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

10012 10156 

10013 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`10157 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`

10014 10158 


10075 - `cached_tokens: number`10219 - `cached_tokens: number`

10076 10220 

10077 The number of tokens that were retrieved from the cache.10221 The number of tokens that were retrieved from the cache.

10078 [More on prompt caching](/docs/guides/prompt-caching).10222 [More on prompt caching](/api/docs/guides/prompt-caching).

10079 10223 

10080 - `output_tokens: number`10224 - `output_tokens: number`

10081 10225 

Details

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 

Details

55 55 

56 If set to true, the model response data will be streamed to the client56 If set to true, the model response data will be streamed to the client

57 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).57 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).

58 See the [Streaming section below](/docs/api-reference/responses-streaming)58 See the [Streaming section below](/api/reference/resources/responses/streaming-events)

59 for more information.59 for more information.

60 60 

61 - `false`61 - `false`


243 243 

244 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`244 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`

245 245 

246 An image input to the model. Learn about [image inputs](/docs/guides/vision).246 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

247 247 

248 - `detail: BetaImageDetail`248 - `detail: BetaImageDetail`

249 249 


602 - `FileSearchCall object { id, queries, status, 3 more }`602 - `FileSearchCall object { id, queries, status, 3 more }`

603 603 

604 The results of a file search tool call. See the604 The results of a file search tool call. See the

605 [file search guide](/docs/guides/tools-file-search) for more information.605 [file search guide](/api/docs/guides/tools-file-search) for more information.

606 606 

607 - `id: string`607 - `id: string`

608 608 


678 - `ComputerCall object { id, call_id, pending_safety_checks, 5 more }`678 - `ComputerCall object { id, call_id, pending_safety_checks, 5 more }`

679 679 

680 A tool call to a computer use tool. See the680 A tool call to a computer use tool. See the

681 [computer use guide](/docs/guides/tools-computer-use) for more information.681 [computer use guide](/api/docs/guides/tools-computer-use) for more information.

682 682 

683 - `id: string`683 - `id: string`

684 684 


1039 - `WebSearchCall object { id, action, status, 2 more }`1039 - `WebSearchCall object { id, action, status, 2 more }`

1040 1040 

1041 The results of a web search tool call. See the1041 The results of a web search tool call. See the

1042 [web search guide](/docs/guides/tools-web-search) for more information.1042 [web search guide](/api/docs/guides/tools-web-search) for more information.

1043 1043 

1044 - `id: string`1044 - `id: string`

1045 1045 


1145 - `FunctionCall object { arguments, call_id, name, 7 more }`1145 - `FunctionCall object { arguments, call_id, name, 7 more }`

1146 1146 

1147 A tool call to run a function. See the1147 A tool call to run a function. See the

1148 [function calling guide](/docs/guides/function-calling) for more information.1148 [function calling guide](/api/docs/guides/function-calling) for more information.

1149 1149 

1150 - `arguments: string`1150 - `arguments: string`

1151 1151 


1258 1258 

1259 - `BetaResponseInputImageContent object { type, detail, file_id, 2 more }`1259 - `BetaResponseInputImageContent object { type, detail, file_id, 2 more }`

1260 1260 

1261 An image input to the model. Learn about [image inputs](/docs/guides/vision)1261 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision)

1262 1262 

1263 - `type: "input_image"`1263 - `type: "input_image"`

1264 1264 


1416 1416 

1417 - `BetaResponseInputImageContent object { type, detail, file_id, 2 more }`1417 - `BetaResponseInputImageContent object { type, detail, file_id, 2 more }`

1418 1418 

1419 An image input to the model. Learn about [image inputs](/docs/guides/vision)1419 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision)

1420 1420 

1421 - `EncryptedContent object { encrypted_content, type }`1421 - `EncryptedContent object { encrypted_content, type }`

1422 1422 


1682 1682 

1683 - `Function object { name, parameters, strict, 6 more }`1683 - `Function object { name, parameters, strict, 6 more }`

1684 1684 

1685 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).1685 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

1686 1686 

1687 - `name: string`1687 - `name: string`

1688 1688 


1726 1726 

1727 - `FileSearch object { type, vector_store_ids, filters, 2 more }`1727 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

1728 1728 

1729 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).1729 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

1730 1730 

1731 - `type: "file_search"`1731 - `type: "file_search"`

1732 1732 


1900 1900 

1901 - `Computer object { type }`1901 - `Computer object { type }`

1902 1902 

1903 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1903 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1904 1904 

1905 - `type: "computer"`1905 - `type: "computer"`

1906 1906 


1910 1910 

1911 - `ComputerUsePreview object { display_height, display_width, environment, type }`1911 - `ComputerUsePreview object { display_height, display_width, environment, type }`

1912 1912 

1913 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1913 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1914 1914 

1915 - `display_height: number`1915 - `display_height: number`

1916 1916 


1943 - `WebSearch object { type, external_web_access, filters, 2 more }`1943 - `WebSearch object { type, external_web_access, filters, 2 more }`

1944 1944 

1945 Search the Internet for sources related to the prompt. Learn more about the1945 Search the Internet for sources related to the prompt. Learn more about the

1946 [web search tool](/docs/guides/tools-web-search).1946 [web search tool](/api/docs/guides/tools-web-search).

1947 1947 

1948 - `type: "web_search" or "web_search_2025_08_26"`1948 - `type: "web_search" or "web_search_2025_08_26"`

1949 1949 


2007 - `Mcp object { server_label, type, allowed_callers, 9 more }`2007 - `Mcp object { server_label, type, allowed_callers, 9 more }`

2008 2008 

2009 Give the model access to additional tools via remote Model Context Protocol2009 Give the model access to additional tools via remote Model Context Protocol

2010 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).2010 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

2011 2011 

2012 - `server_label: string`2012 - `server_label: string`

2013 2013 


2059 2059 

2060 Identifier for service connectors, like those available in ChatGPT. One of2060 Identifier for service connectors, like those available in ChatGPT. One of

2061 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more2061 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

2062 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).2062 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

2063 2063 

2064 Currently supported `connector_id` values are:2064 Currently supported `connector_id` values are:

2065 2065 


2283 2283 

2284 - `background: optional "transparent" or "opaque" or "auto"`2284 - `background: optional "transparent" or "opaque" or "auto"`

2285 2285 

2286 Set the background of the generated image. One of `transparent`,2286 Set the background of the generated image. One of `transparent`, `opaque`,

2287 `opaque`, or `auto`. Transparent backgrounds are available for2287 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

2288 supported GPT Image models. For `gpt-image-2` and2288 their `2026-09-08` snapshots, support `opaque` and `transparent`

2289 `gpt-image-2-2026-04-21`, this support is in preview. When using2289 backgrounds. Transparent backgrounds are available for supported GPT Image

2290 `transparent`, set the output format to `png` or `webp`. Default: `auto`.2290 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

2291 preview. When using `transparent`, set the output format to `png` or `webp`.

2292 Default: `auto`.

2291 2293 

2292 - `"transparent"`2294 - `"transparent"`

2293 2295 


2316 2318 

2317 Base64-encoded mask image.2319 Base64-encoded mask image.

2318 2320 

2319 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2321 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2320 2322 

2321 The image generation model to use. One of `gpt-image-1`,2323 The image generation model to use. One of `gpt-image-1`,

2322 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2324 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2323 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2325 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2326 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2327 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2324 `gpt-image-1`.2328 `gpt-image-1`.

2325 2329 

2326 - `string`2330 - `string`

2327 2331 

2328 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2332 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2329 2333 

2330 The image generation model to use. One of `gpt-image-1`,2334 The image generation model to use. One of `gpt-image-1`,

2331 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2335 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2332 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2336 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2337 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2338 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2333 `gpt-image-1`.2339 `gpt-image-1`.

2334 2340 

2335 - `"gpt-image-1"`2341 - `"gpt-image-1"`


2342 2348 

2343 - `"gpt-image-2-2026-04-21"`2349 - `"gpt-image-2-2026-04-21"`

2344 2350 

2351 - `"gpt-image-2.5-sunburst"`

2352 

2353 - `"gpt-image-2.5-sunburst-2026-09-08"`

2354 

2355 - `"gpt-image-2.5-flare"`

2356 

2357 - `"gpt-image-2.5-flare-2026-09-08"`

2358 

2345 - `moderation: optional "auto" or "low"`2359 - `moderation: optional "auto" or "low"`

2346 2360 

2347 Moderation level for the generated image. Default: `auto`.2361 Moderation level for the generated image. Default: `auto`.


2369 2383 

2370 Number of partial images to generate in streaming mode, from 0 (default value) to 3.2384 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

2371 2385 

2372 - `quality: optional "low" or "medium" or "high" or "auto"`2386 - `quality: optional "low" or "medium" or "high" or 3 more`

2373 2387 

2374 The quality of the generated image. One of `low`, `medium`, `high`,2388 The quality of the generated image. The GPT image models support `low`,

2375 or `auto`. Default: `auto`.2389 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

2390 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

2391 Default: `auto`.

2376 2392 

2377 - `"low"`2393 - `"low"`

2378 2394 


2380 2396 

2381 - `"high"`2397 - `"high"`

2382 2398 

2399 - `"xhigh"`

2400 

2401 - `"max"`

2402 

2383 - `"auto"`2403 - `"auto"`

2384 2404 

2385 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`2405 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2386 2406 

2387 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`.2407 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`.

2388 2408 

2389 - `string`2409 - `string`

2390 2410 

2391 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`2411 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2392 2412 

2393 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`.2413 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`.

2394 2414 

2395 - `"1024x1024"`2415 - `"1024x1024"`

2396 2416 


2556 2576 

2557 - `Custom object { name, type, allowed_callers, 4 more }`2577 - `Custom object { name, type, allowed_callers, 4 more }`

2558 2578 

2559 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2579 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2560 2580 

2561 - `name: string`2581 - `name: string`

2562 2582 


2678 2698 

2679 - `Custom object { name, type, allowed_callers, 4 more }`2699 - `Custom object { name, type, allowed_callers, 4 more }`

2680 2700 

2681 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2701 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2682 2702 

2683 - `name: string`2703 - `name: string`

2684 2704 


2780 2800 

2781 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`2801 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

2782 2802 

2783 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).2803 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).

2784 2804 

2785 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`2805 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

2786 2806 


2904 2924 

2905 - `Function object { name, parameters, strict, 6 more }`2925 - `Function object { name, parameters, strict, 6 more }`

2906 2926 

2907 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).2927 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

2908 2928 

2909 - `name: string`2929 - `name: string`

2910 2930 


2948 2968 

2949 - `FileSearch object { type, vector_store_ids, filters, 2 more }`2969 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

2950 2970 

2951 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).2971 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

2952 2972 

2953 - `type: "file_search"`2973 - `type: "file_search"`

2954 2974 


3122 3142 

3123 - `Computer object { type }`3143 - `Computer object { type }`

3124 3144 

3125 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).3145 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

3126 3146 

3127 - `type: "computer"`3147 - `type: "computer"`

3128 3148 


3132 3152 

3133 - `ComputerUsePreview object { display_height, display_width, environment, type }`3153 - `ComputerUsePreview object { display_height, display_width, environment, type }`

3134 3154 

3135 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).3155 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

3136 3156 

3137 - `display_height: number`3157 - `display_height: number`

3138 3158 


3165 - `WebSearch object { type, external_web_access, filters, 2 more }`3185 - `WebSearch object { type, external_web_access, filters, 2 more }`

3166 3186 

3167 Search the Internet for sources related to the prompt. Learn more about the3187 Search the Internet for sources related to the prompt. Learn more about the

3168 [web search tool](/docs/guides/tools-web-search).3188 [web search tool](/api/docs/guides/tools-web-search).

3169 3189 

3170 - `type: "web_search" or "web_search_2025_08_26"`3190 - `type: "web_search" or "web_search_2025_08_26"`

3171 3191 


3229 - `Mcp object { server_label, type, allowed_callers, 9 more }`3249 - `Mcp object { server_label, type, allowed_callers, 9 more }`

3230 3250 

3231 Give the model access to additional tools via remote Model Context Protocol3251 Give the model access to additional tools via remote Model Context Protocol

3232 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).3252 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

3233 3253 

3234 - `server_label: string`3254 - `server_label: string`

3235 3255 


3281 3301 

3282 Identifier for service connectors, like those available in ChatGPT. One of3302 Identifier for service connectors, like those available in ChatGPT. One of

3283 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more3303 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

3284 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).3304 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

3285 3305 

3286 Currently supported `connector_id` values are:3306 Currently supported `connector_id` values are:

3287 3307 


3473 3493 

3474 - `background: optional "transparent" or "opaque" or "auto"`3494 - `background: optional "transparent" or "opaque" or "auto"`

3475 3495 

3476 Set the background of the generated image. One of `transparent`,3496 Set the background of the generated image. One of `transparent`, `opaque`,

3477 `opaque`, or `auto`. Transparent backgrounds are available for3497 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

3478 supported GPT Image models. For `gpt-image-2` and3498 their `2026-09-08` snapshots, support `opaque` and `transparent`

3479 `gpt-image-2-2026-04-21`, this support is in preview. When using3499 backgrounds. Transparent backgrounds are available for supported GPT Image

3480 `transparent`, set the output format to `png` or `webp`. Default: `auto`.3500 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

3501 preview. When using `transparent`, set the output format to `png` or `webp`.

3502 Default: `auto`.

3481 3503 

3482 - `"transparent"`3504 - `"transparent"`

3483 3505 


3506 3528 

3507 Base64-encoded mask image.3529 Base64-encoded mask image.

3508 3530 

3509 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`3531 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

3510 3532 

3511 The image generation model to use. One of `gpt-image-1`,3533 The image generation model to use. One of `gpt-image-1`,

3512 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,3534 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

3513 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:3535 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3536 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3537 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

3514 `gpt-image-1`.3538 `gpt-image-1`.

3515 3539 

3516 - `string`3540 - `string`

3517 3541 

3518 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`3542 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

3519 3543 

3520 The image generation model to use. One of `gpt-image-1`,3544 The image generation model to use. One of `gpt-image-1`,

3521 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,3545 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

3522 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:3546 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3547 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3548 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

3523 `gpt-image-1`.3549 `gpt-image-1`.

3524 3550 

3525 - `"gpt-image-1"`3551 - `"gpt-image-1"`


3532 3558 

3533 - `"gpt-image-2-2026-04-21"`3559 - `"gpt-image-2-2026-04-21"`

3534 3560 

3561 - `"gpt-image-2.5-sunburst"`

3562 

3563 - `"gpt-image-2.5-sunburst-2026-09-08"`

3564 

3565 - `"gpt-image-2.5-flare"`

3566 

3567 - `"gpt-image-2.5-flare-2026-09-08"`

3568 

3535 - `moderation: optional "auto" or "low"`3569 - `moderation: optional "auto" or "low"`

3536 3570 

3537 Moderation level for the generated image. Default: `auto`.3571 Moderation level for the generated image. Default: `auto`.


3559 3593 

3560 Number of partial images to generate in streaming mode, from 0 (default value) to 3.3594 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

3561 3595 

3562 - `quality: optional "low" or "medium" or "high" or "auto"`3596 - `quality: optional "low" or "medium" or "high" or 3 more`

3563 3597 

3564 The quality of the generated image. One of `low`, `medium`, `high`,3598 The quality of the generated image. The GPT image models support `low`,

3565 or `auto`. Default: `auto`.3599 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

3600 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

3601 Default: `auto`.

3566 3602 

3567 - `"low"`3603 - `"low"`

3568 3604 


3570 3606 

3571 - `"high"`3607 - `"high"`

3572 3608 

3609 - `"xhigh"`

3610 

3611 - `"max"`

3612 

3573 - `"auto"`3613 - `"auto"`

3574 3614 

3575 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`3615 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

3576 3616 

3577 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`.3617 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`.

3578 3618 

3579 - `string`3619 - `string`

3580 3620 

3581 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`3621 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

3582 3622 

3583 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`.3623 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`.

3584 3624 

3585 - `"1024x1024"`3625 - `"1024x1024"`

3586 3626 


3628 3668 

3629 - `Custom object { name, type, allowed_callers, 4 more }`3669 - `Custom object { name, type, allowed_callers, 4 more }`

3630 3670 

3631 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3671 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

3632 3672 

3633 - `name: string`3673 - `name: string`

3634 3674 


3750 3790 

3751 - `Custom object { name, type, allowed_callers, 4 more }`3791 - `Custom object { name, type, allowed_callers, 4 more }`

3752 3792 

3753 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3793 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

3754 3794 

3755 - `name: string`3795 - `name: string`

3756 3796 


3852 3892 

3853 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`3893 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

3854 3894 

3855 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).3895 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).

3856 3896 

3857 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`3897 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

3858 3898 


3992 A description of the chain of thought used by a reasoning model while generating4032 A description of the chain of thought used by a reasoning model while generating

3993 a response. Be sure to include these items in your `input` to the Responses API4033 a response. Be sure to include these items in your `input` to the Responses API

3994 for subsequent turns of a conversation if you are manually4034 for subsequent turns of a conversation if you are manually

3995 [managing context](/docs/guides/conversation-state).4035 [managing context](/api/docs/guides/conversation-state).

3996 4036 

3997 - `id: string`4037 - `id: string`

3998 4038 


4065 4105 

4066 - `Compaction object { encrypted_content, type, id, agent }`4106 - `Compaction object { encrypted_content, type, id, agent }`

4067 4107 

4068 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).4108 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).

4069 4109 

4070 - `encrypted_content: string`4110 - `encrypted_content: string`

4071 4111 


4089 4129 

4090 The canonical name of the agent that produced this item.4130 The canonical name of the agent that produced this item.

4091 4131 

4092 - `ImageGenerationCall object { id, result, status, 2 more }`4132 - `ImageGenerationCall object { id, result, status, 4 more }`

4093 4133 

4094 An image generation request made by the model.4134 An image generation request made by the model.

4095 4135 


4127 4167 

4128 The canonical name of the agent that produced this item.4168 The canonical name of the agent that produced this item.

4129 4169 

4170 - `quality: optional "low" or "medium" or "high" or 3 more or null`

4171 

4172 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.

4173 

4174 - `"low"`

4175 

4176 - `"medium"`

4177 

4178 - `"high"`

4179 

4180 - `"xhigh"`

4181 

4182 - `"max"`

4183 

4184 - `"auto"`

4185 

4186 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`

4187 

4188 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

4189 

4190 - `string`

4191 

4192 - `"1024x1024" or "1024x1536" or "1536x1024"`

4193 

4194 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

4195 

4196 - `"1024x1024"`

4197 

4198 - `"1024x1536"`

4199 

4200 - `"1536x1024"`

4201 

4130 - `CodeInterpreterCall object { id, code, container_id, 4 more }`4202 - `CodeInterpreterCall object { id, code, container_id, 4 more }`

4131 4203 

4132 A tool call to run code.4204 A tool call to run code.


4902 4974 

4903 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`4975 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`

4904 4976 

4905 An image input to the model. Learn about [image inputs](/docs/guides/vision).4977 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

4906 4978 

4907 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`4979 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`

4908 4980 


5137 5209 

5138 Model ID used to generate the response, like `gpt-6-astra`. OpenAI5210 Model ID used to generate the response, like `gpt-6-astra`. OpenAI

5139 offers a wide range of models with different capabilities, performance5211 offers a wide range of models with different capabilities, performance

5140 characteristics, and price points. Refer to the [model guide](/docs/models)5212 characteristics, and price points. Refer to the [model guide](/api/docs/models)

5141 to browse and compare available models.5213 to browse and compare available models.

5142 5214 

5143 - `"gpt-6-astra" or "gpt-5.6-sol" or "gpt-5.6-terra" or 100 more`5215 - `"gpt-6-astra" or "gpt-5.6-sol" or "gpt-5.6-terra" or 100 more`

5144 5216 

5145 Model ID used to generate the response, like `gpt-6-astra`. OpenAI5217 Model ID used to generate the response, like `gpt-6-astra`. OpenAI

5146 offers a wide range of models with different capabilities, performance5218 offers a wide range of models with different capabilities, performance

5147 characteristics, and price points. Refer to the [model guide](/docs/models)5219 characteristics, and price points. Refer to the [model guide](/api/docs/models)

5148 to browse and compare available models.5220 to browse and compare available models.

5149 5221 

5150 - `"gpt-6-astra"`5222 - `"gpt-6-astra"`


5379 - `FileSearchCall object { id, queries, status, 3 more }`5451 - `FileSearchCall object { id, queries, status, 3 more }`

5380 5452 

5381 The results of a file search tool call. See the5453 The results of a file search tool call. See the

5382 [file search guide](/docs/guides/tools-file-search) for more information.5454 [file search guide](/api/docs/guides/tools-file-search) for more information.

5383 5455 

5384 - `id: string`5456 - `id: string`

5385 5457 


5455 - `FunctionCall object { arguments, call_id, name, 7 more }`5527 - `FunctionCall object { arguments, call_id, name, 7 more }`

5456 5528 

5457 A tool call to run a function. See the5529 A tool call to run a function. See the

5458 [function calling guide](/docs/guides/function-calling) for more information.5530 [function calling guide](/api/docs/guides/function-calling) for more information.

5459 5531 

5460 - `arguments: string`5532 - `arguments: string`

5461 5533 


5551 5623 

5552 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`5624 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`

5553 5625 

5554 An image input to the model. Learn about [image inputs](/docs/guides/vision).5626 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

5555 5627 

5556 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`5628 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`

5557 5629 


5688 5760 

5689 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`5761 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`

5690 5762 

5691 An image input to the model. Learn about [image inputs](/docs/guides/vision).5763 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

5692 5764 

5693 - `ComputerScreenshot object { detail, file_id, image_url, 2 more }`5765 - `ComputerScreenshot object { detail, file_id, image_url, 2 more }`

5694 5766 


5863 - `WebSearchCall object { id, action, status, 2 more }`5935 - `WebSearchCall object { id, action, status, 2 more }`

5864 5936 

5865 The results of a web search tool call. See the5937 The results of a web search tool call. See the

5866 [web search guide](/docs/guides/tools-web-search) for more information.5938 [web search guide](/api/docs/guides/tools-web-search) for more information.

5867 5939 

5868 - `id: string`5940 - `id: string`

5869 5941 


5969 - `ComputerCall object { id, call_id, pending_safety_checks, 5 more }`6041 - `ComputerCall object { id, call_id, pending_safety_checks, 5 more }`

5970 6042 

5971 A tool call to a computer use tool. See the6043 A tool call to a computer use tool. See the

5972 [computer use guide](/docs/guides/tools-computer-use) for more information.6044 [computer use guide](/api/docs/guides/tools-computer-use) for more information.

5973 6045 

5974 - `id: string`6046 - `id: string`

5975 6047 


6096 A description of the chain of thought used by a reasoning model while generating6168 A description of the chain of thought used by a reasoning model while generating

6097 a response. Be sure to include these items in your `input` to the Responses API6169 a response. Be sure to include these items in your `input` to the Responses API

6098 for subsequent turns of a conversation if you are manually6170 for subsequent turns of a conversation if you are manually

6099 [managing context](/docs/guides/conversation-state).6171 [managing context](/api/docs/guides/conversation-state).

6100 6172 

6101 - `id: string`6173 - `id: string`

6102 6174 


6319 6391 

6320 - `Function object { name, parameters, strict, 6 more }`6392 - `Function object { name, parameters, strict, 6 more }`

6321 6393 

6322 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).6394 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

6323 6395 

6324 - `name: string`6396 - `name: string`

6325 6397 


6363 6435 

6364 - `FileSearch object { type, vector_store_ids, filters, 2 more }`6436 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

6365 6437 

6366 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).6438 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

6367 6439 

6368 - `type: "file_search"`6440 - `type: "file_search"`

6369 6441 


6537 6609 

6538 - `Computer object { type }`6610 - `Computer object { type }`

6539 6611 

6540 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).6612 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

6541 6613 

6542 - `type: "computer"`6614 - `type: "computer"`

6543 6615 


6547 6619 

6548 - `ComputerUsePreview object { display_height, display_width, environment, type }`6620 - `ComputerUsePreview object { display_height, display_width, environment, type }`

6549 6621 

6550 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).6622 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

6551 6623 

6552 - `display_height: number`6624 - `display_height: number`

6553 6625 


6580 - `WebSearch object { type, external_web_access, filters, 2 more }`6652 - `WebSearch object { type, external_web_access, filters, 2 more }`

6581 6653 

6582 Search the Internet for sources related to the prompt. Learn more about the6654 Search the Internet for sources related to the prompt. Learn more about the

6583 [web search tool](/docs/guides/tools-web-search).6655 [web search tool](/api/docs/guides/tools-web-search).

6584 6656 

6585 - `type: "web_search" or "web_search_2025_08_26"`6657 - `type: "web_search" or "web_search_2025_08_26"`

6586 6658 


6644 - `Mcp object { server_label, type, allowed_callers, 9 more }`6716 - `Mcp object { server_label, type, allowed_callers, 9 more }`

6645 6717 

6646 Give the model access to additional tools via remote Model Context Protocol6718 Give the model access to additional tools via remote Model Context Protocol

6647 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).6719 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

6648 6720 

6649 - `server_label: string`6721 - `server_label: string`

6650 6722 


6696 6768 

6697 Identifier for service connectors, like those available in ChatGPT. One of6769 Identifier for service connectors, like those available in ChatGPT. One of

6698 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more6770 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

6699 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).6771 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

6700 6772 

6701 Currently supported `connector_id` values are:6773 Currently supported `connector_id` values are:

6702 6774 


6888 6960 

6889 - `background: optional "transparent" or "opaque" or "auto"`6961 - `background: optional "transparent" or "opaque" or "auto"`

6890 6962 

6891 Set the background of the generated image. One of `transparent`,6963 Set the background of the generated image. One of `transparent`, `opaque`,

6892 `opaque`, or `auto`. Transparent backgrounds are available for6964 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

6893 supported GPT Image models. For `gpt-image-2` and6965 their `2026-09-08` snapshots, support `opaque` and `transparent`

6894 `gpt-image-2-2026-04-21`, this support is in preview. When using6966 backgrounds. Transparent backgrounds are available for supported GPT Image

6895 `transparent`, set the output format to `png` or `webp`. Default: `auto`.6967 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

6968 preview. When using `transparent`, set the output format to `png` or `webp`.

6969 Default: `auto`.

6896 6970 

6897 - `"transparent"`6971 - `"transparent"`

6898 6972 


6921 6995 

6922 Base64-encoded mask image.6996 Base64-encoded mask image.

6923 6997 

6924 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`6998 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

6925 6999 

6926 The image generation model to use. One of `gpt-image-1`,7000 The image generation model to use. One of `gpt-image-1`,

6927 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,7001 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

6928 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:7002 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

7003 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

7004 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

6929 `gpt-image-1`.7005 `gpt-image-1`.

6930 7006 

6931 - `string`7007 - `string`

6932 7008 

6933 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`7009 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

6934 7010 

6935 The image generation model to use. One of `gpt-image-1`,7011 The image generation model to use. One of `gpt-image-1`,

6936 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,7012 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

6937 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:7013 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

7014 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

7015 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

6938 `gpt-image-1`.7016 `gpt-image-1`.

6939 7017 

6940 - `"gpt-image-1"`7018 - `"gpt-image-1"`


6947 7025 

6948 - `"gpt-image-2-2026-04-21"`7026 - `"gpt-image-2-2026-04-21"`

6949 7027 

7028 - `"gpt-image-2.5-sunburst"`

7029 

7030 - `"gpt-image-2.5-sunburst-2026-09-08"`

7031 

7032 - `"gpt-image-2.5-flare"`

7033 

7034 - `"gpt-image-2.5-flare-2026-09-08"`

7035 

6950 - `moderation: optional "auto" or "low"`7036 - `moderation: optional "auto" or "low"`

6951 7037 

6952 Moderation level for the generated image. Default: `auto`.7038 Moderation level for the generated image. Default: `auto`.


6974 7060 

6975 Number of partial images to generate in streaming mode, from 0 (default value) to 3.7061 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

6976 7062 

6977 - `quality: optional "low" or "medium" or "high" or "auto"`7063 - `quality: optional "low" or "medium" or "high" or 3 more`

6978 7064 

6979 The quality of the generated image. One of `low`, `medium`, `high`,7065 The quality of the generated image. The GPT image models support `low`,

6980 or `auto`. Default: `auto`.7066 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

7067 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

7068 Default: `auto`.

6981 7069 

6982 - `"low"`7070 - `"low"`

6983 7071 


6985 7073 

6986 - `"high"`7074 - `"high"`

6987 7075 

7076 - `"xhigh"`

7077 

7078 - `"max"`

7079 

6988 - `"auto"`7080 - `"auto"`

6989 7081 

6990 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`7082 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

6991 7083 

6992 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`.7084 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`.

6993 7085 

6994 - `string`7086 - `string`

6995 7087 

6996 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`7088 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

6997 7089 

6998 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`.7090 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`.

6999 7091 

7000 - `"1024x1024"`7092 - `"1024x1024"`

7001 7093 


7043 7135 

7044 - `Custom object { name, type, allowed_callers, 4 more }`7136 - `Custom object { name, type, allowed_callers, 4 more }`

7045 7137 

7046 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)7138 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

7047 7139 

7048 - `name: string`7140 - `name: string`

7049 7141 


7165 7257 

7166 - `Custom object { name, type, allowed_callers, 4 more }`7258 - `Custom object { name, type, allowed_callers, 4 more }`

7167 7259 

7168 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)7260 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

7169 7261 

7170 - `name: string`7262 - `name: string`

7171 7263 


7267 7359 

7268 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`7360 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

7269 7361 

7270 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).7362 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).

7271 7363 

7272 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`7364 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

7273 7365 


7387 7479 

7388 - `Function object { name, parameters, strict, 6 more }`7480 - `Function object { name, parameters, strict, 6 more }`

7389 7481 

7390 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).7482 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

7391 7483 

7392 - `name: string`7484 - `name: string`

7393 7485 


7431 7523 

7432 - `FileSearch object { type, vector_store_ids, filters, 2 more }`7524 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

7433 7525 

7434 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).7526 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

7435 7527 

7436 - `type: "file_search"`7528 - `type: "file_search"`

7437 7529 


7605 7697 

7606 - `Computer object { type }`7698 - `Computer object { type }`

7607 7699 

7608 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).7700 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

7609 7701 

7610 - `type: "computer"`7702 - `type: "computer"`

7611 7703 


7615 7707 

7616 - `ComputerUsePreview object { display_height, display_width, environment, type }`7708 - `ComputerUsePreview object { display_height, display_width, environment, type }`

7617 7709 

7618 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).7710 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

7619 7711 

7620 - `display_height: number`7712 - `display_height: number`

7621 7713 


7648 - `WebSearch object { type, external_web_access, filters, 2 more }`7740 - `WebSearch object { type, external_web_access, filters, 2 more }`

7649 7741 

7650 Search the Internet for sources related to the prompt. Learn more about the7742 Search the Internet for sources related to the prompt. Learn more about the

7651 [web search tool](/docs/guides/tools-web-search).7743 [web search tool](/api/docs/guides/tools-web-search).

7652 7744 

7653 - `type: "web_search" or "web_search_2025_08_26"`7745 - `type: "web_search" or "web_search_2025_08_26"`

7654 7746 


7712 - `Mcp object { server_label, type, allowed_callers, 9 more }`7804 - `Mcp object { server_label, type, allowed_callers, 9 more }`

7713 7805 

7714 Give the model access to additional tools via remote Model Context Protocol7806 Give the model access to additional tools via remote Model Context Protocol

7715 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).7807 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

7716 7808 

7717 - `server_label: string`7809 - `server_label: string`

7718 7810 


7764 7856 

7765 Identifier for service connectors, like those available in ChatGPT. One of7857 Identifier for service connectors, like those available in ChatGPT. One of

7766 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more7858 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

7767 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).7859 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

7768 7860 

7769 Currently supported `connector_id` values are:7861 Currently supported `connector_id` values are:

7770 7862 


7956 8048 

7957 - `background: optional "transparent" or "opaque" or "auto"`8049 - `background: optional "transparent" or "opaque" or "auto"`

7958 8050 

7959 Set the background of the generated image. One of `transparent`,8051 Set the background of the generated image. One of `transparent`, `opaque`,

7960 `opaque`, or `auto`. Transparent backgrounds are available for8052 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

7961 supported GPT Image models. For `gpt-image-2` and8053 their `2026-09-08` snapshots, support `opaque` and `transparent`

7962 `gpt-image-2-2026-04-21`, this support is in preview. When using8054 backgrounds. Transparent backgrounds are available for supported GPT Image

7963 `transparent`, set the output format to `png` or `webp`. Default: `auto`.8055 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

8056 preview. When using `transparent`, set the output format to `png` or `webp`.

8057 Default: `auto`.

7964 8058 

7965 - `"transparent"`8059 - `"transparent"`

7966 8060 


7989 8083 

7990 Base64-encoded mask image.8084 Base64-encoded mask image.

7991 8085 

7992 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`8086 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

7993 8087 

7994 The image generation model to use. One of `gpt-image-1`,8088 The image generation model to use. One of `gpt-image-1`,

7995 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,8089 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

7996 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:8090 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

8091 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

8092 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

7997 `gpt-image-1`.8093 `gpt-image-1`.

7998 8094 

7999 - `string`8095 - `string`

8000 8096 

8001 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`8097 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

8002 8098 

8003 The image generation model to use. One of `gpt-image-1`,8099 The image generation model to use. One of `gpt-image-1`,

8004 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,8100 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

8005 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:8101 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

8102 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

8103 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

8006 `gpt-image-1`.8104 `gpt-image-1`.

8007 8105 

8008 - `"gpt-image-1"`8106 - `"gpt-image-1"`


8015 8113 

8016 - `"gpt-image-2-2026-04-21"`8114 - `"gpt-image-2-2026-04-21"`

8017 8115 

8116 - `"gpt-image-2.5-sunburst"`

8117 

8118 - `"gpt-image-2.5-sunburst-2026-09-08"`

8119 

8120 - `"gpt-image-2.5-flare"`

8121 

8122 - `"gpt-image-2.5-flare-2026-09-08"`

8123 

8018 - `moderation: optional "auto" or "low"`8124 - `moderation: optional "auto" or "low"`

8019 8125 

8020 Moderation level for the generated image. Default: `auto`.8126 Moderation level for the generated image. Default: `auto`.


8042 8148 

8043 Number of partial images to generate in streaming mode, from 0 (default value) to 3.8149 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

8044 8150 

8045 - `quality: optional "low" or "medium" or "high" or "auto"`8151 - `quality: optional "low" or "medium" or "high" or 3 more`

8046 8152 

8047 The quality of the generated image. One of `low`, `medium`, `high`,8153 The quality of the generated image. The GPT image models support `low`,

8048 or `auto`. Default: `auto`.8154 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

8155 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

8156 Default: `auto`.

8049 8157 

8050 - `"low"`8158 - `"low"`

8051 8159 


8053 8161 

8054 - `"high"`8162 - `"high"`

8055 8163 

8164 - `"xhigh"`

8165 

8166 - `"max"`

8167 

8056 - `"auto"`8168 - `"auto"`

8057 8169 

8058 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`8170 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

8059 8171 

8060 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`.8172 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`.

8061 8173 

8062 - `string`8174 - `string`

8063 8175 

8064 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`8176 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

8065 8177 

8066 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`.8178 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`.

8067 8179 

8068 - `"1024x1024"`8180 - `"1024x1024"`

8069 8181 


8111 8223 

8112 - `Custom object { name, type, allowed_callers, 4 more }`8224 - `Custom object { name, type, allowed_callers, 4 more }`

8113 8225 

8114 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)8226 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

8115 8227 

8116 - `name: string`8228 - `name: string`

8117 8229 


8233 8345 

8234 - `Custom object { name, type, allowed_callers, 4 more }`8346 - `Custom object { name, type, allowed_callers, 4 more }`

8235 8347 

8236 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)8348 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

8237 8349 

8238 - `name: string`8350 - `name: string`

8239 8351 


8335 8447 

8336 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`8448 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

8337 8449 

8338 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).8450 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).

8339 8451 

8340 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`8452 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

8341 8453 


8421 8533 

8422 - `Compaction object { id, encrypted_content, type, 2 more }`8534 - `Compaction object { id, encrypted_content, type, 2 more }`

8423 8535 

8424 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).8536 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).

8425 8537 

8426 - `id: string`8538 - `id: string`

8427 8539 


8449 8561 

8450 The identifier of the actor that created the item.8562 The identifier of the actor that created the item.

8451 8563 

8452 - `ImageGenerationCall object { id, result, status, 2 more }`8564 - `ImageGenerationCall object { id, result, status, 4 more }`

8453 8565 

8454 An image generation request made by the model.8566 An image generation request made by the model.

8455 8567 


8487 8599 

8488 The canonical name of the agent that produced this item.8600 The canonical name of the agent that produced this item.

8489 8601 

8602 - `quality: optional "low" or "medium" or "high" or 3 more or null`

8603 

8604 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.

8605 

8606 - `"low"`

8607 

8608 - `"medium"`

8609 

8610 - `"high"`

8611 

8612 - `"xhigh"`

8613 

8614 - `"max"`

8615 

8616 - `"auto"`

8617 

8618 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`

8619 

8620 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

8621 

8622 - `string`

8623 

8624 - `"1024x1024" or "1024x1536" or "1536x1024"`

8625 

8626 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

8627 

8628 - `"1024x1024"`

8629 

8630 - `"1024x1536"`

8631 

8632 - `"1536x1024"`

8633 

8490 - `CodeInterpreterCall object { id, code, container_id, 4 more }`8634 - `CodeInterpreterCall object { id, code, container_id, 4 more }`

8491 8635 

8492 A tool call to run code.8636 A tool call to run code.


9318 9462 

9319 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`9463 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`

9320 9464 

9321 An image input to the model. Learn about [image inputs](/docs/guides/vision).9465 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

9322 9466 

9323 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`9467 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`

9324 9468 


9449 - `BetaToolChoiceTypes object { type }`9593 - `BetaToolChoiceTypes object { type }`

9450 9594 

9451 Indicates that the model should use a built-in tool to generate a response.9595 Indicates that the model should use a built-in tool to generate a response.

9452 [Learn more about built-in tools](/docs/guides/tools).9596 [Learn more about built-in tools](/api/docs/guides/tools).

9453 9597 

9454 - `type: "file_search" or "web_search_preview" or "computer" or 5 more`9598 - `type: "file_search" or "web_search_preview" or "computer" or 5 more`

9455 9599 

9456 The type of hosted tool the model should to use. Learn more about9600 The type of hosted tool the model should to use. Learn more about

9457 [built-in tools](/docs/guides/tools).9601 [built-in tools](/api/docs/guides/tools).

9458 9602 

9459 Allowed values are:9603 Allowed values are:

9460 9604 


9564 We support the following categories of tools:9708 We support the following categories of tools:

9565 9709 

9566 - **Built-in tools**: Tools that are provided by OpenAI that extend the9710 - **Built-in tools**: Tools that are provided by OpenAI that extend the

9567 model's capabilities, like [web search](/docs/guides/tools-web-search)9711 model's capabilities, like [web search](/api/docs/guides/tools-web-search)

9568 or [file search](/docs/guides/tools-file-search). Learn more about9712 or [file search](/api/docs/guides/tools-file-search). Learn more about

9569 [built-in tools](/docs/guides/tools).9713 [built-in tools](/api/docs/guides/tools).

9570 - **MCP Tools**: Integrations with third-party systems via custom MCP servers9714 - **MCP Tools**: Integrations with third-party systems via custom MCP servers

9571 or predefined connectors such as Google Drive and SharePoint. Learn more about9715 or predefined connectors such as Google Drive and SharePoint. Learn more about

9572 [MCP Tools](/docs/guides/tools-connectors-mcp).9716 [MCP Tools](/api/docs/guides/tools-connectors-mcp).

9573 - **Function calls (custom tools)**: Functions that are defined by you,9717 - **Function calls (custom tools)**: Functions that are defined by you,

9574 enabling the model to call your own code with strongly typed arguments9718 enabling the model to call your own code with strongly typed arguments

9575 and outputs. Learn more about9719 and outputs. Learn more about

9576 [function calling](/docs/guides/function-calling). You can also use9720 [function calling](/api/docs/guides/function-calling). You can also use

9577 custom tools to call your own code.9721 custom tools to call your own code.

9578 9722 

9579 - `Function object { name, parameters, strict, 6 more }`9723 - `Function object { name, parameters, strict, 6 more }`

9580 9724 

9581 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).9725 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

9582 9726 

9583 - `name: string`9727 - `name: string`

9584 9728 


9622 9766 

9623 - `FileSearch object { type, vector_store_ids, filters, 2 more }`9767 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

9624 9768 

9625 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).9769 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

9626 9770 

9627 - `type: "file_search"`9771 - `type: "file_search"`

9628 9772 


9796 9940 

9797 - `Computer object { type }`9941 - `Computer object { type }`

9798 9942 

9799 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).9943 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

9800 9944 

9801 - `type: "computer"`9945 - `type: "computer"`

9802 9946 


9806 9950 

9807 - `ComputerUsePreview object { display_height, display_width, environment, type }`9951 - `ComputerUsePreview object { display_height, display_width, environment, type }`

9808 9952 

9809 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).9953 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

9810 9954 

9811 - `display_height: number`9955 - `display_height: number`

9812 9956 


9839 - `WebSearch object { type, external_web_access, filters, 2 more }`9983 - `WebSearch object { type, external_web_access, filters, 2 more }`

9840 9984 

9841 Search the Internet for sources related to the prompt. Learn more about the9985 Search the Internet for sources related to the prompt. Learn more about the

9842 [web search tool](/docs/guides/tools-web-search).9986 [web search tool](/api/docs/guides/tools-web-search).

9843 9987 

9844 - `type: "web_search" or "web_search_2025_08_26"`9988 - `type: "web_search" or "web_search_2025_08_26"`

9845 9989 


9903 - `Mcp object { server_label, type, allowed_callers, 9 more }`10047 - `Mcp object { server_label, type, allowed_callers, 9 more }`

9904 10048 

9905 Give the model access to additional tools via remote Model Context Protocol10049 Give the model access to additional tools via remote Model Context Protocol

9906 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).10050 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

9907 10051 

9908 - `server_label: string`10052 - `server_label: string`

9909 10053 


9955 10099 

9956 Identifier for service connectors, like those available in ChatGPT. One of10100 Identifier for service connectors, like those available in ChatGPT. One of

9957 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more10101 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

9958 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).10102 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

9959 10103 

9960 Currently supported `connector_id` values are:10104 Currently supported `connector_id` values are:

9961 10105 


10147 10291 

10148 - `background: optional "transparent" or "opaque" or "auto"`10292 - `background: optional "transparent" or "opaque" or "auto"`

10149 10293 

10150 Set the background of the generated image. One of `transparent`,10294 Set the background of the generated image. One of `transparent`, `opaque`,

10151 `opaque`, or `auto`. Transparent backgrounds are available for10295 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

10152 supported GPT Image models. For `gpt-image-2` and10296 their `2026-09-08` snapshots, support `opaque` and `transparent`

10153 `gpt-image-2-2026-04-21`, this support is in preview. When using10297 backgrounds. Transparent backgrounds are available for supported GPT Image

10154 `transparent`, set the output format to `png` or `webp`. Default: `auto`.10298 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

10299 preview. When using `transparent`, set the output format to `png` or `webp`.

10300 Default: `auto`.

10155 10301 

10156 - `"transparent"`10302 - `"transparent"`

10157 10303 


10180 10326 

10181 Base64-encoded mask image.10327 Base64-encoded mask image.

10182 10328 

10183 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`10329 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

10184 10330 

10185 The image generation model to use. One of `gpt-image-1`,10331 The image generation model to use. One of `gpt-image-1`,

10186 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,10332 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

10187 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:10333 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

10334 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

10335 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

10188 `gpt-image-1`.10336 `gpt-image-1`.

10189 10337 

10190 - `string`10338 - `string`

10191 10339 

10192 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`10340 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

10193 10341 

10194 The image generation model to use. One of `gpt-image-1`,10342 The image generation model to use. One of `gpt-image-1`,

10195 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,10343 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

10196 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:10344 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

10345 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

10346 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

10197 `gpt-image-1`.10347 `gpt-image-1`.

10198 10348 

10199 - `"gpt-image-1"`10349 - `"gpt-image-1"`


10206 10356 

10207 - `"gpt-image-2-2026-04-21"`10357 - `"gpt-image-2-2026-04-21"`

10208 10358 

10359 - `"gpt-image-2.5-sunburst"`

10360 

10361 - `"gpt-image-2.5-sunburst-2026-09-08"`

10362 

10363 - `"gpt-image-2.5-flare"`

10364 

10365 - `"gpt-image-2.5-flare-2026-09-08"`

10366 

10209 - `moderation: optional "auto" or "low"`10367 - `moderation: optional "auto" or "low"`

10210 10368 

10211 Moderation level for the generated image. Default: `auto`.10369 Moderation level for the generated image. Default: `auto`.


10233 10391 

10234 Number of partial images to generate in streaming mode, from 0 (default value) to 3.10392 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

10235 10393 

10236 - `quality: optional "low" or "medium" or "high" or "auto"`10394 - `quality: optional "low" or "medium" or "high" or 3 more`

10237 10395 

10238 The quality of the generated image. One of `low`, `medium`, `high`,10396 The quality of the generated image. The GPT image models support `low`,

10239 or `auto`. Default: `auto`.10397 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

10398 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

10399 Default: `auto`.

10240 10400 

10241 - `"low"`10401 - `"low"`

10242 10402 


10244 10404 

10245 - `"high"`10405 - `"high"`

10246 10406 

10407 - `"xhigh"`

10408 

10409 - `"max"`

10410 

10247 - `"auto"`10411 - `"auto"`

10248 10412 

10249 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`10413 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

10250 10414 

10251 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`.10415 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`.

10252 10416 

10253 - `string`10417 - `string`

10254 10418 

10255 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`10419 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

10256 10420 

10257 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`.10421 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`.

10258 10422 

10259 - `"1024x1024"`10423 - `"1024x1024"`

10260 10424 


10302 10466 

10303 - `Custom object { name, type, allowed_callers, 4 more }`10467 - `Custom object { name, type, allowed_callers, 4 more }`

10304 10468 

10305 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)10469 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

10306 10470 

10307 - `name: string`10471 - `name: string`

10308 10472 


10424 10588 

10425 - `Custom object { name, type, allowed_callers, 4 more }`10589 - `Custom object { name, type, allowed_callers, 4 more }`

10426 10590 

10427 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)10591 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

10428 10592 

10429 - `name: string`10593 - `name: string`

10430 10594 


10526 10690 

10527 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`10691 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

10528 10692 

10529 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).10693 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).

10530 10694 

10531 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`10695 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

10532 10696 


10608 - `background: optional boolean or null`10772 - `background: optional boolean or null`

10609 10773 

10610 Whether to run the model response in the background.10774 Whether to run the model response in the background.

10611 [Learn more](/docs/guides/background).10775 [Learn more](/api/docs/guides/background).

10612 10776 

10613 - `completed_at: optional number or null`10777 - `completed_at: optional number or null`

10614 10778 


10625 10789 

10626 - `max_output_tokens: optional number or null`10790 - `max_output_tokens: optional number or null`

10627 10791 

10628 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).10792 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).

10629 10793 

10630 - `max_tool_calls: optional number or null`10794 - `max_tool_calls: optional number or null`

10631 10795 


10757 10921 

10758 The unique ID of the previous response to the model. Use this to10922 The unique ID of the previous response to the model. Use this to

10759 create multi-turn conversations. Learn more about10923 create multi-turn conversations. Learn more about

10760 [conversation state](/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.10924 [conversation state](/api/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.

10761 10925 

10762 - `prompt: optional BetaResponsePrompt or null`10926 - `prompt: optional BetaResponsePrompt or null`

10763 10927 

10764 Reference to a prompt template and its variables.10928 Reference to a prompt template and its variables.

10765 [Learn more](/docs/guides/text?api-mode=responses#reusable-prompts).10929 [Learn more](/api/docs/guides/text?api-mode=responses#version-prompts-in-code).

10766 10930 

10767 - `id: string`10931 - `id: string`

10768 10932 


10782 10946 

10783 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`10947 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`

10784 10948 

10785 An image input to the model. Learn about [image inputs](/docs/guides/vision).10949 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

10786 10950 

10787 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`10951 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`

10788 10952 


10852 11016 

10853 - `prompt_cache_key: optional string or null`11017 - `prompt_cache_key: optional string or null`

10854 11018 

10855 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).11019 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).

10856 11020 

10857 - `prompt_cache_options: optional object { mode, ttl, comparison_response_id }`11021 - `prompt_cache_options: optional object { mode, ttl, comparison_response_id }`

10858 11022 


10880 11044 

10881 Deprecated. Use `prompt_cache_options.ttl` instead.11045 Deprecated. Use `prompt_cache_options.ttl` instead.

10882 11046 

10883 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).11047 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).

10884 This field expresses a maximum retention policy, while11048 This field expresses a maximum retention policy, while

10885 `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two11049 `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two

10886 fields are independent and do not interact.11050 fields are independent and do not interact.


10898 - `reasoning: optional object { context, effort, generate_summary, 2 more } or null`11062 - `reasoning: optional object { context, effort, generate_summary, 2 more } or null`

10899 11063 

10900 Configuration options for11064 Configuration options for

10901 [reasoning models](https://platform.openai.com/docs/guides/reasoning).11065 [reasoning models](/api/docs/guides/reasoning).

10902 11066 

10903 - `context: optional "auto" or "current_turn" or "all_turns" or null`11067 - `context: optional "auto" or "current_turn" or "all_turns" or null`

10904 11068 


10923 Reducing reasoning effort can result in faster responses and fewer tokens11087 Reducing reasoning effort can result in faster responses and fewer tokens

10924 used on reasoning in a response. Not all reasoning models support every11088 used on reasoning in a response. Not all reasoning models support every

10925 value. See the11089 value. See the

10926 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)11090 [reasoning guide](/api/docs/guides/reasoning)

10927 for model-specific support.11091 for model-specific support.

10928 11092 

10929 - `"none"`11093 - `"none"`


10989 - `safety_identifier: optional string or null`11153 - `safety_identifier: optional string or null`

10990 11154 

10991 A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.11155 A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.

10992 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).11156 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).

10993 11157 

10994 - `service_tier: optional BetaServiceTier or null`11158 - `service_tier: optional BetaServiceTier or null`

10995 11159 


10997 11161 

10998 - 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'.11162 - 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'.

10999 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.11163 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.

11000 - If set to '[flex](/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.11164 - If set to '[flex](/api/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.

11001 - 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.11165 - 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.

11002 - 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`.11166 - 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`.

11003 - When not set, the default behavior is 'auto'.11167 - When not set, the default behavior is 'auto'.


11040 Configuration options for a text response from the model. Can be plain11204 Configuration options for a text response from the model. Can be plain

11041 text or structured JSON data. Learn more:11205 text or structured JSON data. Learn more:

11042 11206 

11043 - [Text inputs and outputs](/docs/guides/text)11207 - [Text inputs and outputs](/api/docs/guides/text)

11044 - [Structured Outputs](/docs/guides/structured-outputs)11208 - [Structured Outputs](/api/docs/guides/structured-outputs)

11045 11209 

11046 - `format: optional BetaResponseFormatTextConfig`11210 - `format: optional BetaResponseFormatTextConfig`

11047 11211 


11049 11213 

11050 Configuring `{ "type": "json_schema" }` enables Structured Outputs,11214 Configuring `{ "type": "json_schema" }` enables Structured Outputs,

11051 which ensures the model will match your supplied JSON schema. Learn more in the11215 which ensures the model will match your supplied JSON schema. Learn more in the

11052 [Structured Outputs guide](/docs/guides/structured-outputs).11216 [Structured Outputs guide](/api/docs/guides/structured-outputs).

11053 11217 

11054 The default format is `{ "type": "text" }` with no additional options.11218 The default format is `{ "type": "text" }` with no additional options.

11055 11219 


11072 - `BetaResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`11236 - `BetaResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`

11073 11237 

11074 JSON Schema response format. Used to generate structured JSON responses.11238 JSON Schema response format. Used to generate structured JSON responses.

11075 Learn more about [Structured Outputs](/docs/guides/structured-outputs).11239 Learn more about [Structured Outputs](/api/docs/guides/structured-outputs).

11076 11240 

11077 - `name: string`11241 - `name: string`

11078 11242 


11101 If set to true, the model will always follow the exact schema defined11265 If set to true, the model will always follow the exact schema defined

11102 in the `schema` field. Only a subset of JSON Schema is supported when11266 in the `schema` field. Only a subset of JSON Schema is supported when

11103 `strict` is `true`. To learn more, read the [Structured Outputs11267 `strict` is `true`. To learn more, read the [Structured Outputs

11104 guide](/docs/guides/structured-outputs).11268 guide](/api/docs/guides/structured-outputs).

11105 11269 

11106 - `JSONObject object { type }`11270 - `JSONObject object { type }`

11107 11271 


11170 - `cached_tokens: number`11334 - `cached_tokens: number`

11171 11335 

11172 The number of tokens that were retrieved from the cache.11336 The number of tokens that were retrieved from the cache.

11173 [More on prompt caching](/docs/guides/prompt-caching).11337 [More on prompt caching](/api/docs/guides/prompt-caching).

11174 11338 

11175 - `output_tokens: number`11339 - `output_tokens: number`

11176 11340 


11192 11356 

11193 This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.11357 This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.

11194 A stable identifier for your end-users.11358 A stable identifier for your end-users.

11195 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).11359 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).

11196 11360 

11197### Example11361### Example

11198 11362 

Details

104 104 

105 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`105 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`

106 106 

107 An image input to the model. Learn about [image inputs](/docs/guides/vision).107 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

108 108 

109 - `detail: BetaImageDetail`109 - `detail: BetaImageDetail`

110 110 


423 - `FileSearchCall object { id, queries, status, 3 more }`423 - `FileSearchCall object { id, queries, status, 3 more }`

424 424 

425 The results of a file search tool call. See the425 The results of a file search tool call. See the

426 [file search guide](/docs/guides/tools-file-search) for more information.426 [file search guide](/api/docs/guides/tools-file-search) for more information.

427 427 

428 - `id: string`428 - `id: string`

429 429 


499 - `ComputerCall object { id, call_id, pending_safety_checks, 5 more }`499 - `ComputerCall object { id, call_id, pending_safety_checks, 5 more }`

500 500 

501 A tool call to a computer use tool. See the501 A tool call to a computer use tool. See the

502 [computer use guide](/docs/guides/tools-computer-use) for more information.502 [computer use guide](/api/docs/guides/tools-computer-use) for more information.

503 503 

504 - `id: string`504 - `id: string`

505 505 


866 - `WebSearchCall object { id, action, status, 2 more }`866 - `WebSearchCall object { id, action, status, 2 more }`

867 867 

868 The results of a web search tool call. See the868 The results of a web search tool call. See the

869 [web search guide](/docs/guides/tools-web-search) for more information.869 [web search guide](/api/docs/guides/tools-web-search) for more information.

870 870 

871 - `id: string`871 - `id: string`

872 872 


1069 1069 

1070 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`1070 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`

1071 1071 

1072 An image input to the model. Learn about [image inputs](/docs/guides/vision).1072 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

1073 1073 

1074 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`1074 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`

1075 1075 


1206 1206 

1207 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`1207 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`

1208 1208 

1209 An image input to the model. Learn about [image inputs](/docs/guides/vision).1209 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

1210 1210 

1211 - `ComputerScreenshot object { detail, file_id, image_url, 2 more }`1211 - `ComputerScreenshot object { detail, file_id, image_url, 2 more }`

1212 1212 


1462 1462 

1463 - `Function object { name, parameters, strict, 6 more }`1463 - `Function object { name, parameters, strict, 6 more }`

1464 1464 

1465 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).1465 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

1466 1466 

1467 - `name: string`1467 - `name: string`

1468 1468 


1506 1506 

1507 - `FileSearch object { type, vector_store_ids, filters, 2 more }`1507 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

1508 1508 

1509 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).1509 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

1510 1510 

1511 - `type: "file_search"`1511 - `type: "file_search"`

1512 1512 


1680 1680 

1681 - `Computer object { type }`1681 - `Computer object { type }`

1682 1682 

1683 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1683 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1684 1684 

1685 - `type: "computer"`1685 - `type: "computer"`

1686 1686 


1690 1690 

1691 - `ComputerUsePreview object { display_height, display_width, environment, type }`1691 - `ComputerUsePreview object { display_height, display_width, environment, type }`

1692 1692 

1693 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1693 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1694 1694 

1695 - `display_height: number`1695 - `display_height: number`

1696 1696 


1723 - `WebSearch object { type, external_web_access, filters, 2 more }`1723 - `WebSearch object { type, external_web_access, filters, 2 more }`

1724 1724 

1725 Search the Internet for sources related to the prompt. Learn more about the1725 Search the Internet for sources related to the prompt. Learn more about the

1726 [web search tool](/docs/guides/tools-web-search).1726 [web search tool](/api/docs/guides/tools-web-search).

1727 1727 

1728 - `type: "web_search" or "web_search_2025_08_26"`1728 - `type: "web_search" or "web_search_2025_08_26"`

1729 1729 


1787 - `Mcp object { server_label, type, allowed_callers, 9 more }`1787 - `Mcp object { server_label, type, allowed_callers, 9 more }`

1788 1788 

1789 Give the model access to additional tools via remote Model Context Protocol1789 Give the model access to additional tools via remote Model Context Protocol

1790 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).1790 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

1791 1791 

1792 - `server_label: string`1792 - `server_label: string`

1793 1793 


1839 1839 

1840 Identifier for service connectors, like those available in ChatGPT. One of1840 Identifier for service connectors, like those available in ChatGPT. One of

1841 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more1841 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

1842 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).1842 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

1843 1843 

1844 Currently supported `connector_id` values are:1844 Currently supported `connector_id` values are:

1845 1845 


2063 2063 

2064 - `background: optional "transparent" or "opaque" or "auto"`2064 - `background: optional "transparent" or "opaque" or "auto"`

2065 2065 

2066 Set the background of the generated image. One of `transparent`,2066 Set the background of the generated image. One of `transparent`, `opaque`,

2067 `opaque`, or `auto`. Transparent backgrounds are available for2067 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

2068 supported GPT Image models. For `gpt-image-2` and2068 their `2026-09-08` snapshots, support `opaque` and `transparent`

2069 `gpt-image-2-2026-04-21`, this support is in preview. When using2069 backgrounds. Transparent backgrounds are available for supported GPT Image

2070 `transparent`, set the output format to `png` or `webp`. Default: `auto`.2070 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

2071 preview. When using `transparent`, set the output format to `png` or `webp`.

2072 Default: `auto`.

2071 2073 

2072 - `"transparent"`2074 - `"transparent"`

2073 2075 


2096 2098 

2097 Base64-encoded mask image.2099 Base64-encoded mask image.

2098 2100 

2099 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2101 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2100 2102 

2101 The image generation model to use. One of `gpt-image-1`,2103 The image generation model to use. One of `gpt-image-1`,

2102 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2104 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2103 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2105 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2106 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2107 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2104 `gpt-image-1`.2108 `gpt-image-1`.

2105 2109 

2106 - `string`2110 - `string`

2107 2111 

2108 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2112 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2109 2113 

2110 The image generation model to use. One of `gpt-image-1`,2114 The image generation model to use. One of `gpt-image-1`,

2111 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2115 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2112 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2116 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2117 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2118 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2113 `gpt-image-1`.2119 `gpt-image-1`.

2114 2120 

2115 - `"gpt-image-1"`2121 - `"gpt-image-1"`


2122 2128 

2123 - `"gpt-image-2-2026-04-21"`2129 - `"gpt-image-2-2026-04-21"`

2124 2130 

2131 - `"gpt-image-2.5-sunburst"`

2132 

2133 - `"gpt-image-2.5-sunburst-2026-09-08"`

2134 

2135 - `"gpt-image-2.5-flare"`

2136 

2137 - `"gpt-image-2.5-flare-2026-09-08"`

2138 

2125 - `moderation: optional "auto" or "low"`2139 - `moderation: optional "auto" or "low"`

2126 2140 

2127 Moderation level for the generated image. Default: `auto`.2141 Moderation level for the generated image. Default: `auto`.


2149 2163 

2150 Number of partial images to generate in streaming mode, from 0 (default value) to 3.2164 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

2151 2165 

2152 - `quality: optional "low" or "medium" or "high" or "auto"`2166 - `quality: optional "low" or "medium" or "high" or 3 more`

2153 2167 

2154 The quality of the generated image. One of `low`, `medium`, `high`,2168 The quality of the generated image. The GPT image models support `low`,

2155 or `auto`. Default: `auto`.2169 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

2170 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

2171 Default: `auto`.

2156 2172 

2157 - `"low"`2173 - `"low"`

2158 2174 


2160 2176 

2161 - `"high"`2177 - `"high"`

2162 2178 

2179 - `"xhigh"`

2180 

2181 - `"max"`

2182 

2163 - `"auto"`2183 - `"auto"`

2164 2184 

2165 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`2185 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2166 2186 

2167 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`.2187 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`.

2168 2188 

2169 - `string`2189 - `string`

2170 2190 

2171 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`2191 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2172 2192 

2173 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`.2193 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`.

2174 2194 

2175 - `"1024x1024"`2195 - `"1024x1024"`

2176 2196 


2336 2356 

2337 - `Custom object { name, type, allowed_callers, 4 more }`2357 - `Custom object { name, type, allowed_callers, 4 more }`

2338 2358 

2339 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2359 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2340 2360 

2341 - `name: string`2361 - `name: string`

2342 2362 


2458 2478 

2459 - `Custom object { name, type, allowed_callers, 4 more }`2479 - `Custom object { name, type, allowed_callers, 4 more }`

2460 2480 

2461 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2481 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2462 2482 

2463 - `name: string`2483 - `name: string`

2464 2484 


2560 2580 

2561 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`2581 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

2562 2582 

2563 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).2583 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).

2564 2584 

2565 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`2585 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

2566 2586 


2680 2700 

2681 - `Function object { name, parameters, strict, 6 more }`2701 - `Function object { name, parameters, strict, 6 more }`

2682 2702 

2683 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).2703 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

2684 2704 

2685 - `name: string`2705 - `name: string`

2686 2706 


2724 2744 

2725 - `FileSearch object { type, vector_store_ids, filters, 2 more }`2745 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

2726 2746 

2727 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).2747 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

2728 2748 

2729 - `type: "file_search"`2749 - `type: "file_search"`

2730 2750 


2898 2918 

2899 - `Computer object { type }`2919 - `Computer object { type }`

2900 2920 

2901 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).2921 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

2902 2922 

2903 - `type: "computer"`2923 - `type: "computer"`

2904 2924 


2908 2928 

2909 - `ComputerUsePreview object { display_height, display_width, environment, type }`2929 - `ComputerUsePreview object { display_height, display_width, environment, type }`

2910 2930 

2911 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).2931 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

2912 2932 

2913 - `display_height: number`2933 - `display_height: number`

2914 2934 


2941 - `WebSearch object { type, external_web_access, filters, 2 more }`2961 - `WebSearch object { type, external_web_access, filters, 2 more }`

2942 2962 

2943 Search the Internet for sources related to the prompt. Learn more about the2963 Search the Internet for sources related to the prompt. Learn more about the

2944 [web search tool](/docs/guides/tools-web-search).2964 [web search tool](/api/docs/guides/tools-web-search).

2945 2965 

2946 - `type: "web_search" or "web_search_2025_08_26"`2966 - `type: "web_search" or "web_search_2025_08_26"`

2947 2967 


3005 - `Mcp object { server_label, type, allowed_callers, 9 more }`3025 - `Mcp object { server_label, type, allowed_callers, 9 more }`

3006 3026 

3007 Give the model access to additional tools via remote Model Context Protocol3027 Give the model access to additional tools via remote Model Context Protocol

3008 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).3028 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

3009 3029 

3010 - `server_label: string`3030 - `server_label: string`

3011 3031 


3057 3077 

3058 Identifier for service connectors, like those available in ChatGPT. One of3078 Identifier for service connectors, like those available in ChatGPT. One of

3059 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more3079 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

3060 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).3080 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

3061 3081 

3062 Currently supported `connector_id` values are:3082 Currently supported `connector_id` values are:

3063 3083 


3249 3269 

3250 - `background: optional "transparent" or "opaque" or "auto"`3270 - `background: optional "transparent" or "opaque" or "auto"`

3251 3271 

3252 Set the background of the generated image. One of `transparent`,3272 Set the background of the generated image. One of `transparent`, `opaque`,

3253 `opaque`, or `auto`. Transparent backgrounds are available for3273 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

3254 supported GPT Image models. For `gpt-image-2` and3274 their `2026-09-08` snapshots, support `opaque` and `transparent`

3255 `gpt-image-2-2026-04-21`, this support is in preview. When using3275 backgrounds. Transparent backgrounds are available for supported GPT Image

3256 `transparent`, set the output format to `png` or `webp`. Default: `auto`.3276 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

3277 preview. When using `transparent`, set the output format to `png` or `webp`.

3278 Default: `auto`.

3257 3279 

3258 - `"transparent"`3280 - `"transparent"`

3259 3281 


3282 3304 

3283 Base64-encoded mask image.3305 Base64-encoded mask image.

3284 3306 

3285 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`3307 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

3286 3308 

3287 The image generation model to use. One of `gpt-image-1`,3309 The image generation model to use. One of `gpt-image-1`,

3288 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,3310 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

3289 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:3311 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3312 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3313 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

3290 `gpt-image-1`.3314 `gpt-image-1`.

3291 3315 

3292 - `string`3316 - `string`

3293 3317 

3294 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`3318 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

3295 3319 

3296 The image generation model to use. One of `gpt-image-1`,3320 The image generation model to use. One of `gpt-image-1`,

3297 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,3321 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

3298 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:3322 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3323 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3324 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

3299 `gpt-image-1`.3325 `gpt-image-1`.

3300 3326 

3301 - `"gpt-image-1"`3327 - `"gpt-image-1"`


3308 3334 

3309 - `"gpt-image-2-2026-04-21"`3335 - `"gpt-image-2-2026-04-21"`

3310 3336 

3337 - `"gpt-image-2.5-sunburst"`

3338 

3339 - `"gpt-image-2.5-sunburst-2026-09-08"`

3340 

3341 - `"gpt-image-2.5-flare"`

3342 

3343 - `"gpt-image-2.5-flare-2026-09-08"`

3344 

3311 - `moderation: optional "auto" or "low"`3345 - `moderation: optional "auto" or "low"`

3312 3346 

3313 Moderation level for the generated image. Default: `auto`.3347 Moderation level for the generated image. Default: `auto`.


3335 3369 

3336 Number of partial images to generate in streaming mode, from 0 (default value) to 3.3370 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

3337 3371 

3338 - `quality: optional "low" or "medium" or "high" or "auto"`3372 - `quality: optional "low" or "medium" or "high" or 3 more`

3339 3373 

3340 The quality of the generated image. One of `low`, `medium`, `high`,3374 The quality of the generated image. The GPT image models support `low`,

3341 or `auto`. Default: `auto`.3375 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

3376 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

3377 Default: `auto`.

3342 3378 

3343 - `"low"`3379 - `"low"`

3344 3380 


3346 3382 

3347 - `"high"`3383 - `"high"`

3348 3384 

3385 - `"xhigh"`

3386 

3387 - `"max"`

3388 

3349 - `"auto"`3389 - `"auto"`

3350 3390 

3351 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`3391 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

3352 3392 

3353 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`.3393 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`.

3354 3394 

3355 - `string`3395 - `string`

3356 3396 

3357 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`3397 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

3358 3398 

3359 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`.3399 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`.

3360 3400 

3361 - `"1024x1024"`3401 - `"1024x1024"`

3362 3402 


3404 3444 

3405 - `Custom object { name, type, allowed_callers, 4 more }`3445 - `Custom object { name, type, allowed_callers, 4 more }`

3406 3446 

3407 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3447 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

3408 3448 

3409 - `name: string`3449 - `name: string`

3410 3450 


3526 3566 

3527 - `Custom object { name, type, allowed_callers, 4 more }`3567 - `Custom object { name, type, allowed_callers, 4 more }`

3528 3568 

3529 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3569 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

3530 3570 

3531 - `name: string`3571 - `name: string`

3532 3572 


3628 3668 

3629 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`3669 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

3630 3670 

3631 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).3671 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).

3632 3672 

3633 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`3673 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

3634 3674 


3763 A description of the chain of thought used by a reasoning model while generating3803 A description of the chain of thought used by a reasoning model while generating

3764 a response. Be sure to include these items in your `input` to the Responses API3804 a response. Be sure to include these items in your `input` to the Responses API

3765 for subsequent turns of a conversation if you are manually3805 for subsequent turns of a conversation if you are manually

3766 [managing context](/docs/guides/conversation-state).3806 [managing context](/api/docs/guides/conversation-state).

3767 3807 

3768 - `id: string`3808 - `id: string`

3769 3809 


3904 3944 

3905 - `Compaction object { id, encrypted_content, type, 2 more }`3945 - `Compaction object { id, encrypted_content, type, 2 more }`

3906 3946 

3907 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).3947 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).

3908 3948 

3909 - `id: string`3949 - `id: string`

3910 3950 


3932 3972 

3933 The identifier of the actor that created the item.3973 The identifier of the actor that created the item.

3934 3974 

3935 - `ImageGenerationCall object { id, result, status, 2 more }`3975 - `ImageGenerationCall object { id, result, status, 4 more }`

3936 3976 

3937 An image generation request made by the model.3977 An image generation request made by the model.

3938 3978 


3970 4010 

3971 The canonical name of the agent that produced this item.4011 The canonical name of the agent that produced this item.

3972 4012 

4013 - `quality: optional "low" or "medium" or "high" or 3 more or null`

4014 

4015 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.

4016 

4017 - `"low"`

4018 

4019 - `"medium"`

4020 

4021 - `"high"`

4022 

4023 - `"xhigh"`

4024 

4025 - `"max"`

4026 

4027 - `"auto"`

4028 

4029 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`

4030 

4031 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

4032 

4033 - `string`

4034 

4035 - `"1024x1024" or "1024x1536" or "1536x1024"`

4036 

4037 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

4038 

4039 - `"1024x1024"`

4040 

4041 - `"1024x1536"`

4042 

4043 - `"1536x1024"`

4044 

3973 - `CodeInterpreterCall object { id, code, container_id, 4 more }`4045 - `CodeInterpreterCall object { id, code, container_id, 4 more }`

3974 4046 

3975 A tool call to run code.4047 A tool call to run code.


4842 4914 

4843 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`4915 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`

4844 4916 

4845 An image input to the model. Learn about [image inputs](/docs/guides/vision).4917 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

4846 4918 

4847 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`4919 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`

4848 4920 

Details

91 91 

92 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`92 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`

93 93 

94 An image input to the model. Learn about [image inputs](/docs/guides/vision).94 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

95 95 

96 - `detail: BetaImageDetail`96 - `detail: BetaImageDetail`

97 97 


450 - `FileSearchCall object { id, queries, status, 3 more }`450 - `FileSearchCall object { id, queries, status, 3 more }`

451 451 

452 The results of a file search tool call. See the452 The results of a file search tool call. See the

453 [file search guide](/docs/guides/tools-file-search) for more information.453 [file search guide](/api/docs/guides/tools-file-search) for more information.

454 454 

455 - `id: string`455 - `id: string`

456 456 


526 - `ComputerCall object { id, call_id, pending_safety_checks, 5 more }`526 - `ComputerCall object { id, call_id, pending_safety_checks, 5 more }`

527 527 

528 A tool call to a computer use tool. See the528 A tool call to a computer use tool. See the

529 [computer use guide](/docs/guides/tools-computer-use) for more information.529 [computer use guide](/api/docs/guides/tools-computer-use) for more information.

530 530 

531 - `id: string`531 - `id: string`

532 532 


887 - `WebSearchCall object { id, action, status, 2 more }`887 - `WebSearchCall object { id, action, status, 2 more }`

888 888 

889 The results of a web search tool call. See the889 The results of a web search tool call. See the

890 [web search guide](/docs/guides/tools-web-search) for more information.890 [web search guide](/api/docs/guides/tools-web-search) for more information.

891 891 

892 - `id: string`892 - `id: string`

893 893 


993 - `FunctionCall object { arguments, call_id, name, 7 more }`993 - `FunctionCall object { arguments, call_id, name, 7 more }`

994 994 

995 A tool call to run a function. See the995 A tool call to run a function. See the

996 [function calling guide](/docs/guides/function-calling) for more information.996 [function calling guide](/api/docs/guides/function-calling) for more information.

997 997 

998 - `arguments: string`998 - `arguments: string`

999 999 


1106 1106 

1107 - `BetaResponseInputImageContent object { type, detail, file_id, 2 more }`1107 - `BetaResponseInputImageContent object { type, detail, file_id, 2 more }`

1108 1108 

1109 An image input to the model. Learn about [image inputs](/docs/guides/vision)1109 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision)

1110 1110 

1111 - `type: "input_image"`1111 - `type: "input_image"`

1112 1112 


1264 1264 

1265 - `BetaResponseInputImageContent object { type, detail, file_id, 2 more }`1265 - `BetaResponseInputImageContent object { type, detail, file_id, 2 more }`

1266 1266 

1267 An image input to the model. Learn about [image inputs](/docs/guides/vision)1267 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision)

1268 1268 

1269 - `EncryptedContent object { encrypted_content, type }`1269 - `EncryptedContent object { encrypted_content, type }`

1270 1270 


1530 1530 

1531 - `Function object { name, parameters, strict, 6 more }`1531 - `Function object { name, parameters, strict, 6 more }`

1532 1532 

1533 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).1533 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

1534 1534 

1535 - `name: string`1535 - `name: string`

1536 1536 


1574 1574 

1575 - `FileSearch object { type, vector_store_ids, filters, 2 more }`1575 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

1576 1576 

1577 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).1577 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

1578 1578 

1579 - `type: "file_search"`1579 - `type: "file_search"`

1580 1580 


1748 1748 

1749 - `Computer object { type }`1749 - `Computer object { type }`

1750 1750 

1751 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1751 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1752 1752 

1753 - `type: "computer"`1753 - `type: "computer"`

1754 1754 


1758 1758 

1759 - `ComputerUsePreview object { display_height, display_width, environment, type }`1759 - `ComputerUsePreview object { display_height, display_width, environment, type }`

1760 1760 

1761 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1761 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1762 1762 

1763 - `display_height: number`1763 - `display_height: number`

1764 1764 


1791 - `WebSearch object { type, external_web_access, filters, 2 more }`1791 - `WebSearch object { type, external_web_access, filters, 2 more }`

1792 1792 

1793 Search the Internet for sources related to the prompt. Learn more about the1793 Search the Internet for sources related to the prompt. Learn more about the

1794 [web search tool](/docs/guides/tools-web-search).1794 [web search tool](/api/docs/guides/tools-web-search).

1795 1795 

1796 - `type: "web_search" or "web_search_2025_08_26"`1796 - `type: "web_search" or "web_search_2025_08_26"`

1797 1797 


1855 - `Mcp object { server_label, type, allowed_callers, 9 more }`1855 - `Mcp object { server_label, type, allowed_callers, 9 more }`

1856 1856 

1857 Give the model access to additional tools via remote Model Context Protocol1857 Give the model access to additional tools via remote Model Context Protocol

1858 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).1858 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

1859 1859 

1860 - `server_label: string`1860 - `server_label: string`

1861 1861 


1907 1907 

1908 Identifier for service connectors, like those available in ChatGPT. One of1908 Identifier for service connectors, like those available in ChatGPT. One of

1909 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more1909 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

1910 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).1910 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

1911 1911 

1912 Currently supported `connector_id` values are:1912 Currently supported `connector_id` values are:

1913 1913 


2131 2131 

2132 - `background: optional "transparent" or "opaque" or "auto"`2132 - `background: optional "transparent" or "opaque" or "auto"`

2133 2133 

2134 Set the background of the generated image. One of `transparent`,2134 Set the background of the generated image. One of `transparent`, `opaque`,

2135 `opaque`, or `auto`. Transparent backgrounds are available for2135 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

2136 supported GPT Image models. For `gpt-image-2` and2136 their `2026-09-08` snapshots, support `opaque` and `transparent`

2137 `gpt-image-2-2026-04-21`, this support is in preview. When using2137 backgrounds. Transparent backgrounds are available for supported GPT Image

2138 `transparent`, set the output format to `png` or `webp`. Default: `auto`.2138 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

2139 preview. When using `transparent`, set the output format to `png` or `webp`.

2140 Default: `auto`.

2139 2141 

2140 - `"transparent"`2142 - `"transparent"`

2141 2143 


2164 2166 

2165 Base64-encoded mask image.2167 Base64-encoded mask image.

2166 2168 

2167 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2169 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2168 2170 

2169 The image generation model to use. One of `gpt-image-1`,2171 The image generation model to use. One of `gpt-image-1`,

2170 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2172 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2171 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2173 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2174 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2175 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2172 `gpt-image-1`.2176 `gpt-image-1`.

2173 2177 

2174 - `string`2178 - `string`

2175 2179 

2176 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2180 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2177 2181 

2178 The image generation model to use. One of `gpt-image-1`,2182 The image generation model to use. One of `gpt-image-1`,

2179 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2183 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2180 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2184 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2185 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2186 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2181 `gpt-image-1`.2187 `gpt-image-1`.

2182 2188 

2183 - `"gpt-image-1"`2189 - `"gpt-image-1"`


2190 2196 

2191 - `"gpt-image-2-2026-04-21"`2197 - `"gpt-image-2-2026-04-21"`

2192 2198 

2199 - `"gpt-image-2.5-sunburst"`

2200 

2201 - `"gpt-image-2.5-sunburst-2026-09-08"`

2202 

2203 - `"gpt-image-2.5-flare"`

2204 

2205 - `"gpt-image-2.5-flare-2026-09-08"`

2206 

2193 - `moderation: optional "auto" or "low"`2207 - `moderation: optional "auto" or "low"`

2194 2208 

2195 Moderation level for the generated image. Default: `auto`.2209 Moderation level for the generated image. Default: `auto`.


2217 2231 

2218 Number of partial images to generate in streaming mode, from 0 (default value) to 3.2232 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

2219 2233 

2220 - `quality: optional "low" or "medium" or "high" or "auto"`2234 - `quality: optional "low" or "medium" or "high" or 3 more`

2221 2235 

2222 The quality of the generated image. One of `low`, `medium`, `high`,2236 The quality of the generated image. The GPT image models support `low`,

2223 or `auto`. Default: `auto`.2237 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

2238 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

2239 Default: `auto`.

2224 2240 

2225 - `"low"`2241 - `"low"`

2226 2242 


2228 2244 

2229 - `"high"`2245 - `"high"`

2230 2246 

2247 - `"xhigh"`

2248 

2249 - `"max"`

2250 

2231 - `"auto"`2251 - `"auto"`

2232 2252 

2233 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`2253 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2234 2254 

2235 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`.2255 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`.

2236 2256 

2237 - `string`2257 - `string`

2238 2258 

2239 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`2259 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2240 2260 

2241 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`.2261 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`.

2242 2262 

2243 - `"1024x1024"`2263 - `"1024x1024"`

2244 2264 


2404 2424 

2405 - `Custom object { name, type, allowed_callers, 4 more }`2425 - `Custom object { name, type, allowed_callers, 4 more }`

2406 2426 

2407 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2427 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2408 2428 

2409 - `name: string`2429 - `name: string`

2410 2430 


2526 2546 

2527 - `Custom object { name, type, allowed_callers, 4 more }`2547 - `Custom object { name, type, allowed_callers, 4 more }`

2528 2548 

2529 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2549 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2530 2550 

2531 - `name: string`2551 - `name: string`

2532 2552 


2628 2648 

2629 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`2649 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

2630 2650 

2631 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).2651 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).

2632 2652 

2633 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`2653 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

2634 2654 


2752 2772 

2753 - `Function object { name, parameters, strict, 6 more }`2773 - `Function object { name, parameters, strict, 6 more }`

2754 2774 

2755 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).2775 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

2756 2776 

2757 - `name: string`2777 - `name: string`

2758 2778 


2796 2816 

2797 - `FileSearch object { type, vector_store_ids, filters, 2 more }`2817 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

2798 2818 

2799 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).2819 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

2800 2820 

2801 - `type: "file_search"`2821 - `type: "file_search"`

2802 2822 


2970 2990 

2971 - `Computer object { type }`2991 - `Computer object { type }`

2972 2992 

2973 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).2993 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

2974 2994 

2975 - `type: "computer"`2995 - `type: "computer"`

2976 2996 


2980 3000 

2981 - `ComputerUsePreview object { display_height, display_width, environment, type }`3001 - `ComputerUsePreview object { display_height, display_width, environment, type }`

2982 3002 

2983 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).3003 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

2984 3004 

2985 - `display_height: number`3005 - `display_height: number`

2986 3006 


3013 - `WebSearch object { type, external_web_access, filters, 2 more }`3033 - `WebSearch object { type, external_web_access, filters, 2 more }`

3014 3034 

3015 Search the Internet for sources related to the prompt. Learn more about the3035 Search the Internet for sources related to the prompt. Learn more about the

3016 [web search tool](/docs/guides/tools-web-search).3036 [web search tool](/api/docs/guides/tools-web-search).

3017 3037 

3018 - `type: "web_search" or "web_search_2025_08_26"`3038 - `type: "web_search" or "web_search_2025_08_26"`

3019 3039 


3077 - `Mcp object { server_label, type, allowed_callers, 9 more }`3097 - `Mcp object { server_label, type, allowed_callers, 9 more }`

3078 3098 

3079 Give the model access to additional tools via remote Model Context Protocol3099 Give the model access to additional tools via remote Model Context Protocol

3080 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).3100 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

3081 3101 

3082 - `server_label: string`3102 - `server_label: string`

3083 3103 


3129 3149 

3130 Identifier for service connectors, like those available in ChatGPT. One of3150 Identifier for service connectors, like those available in ChatGPT. One of

3131 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more3151 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

3132 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).3152 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

3133 3153 

3134 Currently supported `connector_id` values are:3154 Currently supported `connector_id` values are:

3135 3155 


3321 3341 

3322 - `background: optional "transparent" or "opaque" or "auto"`3342 - `background: optional "transparent" or "opaque" or "auto"`

3323 3343 

3324 Set the background of the generated image. One of `transparent`,3344 Set the background of the generated image. One of `transparent`, `opaque`,

3325 `opaque`, or `auto`. Transparent backgrounds are available for3345 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

3326 supported GPT Image models. For `gpt-image-2` and3346 their `2026-09-08` snapshots, support `opaque` and `transparent`

3327 `gpt-image-2-2026-04-21`, this support is in preview. When using3347 backgrounds. Transparent backgrounds are available for supported GPT Image

3328 `transparent`, set the output format to `png` or `webp`. Default: `auto`.3348 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

3349 preview. When using `transparent`, set the output format to `png` or `webp`.

3350 Default: `auto`.

3329 3351 

3330 - `"transparent"`3352 - `"transparent"`

3331 3353 


3354 3376 

3355 Base64-encoded mask image.3377 Base64-encoded mask image.

3356 3378 

3357 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`3379 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

3358 3380 

3359 The image generation model to use. One of `gpt-image-1`,3381 The image generation model to use. One of `gpt-image-1`,

3360 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,3382 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

3361 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:3383 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3384 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3385 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

3362 `gpt-image-1`.3386 `gpt-image-1`.

3363 3387 

3364 - `string`3388 - `string`

3365 3389 

3366 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`3390 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

3367 3391 

3368 The image generation model to use. One of `gpt-image-1`,3392 The image generation model to use. One of `gpt-image-1`,

3369 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,3393 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

3370 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:3394 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3395 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3396 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

3371 `gpt-image-1`.3397 `gpt-image-1`.

3372 3398 

3373 - `"gpt-image-1"`3399 - `"gpt-image-1"`


3380 3406 

3381 - `"gpt-image-2-2026-04-21"`3407 - `"gpt-image-2-2026-04-21"`

3382 3408 

3409 - `"gpt-image-2.5-sunburst"`

3410 

3411 - `"gpt-image-2.5-sunburst-2026-09-08"`

3412 

3413 - `"gpt-image-2.5-flare"`

3414 

3415 - `"gpt-image-2.5-flare-2026-09-08"`

3416 

3383 - `moderation: optional "auto" or "low"`3417 - `moderation: optional "auto" or "low"`

3384 3418 

3385 Moderation level for the generated image. Default: `auto`.3419 Moderation level for the generated image. Default: `auto`.


3407 3441 

3408 Number of partial images to generate in streaming mode, from 0 (default value) to 3.3442 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

3409 3443 

3410 - `quality: optional "low" or "medium" or "high" or "auto"`3444 - `quality: optional "low" or "medium" or "high" or 3 more`

3411 3445 

3412 The quality of the generated image. One of `low`, `medium`, `high`,3446 The quality of the generated image. The GPT image models support `low`,

3413 or `auto`. Default: `auto`.3447 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

3448 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

3449 Default: `auto`.

3414 3450 

3415 - `"low"`3451 - `"low"`

3416 3452 


3418 3454 

3419 - `"high"`3455 - `"high"`

3420 3456 

3457 - `"xhigh"`

3458 

3459 - `"max"`

3460 

3421 - `"auto"`3461 - `"auto"`

3422 3462 

3423 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`3463 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

3424 3464 

3425 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`.3465 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`.

3426 3466 

3427 - `string`3467 - `string`

3428 3468 

3429 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`3469 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

3430 3470 

3431 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`.3471 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`.

3432 3472 

3433 - `"1024x1024"`3473 - `"1024x1024"`

3434 3474 


3476 3516 

3477 - `Custom object { name, type, allowed_callers, 4 more }`3517 - `Custom object { name, type, allowed_callers, 4 more }`

3478 3518 

3479 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3519 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

3480 3520 

3481 - `name: string`3521 - `name: string`

3482 3522 


3598 3638 

3599 - `Custom object { name, type, allowed_callers, 4 more }`3639 - `Custom object { name, type, allowed_callers, 4 more }`

3600 3640 

3601 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3641 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

3602 3642 

3603 - `name: string`3643 - `name: string`

3604 3644 


3700 3740 

3701 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`3741 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

3702 3742 

3703 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).3743 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).

3704 3744 

3705 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`3745 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

3706 3746 


3840 A description of the chain of thought used by a reasoning model while generating3880 A description of the chain of thought used by a reasoning model while generating

3841 a response. Be sure to include these items in your `input` to the Responses API3881 a response. Be sure to include these items in your `input` to the Responses API

3842 for subsequent turns of a conversation if you are manually3882 for subsequent turns of a conversation if you are manually

3843 [managing context](/docs/guides/conversation-state).3883 [managing context](/api/docs/guides/conversation-state).

3844 3884 

3845 - `id: string`3885 - `id: string`

3846 3886 


3913 3953 

3914 - `Compaction object { encrypted_content, type, id, agent }`3954 - `Compaction object { encrypted_content, type, id, agent }`

3915 3955 

3916 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).3956 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).

3917 3957 

3918 - `encrypted_content: string`3958 - `encrypted_content: string`

3919 3959 


3937 3977 

3938 The canonical name of the agent that produced this item.3978 The canonical name of the agent that produced this item.

3939 3979 

3940 - `ImageGenerationCall object { id, result, status, 2 more }`3980 - `ImageGenerationCall object { id, result, status, 4 more }`

3941 3981 

3942 An image generation request made by the model.3982 An image generation request made by the model.

3943 3983 


3975 4015 

3976 The canonical name of the agent that produced this item.4016 The canonical name of the agent that produced this item.

3977 4017 

4018 - `quality: optional "low" or "medium" or "high" or 3 more or null`

4019 

4020 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.

4021 

4022 - `"low"`

4023 

4024 - `"medium"`

4025 

4026 - `"high"`

4027 

4028 - `"xhigh"`

4029 

4030 - `"max"`

4031 

4032 - `"auto"`

4033 

4034 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`

4035 

4036 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

4037 

4038 - `string`

4039 

4040 - `"1024x1024" or "1024x1536" or "1536x1024"`

4041 

4042 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

4043 

4044 - `"1024x1024"`

4045 

4046 - `"1024x1536"`

4047 

4048 - `"1536x1024"`

4049 

3978 - `CodeInterpreterCall object { id, code, container_id, 4 more }`4050 - `CodeInterpreterCall object { id, code, container_id, 4 more }`

3979 4051 

3980 A tool call to run code.4052 A tool call to run code.


4750 4822 

4751 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`4823 - `BetaResponseInputImage object { detail, type, file_id, 2 more }`

4752 4824 

4753 An image input to the model. Learn about [image inputs](/docs/guides/vision).4825 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

4754 4826 

4755 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`4827 - `BetaResponseInputFile object { type, detail, file_data, 4 more }`

4756 4828 


4979 5051 

4980- `model: optional string or null`5052- `model: optional string or null`

4981 5053 

4982 Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](/docs/models) to browse and compare available models.5054 Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](/api/docs/models) to browse and compare available models.

4983 5055 

4984- `parallel_tool_calls: optional boolean or null`5056- `parallel_tool_calls: optional boolean or null`

4985 5057 


5001 5073 

5002- `previous_response_id: optional string or null`5074- `previous_response_id: optional string or null`

5003 5075 

5004 The unique ID of the previous response to the model. Use this to create multi-turn conversations. Learn more about [conversation state](/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.5076 The unique ID of the previous response to the model. Use this to create multi-turn conversations. Learn more about [conversation state](/api/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.

5005 5077 

5006- `reasoning: optional object { context, effort, generate_summary, 2 more } or null`5078- `reasoning: optional object { context, effort, generate_summary, 2 more } or null`

5007 5079 

5008 **gpt-5 and o-series models only** Configuration options for [reasoning models](https://platform.openai.com/docs/guides/reasoning).5080 **gpt-5 and o-series models only** Configuration options for [reasoning models](/api/docs/guides/reasoning).

5009 5081 

5010 - `context: optional "auto" or "current_turn" or "all_turns" or null`5082 - `context: optional "auto" or "current_turn" or "all_turns" or null`

5011 5083 


5030 Reducing reasoning effort can result in faster responses and fewer tokens5102 Reducing reasoning effort can result in faster responses and fewer tokens

5031 used on reasoning in a response. Not all reasoning models support every5103 used on reasoning in a response. Not all reasoning models support every

5032 value. See the5104 value. See the

5033 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)5105 [reasoning guide](/api/docs/guides/reasoning)

5034 for model-specific support.5106 for model-specific support.

5035 5107 

5036 - `"none"`5108 - `"none"`


5098 Configuration options for a text response from the model. Can be plain5170 Configuration options for a text response from the model. Can be plain

5099 text or structured JSON data. Learn more:5171 text or structured JSON data. Learn more:

5100 5172 

5101 - [Text inputs and outputs](/docs/guides/text)5173 - [Text inputs and outputs](/api/docs/guides/text)

5102 - [Structured Outputs](/docs/guides/structured-outputs)5174 - [Structured Outputs](/api/docs/guides/structured-outputs)

5103 5175 

5104 - `format: optional BetaResponseFormatTextConfig`5176 - `format: optional BetaResponseFormatTextConfig`

5105 5177 


5107 5179 

5108 Configuring `{ "type": "json_schema" }` enables Structured Outputs,5180 Configuring `{ "type": "json_schema" }` enables Structured Outputs,

5109 which ensures the model will match your supplied JSON schema. Learn more in the5181 which ensures the model will match your supplied JSON schema. Learn more in the

5110 [Structured Outputs guide](/docs/guides/structured-outputs).5182 [Structured Outputs guide](/api/docs/guides/structured-outputs).

5111 5183 

5112 The default format is `{ "type": "text" }` with no additional options.5184 The default format is `{ "type": "text" }` with no additional options.

5113 5185 


5130 - `BetaResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`5202 - `BetaResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`

5131 5203 

5132 JSON Schema response format. Used to generate structured JSON responses.5204 JSON Schema response format. Used to generate structured JSON responses.

5133 Learn more about [Structured Outputs](/docs/guides/structured-outputs).5205 Learn more about [Structured Outputs](/api/docs/guides/structured-outputs).

5134 5206 

5135 - `name: string`5207 - `name: string`

5136 5208 


5159 If set to true, the model will always follow the exact schema defined5231 If set to true, the model will always follow the exact schema defined

5160 in the `schema` field. Only a subset of JSON Schema is supported when5232 in the `schema` field. Only a subset of JSON Schema is supported when

5161 `strict` is `true`. To learn more, read the [Structured Outputs5233 `strict` is `true`. To learn more, read the [Structured Outputs

5162 guide](/docs/guides/structured-outputs).5234 guide](/api/docs/guides/structured-outputs).

5163 5235 

5164 - `JSONObject object { type }`5236 - `JSONObject object { type }`

5165 5237 


5248 - `BetaToolChoiceTypes object { type }`5320 - `BetaToolChoiceTypes object { type }`

5249 5321 

5250 Indicates that the model should use a built-in tool to generate a response.5322 Indicates that the model should use a built-in tool to generate a response.

5251 [Learn more about built-in tools](/docs/guides/tools).5323 [Learn more about built-in tools](/api/docs/guides/tools).

5252 5324 

5253 - `type: "file_search" or "web_search_preview" or "computer" or 5 more`5325 - `type: "file_search" or "web_search_preview" or "computer" or 5 more`

5254 5326 

5255 The type of hosted tool the model should to use. Learn more about5327 The type of hosted tool the model should to use. Learn more about

5256 [built-in tools](/docs/guides/tools).5328 [built-in tools](/api/docs/guides/tools).

5257 5329 

5258 Allowed values are:5330 Allowed values are:

5259 5331 


5361 5433 

5362 - `Function object { name, parameters, strict, 6 more }`5434 - `Function object { name, parameters, strict, 6 more }`

5363 5435 

5364 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).5436 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

5365 5437 

5366 - `name: string`5438 - `name: string`

5367 5439 


5405 5477 

5406 - `FileSearch object { type, vector_store_ids, filters, 2 more }`5478 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

5407 5479 

5408 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).5480 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

5409 5481 

5410 - `type: "file_search"`5482 - `type: "file_search"`

5411 5483 


5579 5651 

5580 - `Computer object { type }`5652 - `Computer object { type }`

5581 5653 

5582 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).5654 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

5583 5655 

5584 - `type: "computer"`5656 - `type: "computer"`

5585 5657 


5589 5661 

5590 - `ComputerUsePreview object { display_height, display_width, environment, type }`5662 - `ComputerUsePreview object { display_height, display_width, environment, type }`

5591 5663 

5592 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).5664 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

5593 5665 

5594 - `display_height: number`5666 - `display_height: number`

5595 5667 


5622 - `WebSearch object { type, external_web_access, filters, 2 more }`5694 - `WebSearch object { type, external_web_access, filters, 2 more }`

5623 5695 

5624 Search the Internet for sources related to the prompt. Learn more about the5696 Search the Internet for sources related to the prompt. Learn more about the

5625 [web search tool](/docs/guides/tools-web-search).5697 [web search tool](/api/docs/guides/tools-web-search).

5626 5698 

5627 - `type: "web_search" or "web_search_2025_08_26"`5699 - `type: "web_search" or "web_search_2025_08_26"`

5628 5700 


5686 - `Mcp object { server_label, type, allowed_callers, 9 more }`5758 - `Mcp object { server_label, type, allowed_callers, 9 more }`

5687 5759 

5688 Give the model access to additional tools via remote Model Context Protocol5760 Give the model access to additional tools via remote Model Context Protocol

5689 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).5761 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

5690 5762 

5691 - `server_label: string`5763 - `server_label: string`

5692 5764 


5738 5810 

5739 Identifier for service connectors, like those available in ChatGPT. One of5811 Identifier for service connectors, like those available in ChatGPT. One of

5740 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more5812 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

5741 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).5813 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

5742 5814 

5743 Currently supported `connector_id` values are:5815 Currently supported `connector_id` values are:

5744 5816 


5930 6002 

5931 - `background: optional "transparent" or "opaque" or "auto"`6003 - `background: optional "transparent" or "opaque" or "auto"`

5932 6004 

5933 Set the background of the generated image. One of `transparent`,6005 Set the background of the generated image. One of `transparent`, `opaque`,

5934 `opaque`, or `auto`. Transparent backgrounds are available for6006 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

5935 supported GPT Image models. For `gpt-image-2` and6007 their `2026-09-08` snapshots, support `opaque` and `transparent`

5936 `gpt-image-2-2026-04-21`, this support is in preview. When using6008 backgrounds. Transparent backgrounds are available for supported GPT Image

5937 `transparent`, set the output format to `png` or `webp`. Default: `auto`.6009 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

6010 preview. When using `transparent`, set the output format to `png` or `webp`.

6011 Default: `auto`.

5938 6012 

5939 - `"transparent"`6013 - `"transparent"`

5940 6014 


5963 6037 

5964 Base64-encoded mask image.6038 Base64-encoded mask image.

5965 6039 

5966 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`6040 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

5967 6041 

5968 The image generation model to use. One of `gpt-image-1`,6042 The image generation model to use. One of `gpt-image-1`,

5969 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,6043 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

5970 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:6044 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6045 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6046 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

5971 `gpt-image-1`.6047 `gpt-image-1`.

5972 6048 

5973 - `string`6049 - `string`

5974 6050 

5975 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`6051 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

5976 6052 

5977 The image generation model to use. One of `gpt-image-1`,6053 The image generation model to use. One of `gpt-image-1`,

5978 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,6054 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

5979 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:6055 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6056 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6057 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

5980 `gpt-image-1`.6058 `gpt-image-1`.

5981 6059 

5982 - `"gpt-image-1"`6060 - `"gpt-image-1"`


5989 6067 

5990 - `"gpt-image-2-2026-04-21"`6068 - `"gpt-image-2-2026-04-21"`

5991 6069 

6070 - `"gpt-image-2.5-sunburst"`

6071 

6072 - `"gpt-image-2.5-sunburst-2026-09-08"`

6073 

6074 - `"gpt-image-2.5-flare"`

6075 

6076 - `"gpt-image-2.5-flare-2026-09-08"`

6077 

5992 - `moderation: optional "auto" or "low"`6078 - `moderation: optional "auto" or "low"`

5993 6079 

5994 Moderation level for the generated image. Default: `auto`.6080 Moderation level for the generated image. Default: `auto`.


6016 6102 

6017 Number of partial images to generate in streaming mode, from 0 (default value) to 3.6103 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

6018 6104 

6019 - `quality: optional "low" or "medium" or "high" or "auto"`6105 - `quality: optional "low" or "medium" or "high" or 3 more`

6020 6106 

6021 The quality of the generated image. One of `low`, `medium`, `high`,6107 The quality of the generated image. The GPT image models support `low`,

6022 or `auto`. Default: `auto`.6108 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

6109 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

6110 Default: `auto`.

6023 6111 

6024 - `"low"`6112 - `"low"`

6025 6113 


6027 6115 

6028 - `"high"`6116 - `"high"`

6029 6117 

6118 - `"xhigh"`

6119 

6120 - `"max"`

6121 

6030 - `"auto"`6122 - `"auto"`

6031 6123 

6032 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`6124 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

6033 6125 

6034 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`.6126 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`.

6035 6127 

6036 - `string`6128 - `string`

6037 6129 

6038 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`6130 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

6039 6131 

6040 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`.6132 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`.

6041 6133 

6042 - `"1024x1024"`6134 - `"1024x1024"`

6043 6135 


6085 6177 

6086 - `Custom object { name, type, allowed_callers, 4 more }`6178 - `Custom object { name, type, allowed_callers, 4 more }`

6087 6179 

6088 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)6180 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

6089 6181 

6090 - `name: string`6182 - `name: string`

6091 6183 


6207 6299 

6208 - `Custom object { name, type, allowed_callers, 4 more }`6300 - `Custom object { name, type, allowed_callers, 4 more }`

6209 6301 

6210 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)6302 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

6211 6303 

6212 - `name: string`6304 - `name: string`

6213 6305 


6309 6401 

6310 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`6402 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

6311 6403 

6312 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).6404 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).

6313 6405 

6314 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`6406 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

6315 6407 

Details

2 2 

3**post** `/chat/completions`3**post** `/chat/completions`

4 4 

5**Starting a new project?** We recommend trying [Responses](/docs/api-reference/responses)5**Starting a new project?** We recommend trying [Responses](/api/reference/resources/responses)

6to take advantage of the latest OpenAI platform features. Compare6to take advantage of the latest OpenAI platform features. Compare

7[Chat Completions with Responses](/docs/guides/responses-vs-chat-completions?api-mode=responses).7[Chat Completions with Responses](/api/docs/guides/migrate-to-responses?api-mode=responses).

8 8 

9---9---

10 10 

11Creates a model response for the given chat conversation. Learn more in the11Creates a model response for the given chat conversation. Learn more in the

12[text generation](/docs/guides/text-generation), [vision](/docs/guides/vision),12[text generation](/api/docs/guides/text), [vision](/api/docs/guides/images-vision),

13and [audio](/docs/guides/audio) guides.13and [audio](/api/docs/guides/audio) guides.

14 14 

15Parameter support can differ depending on the model used to generate the15Parameter support can differ depending on the model used to generate the

16response, particularly for newer reasoning models. Parameters that are only16response, particularly for newer reasoning models. Parameters that are only

17supported for reasoning models are noted below. For the current state of17supported for reasoning models are noted below. For the current state of

18unsupported parameters in reasoning models,18unsupported parameters in reasoning models,

19[refer to the reasoning guide](/docs/guides/reasoning).19[refer to the reasoning guide](/api/docs/guides/reasoning).

20 20 

21Returns a chat completion object, or a streamed sequence of chat completion21Returns a chat completion object, or a streamed sequence of chat completion

22chunk objects if the request is streamed.22chunk objects if the request is streamed.


26- `messages: array of ChatCompletionMessageParam`26- `messages: array of ChatCompletionMessageParam`

27 27 

28 A list of messages comprising the conversation so far. Depending on the28 A list of messages comprising the conversation so far. Depending on the

29 [model](/docs/models) you use, different message types (modalities) are29 [model](/api/docs/models) you use, different message types (modalities) are

30 supported, like [text](/docs/guides/text-generation),30 supported, like [text](/api/docs/guides/text),

31 [images](/docs/guides/vision), and [audio](/docs/guides/audio).31 [images](/api/docs/guides/images-vision), and [audio](/api/docs/guides/audio).

32 32 

33 - `ChatCompletionDeveloperMessageParam object { content, role, name }`33 - `ChatCompletionDeveloperMessageParam object { content, role, name }`

34 34 


133 133 

134 - `ArrayOfContentParts = array of ChatCompletionContentPart`134 - `ArrayOfContentParts = array of ChatCompletionContentPart`

135 135 

136 An array of content parts with a defined type. Supported options differ based on the [model](/docs/models) being used to generate the response. Can contain text, image, or audio inputs.136 An array of content parts with a defined type. Supported options differ based on the [model](/api/docs/models) being used to generate the response. Can contain text, image, or audio inputs.

137 137 

138 - `ChatCompletionContentPartText object { text, type, prompt_cache_breakpoint }`138 - `ChatCompletionContentPartText object { text, type, prompt_cache_breakpoint }`

139 139 

140 Learn about [text inputs](/docs/guides/text-generation).140 Learn about [text inputs](/api/docs/guides/text).

141 141 

142 - `text: string`142 - `text: string`

143 143 


153 153 

154 - `ChatCompletionContentPartImage object { image_url, type, prompt_cache_breakpoint }`154 - `ChatCompletionContentPartImage object { image_url, type, prompt_cache_breakpoint }`

155 155 

156 Learn about [image inputs](/docs/guides/vision).156 Learn about [image inputs](/api/docs/guides/images-vision).

157 157 

158 - `image_url: object { url, detail }`158 - `image_url: object { url, detail }`

159 159 


163 163 

164 - `detail: optional "auto" or "low" or "high"`164 - `detail: optional "auto" or "low" or "high"`

165 165 

166 Specifies the detail level of the image. Learn more in the [Vision guide](/docs/guides/vision#low-or-high-fidelity-image-understanding).166 Specifies the detail level of the image. Learn more in the [Vision guide](/api/docs/guides/images-vision#choose-an-image-detail-level).

167 167 

168 - `"auto"`168 - `"auto"`

169 169 


189 189 

190 - `ChatCompletionContentPartInputAudio object { input_audio, type, prompt_cache_breakpoint }`190 - `ChatCompletionContentPartInputAudio object { input_audio, type, prompt_cache_breakpoint }`

191 191 

192 Learn about [audio inputs](/docs/guides/audio).192 Learn about [audio inputs](/api/docs/guides/audio).

193 193 

194 - `input_audio: object { data, format }`194 - `input_audio: object { data, format }`

195 195 


223 223 

224 - `FileContentPart object { file, type, prompt_cache_breakpoint }`224 - `FileContentPart object { file, type, prompt_cache_breakpoint }`

225 225 

226 Learn about [file inputs](/docs/guides/text) for text generation.226 Learn about [file inputs](/api/docs/guides/text) for text generation.

227 227 

228 - `file: object { file_data, file_id, filename }`228 - `file: object { file_data, file_id, filename }`

229 229 


280 - `audio: optional object { id } or null`280 - `audio: optional object { id } or null`

281 281 

282 Data about a previous audio response from the model.282 Data about a previous audio response from the model.

283 [Learn more](/docs/guides/audio).283 [Learn more](/api/docs/guides/audio).

284 284 

285 - `id: string`285 - `id: string`

286 286 


300 300 

301 - `ChatCompletionContentPartText object { text, type, prompt_cache_breakpoint }`301 - `ChatCompletionContentPartText object { text, type, prompt_cache_breakpoint }`

302 302 

303 Learn about [text inputs](/docs/guides/text-generation).303 Learn about [text inputs](/api/docs/guides/text).

304 304 

305 - `ChatCompletionContentPartRefusal object { refusal, type }`305 - `ChatCompletionContentPartRefusal object { refusal, type }`

306 306 


446 446 

447 Model ID used to generate the response, like `gpt-6-astra` or `o3`. OpenAI447 Model ID used to generate the response, like `gpt-6-astra` or `o3`. OpenAI

448 offers a wide range of models with different capabilities, performance448 offers a wide range of models with different capabilities, performance

449 characteristics, and price points. Refer to the [model guide](/docs/models)449 characteristics, and price points. Refer to the [model guide](/api/docs/models)

450 to browse and compare available models.450 to browse and compare available models.

451 451 

452 - `string`452 - `string`


455 455 

456 Model ID used to generate the response, like `gpt-6-astra` or `o3`. OpenAI456 Model ID used to generate the response, like `gpt-6-astra` or `o3`. OpenAI

457 offers a wide range of models with different capabilities, performance457 offers a wide range of models with different capabilities, performance

458 characteristics, and price points. Refer to the [model guide](/docs/models)458 characteristics, and price points. Refer to the [model guide](/api/docs/models)

459 to browse and compare available models.459 to browse and compare available models.

460 460 

461 - `"gpt-6-astra"`461 - `"gpt-6-astra"`


629- `audio: optional ChatCompletionAudioParam or null`629- `audio: optional ChatCompletionAudioParam or null`

630 630 

631 Parameters for audio output. Required when audio output is requested with631 Parameters for audio output. Required when audio output is requested with

632 `modalities: ["audio"]`. [Learn more](/docs/guides/audio).632 `modalities: ["audio"]`. [Learn more](/api/docs/guides/audio).

633 633 

634 - `format: "wav" or "aac" or "mp3" or 3 more`634 - `format: "wav" or "aac" or "mp3" or 3 more`

635 635 


743 743 

744 - `parameters: optional FunctionParameters`744 - `parameters: optional FunctionParameters`

745 745 

746 The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.746 The parameters the functions accepts, described as a JSON Schema object. See the [guide](/api/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.

747 747 

748 Omitting `parameters` defines a function with an empty parameter list.748 Omitting `parameters` defines a function with an empty parameter list.

749 749 


766 766 

767- `max_completion_tokens: optional number or null`767- `max_completion_tokens: optional number or null`

768 768 

769 An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and [reasoning tokens](/docs/guides/reasoning).769 An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and [reasoning tokens](/api/docs/guides/reasoning).

770 770 

771- `max_tokens: optional number or null`771- `max_tokens: optional number or null`

772 772 

773 The maximum number of [tokens](/tokenizer) that can be generated in the773 The maximum number of [tokens](https://platform.openai.com/tokenizer) that can be generated in the

774 chat completion. This value can be used to control774 chat completion. This value can be used to control

775 [costs](https://openai.com/api/pricing/) for text generated via API.775 [costs](https://openai.com/api/pricing/) for text generated via API.

776 776 

777 This value is now deprecated in favor of `max_completion_tokens`, and is777 This value is now deprecated in favor of `max_completion_tokens`, and is

778 not compatible with [o-series models](/docs/guides/reasoning).778 not compatible with [o-series models](/api/docs/guides/reasoning).

779 779 

780- `metadata: optional Metadata or null`780- `metadata: optional Metadata or null`

781 781 


794 `["text"]`794 `["text"]`

795 795 

796 The `gpt-4o-audio-preview` model can also be used to796 The `gpt-4o-audio-preview` model can also be used to

797 [generate audio](/docs/guides/audio). To request that this model generate797 [generate audio](/api/docs/guides/audio). To request that this model generate

798 both text and audio responses, you can use:798 both text and audio responses, you can use:

799 799 

800 `["text", "audio"]`800 `["text", "audio"]`


841 841 

842- `parallel_tool_calls: optional boolean`842- `parallel_tool_calls: optional boolean`

843 843 

844 Whether to enable [parallel function calling](/docs/guides/function-calling#configuring-parallel-function-calling) during tool use.844 Whether to enable [parallel function calling](/api/docs/guides/function-calling#parallel-function-calling) during tool use.

845 845 

846- `prediction: optional ChatCompletionPredictionContent or null`846- `prediction: optional ChatCompletionPredictionContent or null`

847 847 


861 861 

862 - `ArrayOfContentParts = array of ChatCompletionContentPartText`862 - `ArrayOfContentParts = array of ChatCompletionContentPartText`

863 863 

864 An array of content parts with a defined type. Supported options differ based on the [model](/docs/models) being used to generate the response. Can contain text inputs.864 An array of content parts with a defined type. Supported options differ based on the [model](/api/docs/models) being used to generate the response. Can contain text inputs.

865 865 

866 - `text: string`866 - `text: string`

867 867 


890 890 

891- `prompt_cache_key: optional string or null`891- `prompt_cache_key: optional string or null`

892 892 

893 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).893 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).

894 894 

895- `prompt_cache_options: optional object { mode, ttl }`895- `prompt_cache_options: optional object { mode, ttl }`

896 896 

897 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.897 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.

898 898 

899 - `mode: optional "implicit" or "explicit"`899 - `mode: optional "implicit" or "explicit"`

900 900 


914 914 

915 Deprecated. Use `prompt_cache_options.ttl` instead.915 Deprecated. Use `prompt_cache_options.ttl` instead.

916 916 

917 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).917 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).

918 This field expresses a maximum retention policy, while918 This field expresses a maximum retention policy, while

919 `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two919 `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two

920 fields are independent and do not interact.920 fields are independent and do not interact.


936 Reducing reasoning effort can result in faster responses and fewer tokens936 Reducing reasoning effort can result in faster responses and fewer tokens

937 used on reasoning in a response. Not all reasoning models support every937 used on reasoning in a response. Not all reasoning models support every

938 value. See the938 value. See the

939 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)939 [reasoning guide](/api/docs/guides/reasoning)

940 for model-specific support.940 for model-specific support.

941 941 

942 - `"none"`942 - `"none"`


960 Setting to `{ "type": "json_schema", "json_schema": {...} }` enables960 Setting to `{ "type": "json_schema", "json_schema": {...} }` enables

961 Structured Outputs which ensures the model will match your supplied JSON961 Structured Outputs which ensures the model will match your supplied JSON

962 schema. Learn more in the [Structured Outputs962 schema. Learn more in the [Structured Outputs

963 guide](/docs/guides/structured-outputs).963 guide](/api/docs/guides/structured-outputs).

964 964 

965 Setting to `{ "type": "json_object" }` enables the older JSON mode, which965 Setting to `{ "type": "json_object" }` enables the older JSON mode, which

966 ensures the message the model generates is valid JSON. Using `json_schema`966 ensures the message the model generates is valid JSON. Using `json_schema`


979 - `ResponseFormatJSONSchema object { json_schema, type }`979 - `ResponseFormatJSONSchema object { json_schema, type }`

980 980 

981 JSON Schema response format. Used to generate structured JSON responses.981 JSON Schema response format. Used to generate structured JSON responses.

982 Learn more about [Structured Outputs](/docs/guides/structured-outputs).982 Learn more about [Structured Outputs](/api/docs/guides/structured-outputs).

983 983 

984 - `json_schema: object { name, description, schema, strict }`984 - `json_schema: object { name, description, schema, strict }`

985 985 


1006 If set to true, the model will always follow the exact schema defined1006 If set to true, the model will always follow the exact schema defined

1007 in the `schema` field. Only a subset of JSON Schema is supported when1007 in the `schema` field. Only a subset of JSON Schema is supported when

1008 `strict` is `true`. To learn more, read the [Structured Outputs1008 `strict` is `true`. To learn more, read the [Structured Outputs

1009 guide](/docs/guides/structured-outputs).1009 guide](/api/docs/guides/structured-outputs).

1010 1010 

1011 - `type: "json_schema"`1011 - `type: "json_schema"`

1012 1012 


1030- `safety_identifier: optional string or null`1030- `safety_identifier: optional string or null`

1031 1031 

1032 A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.1032 A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.

1033 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).1033 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).

1034 1034 

1035- `seed: optional number or null`1035- `seed: optional number or null`

1036 1036 


1044 1044 

1045 - 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'.1045 - 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'.

1046 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.1046 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.

1047 - If set to '[flex](/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.1047 - If set to '[flex](/api/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.

1048 - 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.1048 - 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.

1049 - When not set, the default behavior is 'auto'.1049 - When not set, the default behavior is 'auto'.

1050 1050 


1076- `store: optional boolean or null`1076- `store: optional boolean or null`

1077 1077 

1078 Whether or not to store the output of this chat completion request for1078 Whether or not to store the output of this chat completion request for

1079 use in our [model distillation](/docs/guides/distillation) or1079 use in our [model distillation](/api/docs/guides/supervised-fine-tuning#distilling-from-a-larger-model) or

1080 [evals](/docs/guides/evals) products.1080 [evals](/api/docs/guides/evals) products.

1081 1081 

1082 Supports text and image inputs. Note: image inputs over 8MB will be dropped.1082 Supports text and image inputs. Note: image inputs over 8MB will be dropped.

1083 1083 


1085 1085 

1086 If set to true, the model response data will be streamed to the client1086 If set to true, the model response data will be streamed to the client

1087 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).1087 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).

1088 See the [Streaming section below](/docs/api-reference/chat/streaming)1088 See the [Streaming section below](/api/reference/resources/chat/subresources/completions/streaming-events)

1089 for more information, along with the [streaming responses](/docs/guides/streaming-responses)1089 for more information, along with the [streaming responses](/api/docs/guides/streaming-responses)

1090 guide for more information on how to handle the streaming events.1090 guide for more information on how to handle the streaming events.

1091 1091 

1092- `stream_options: optional ChatCompletionStreamOptions or null`1092- `stream_options: optional ChatCompletionStreamOptions or null`


1214- `tools: optional array of ChatCompletionTool`1214- `tools: optional array of ChatCompletionTool`

1215 1215 

1216 A list of tools the model may call. You can provide either1216 A list of tools the model may call. You can provide either

1217 [custom tools](/docs/guides/function-calling#custom-tools) or1217 [custom tools](/api/docs/guides/function-calling#custom-tools) or

1218 [function tools](/docs/guides/function-calling).1218 [function tools](/api/docs/guides/function-calling).

1219 1219 

1220 - `ChatCompletionFunctionTool object { function, type }`1220 - `ChatCompletionFunctionTool object { function, type }`

1221 1221 


1233 1233 

1234 - `parameters: optional FunctionParameters`1234 - `parameters: optional FunctionParameters`

1235 1235 

1236 The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.1236 The parameters the functions accepts, described as a JSON Schema object. See the [guide](/api/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.

1237 1237 

1238 Omitting `parameters` defines a function with an empty parameter list.1238 Omitting `parameters` defines a function with an empty parameter list.

1239 1239 

1240 - `strict: optional boolean or null`1240 - `strict: optional boolean or null`

1241 1241 

1242 Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](/docs/guides/function-calling).1242 Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](/api/docs/guides/function-calling).

1243 1243 

1244 - `type: "function"`1244 - `type: "function"`

1245 1245 


1330 1330 

1331 This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.1331 This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.

1332 A stable identifier for your end-users.1332 A stable identifier for your end-users.

1333 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).1333 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).

1334 1334 

1335- `verbosity: optional "low" or "medium" or "high" or null`1335- `verbosity: optional "low" or "medium" or "high" or null`

1336 1336 


1348- `web_search_options: optional object { search_context_size, user_location }`1348- `web_search_options: optional object { search_context_size, user_location }`

1349 1349 

1350 This tool searches the web for relevant results to use in a response.1350 This tool searches the web for relevant results to use in a response.

1351 Learn more about the [web search tool](/docs/guides/tools-web-search?api-mode=chat).1351 Learn more about the [web search tool](/api/docs/guides/tools-web-search).

1352 1352 

1353 - `search_context_size: optional "low" or "medium" or "high"`1353 - `search_context_size: optional "low" or "medium" or "high"`

1354 1354 


1507 - `annotations: optional array of object { type, url_citation }`1507 - `annotations: optional array of object { type, url_citation }`

1508 1508 

1509 Annotations for the message, when applicable, as when using the1509 Annotations for the message, when applicable, as when using the

1510 [web search tool](/docs/guides/tools-web-search?api-mode=chat).1510 [web search tool](/api/docs/guides/tools-web-search).

1511 1511 

1512 - `type: "url_citation"`1512 - `type: "url_citation"`

1513 1513 


1538 - `audio: optional ChatCompletionAudio or null`1538 - `audio: optional ChatCompletionAudio or null`

1539 1539 

1540 If the audio output modality is requested, this object contains data1540 If the audio output modality is requested, this object contains data

1541 about the audio response from the model. [Learn more](/docs/guides/audio).1541 about the audio response from the model. [Learn more](/api/docs/guides/audio).

1542 1542 

1543 - `id: string`1543 - `id: string`

1544 1544 


1801 1801 

1802 - 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'.1802 - 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'.

1803 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.1803 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.

1804 - If set to '[flex](/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.1804 - If set to '[flex](/api/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.

1805 - 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.1805 - 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.

1806 - When not set, the default behavior is 'auto'.1806 - When not set, the default behavior is 'auto'.

1807 1807 

Details

146 - `annotations: optional array of object { type, url_citation }`146 - `annotations: optional array of object { type, url_citation }`

147 147 

148 Annotations for the message, when applicable, as when using the148 Annotations for the message, when applicable, as when using the

149 [web search tool](/docs/guides/tools-web-search?api-mode=chat).149 [web search tool](/api/docs/guides/tools-web-search).

150 150 

151 - `type: "url_citation"`151 - `type: "url_citation"`

152 152 


177 - `audio: optional ChatCompletionAudio or null`177 - `audio: optional ChatCompletionAudio or null`

178 178 

179 If the audio output modality is requested, this object contains data179 If the audio output modality is requested, this object contains data

180 about the audio response from the model. [Learn more](/docs/guides/audio).180 about the audio response from the model. [Learn more](/api/docs/guides/audio).

181 181 

182 - `id: string`182 - `id: string`

183 183 


440 440 

441 - 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'.441 - 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'.

442 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.442 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.

443 - If set to '[flex](/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.443 - If set to '[flex](/api/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.

444 - 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.444 - 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.

445 - When not set, the default behavior is 'auto'.445 - When not set, the default behavior is 'auto'.

446 446 

Details

122 - `annotations: optional array of object { type, url_citation }`122 - `annotations: optional array of object { type, url_citation }`

123 123 

124 Annotations for the message, when applicable, as when using the124 Annotations for the message, when applicable, as when using the

125 [web search tool](/docs/guides/tools-web-search?api-mode=chat).125 [web search tool](/api/docs/guides/tools-web-search).

126 126 

127 - `type: "url_citation"`127 - `type: "url_citation"`

128 128 


153 - `audio: optional ChatCompletionAudio or null`153 - `audio: optional ChatCompletionAudio or null`

154 154 

155 If the audio output modality is requested, this object contains data155 If the audio output modality is requested, this object contains data

156 about the audio response from the model. [Learn more](/docs/guides/audio).156 about the audio response from the model. [Learn more](/api/docs/guides/audio).

157 157 

158 - `id: string`158 - `id: string`

159 159 


416 416 

417 - 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'.417 - 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'.

418 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.418 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.

419 - If set to '[flex](/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.419 - If set to '[flex](/api/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.

420 - 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.420 - 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.

421 - When not set, the default behavior is 'auto'.421 - When not set, the default behavior is 'auto'.

422 422 

Details

134 - `annotations: optional array of object { type, url_citation }`134 - `annotations: optional array of object { type, url_citation }`

135 135 

136 Annotations for the message, when applicable, as when using the136 Annotations for the message, when applicable, as when using the

137 [web search tool](/docs/guides/tools-web-search?api-mode=chat).137 [web search tool](/api/docs/guides/tools-web-search).

138 138 

139 - `type: "url_citation"`139 - `type: "url_citation"`

140 140 


165 - `audio: optional ChatCompletionAudio or null`165 - `audio: optional ChatCompletionAudio or null`

166 166 

167 If the audio output modality is requested, this object contains data167 If the audio output modality is requested, this object contains data

168 about the audio response from the model. [Learn more](/docs/guides/audio).168 about the audio response from the model. [Learn more](/api/docs/guides/audio).

169 169 

170 - `id: string`170 - `id: string`

171 171 


428 428 

429 - 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'.429 - 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'.

430 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.430 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.

431 - If set to '[flex](/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.431 - If set to '[flex](/api/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.

432 - 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.432 - 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.

433 - When not set, the default behavior is 'auto'.433 - When not set, the default behavior is 'auto'.

434 434 

Details

4 4 

5Stream Chat Completions in real time. Receive chunks of completions5Stream Chat Completions in real time. Receive chunks of completions

6returned from the model using server-sent events.6returned from the model using server-sent events.

7[Learn more](https://developers.openai.com/docs/guides/streaming-responses?api-mode=chat).7[Learn more](https://developers.openai.com/api/docs/guides/streaming-responses).

8 8 

9## chat.completion.chunk9## chat.completion.chunk

10 10 

11Represents a streamed chunk of a chat completion response returned11Represents a streamed chunk of a chat completion response returned

12by the model, based on the provided input.12by the model, based on the provided input.

13[Learn more](https://developers.openai.com/docs/guides/streaming-responses).13[Learn more](https://developers.openai.com/api/docs/guides/streaming-responses).

14 14 

15### Schema15### Schema

16 16 


21 "(resource) chat.completions > (model) chat_completion_chunk > (schema)": {21 "(resource) chat.completions > (model) chat_completion_chunk > (schema)": {

22 "kind": "HttpDeclTypeAlias",22 "kind": "HttpDeclTypeAlias",

23 "oasRef": "#/components/schemas/CreateChatCompletionStreamResponse",23 "oasRef": "#/components/schemas/CreateChatCompletionStreamResponse",

24 "docstring": "Represents a streamed chunk of a chat completion response returned\nby the model, based on the provided input. \n[Learn more](/docs/guides/streaming-responses).\n",24 "docstring": "Represents a streamed chunk of a chat completion response returned\nby the model, based on the provided input.\n[Learn more](/api/docs/guides/streaming-responses).\n",

25 "ident": "ChatCompletionChunk",25 "ident": "ChatCompletionChunk",

26 "type": {26 "type": {

27 "kind": "HttpTypeObject",27 "kind": "HttpTypeObject",


224 "oasRef": "#/components/schemas/CreateChatCompletionStreamResponse/properties/service_tier",224 "oasRef": "#/components/schemas/CreateChatCompletionStreamResponse/properties/service_tier",

225 "deprecated": false,225 "deprecated": false,

226 "key": "service_tier",226 "key": "service_tier",

227 "docstring": "Specifies the processing type used for serving the request.\n - 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'.\n - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.\n - If set to '[flex](/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.\n - 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.\n - When not set, the default behavior is 'auto'.\n\n When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.\n",227 "docstring": "Specifies the processing type used for serving the request.\n - 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'.\n - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.\n - If set to '[flex](/api/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.\n - 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.\n - When not set, the default behavior is 'auto'.\n\n When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.\n",

228 "type": {228 "type": {

229 "kind": "HttpTypeUnion",229 "kind": "HttpTypeUnion",

230 "oasRef": "#/components/schemas/CreateChatCompletionStreamResponse/properties/service_tier",230 "oasRef": "#/components/schemas/CreateChatCompletionStreamResponse/properties/service_tier",

Details

45 45 

46 - `ChatCompletionContentPartText object { text, type, prompt_cache_breakpoint }`46 - `ChatCompletionContentPartText object { text, type, prompt_cache_breakpoint }`

47 47 

48 Learn about [text inputs](/docs/guides/text-generation).48 Learn about [text inputs](/api/docs/guides/text).

49 49 

50 - `text: string`50 - `text: string`

51 51 


69 69 

70 - `ChatCompletionContentPartImage object { image_url, type, prompt_cache_breakpoint }`70 - `ChatCompletionContentPartImage object { image_url, type, prompt_cache_breakpoint }`

71 71 

72 Learn about [image inputs](/docs/guides/vision).72 Learn about [image inputs](/api/docs/guides/images-vision).

73 73 

74 - `image_url: object { url, detail }`74 - `image_url: object { url, detail }`

75 75 


79 79 

80 - `detail: optional "auto" or "low" or "high"`80 - `detail: optional "auto" or "low" or "high"`

81 81 

82 Specifies the detail level of the image. Learn more in the [Vision guide](/docs/guides/vision#low-or-high-fidelity-image-understanding).82 Specifies the detail level of the image. Learn more in the [Vision guide](/api/docs/guides/images-vision#choose-an-image-detail-level).

83 83 

84 - `"auto"`84 - `"auto"`

85 85 

Details

10 10 

11- `model: string or "gpt-3.5-turbo-instruct" or "davinci-002" or "babbage-002"`11- `model: string or "gpt-3.5-turbo-instruct" or "davinci-002" or "babbage-002"`

12 12 

13 ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.13 ID of the model to use. You can use the [List models](/api/reference/resources/models/methods/list) API to see all of your available models, or see our [Model overview](/api/docs/models) for descriptions of them.

14 14 

15 - `string`15 - `string`

16 16 

17 - `"gpt-3.5-turbo-instruct" or "davinci-002" or "babbage-002"`17 - `"gpt-3.5-turbo-instruct" or "davinci-002" or "babbage-002"`

18 18 

19 ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.19 ID of the model to use. You can use the [List models](/api/reference/resources/models/methods/list) API to see all of your available models, or see our [Model overview](/api/docs/models) for descriptions of them.

20 20 

21 - `"gpt-3.5-turbo-instruct"`21 - `"gpt-3.5-turbo-instruct"`

22 22 


54 54 

55 Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.55 Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.

56 56 

57 [See more information about frequency and presence penalties.](/docs/guides/text-generation)57 [See more information about frequency and presence penalties.](/api/docs/guides/text)

58 58 

59- `logit_bias: optional map[number] or null`59- `logit_bias: optional map[number] or null`

60 60 

61 Modify the likelihood of specified tokens appearing in the completion.61 Modify the likelihood of specified tokens appearing in the completion.

62 62 

63 Accepts a JSON object that maps tokens (specified by their token ID in the GPT tokenizer) to an associated bias value from -100 to 100. You can use this [tokenizer tool](/tokenizer?view=bpe) to convert text to token IDs. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.63 Accepts a JSON object that maps tokens (specified by their token ID in the GPT tokenizer) to an associated bias value from -100 to 100. You can use this [tokenizer tool](https://platform.openai.com/tokenizer?view=bpe) to convert text to token IDs. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.

64 64 

65 As an example, you can pass `{"50256": -100}` to prevent the <|endoftext|> token from being generated.65 As an example, you can pass `{"50256": -100}` to prevent the <|endoftext|> token from being generated.

66 66 


72 72 

73- `max_tokens: optional number or null`73- `max_tokens: optional number or null`

74 74 

75 The maximum number of [tokens](/tokenizer) that can be generated in the completion.75 The maximum number of [tokens](https://platform.openai.com/tokenizer) that can be generated in the completion.

76 76 

77 The token count of your prompt plus `max_tokens` cannot exceed the model's context length. [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken) for counting tokens.77 The token count of your prompt plus `max_tokens` cannot exceed the model's context length. [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken) for counting tokens.

78 78 


86 86 

87 Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.87 Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.

88 88 

89 [See more information about frequency and presence penalties.](/docs/guides/text-generation)89 [See more information about frequency and presence penalties.](/api/docs/guides/text)

90 90 

91- `seed: optional number or null`91- `seed: optional number or null`

92 92 


154 154 

155- `user: optional string`155- `user: optional string`

156 156 

157 A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).157 A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/api/docs/guides/safety-best-practices#implement-safety-identifiers).

158 158 

159### Returns159### Returns

160 160 

Details

58 58 

59 - `ResponseInputImage object { detail, type, file_id, 2 more }`59 - `ResponseInputImage object { detail, type, file_id, 2 more }`

60 60 

61 An image input to the model. Learn about [image inputs](/docs/guides/vision).61 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

62 62 

63 - `detail: ImageDetail`63 - `detail: ImageDetail`

64 64 


401 - `FileSearchCall object { id, queries, status, 2 more }`401 - `FileSearchCall object { id, queries, status, 2 more }`

402 402 

403 The results of a file search tool call. See the403 The results of a file search tool call. See the

404 [file search guide](/docs/guides/tools-file-search) for more information.404 [file search guide](/api/docs/guides/tools-file-search) for more information.

405 405 

406 - `id: string`406 - `id: string`

407 407 


469 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`469 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`

470 470 

471 A tool call to a computer use tool. See the471 A tool call to a computer use tool. See the

472 [computer use guide](/docs/guides/tools-computer-use) for more information.472 [computer use guide](/api/docs/guides/tools-computer-use) for more information.

473 473 

474 - `id: string`474 - `id: string`

475 475 


814 - `WebSearchCall object { id, action, status, type }`814 - `WebSearchCall object { id, action, status, type }`

815 815 

816 The results of a web search tool call. See the816 The results of a web search tool call. See the

817 [web search guide](/docs/guides/tools-web-search) for more information.817 [web search guide](/api/docs/guides/tools-web-search) for more information.

818 818 

819 - `id: string`819 - `id: string`

820 820 


912 - `FunctionCall object { arguments, call_id, name, 6 more }`912 - `FunctionCall object { arguments, call_id, name, 6 more }`

913 913 

914 A tool call to run a function. See the914 A tool call to run a function. See the

915 [function calling guide](/docs/guides/function-calling) for more information.915 [function calling guide](/api/docs/guides/function-calling) for more information.

916 916 

917 - `arguments: string`917 - `arguments: string`

918 918 


1017 1017 

1018 - `ResponseInputImageContent object { type, detail, file_id, 2 more }`1018 - `ResponseInputImageContent object { type, detail, file_id, 2 more }`

1019 1019 

1020 An image input to the model. Learn about [image inputs](/docs/guides/vision)1020 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision)

1021 1021 

1022 - `type: "input_image"`1022 - `type: "input_image"`

1023 1023 


1195 1195 

1196 - `Function object { name, parameters, strict, 6 more }`1196 - `Function object { name, parameters, strict, 6 more }`

1197 1197 

1198 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).1198 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

1199 1199 

1200 - `name: string`1200 - `name: string`

1201 1201 


1239 1239 

1240 - `FileSearch object { type, vector_store_ids, filters, 2 more }`1240 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

1241 1241 

1242 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).1242 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

1243 1243 

1244 - `type: "file_search"`1244 - `type: "file_search"`

1245 1245 


1364 1364 

1365 - `Computer object { type }`1365 - `Computer object { type }`

1366 1366 

1367 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1367 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1368 1368 

1369 - `type: "computer"`1369 - `type: "computer"`

1370 1370 


1374 1374 

1375 - `ComputerUsePreview object { display_height, display_width, environment, type }`1375 - `ComputerUsePreview object { display_height, display_width, environment, type }`

1376 1376 

1377 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1377 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1378 1378 

1379 - `display_height: number`1379 - `display_height: number`

1380 1380 


1407 - `WebSearch object { type, external_web_access, filters, 2 more }`1407 - `WebSearch object { type, external_web_access, filters, 2 more }`

1408 1408 

1409 Search the Internet for sources related to the prompt. Learn more about the1409 Search the Internet for sources related to the prompt. Learn more about the

1410 [web search tool](/docs/guides/tools-web-search).1410 [web search tool](/api/docs/guides/tools-web-search).

1411 1411 

1412 - `type: "web_search" or "web_search_2025_08_26"`1412 - `type: "web_search" or "web_search_2025_08_26"`

1413 1413 


1471 - `Mcp object { server_label, type, allowed_callers, 9 more }`1471 - `Mcp object { server_label, type, allowed_callers, 9 more }`

1472 1472 

1473 Give the model access to additional tools via remote Model Context Protocol1473 Give the model access to additional tools via remote Model Context Protocol

1474 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).1474 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

1475 1475 

1476 - `server_label: string`1476 - `server_label: string`

1477 1477 


1523 1523 

1524 Identifier for service connectors, like those available in ChatGPT. One of1524 Identifier for service connectors, like those available in ChatGPT. One of

1525 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more1525 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

1526 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).1526 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

1527 1527 

1528 Currently supported `connector_id` values are:1528 Currently supported `connector_id` values are:

1529 1529 


1747 1747 

1748 - `background: optional "transparent" or "opaque" or "auto"`1748 - `background: optional "transparent" or "opaque" or "auto"`

1749 1749 

1750 Set the background of the generated image. One of `transparent`,1750 Set the background of the generated image. One of `transparent`, `opaque`,

1751 `opaque`, or `auto`. Transparent backgrounds are available for1751 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

1752 supported GPT Image models. For `gpt-image-2` and1752 their `2026-09-08` snapshots, support `opaque` and `transparent`

1753 `gpt-image-2-2026-04-21`, this support is in preview. When using1753 backgrounds. Transparent backgrounds are available for supported GPT Image

1754 `transparent`, set the output format to `png` or `webp`. Default: `auto`.1754 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

1755 preview. When using `transparent`, set the output format to `png` or `webp`.

1756 Default: `auto`.

1755 1757 

1756 - `"transparent"`1758 - `"transparent"`

1757 1759 


1780 1782 

1781 Base64-encoded mask image.1783 Base64-encoded mask image.

1782 1784 

1783 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1785 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1784 1786 

1785 The image generation model to use. One of `gpt-image-1`,1787 The image generation model to use. One of `gpt-image-1`,

1786 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1788 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1787 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1789 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1790 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1791 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1788 `gpt-image-1`.1792 `gpt-image-1`.

1789 1793 

1790 - `string`1794 - `string`

1791 1795 

1792 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1796 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1793 1797 

1794 The image generation model to use. One of `gpt-image-1`,1798 The image generation model to use. One of `gpt-image-1`,

1795 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1799 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1796 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1800 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1801 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1802 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1797 `gpt-image-1`.1803 `gpt-image-1`.

1798 1804 

1799 - `"gpt-image-1"`1805 - `"gpt-image-1"`


1806 1812 

1807 - `"gpt-image-2-2026-04-21"`1813 - `"gpt-image-2-2026-04-21"`

1808 1814 

1815 - `"gpt-image-2.5-sunburst"`

1816 

1817 - `"gpt-image-2.5-sunburst-2026-09-08"`

1818 

1819 - `"gpt-image-2.5-flare"`

1820 

1821 - `"gpt-image-2.5-flare-2026-09-08"`

1822 

1809 - `moderation: optional "auto" or "low"`1823 - `moderation: optional "auto" or "low"`

1810 1824 

1811 Moderation level for the generated image. Default: `auto`.1825 Moderation level for the generated image. Default: `auto`.


1833 1847 

1834 Number of partial images to generate in streaming mode, from 0 (default value) to 3.1848 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

1835 1849 

1836 - `quality: optional "low" or "medium" or "high" or "auto"`1850 - `quality: optional "low" or "medium" or "high" or 3 more`

1837 1851 

1838 The quality of the generated image. One of `low`, `medium`, `high`,1852 The quality of the generated image. The GPT image models support `low`,

1839 or `auto`. Default: `auto`.1853 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

1854 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

1855 Default: `auto`.

1840 1856 

1841 - `"low"`1857 - `"low"`

1842 1858 


1844 1860 

1845 - `"high"`1861 - `"high"`

1846 1862 

1863 - `"xhigh"`

1864 

1865 - `"max"`

1866 

1847 - `"auto"`1867 - `"auto"`

1848 1868 

1849 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`1869 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

1850 1870 

1851 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`.1871 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`.

1852 1872 

1853 - `string`1873 - `string`

1854 1874 

1855 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`1875 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

1856 1876 

1857 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`.1877 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`.

1858 1878 

1859 - `"1024x1024"`1879 - `"1024x1024"`

1860 1880 


2020 2040 

2021 - `Custom object { name, type, allowed_callers, 4 more }`2041 - `Custom object { name, type, allowed_callers, 4 more }`

2022 2042 

2023 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2043 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2024 2044 

2025 - `name: string`2045 - `name: string`

2026 2046 


2142 2162 

2143 - `Custom object { name, type, allowed_callers, 4 more }`2163 - `Custom object { name, type, allowed_callers, 4 more }`

2144 2164 

2145 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2165 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2146 2166 

2147 - `name: string`2167 - `name: string`

2148 2168 


2212 2232 

2213 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`2233 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

2214 2234 

2215 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).2235 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).

2216 2236 

2217 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`2237 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

2218 2238 


2328 2348 

2329 - `Function object { name, parameters, strict, 6 more }`2349 - `Function object { name, parameters, strict, 6 more }`

2330 2350 

2331 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).2351 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

2332 2352 

2333 - `name: string`2353 - `name: string`

2334 2354 


2372 2392 

2373 - `FileSearch object { type, vector_store_ids, filters, 2 more }`2393 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

2374 2394 

2375 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).2395 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

2376 2396 

2377 - `type: "file_search"`2397 - `type: "file_search"`

2378 2398 


2430 2450 

2431 - `Computer object { type }`2451 - `Computer object { type }`

2432 2452 

2433 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).2453 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

2434 2454 

2435 - `type: "computer"`2455 - `type: "computer"`

2436 2456 


2440 2460 

2441 - `ComputerUsePreview object { display_height, display_width, environment, type }`2461 - `ComputerUsePreview object { display_height, display_width, environment, type }`

2442 2462 

2443 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).2463 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

2444 2464 

2445 - `display_height: number`2465 - `display_height: number`

2446 2466 


2473 - `WebSearch object { type, external_web_access, filters, 2 more }`2493 - `WebSearch object { type, external_web_access, filters, 2 more }`

2474 2494 

2475 Search the Internet for sources related to the prompt. Learn more about the2495 Search the Internet for sources related to the prompt. Learn more about the

2476 [web search tool](/docs/guides/tools-web-search).2496 [web search tool](/api/docs/guides/tools-web-search).

2477 2497 

2478 - `type: "web_search" or "web_search_2025_08_26"`2498 - `type: "web_search" or "web_search_2025_08_26"`

2479 2499 


2537 - `Mcp object { server_label, type, allowed_callers, 9 more }`2557 - `Mcp object { server_label, type, allowed_callers, 9 more }`

2538 2558 

2539 Give the model access to additional tools via remote Model Context Protocol2559 Give the model access to additional tools via remote Model Context Protocol

2540 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).2560 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

2541 2561 

2542 - `server_label: string`2562 - `server_label: string`

2543 2563 


2589 2609 

2590 Identifier for service connectors, like those available in ChatGPT. One of2610 Identifier for service connectors, like those available in ChatGPT. One of

2591 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more2611 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

2592 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).2612 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

2593 2613 

2594 Currently supported `connector_id` values are:2614 Currently supported `connector_id` values are:

2595 2615 


2781 2801 

2782 - `background: optional "transparent" or "opaque" or "auto"`2802 - `background: optional "transparent" or "opaque" or "auto"`

2783 2803 

2784 Set the background of the generated image. One of `transparent`,2804 Set the background of the generated image. One of `transparent`, `opaque`,

2785 `opaque`, or `auto`. Transparent backgrounds are available for2805 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

2786 supported GPT Image models. For `gpt-image-2` and2806 their `2026-09-08` snapshots, support `opaque` and `transparent`

2787 `gpt-image-2-2026-04-21`, this support is in preview. When using2807 backgrounds. Transparent backgrounds are available for supported GPT Image

2788 `transparent`, set the output format to `png` or `webp`. Default: `auto`.2808 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

2809 preview. When using `transparent`, set the output format to `png` or `webp`.

2810 Default: `auto`.

2789 2811 

2790 - `"transparent"`2812 - `"transparent"`

2791 2813 


2814 2836 

2815 Base64-encoded mask image.2837 Base64-encoded mask image.

2816 2838 

2817 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2839 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2818 2840 

2819 The image generation model to use. One of `gpt-image-1`,2841 The image generation model to use. One of `gpt-image-1`,

2820 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2842 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2821 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2843 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2844 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2845 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2822 `gpt-image-1`.2846 `gpt-image-1`.

2823 2847 

2824 - `string`2848 - `string`

2825 2849 

2826 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2850 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2827 2851 

2828 The image generation model to use. One of `gpt-image-1`,2852 The image generation model to use. One of `gpt-image-1`,

2829 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2853 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2830 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2854 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2855 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2856 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2831 `gpt-image-1`.2857 `gpt-image-1`.

2832 2858 

2833 - `"gpt-image-1"`2859 - `"gpt-image-1"`


2840 2866 

2841 - `"gpt-image-2-2026-04-21"`2867 - `"gpt-image-2-2026-04-21"`

2842 2868 

2869 - `"gpt-image-2.5-sunburst"`

2870 

2871 - `"gpt-image-2.5-sunburst-2026-09-08"`

2872 

2873 - `"gpt-image-2.5-flare"`

2874 

2875 - `"gpt-image-2.5-flare-2026-09-08"`

2876 

2843 - `moderation: optional "auto" or "low"`2877 - `moderation: optional "auto" or "low"`

2844 2878 

2845 Moderation level for the generated image. Default: `auto`.2879 Moderation level for the generated image. Default: `auto`.


2867 2901 

2868 Number of partial images to generate in streaming mode, from 0 (default value) to 3.2902 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

2869 2903 

2870 - `quality: optional "low" or "medium" or "high" or "auto"`2904 - `quality: optional "low" or "medium" or "high" or 3 more`

2871 2905 

2872 The quality of the generated image. One of `low`, `medium`, `high`,2906 The quality of the generated image. The GPT image models support `low`,

2873 or `auto`. Default: `auto`.2907 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

2908 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

2909 Default: `auto`.

2874 2910 

2875 - `"low"`2911 - `"low"`

2876 2912 


2878 2914 

2879 - `"high"`2915 - `"high"`

2880 2916 

2917 - `"xhigh"`

2918 

2919 - `"max"`

2920 

2881 - `"auto"`2921 - `"auto"`

2882 2922 

2883 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`2923 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2884 2924 

2885 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`.2925 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`.

2886 2926 

2887 - `string`2927 - `string`

2888 2928 

2889 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`2929 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2890 2930 

2891 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`.2931 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`.

2892 2932 

2893 - `"1024x1024"`2933 - `"1024x1024"`

2894 2934 


2936 2976 

2937 - `Custom object { name, type, allowed_callers, 4 more }`2977 - `Custom object { name, type, allowed_callers, 4 more }`

2938 2978 

2939 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2979 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2940 2980 

2941 - `name: string`2981 - `name: string`

2942 2982 


3026 3066 

3027 - `Custom object { name, type, allowed_callers, 4 more }`3067 - `Custom object { name, type, allowed_callers, 4 more }`

3028 3068 

3029 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3069 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

3030 3070 

3031 - `name: string`3071 - `name: string`

3032 3072 


3096 3136 

3097 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`3137 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

3098 3138 

3099 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).3139 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).

3100 3140 

3101 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`3141 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

3102 3142 


3220 A description of the chain of thought used by a reasoning model while generating3260 A description of the chain of thought used by a reasoning model while generating

3221 a response. Be sure to include these items in your `input` to the Responses API3261 a response. Be sure to include these items in your `input` to the Responses API

3222 for subsequent turns of a conversation if you are manually3262 for subsequent turns of a conversation if you are manually

3223 [managing context](/docs/guides/conversation-state).3263 [managing context](/api/docs/guides/conversation-state).

3224 3264 

3225 - `id: string`3265 - `id: string`

3226 3266 


3285 3325 

3286 - `Compaction object { encrypted_content, type, id }`3326 - `Compaction object { encrypted_content, type, id }`

3287 3327 

3288 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).3328 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).

3289 3329 

3290 - `encrypted_content: string`3330 - `encrypted_content: string`

3291 3331 


3301 3341 

3302 The ID of the compaction item.3342 The ID of the compaction item.

3303 3343 

3304 - `ImageGenerationCall object { id, result, status, type }`3344 - `ImageGenerationCall object { id, result, status, 3 more }`

3305 3345 

3306 An image generation request made by the model.3346 An image generation request made by the model.

3307 3347 


3331 3371 

3332 - `"image_generation_call"`3372 - `"image_generation_call"`

3333 3373 

3374 - `quality: optional "low" or "medium" or "high" or 3 more or null`

3375 

3376 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.

3377 

3378 - `"low"`

3379 

3380 - `"medium"`

3381 

3382 - `"high"`

3383 

3384 - `"xhigh"`

3385 

3386 - `"max"`

3387 

3388 - `"auto"`

3389 

3390 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`

3391 

3392 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

3393 

3394 - `string`

3395 

3396 - `"1024x1024" or "1024x1536" or "1536x1024"`

3397 

3398 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

3399 

3400 - `"1024x1024"`

3401 

3402 - `"1024x1536"`

3403 

3404 - `"1536x1024"`

3405 

3334 - `CodeInterpreterCall object { id, code, container_id, 3 more }`3406 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

3335 3407 

3336 A tool call to run code.3408 A tool call to run code.


4018 4090 

4019 - `ResponseInputImage object { detail, type, file_id, 2 more }`4091 - `ResponseInputImage object { detail, type, file_id, 2 more }`

4020 4092 

4021 An image input to the model. Learn about [image inputs](/docs/guides/vision).4093 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

4022 4094 

4023 - `ResponseInputFile object { type, detail, file_data, 4 more }`4095 - `ResponseInputFile object { type, detail, file_data, 4 more }`

4024 4096 

Details

13- `include: optional array of ResponseIncludable`13- `include: optional array of ResponseIncludable`

14 14 

15 Additional fields to include in the response. See the `include`15 Additional fields to include in the response. See the `include`

16 parameter for [listing Conversation items above](/docs/api-reference/conversations/list-items#conversations_list_items-include) for more information.16 parameter for [listing Conversation items above](/api/reference/resources/conversations/subresources/items/methods/list#%28resource%29%20conversations.items%20%3E%20%28method%29%20list%20%3E%20%28params%29%20default%20%3E%20%28param%29%20include%20%3E%20%28schema%29) for more information.

17 17 

18 - `"file_search_call.results"`18 - `"file_search_call.results"`

19 19 


85 85 

86 - `ResponseInputImage object { detail, type, file_id, 2 more }`86 - `ResponseInputImage object { detail, type, file_id, 2 more }`

87 87 

88 An image input to the model. Learn about [image inputs](/docs/guides/vision).88 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

89 89 

90 - `detail: ImageDetail`90 - `detail: ImageDetail`

91 91 


428 - `FileSearchCall object { id, queries, status, 2 more }`428 - `FileSearchCall object { id, queries, status, 2 more }`

429 429 

430 The results of a file search tool call. See the430 The results of a file search tool call. See the

431 [file search guide](/docs/guides/tools-file-search) for more information.431 [file search guide](/api/docs/guides/tools-file-search) for more information.

432 432 

433 - `id: string`433 - `id: string`

434 434 


496 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`496 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`

497 497 

498 A tool call to a computer use tool. See the498 A tool call to a computer use tool. See the

499 [computer use guide](/docs/guides/tools-computer-use) for more information.499 [computer use guide](/api/docs/guides/tools-computer-use) for more information.

500 500 

501 - `id: string`501 - `id: string`

502 502 


841 - `WebSearchCall object { id, action, status, type }`841 - `WebSearchCall object { id, action, status, type }`

842 842 

843 The results of a web search tool call. See the843 The results of a web search tool call. See the

844 [web search guide](/docs/guides/tools-web-search) for more information.844 [web search guide](/api/docs/guides/tools-web-search) for more information.

845 845 

846 - `id: string`846 - `id: string`

847 847 


939 - `FunctionCall object { arguments, call_id, name, 6 more }`939 - `FunctionCall object { arguments, call_id, name, 6 more }`

940 940 

941 A tool call to run a function. See the941 A tool call to run a function. See the

942 [function calling guide](/docs/guides/function-calling) for more information.942 [function calling guide](/api/docs/guides/function-calling) for more information.

943 943 

944 - `arguments: string`944 - `arguments: string`

945 945 


1044 1044 

1045 - `ResponseInputImageContent object { type, detail, file_id, 2 more }`1045 - `ResponseInputImageContent object { type, detail, file_id, 2 more }`

1046 1046 

1047 An image input to the model. Learn about [image inputs](/docs/guides/vision)1047 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision)

1048 1048 

1049 - `type: "input_image"`1049 - `type: "input_image"`

1050 1050 


1222 1222 

1223 - `Function object { name, parameters, strict, 6 more }`1223 - `Function object { name, parameters, strict, 6 more }`

1224 1224 

1225 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).1225 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

1226 1226 

1227 - `name: string`1227 - `name: string`

1228 1228 


1266 1266 

1267 - `FileSearch object { type, vector_store_ids, filters, 2 more }`1267 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

1268 1268 

1269 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).1269 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

1270 1270 

1271 - `type: "file_search"`1271 - `type: "file_search"`

1272 1272 


1391 1391 

1392 - `Computer object { type }`1392 - `Computer object { type }`

1393 1393 

1394 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1394 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1395 1395 

1396 - `type: "computer"`1396 - `type: "computer"`

1397 1397 


1401 1401 

1402 - `ComputerUsePreview object { display_height, display_width, environment, type }`1402 - `ComputerUsePreview object { display_height, display_width, environment, type }`

1403 1403 

1404 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1404 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1405 1405 

1406 - `display_height: number`1406 - `display_height: number`

1407 1407 


1434 - `WebSearch object { type, external_web_access, filters, 2 more }`1434 - `WebSearch object { type, external_web_access, filters, 2 more }`

1435 1435 

1436 Search the Internet for sources related to the prompt. Learn more about the1436 Search the Internet for sources related to the prompt. Learn more about the

1437 [web search tool](/docs/guides/tools-web-search).1437 [web search tool](/api/docs/guides/tools-web-search).

1438 1438 

1439 - `type: "web_search" or "web_search_2025_08_26"`1439 - `type: "web_search" or "web_search_2025_08_26"`

1440 1440 


1498 - `Mcp object { server_label, type, allowed_callers, 9 more }`1498 - `Mcp object { server_label, type, allowed_callers, 9 more }`

1499 1499 

1500 Give the model access to additional tools via remote Model Context Protocol1500 Give the model access to additional tools via remote Model Context Protocol

1501 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).1501 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

1502 1502 

1503 - `server_label: string`1503 - `server_label: string`

1504 1504 


1550 1550 

1551 Identifier for service connectors, like those available in ChatGPT. One of1551 Identifier for service connectors, like those available in ChatGPT. One of

1552 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more1552 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

1553 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).1553 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

1554 1554 

1555 Currently supported `connector_id` values are:1555 Currently supported `connector_id` values are:

1556 1556 


1774 1774 

1775 - `background: optional "transparent" or "opaque" or "auto"`1775 - `background: optional "transparent" or "opaque" or "auto"`

1776 1776 

1777 Set the background of the generated image. One of `transparent`,1777 Set the background of the generated image. One of `transparent`, `opaque`,

1778 `opaque`, or `auto`. Transparent backgrounds are available for1778 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

1779 supported GPT Image models. For `gpt-image-2` and1779 their `2026-09-08` snapshots, support `opaque` and `transparent`

1780 `gpt-image-2-2026-04-21`, this support is in preview. When using1780 backgrounds. Transparent backgrounds are available for supported GPT Image

1781 `transparent`, set the output format to `png` or `webp`. Default: `auto`.1781 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

1782 preview. When using `transparent`, set the output format to `png` or `webp`.

1783 Default: `auto`.

1782 1784 

1783 - `"transparent"`1785 - `"transparent"`

1784 1786 


1807 1809 

1808 Base64-encoded mask image.1810 Base64-encoded mask image.

1809 1811 

1810 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1812 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1811 1813 

1812 The image generation model to use. One of `gpt-image-1`,1814 The image generation model to use. One of `gpt-image-1`,

1813 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1815 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1814 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1816 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1817 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1818 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1815 `gpt-image-1`.1819 `gpt-image-1`.

1816 1820 

1817 - `string`1821 - `string`

1818 1822 

1819 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1823 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1820 1824 

1821 The image generation model to use. One of `gpt-image-1`,1825 The image generation model to use. One of `gpt-image-1`,

1822 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1826 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1823 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1827 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1828 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1829 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1824 `gpt-image-1`.1830 `gpt-image-1`.

1825 1831 

1826 - `"gpt-image-1"`1832 - `"gpt-image-1"`


1833 1839 

1834 - `"gpt-image-2-2026-04-21"`1840 - `"gpt-image-2-2026-04-21"`

1835 1841 

1842 - `"gpt-image-2.5-sunburst"`

1843 

1844 - `"gpt-image-2.5-sunburst-2026-09-08"`

1845 

1846 - `"gpt-image-2.5-flare"`

1847 

1848 - `"gpt-image-2.5-flare-2026-09-08"`

1849 

1836 - `moderation: optional "auto" or "low"`1850 - `moderation: optional "auto" or "low"`

1837 1851 

1838 Moderation level for the generated image. Default: `auto`.1852 Moderation level for the generated image. Default: `auto`.


1860 1874 

1861 Number of partial images to generate in streaming mode, from 0 (default value) to 3.1875 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

1862 1876 

1863 - `quality: optional "low" or "medium" or "high" or "auto"`1877 - `quality: optional "low" or "medium" or "high" or 3 more`

1864 1878 

1865 The quality of the generated image. One of `low`, `medium`, `high`,1879 The quality of the generated image. The GPT image models support `low`,

1866 or `auto`. Default: `auto`.1880 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

1881 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

1882 Default: `auto`.

1867 1883 

1868 - `"low"`1884 - `"low"`

1869 1885 


1871 1887 

1872 - `"high"`1888 - `"high"`

1873 1889 

1890 - `"xhigh"`

1891 

1892 - `"max"`

1893 

1874 - `"auto"`1894 - `"auto"`

1875 1895 

1876 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`1896 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

1877 1897 

1878 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`.1898 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`.

1879 1899 

1880 - `string`1900 - `string`

1881 1901 

1882 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`1902 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

1883 1903 

1884 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`.1904 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`.

1885 1905 

1886 - `"1024x1024"`1906 - `"1024x1024"`

1887 1907 


2047 2067 

2048 - `Custom object { name, type, allowed_callers, 4 more }`2068 - `Custom object { name, type, allowed_callers, 4 more }`

2049 2069 

2050 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2070 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2051 2071 

2052 - `name: string`2072 - `name: string`

2053 2073 


2169 2189 

2170 - `Custom object { name, type, allowed_callers, 4 more }`2190 - `Custom object { name, type, allowed_callers, 4 more }`

2171 2191 

2172 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2192 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2173 2193 

2174 - `name: string`2194 - `name: string`

2175 2195 


2239 2259 

2240 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`2260 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

2241 2261 

2242 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).2262 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).

2243 2263 

2244 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`2264 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

2245 2265 


2355 2375 

2356 - `Function object { name, parameters, strict, 6 more }`2376 - `Function object { name, parameters, strict, 6 more }`

2357 2377 

2358 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).2378 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

2359 2379 

2360 - `name: string`2380 - `name: string`

2361 2381 


2399 2419 

2400 - `FileSearch object { type, vector_store_ids, filters, 2 more }`2420 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

2401 2421 

2402 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).2422 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

2403 2423 

2404 - `type: "file_search"`2424 - `type: "file_search"`

2405 2425 


2457 2477 

2458 - `Computer object { type }`2478 - `Computer object { type }`

2459 2479 

2460 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).2480 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

2461 2481 

2462 - `type: "computer"`2482 - `type: "computer"`

2463 2483 


2467 2487 

2468 - `ComputerUsePreview object { display_height, display_width, environment, type }`2488 - `ComputerUsePreview object { display_height, display_width, environment, type }`

2469 2489 

2470 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).2490 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

2471 2491 

2472 - `display_height: number`2492 - `display_height: number`

2473 2493 


2500 - `WebSearch object { type, external_web_access, filters, 2 more }`2520 - `WebSearch object { type, external_web_access, filters, 2 more }`

2501 2521 

2502 Search the Internet for sources related to the prompt. Learn more about the2522 Search the Internet for sources related to the prompt. Learn more about the

2503 [web search tool](/docs/guides/tools-web-search).2523 [web search tool](/api/docs/guides/tools-web-search).

2504 2524 

2505 - `type: "web_search" or "web_search_2025_08_26"`2525 - `type: "web_search" or "web_search_2025_08_26"`

2506 2526 


2564 - `Mcp object { server_label, type, allowed_callers, 9 more }`2584 - `Mcp object { server_label, type, allowed_callers, 9 more }`

2565 2585 

2566 Give the model access to additional tools via remote Model Context Protocol2586 Give the model access to additional tools via remote Model Context Protocol

2567 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).2587 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

2568 2588 

2569 - `server_label: string`2589 - `server_label: string`

2570 2590 


2616 2636 

2617 Identifier for service connectors, like those available in ChatGPT. One of2637 Identifier for service connectors, like those available in ChatGPT. One of

2618 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more2638 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

2619 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).2639 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

2620 2640 

2621 Currently supported `connector_id` values are:2641 Currently supported `connector_id` values are:

2622 2642 


2808 2828 

2809 - `background: optional "transparent" or "opaque" or "auto"`2829 - `background: optional "transparent" or "opaque" or "auto"`

2810 2830 

2811 Set the background of the generated image. One of `transparent`,2831 Set the background of the generated image. One of `transparent`, `opaque`,

2812 `opaque`, or `auto`. Transparent backgrounds are available for2832 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

2813 supported GPT Image models. For `gpt-image-2` and2833 their `2026-09-08` snapshots, support `opaque` and `transparent`

2814 `gpt-image-2-2026-04-21`, this support is in preview. When using2834 backgrounds. Transparent backgrounds are available for supported GPT Image

2815 `transparent`, set the output format to `png` or `webp`. Default: `auto`.2835 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

2836 preview. When using `transparent`, set the output format to `png` or `webp`.

2837 Default: `auto`.

2816 2838 

2817 - `"transparent"`2839 - `"transparent"`

2818 2840 


2841 2863 

2842 Base64-encoded mask image.2864 Base64-encoded mask image.

2843 2865 

2844 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2866 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2845 2867 

2846 The image generation model to use. One of `gpt-image-1`,2868 The image generation model to use. One of `gpt-image-1`,

2847 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2869 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2848 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2870 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2871 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2872 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2849 `gpt-image-1`.2873 `gpt-image-1`.

2850 2874 

2851 - `string`2875 - `string`

2852 2876 

2853 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2877 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2854 2878 

2855 The image generation model to use. One of `gpt-image-1`,2879 The image generation model to use. One of `gpt-image-1`,

2856 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2880 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2857 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2881 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2882 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2883 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2858 `gpt-image-1`.2884 `gpt-image-1`.

2859 2885 

2860 - `"gpt-image-1"`2886 - `"gpt-image-1"`


2867 2893 

2868 - `"gpt-image-2-2026-04-21"`2894 - `"gpt-image-2-2026-04-21"`

2869 2895 

2896 - `"gpt-image-2.5-sunburst"`

2897 

2898 - `"gpt-image-2.5-sunburst-2026-09-08"`

2899 

2900 - `"gpt-image-2.5-flare"`

2901 

2902 - `"gpt-image-2.5-flare-2026-09-08"`

2903 

2870 - `moderation: optional "auto" or "low"`2904 - `moderation: optional "auto" or "low"`

2871 2905 

2872 Moderation level for the generated image. Default: `auto`.2906 Moderation level for the generated image. Default: `auto`.


2894 2928 

2895 Number of partial images to generate in streaming mode, from 0 (default value) to 3.2929 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

2896 2930 

2897 - `quality: optional "low" or "medium" or "high" or "auto"`2931 - `quality: optional "low" or "medium" or "high" or 3 more`

2898 2932 

2899 The quality of the generated image. One of `low`, `medium`, `high`,2933 The quality of the generated image. The GPT image models support `low`,

2900 or `auto`. Default: `auto`.2934 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

2935 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

2936 Default: `auto`.

2901 2937 

2902 - `"low"`2938 - `"low"`

2903 2939 


2905 2941 

2906 - `"high"`2942 - `"high"`

2907 2943 

2944 - `"xhigh"`

2945 

2946 - `"max"`

2947 

2908 - `"auto"`2948 - `"auto"`

2909 2949 

2910 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`2950 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2911 2951 

2912 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`.2952 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`.

2913 2953 

2914 - `string`2954 - `string`

2915 2955 

2916 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`2956 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2917 2957 

2918 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`.2958 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`.

2919 2959 

2920 - `"1024x1024"`2960 - `"1024x1024"`

2921 2961 


2963 3003 

2964 - `Custom object { name, type, allowed_callers, 4 more }`3004 - `Custom object { name, type, allowed_callers, 4 more }`

2965 3005 

2966 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3006 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2967 3007 

2968 - `name: string`3008 - `name: string`

2969 3009 


3053 3093 

3054 - `Custom object { name, type, allowed_callers, 4 more }`3094 - `Custom object { name, type, allowed_callers, 4 more }`

3055 3095 

3056 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3096 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

3057 3097 

3058 - `name: string`3098 - `name: string`

3059 3099 


3123 3163 

3124 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`3164 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

3125 3165 

3126 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).3166 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).

3127 3167 

3128 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`3168 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

3129 3169 


3247 A description of the chain of thought used by a reasoning model while generating3287 A description of the chain of thought used by a reasoning model while generating

3248 a response. Be sure to include these items in your `input` to the Responses API3288 a response. Be sure to include these items in your `input` to the Responses API

3249 for subsequent turns of a conversation if you are manually3289 for subsequent turns of a conversation if you are manually

3250 [managing context](/docs/guides/conversation-state).3290 [managing context](/api/docs/guides/conversation-state).

3251 3291 

3252 - `id: string`3292 - `id: string`

3253 3293 


3312 3352 

3313 - `Compaction object { encrypted_content, type, id }`3353 - `Compaction object { encrypted_content, type, id }`

3314 3354 

3315 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).3355 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).

3316 3356 

3317 - `encrypted_content: string`3357 - `encrypted_content: string`

3318 3358 


3328 3368 

3329 The ID of the compaction item.3369 The ID of the compaction item.

3330 3370 

3331 - `ImageGenerationCall object { id, result, status, type }`3371 - `ImageGenerationCall object { id, result, status, 3 more }`

3332 3372 

3333 An image generation request made by the model.3373 An image generation request made by the model.

3334 3374 


3358 3398 

3359 - `"image_generation_call"`3399 - `"image_generation_call"`

3360 3400 

3401 - `quality: optional "low" or "medium" or "high" or 3 more or null`

3402 

3403 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.

3404 

3405 - `"low"`

3406 

3407 - `"medium"`

3408 

3409 - `"high"`

3410 

3411 - `"xhigh"`

3412 

3413 - `"max"`

3414 

3415 - `"auto"`

3416 

3417 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`

3418 

3419 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

3420 

3421 - `string`

3422 

3423 - `"1024x1024" or "1024x1536" or "1536x1024"`

3424 

3425 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

3426 

3427 - `"1024x1024"`

3428 

3429 - `"1024x1536"`

3430 

3431 - `"1536x1024"`

3432 

3361 - `CodeInterpreterCall object { id, code, container_id, 3 more }`3433 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

3362 3434 

3363 A tool call to run code.3435 A tool call to run code.


4045 4117 

4046 - `ResponseInputImage object { detail, type, file_id, 2 more }`4118 - `ResponseInputImage object { detail, type, file_id, 2 more }`

4047 4119 

4048 An image input to the model. Learn about [image inputs](/docs/guides/vision).4120 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

4049 4121 

4050 - `ResponseInputFile object { type, detail, file_data, 4 more }`4122 - `ResponseInputFile object { type, detail, file_data, 4 more }`

4051 4123 


4449 4521 

4450 - `ResponseInputImage object { detail, type, file_id, 2 more }`4522 - `ResponseInputImage object { detail, type, file_id, 2 more }`

4451 4523 

4452 An image input to the model. Learn about [image inputs](/docs/guides/vision).4524 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

4453 4525 

4454 - `detail: ImageDetail`4526 - `detail: ImageDetail`

4455 4527 


4701 4773 

4702 - `ResponseInputImage object { detail, type, file_id, 2 more }`4774 - `ResponseInputImage object { detail, type, file_id, 2 more }`

4703 4775 

4704 An image input to the model. Learn about [image inputs](/docs/guides/vision).4776 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

4705 4777 

4706 - `ResponseInputFile object { type, detail, file_data, 4 more }`4778 - `ResponseInputFile object { type, detail, file_data, 4 more }`

4707 4779 


4767 - `FileSearchCall object { id, queries, status, 2 more }`4839 - `FileSearchCall object { id, queries, status, 2 more }`

4768 4840 

4769 The results of a file search tool call. See the4841 The results of a file search tool call. See the

4770 [file search guide](/docs/guides/tools-file-search) for more information.4842 [file search guide](/api/docs/guides/tools-file-search) for more information.

4771 4843 

4772 - `id: string`4844 - `id: string`

4773 4845 


4835 - `WebSearchCall object { id, action, status, type }`4907 - `WebSearchCall object { id, action, status, type }`

4836 4908 

4837 The results of a web search tool call. See the4909 The results of a web search tool call. See the

4838 [web search guide](/docs/guides/tools-web-search) for more information.4910 [web search guide](/api/docs/guides/tools-web-search) for more information.

4839 4911 

4840 - `id: string`4912 - `id: string`

4841 4913 


4930 5002 

4931 - `"web_search_call"`5003 - `"web_search_call"`

4932 5004 

4933 - `ImageGenerationCall object { id, result, status, type }`5005 - `ImageGenerationCall object { id, result, status, 3 more }`

4934 5006 

4935 An image generation request made by the model.5007 An image generation request made by the model.

4936 5008 


4960 5032 

4961 - `"image_generation_call"`5033 - `"image_generation_call"`

4962 5034 

5035 - `quality: optional "low" or "medium" or "high" or 3 more or null`

5036 

5037 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.

5038 

5039 - `"low"`

5040 

5041 - `"medium"`

5042 

5043 - `"high"`

5044 

5045 - `"xhigh"`

5046 

5047 - `"max"`

5048 

5049 - `"auto"`

5050 

5051 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`

5052 

5053 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

5054 

5055 - `string`

5056 

5057 - `"1024x1024" or "1024x1536" or "1536x1024"`

5058 

5059 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

5060 

5061 - `"1024x1024"`

5062 

5063 - `"1024x1536"`

5064 

5065 - `"1536x1024"`

5066 

4963 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`5067 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`

4964 5068 

4965 A tool call to a computer use tool. See the5069 A tool call to a computer use tool. See the

4966 [computer use guide](/docs/guides/tools-computer-use) for more information.5070 [computer use guide](/api/docs/guides/tools-computer-use) for more information.

4967 5071 

4968 - `id: string`5072 - `id: string`

4969 5073 


5387 5491 

5388 - `Function object { name, parameters, strict, 6 more }`5492 - `Function object { name, parameters, strict, 6 more }`

5389 5493 

5390 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).5494 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

5391 5495 

5392 - `name: string`5496 - `name: string`

5393 5497 


5431 5535 

5432 - `FileSearch object { type, vector_store_ids, filters, 2 more }`5536 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

5433 5537 

5434 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).5538 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

5435 5539 

5436 - `type: "file_search"`5540 - `type: "file_search"`

5437 5541 


5556 5660 

5557 - `Computer object { type }`5661 - `Computer object { type }`

5558 5662 

5559 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).5663 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

5560 5664 

5561 - `type: "computer"`5665 - `type: "computer"`

5562 5666 


5566 5670 

5567 - `ComputerUsePreview object { display_height, display_width, environment, type }`5671 - `ComputerUsePreview object { display_height, display_width, environment, type }`

5568 5672 

5569 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).5673 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

5570 5674 

5571 - `display_height: number`5675 - `display_height: number`

5572 5676 


5599 - `WebSearch object { type, external_web_access, filters, 2 more }`5703 - `WebSearch object { type, external_web_access, filters, 2 more }`

5600 5704 

5601 Search the Internet for sources related to the prompt. Learn more about the5705 Search the Internet for sources related to the prompt. Learn more about the

5602 [web search tool](/docs/guides/tools-web-search).5706 [web search tool](/api/docs/guides/tools-web-search).

5603 5707 

5604 - `type: "web_search" or "web_search_2025_08_26"`5708 - `type: "web_search" or "web_search_2025_08_26"`

5605 5709 


5663 - `Mcp object { server_label, type, allowed_callers, 9 more }`5767 - `Mcp object { server_label, type, allowed_callers, 9 more }`

5664 5768 

5665 Give the model access to additional tools via remote Model Context Protocol5769 Give the model access to additional tools via remote Model Context Protocol

5666 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).5770 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

5667 5771 

5668 - `server_label: string`5772 - `server_label: string`

5669 5773 


5715 5819 

5716 Identifier for service connectors, like those available in ChatGPT. One of5820 Identifier for service connectors, like those available in ChatGPT. One of

5717 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more5821 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

5718 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).5822 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

5719 5823 

5720 Currently supported `connector_id` values are:5824 Currently supported `connector_id` values are:

5721 5825 


5939 6043 

5940 - `background: optional "transparent" or "opaque" or "auto"`6044 - `background: optional "transparent" or "opaque" or "auto"`

5941 6045 

5942 Set the background of the generated image. One of `transparent`,6046 Set the background of the generated image. One of `transparent`, `opaque`,

5943 `opaque`, or `auto`. Transparent backgrounds are available for6047 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

5944 supported GPT Image models. For `gpt-image-2` and6048 their `2026-09-08` snapshots, support `opaque` and `transparent`

5945 `gpt-image-2-2026-04-21`, this support is in preview. When using6049 backgrounds. Transparent backgrounds are available for supported GPT Image

5946 `transparent`, set the output format to `png` or `webp`. Default: `auto`.6050 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

6051 preview. When using `transparent`, set the output format to `png` or `webp`.

6052 Default: `auto`.

5947 6053 

5948 - `"transparent"`6054 - `"transparent"`

5949 6055 


5972 6078 

5973 Base64-encoded mask image.6079 Base64-encoded mask image.

5974 6080 

5975 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`6081 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

5976 6082 

5977 The image generation model to use. One of `gpt-image-1`,6083 The image generation model to use. One of `gpt-image-1`,

5978 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,6084 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

5979 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:6085 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6086 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6087 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

5980 `gpt-image-1`.6088 `gpt-image-1`.

5981 6089 

5982 - `string`6090 - `string`

5983 6091 

5984 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`6092 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

5985 6093 

5986 The image generation model to use. One of `gpt-image-1`,6094 The image generation model to use. One of `gpt-image-1`,

5987 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,6095 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

5988 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:6096 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6097 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6098 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

5989 `gpt-image-1`.6099 `gpt-image-1`.

5990 6100 

5991 - `"gpt-image-1"`6101 - `"gpt-image-1"`


5998 6108 

5999 - `"gpt-image-2-2026-04-21"`6109 - `"gpt-image-2-2026-04-21"`

6000 6110 

6111 - `"gpt-image-2.5-sunburst"`

6112 

6113 - `"gpt-image-2.5-sunburst-2026-09-08"`

6114 

6115 - `"gpt-image-2.5-flare"`

6116 

6117 - `"gpt-image-2.5-flare-2026-09-08"`

6118 

6001 - `moderation: optional "auto" or "low"`6119 - `moderation: optional "auto" or "low"`

6002 6120 

6003 Moderation level for the generated image. Default: `auto`.6121 Moderation level for the generated image. Default: `auto`.


6025 6143 

6026 Number of partial images to generate in streaming mode, from 0 (default value) to 3.6144 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

6027 6145 

6028 - `quality: optional "low" or "medium" or "high" or "auto"`6146 - `quality: optional "low" or "medium" or "high" or 3 more`

6029 6147 

6030 The quality of the generated image. One of `low`, `medium`, `high`,6148 The quality of the generated image. The GPT image models support `low`,

6031 or `auto`. Default: `auto`.6149 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

6150 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

6151 Default: `auto`.

6032 6152 

6033 - `"low"`6153 - `"low"`

6034 6154 


6036 6156 

6037 - `"high"`6157 - `"high"`

6038 6158 

6159 - `"xhigh"`

6160 

6161 - `"max"`

6162 

6039 - `"auto"`6163 - `"auto"`

6040 6164 

6041 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`6165 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

6042 6166 

6043 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`.6167 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`.

6044 6168 

6045 - `string`6169 - `string`

6046 6170 

6047 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`6171 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

6048 6172 

6049 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`.6173 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`.

6050 6174 

6051 - `"1024x1024"`6175 - `"1024x1024"`

6052 6176 


6212 6336 

6213 - `Custom object { name, type, allowed_callers, 4 more }`6337 - `Custom object { name, type, allowed_callers, 4 more }`

6214 6338 

6215 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)6339 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

6216 6340 

6217 - `name: string`6341 - `name: string`

6218 6342 


6334 6458 

6335 - `Custom object { name, type, allowed_callers, 4 more }`6459 - `Custom object { name, type, allowed_callers, 4 more }`

6336 6460 

6337 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)6461 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

6338 6462 

6339 - `name: string`6463 - `name: string`

6340 6464 


6404 6528 

6405 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`6529 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

6406 6530 

6407 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).6531 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).

6408 6532 

6409 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`6533 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

6410 6534 


6516 6640 

6517 - `Function object { name, parameters, strict, 6 more }`6641 - `Function object { name, parameters, strict, 6 more }`

6518 6642 

6519 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).6643 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

6520 6644 

6521 - `name: string`6645 - `name: string`

6522 6646 


6560 6684 

6561 - `FileSearch object { type, vector_store_ids, filters, 2 more }`6685 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

6562 6686 

6563 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).6687 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

6564 6688 

6565 - `type: "file_search"`6689 - `type: "file_search"`

6566 6690 


6618 6742 

6619 - `Computer object { type }`6743 - `Computer object { type }`

6620 6744 

6621 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).6745 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

6622 6746 

6623 - `type: "computer"`6747 - `type: "computer"`

6624 6748 


6628 6752 

6629 - `ComputerUsePreview object { display_height, display_width, environment, type }`6753 - `ComputerUsePreview object { display_height, display_width, environment, type }`

6630 6754 

6631 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).6755 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

6632 6756 

6633 - `display_height: number`6757 - `display_height: number`

6634 6758 


6661 - `WebSearch object { type, external_web_access, filters, 2 more }`6785 - `WebSearch object { type, external_web_access, filters, 2 more }`

6662 6786 

6663 Search the Internet for sources related to the prompt. Learn more about the6787 Search the Internet for sources related to the prompt. Learn more about the

6664 [web search tool](/docs/guides/tools-web-search).6788 [web search tool](/api/docs/guides/tools-web-search).

6665 6789 

6666 - `type: "web_search" or "web_search_2025_08_26"`6790 - `type: "web_search" or "web_search_2025_08_26"`

6667 6791 


6725 - `Mcp object { server_label, type, allowed_callers, 9 more }`6849 - `Mcp object { server_label, type, allowed_callers, 9 more }`

6726 6850 

6727 Give the model access to additional tools via remote Model Context Protocol6851 Give the model access to additional tools via remote Model Context Protocol

6728 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).6852 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

6729 6853 

6730 - `server_label: string`6854 - `server_label: string`

6731 6855 


6777 6901 

6778 Identifier for service connectors, like those available in ChatGPT. One of6902 Identifier for service connectors, like those available in ChatGPT. One of

6779 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more6903 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

6780 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).6904 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

6781 6905 

6782 Currently supported `connector_id` values are:6906 Currently supported `connector_id` values are:

6783 6907 


6969 7093 

6970 - `background: optional "transparent" or "opaque" or "auto"`7094 - `background: optional "transparent" or "opaque" or "auto"`

6971 7095 

6972 Set the background of the generated image. One of `transparent`,7096 Set the background of the generated image. One of `transparent`, `opaque`,

6973 `opaque`, or `auto`. Transparent backgrounds are available for7097 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

6974 supported GPT Image models. For `gpt-image-2` and7098 their `2026-09-08` snapshots, support `opaque` and `transparent`

6975 `gpt-image-2-2026-04-21`, this support is in preview. When using7099 backgrounds. Transparent backgrounds are available for supported GPT Image

6976 `transparent`, set the output format to `png` or `webp`. Default: `auto`.7100 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

7101 preview. When using `transparent`, set the output format to `png` or `webp`.

7102 Default: `auto`.

6977 7103 

6978 - `"transparent"`7104 - `"transparent"`

6979 7105 


7002 7128 

7003 Base64-encoded mask image.7129 Base64-encoded mask image.

7004 7130 

7005 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`7131 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

7006 7132 

7007 The image generation model to use. One of `gpt-image-1`,7133 The image generation model to use. One of `gpt-image-1`,

7008 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,7134 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

7009 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:7135 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

7136 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

7137 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

7010 `gpt-image-1`.7138 `gpt-image-1`.

7011 7139 

7012 - `string`7140 - `string`

7013 7141 

7014 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`7142 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

7015 7143 

7016 The image generation model to use. One of `gpt-image-1`,7144 The image generation model to use. One of `gpt-image-1`,

7017 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,7145 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

7018 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:7146 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

7147 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

7148 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

7019 `gpt-image-1`.7149 `gpt-image-1`.

7020 7150 

7021 - `"gpt-image-1"`7151 - `"gpt-image-1"`


7028 7158 

7029 - `"gpt-image-2-2026-04-21"`7159 - `"gpt-image-2-2026-04-21"`

7030 7160 

7161 - `"gpt-image-2.5-sunburst"`

7162 

7163 - `"gpt-image-2.5-sunburst-2026-09-08"`

7164 

7165 - `"gpt-image-2.5-flare"`

7166 

7167 - `"gpt-image-2.5-flare-2026-09-08"`

7168 

7031 - `moderation: optional "auto" or "low"`7169 - `moderation: optional "auto" or "low"`

7032 7170 

7033 Moderation level for the generated image. Default: `auto`.7171 Moderation level for the generated image. Default: `auto`.


7055 7193 

7056 Number of partial images to generate in streaming mode, from 0 (default value) to 3.7194 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

7057 7195 

7058 - `quality: optional "low" or "medium" or "high" or "auto"`7196 - `quality: optional "low" or "medium" or "high" or 3 more`

7059 7197 

7060 The quality of the generated image. One of `low`, `medium`, `high`,7198 The quality of the generated image. The GPT image models support `low`,

7061 or `auto`. Default: `auto`.7199 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

7200 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

7201 Default: `auto`.

7062 7202 

7063 - `"low"`7203 - `"low"`

7064 7204 


7066 7206 

7067 - `"high"`7207 - `"high"`

7068 7208 

7209 - `"xhigh"`

7210 

7211 - `"max"`

7212 

7069 - `"auto"`7213 - `"auto"`

7070 7214 

7071 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`7215 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

7072 7216 

7073 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`.7217 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`.

7074 7218 

7075 - `string`7219 - `string`

7076 7220 

7077 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`7221 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

7078 7222 

7079 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`.7223 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`.

7080 7224 

7081 - `"1024x1024"`7225 - `"1024x1024"`

7082 7226 


7124 7268 

7125 - `Custom object { name, type, allowed_callers, 4 more }`7269 - `Custom object { name, type, allowed_callers, 4 more }`

7126 7270 

7127 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)7271 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

7128 7272 

7129 - `name: string`7273 - `name: string`

7130 7274 


7214 7358 

7215 - `Custom object { name, type, allowed_callers, 4 more }`7359 - `Custom object { name, type, allowed_callers, 4 more }`

7216 7360 

7217 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)7361 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

7218 7362 

7219 - `name: string`7363 - `name: string`

7220 7364 


7284 7428 

7285 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`7429 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

7286 7430 

7287 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).7431 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).

7288 7432 

7289 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`7433 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

7290 7434 


7403 A description of the chain of thought used by a reasoning model while generating7547 A description of the chain of thought used by a reasoning model while generating

7404 a response. Be sure to include these items in your `input` to the Responses API7548 a response. Be sure to include these items in your `input` to the Responses API

7405 for subsequent turns of a conversation if you are manually7549 for subsequent turns of a conversation if you are manually

7406 [managing context](/docs/guides/conversation-state).7550 [managing context](/api/docs/guides/conversation-state).

7407 7551 

7408 - `id: string`7552 - `id: string`

7409 7553 


7518 7662 

7519 - `Compaction object { id, encrypted_content, type, created_by }`7663 - `Compaction object { id, encrypted_content, type, created_by }`

7520 7664 

7521 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).7665 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).

7522 7666 

7523 - `id: string`7667 - `id: string`

7524 7668 


8299 8443 

8300 - `ResponseInputImage object { detail, type, file_id, 2 more }`8444 - `ResponseInputImage object { detail, type, file_id, 2 more }`

8301 8445 

8302 An image input to the model. Learn about [image inputs](/docs/guides/vision).8446 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

8303 8447 

8304 - `ResponseInputFile object { type, detail, file_data, 4 more }`8448 - `ResponseInputFile object { type, detail, file_data, 4 more }`

8305 8449 

Details

288 288 

289 - `ResponseInputImage object { detail, type, file_id, 2 more }`289 - `ResponseInputImage object { detail, type, file_id, 2 more }`

290 290 

291 An image input to the model. Learn about [image inputs](/docs/guides/vision).291 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

292 292 

293 - `detail: ImageDetail`293 - `detail: ImageDetail`

294 294 


540 540 

541 - `ResponseInputImage object { detail, type, file_id, 2 more }`541 - `ResponseInputImage object { detail, type, file_id, 2 more }`

542 542 

543 An image input to the model. Learn about [image inputs](/docs/guides/vision).543 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

544 544 

545 - `ResponseInputFile object { type, detail, file_data, 4 more }`545 - `ResponseInputFile object { type, detail, file_data, 4 more }`

546 546 


606 - `FileSearchCall object { id, queries, status, 2 more }`606 - `FileSearchCall object { id, queries, status, 2 more }`

607 607 

608 The results of a file search tool call. See the608 The results of a file search tool call. See the

609 [file search guide](/docs/guides/tools-file-search) for more information.609 [file search guide](/api/docs/guides/tools-file-search) for more information.

610 610 

611 - `id: string`611 - `id: string`

612 612 


674 - `WebSearchCall object { id, action, status, type }`674 - `WebSearchCall object { id, action, status, type }`

675 675 

676 The results of a web search tool call. See the676 The results of a web search tool call. See the

677 [web search guide](/docs/guides/tools-web-search) for more information.677 [web search guide](/api/docs/guides/tools-web-search) for more information.

678 678 

679 - `id: string`679 - `id: string`

680 680 


769 769 

770 - `"web_search_call"`770 - `"web_search_call"`

771 771 

772 - `ImageGenerationCall object { id, result, status, type }`772 - `ImageGenerationCall object { id, result, status, 3 more }`

773 773 

774 An image generation request made by the model.774 An image generation request made by the model.

775 775 


799 799 

800 - `"image_generation_call"`800 - `"image_generation_call"`

801 801 

802 - `quality: optional "low" or "medium" or "high" or 3 more or null`

803 

804 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.

805 

806 - `"low"`

807 

808 - `"medium"`

809 

810 - `"high"`

811 

812 - `"xhigh"`

813 

814 - `"max"`

815 

816 - `"auto"`

817 

818 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`

819 

820 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

821 

822 - `string`

823 

824 - `"1024x1024" or "1024x1536" or "1536x1024"`

825 

826 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

827 

828 - `"1024x1024"`

829 

830 - `"1024x1536"`

831 

832 - `"1536x1024"`

833 

802 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`834 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`

803 835 

804 A tool call to a computer use tool. See the836 A tool call to a computer use tool. See the

805 [computer use guide](/docs/guides/tools-computer-use) for more information.837 [computer use guide](/api/docs/guides/tools-computer-use) for more information.

806 838 

807 - `id: string`839 - `id: string`

808 840 


1226 1258 

1227 - `Function object { name, parameters, strict, 6 more }`1259 - `Function object { name, parameters, strict, 6 more }`

1228 1260 

1229 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).1261 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

1230 1262 

1231 - `name: string`1263 - `name: string`

1232 1264 


1270 1302 

1271 - `FileSearch object { type, vector_store_ids, filters, 2 more }`1303 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

1272 1304 

1273 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).1305 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

1274 1306 

1275 - `type: "file_search"`1307 - `type: "file_search"`

1276 1308 


1395 1427 

1396 - `Computer object { type }`1428 - `Computer object { type }`

1397 1429 

1398 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1430 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1399 1431 

1400 - `type: "computer"`1432 - `type: "computer"`

1401 1433 


1405 1437 

1406 - `ComputerUsePreview object { display_height, display_width, environment, type }`1438 - `ComputerUsePreview object { display_height, display_width, environment, type }`

1407 1439 

1408 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1440 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1409 1441 

1410 - `display_height: number`1442 - `display_height: number`

1411 1443 


1438 - `WebSearch object { type, external_web_access, filters, 2 more }`1470 - `WebSearch object { type, external_web_access, filters, 2 more }`

1439 1471 

1440 Search the Internet for sources related to the prompt. Learn more about the1472 Search the Internet for sources related to the prompt. Learn more about the

1441 [web search tool](/docs/guides/tools-web-search).1473 [web search tool](/api/docs/guides/tools-web-search).

1442 1474 

1443 - `type: "web_search" or "web_search_2025_08_26"`1475 - `type: "web_search" or "web_search_2025_08_26"`

1444 1476 


1502 - `Mcp object { server_label, type, allowed_callers, 9 more }`1534 - `Mcp object { server_label, type, allowed_callers, 9 more }`

1503 1535 

1504 Give the model access to additional tools via remote Model Context Protocol1536 Give the model access to additional tools via remote Model Context Protocol

1505 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).1537 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

1506 1538 

1507 - `server_label: string`1539 - `server_label: string`

1508 1540 


1554 1586 

1555 Identifier for service connectors, like those available in ChatGPT. One of1587 Identifier for service connectors, like those available in ChatGPT. One of

1556 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more1588 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

1557 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).1589 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

1558 1590 

1559 Currently supported `connector_id` values are:1591 Currently supported `connector_id` values are:

1560 1592 


1778 1810 

1779 - `background: optional "transparent" or "opaque" or "auto"`1811 - `background: optional "transparent" or "opaque" or "auto"`

1780 1812 

1781 Set the background of the generated image. One of `transparent`,1813 Set the background of the generated image. One of `transparent`, `opaque`,

1782 `opaque`, or `auto`. Transparent backgrounds are available for1814 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

1783 supported GPT Image models. For `gpt-image-2` and1815 their `2026-09-08` snapshots, support `opaque` and `transparent`

1784 `gpt-image-2-2026-04-21`, this support is in preview. When using1816 backgrounds. Transparent backgrounds are available for supported GPT Image

1785 `transparent`, set the output format to `png` or `webp`. Default: `auto`.1817 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

1818 preview. When using `transparent`, set the output format to `png` or `webp`.

1819 Default: `auto`.

1786 1820 

1787 - `"transparent"`1821 - `"transparent"`

1788 1822 


1811 1845 

1812 Base64-encoded mask image.1846 Base64-encoded mask image.

1813 1847 

1814 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1848 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1815 1849 

1816 The image generation model to use. One of `gpt-image-1`,1850 The image generation model to use. One of `gpt-image-1`,

1817 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1851 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1818 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1852 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1853 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1854 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1819 `gpt-image-1`.1855 `gpt-image-1`.

1820 1856 

1821 - `string`1857 - `string`

1822 1858 

1823 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1859 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1824 1860 

1825 The image generation model to use. One of `gpt-image-1`,1861 The image generation model to use. One of `gpt-image-1`,

1826 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1862 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1827 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1863 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1864 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1865 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1828 `gpt-image-1`.1866 `gpt-image-1`.

1829 1867 

1830 - `"gpt-image-1"`1868 - `"gpt-image-1"`


1837 1875 

1838 - `"gpt-image-2-2026-04-21"`1876 - `"gpt-image-2-2026-04-21"`

1839 1877 

1878 - `"gpt-image-2.5-sunburst"`

1879 

1880 - `"gpt-image-2.5-sunburst-2026-09-08"`

1881 

1882 - `"gpt-image-2.5-flare"`

1883 

1884 - `"gpt-image-2.5-flare-2026-09-08"`

1885 

1840 - `moderation: optional "auto" or "low"`1886 - `moderation: optional "auto" or "low"`

1841 1887 

1842 Moderation level for the generated image. Default: `auto`.1888 Moderation level for the generated image. Default: `auto`.


1864 1910 

1865 Number of partial images to generate in streaming mode, from 0 (default value) to 3.1911 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

1866 1912 

1867 - `quality: optional "low" or "medium" or "high" or "auto"`1913 - `quality: optional "low" or "medium" or "high" or 3 more`

1868 1914 

1869 The quality of the generated image. One of `low`, `medium`, `high`,1915 The quality of the generated image. The GPT image models support `low`,

1870 or `auto`. Default: `auto`.1916 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

1917 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

1918 Default: `auto`.

1871 1919 

1872 - `"low"`1920 - `"low"`

1873 1921 


1875 1923 

1876 - `"high"`1924 - `"high"`

1877 1925 

1926 - `"xhigh"`

1927 

1928 - `"max"`

1929 

1878 - `"auto"`1930 - `"auto"`

1879 1931 

1880 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`1932 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

1881 1933 

1882 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`.1934 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`.

1883 1935 

1884 - `string`1936 - `string`

1885 1937 

1886 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`1938 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

1887 1939 

1888 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`.1940 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`.

1889 1941 

1890 - `"1024x1024"`1942 - `"1024x1024"`

1891 1943 


2051 2103 

2052 - `Custom object { name, type, allowed_callers, 4 more }`2104 - `Custom object { name, type, allowed_callers, 4 more }`

2053 2105 

2054 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2106 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2055 2107 

2056 - `name: string`2108 - `name: string`

2057 2109 


2173 2225 

2174 - `Custom object { name, type, allowed_callers, 4 more }`2226 - `Custom object { name, type, allowed_callers, 4 more }`

2175 2227 

2176 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2228 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2177 2229 

2178 - `name: string`2230 - `name: string`

2179 2231 


2243 2295 

2244 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`2296 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

2245 2297 

2246 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).2298 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).

2247 2299 

2248 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`2300 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

2249 2301 


2355 2407 

2356 - `Function object { name, parameters, strict, 6 more }`2408 - `Function object { name, parameters, strict, 6 more }`

2357 2409 

2358 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).2410 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

2359 2411 

2360 - `name: string`2412 - `name: string`

2361 2413 


2399 2451 

2400 - `FileSearch object { type, vector_store_ids, filters, 2 more }`2452 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

2401 2453 

2402 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).2454 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

2403 2455 

2404 - `type: "file_search"`2456 - `type: "file_search"`

2405 2457 


2457 2509 

2458 - `Computer object { type }`2510 - `Computer object { type }`

2459 2511 

2460 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).2512 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

2461 2513 

2462 - `type: "computer"`2514 - `type: "computer"`

2463 2515 


2467 2519 

2468 - `ComputerUsePreview object { display_height, display_width, environment, type }`2520 - `ComputerUsePreview object { display_height, display_width, environment, type }`

2469 2521 

2470 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).2522 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

2471 2523 

2472 - `display_height: number`2524 - `display_height: number`

2473 2525 


2500 - `WebSearch object { type, external_web_access, filters, 2 more }`2552 - `WebSearch object { type, external_web_access, filters, 2 more }`

2501 2553 

2502 Search the Internet for sources related to the prompt. Learn more about the2554 Search the Internet for sources related to the prompt. Learn more about the

2503 [web search tool](/docs/guides/tools-web-search).2555 [web search tool](/api/docs/guides/tools-web-search).

2504 2556 

2505 - `type: "web_search" or "web_search_2025_08_26"`2557 - `type: "web_search" or "web_search_2025_08_26"`

2506 2558 


2564 - `Mcp object { server_label, type, allowed_callers, 9 more }`2616 - `Mcp object { server_label, type, allowed_callers, 9 more }`

2565 2617 

2566 Give the model access to additional tools via remote Model Context Protocol2618 Give the model access to additional tools via remote Model Context Protocol

2567 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).2619 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

2568 2620 

2569 - `server_label: string`2621 - `server_label: string`

2570 2622 


2616 2668 

2617 Identifier for service connectors, like those available in ChatGPT. One of2669 Identifier for service connectors, like those available in ChatGPT. One of

2618 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more2670 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

2619 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).2671 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

2620 2672 

2621 Currently supported `connector_id` values are:2673 Currently supported `connector_id` values are:

2622 2674 


2808 2860 

2809 - `background: optional "transparent" or "opaque" or "auto"`2861 - `background: optional "transparent" or "opaque" or "auto"`

2810 2862 

2811 Set the background of the generated image. One of `transparent`,2863 Set the background of the generated image. One of `transparent`, `opaque`,

2812 `opaque`, or `auto`. Transparent backgrounds are available for2864 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

2813 supported GPT Image models. For `gpt-image-2` and2865 their `2026-09-08` snapshots, support `opaque` and `transparent`

2814 `gpt-image-2-2026-04-21`, this support is in preview. When using2866 backgrounds. Transparent backgrounds are available for supported GPT Image

2815 `transparent`, set the output format to `png` or `webp`. Default: `auto`.2867 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

2868 preview. When using `transparent`, set the output format to `png` or `webp`.

2869 Default: `auto`.

2816 2870 

2817 - `"transparent"`2871 - `"transparent"`

2818 2872 


2841 2895 

2842 Base64-encoded mask image.2896 Base64-encoded mask image.

2843 2897 

2844 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2898 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2845 2899 

2846 The image generation model to use. One of `gpt-image-1`,2900 The image generation model to use. One of `gpt-image-1`,

2847 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2901 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2848 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2902 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2903 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2904 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2849 `gpt-image-1`.2905 `gpt-image-1`.

2850 2906 

2851 - `string`2907 - `string`

2852 2908 

2853 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2909 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2854 2910 

2855 The image generation model to use. One of `gpt-image-1`,2911 The image generation model to use. One of `gpt-image-1`,

2856 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2912 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2857 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2913 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2914 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2915 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2858 `gpt-image-1`.2916 `gpt-image-1`.

2859 2917 

2860 - `"gpt-image-1"`2918 - `"gpt-image-1"`


2867 2925 

2868 - `"gpt-image-2-2026-04-21"`2926 - `"gpt-image-2-2026-04-21"`

2869 2927 

2928 - `"gpt-image-2.5-sunburst"`

2929 

2930 - `"gpt-image-2.5-sunburst-2026-09-08"`

2931 

2932 - `"gpt-image-2.5-flare"`

2933 

2934 - `"gpt-image-2.5-flare-2026-09-08"`

2935 

2870 - `moderation: optional "auto" or "low"`2936 - `moderation: optional "auto" or "low"`

2871 2937 

2872 Moderation level for the generated image. Default: `auto`.2938 Moderation level for the generated image. Default: `auto`.


2894 2960 

2895 Number of partial images to generate in streaming mode, from 0 (default value) to 3.2961 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

2896 2962 

2897 - `quality: optional "low" or "medium" or "high" or "auto"`2963 - `quality: optional "low" or "medium" or "high" or 3 more`

2898 2964 

2899 The quality of the generated image. One of `low`, `medium`, `high`,2965 The quality of the generated image. The GPT image models support `low`,

2900 or `auto`. Default: `auto`.2966 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

2967 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

2968 Default: `auto`.

2901 2969 

2902 - `"low"`2970 - `"low"`

2903 2971 


2905 2973 

2906 - `"high"`2974 - `"high"`

2907 2975 

2976 - `"xhigh"`

2977 

2978 - `"max"`

2979 

2908 - `"auto"`2980 - `"auto"`

2909 2981 

2910 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`2982 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2911 2983 

2912 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`.2984 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`.

2913 2985 

2914 - `string`2986 - `string`

2915 2987 

2916 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`2988 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2917 2989 

2918 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`.2990 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`.

2919 2991 

2920 - `"1024x1024"`2992 - `"1024x1024"`

2921 2993 


2963 3035 

2964 - `Custom object { name, type, allowed_callers, 4 more }`3036 - `Custom object { name, type, allowed_callers, 4 more }`

2965 3037 

2966 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3038 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2967 3039 

2968 - `name: string`3040 - `name: string`

2969 3041 


3053 3125 

3054 - `Custom object { name, type, allowed_callers, 4 more }`3126 - `Custom object { name, type, allowed_callers, 4 more }`

3055 3127 

3056 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3128 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

3057 3129 

3058 - `name: string`3130 - `name: string`

3059 3131 


3123 3195 

3124 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`3196 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

3125 3197 

3126 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).3198 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).

3127 3199 

3128 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`3200 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

3129 3201 


3242 A description of the chain of thought used by a reasoning model while generating3314 A description of the chain of thought used by a reasoning model while generating

3243 a response. Be sure to include these items in your `input` to the Responses API3315 a response. Be sure to include these items in your `input` to the Responses API

3244 for subsequent turns of a conversation if you are manually3316 for subsequent turns of a conversation if you are manually

3245 [managing context](/docs/guides/conversation-state).3317 [managing context](/api/docs/guides/conversation-state).

3246 3318 

3247 - `id: string`3319 - `id: string`

3248 3320 


3357 3429 

3358 - `Compaction object { id, encrypted_content, type, created_by }`3430 - `Compaction object { id, encrypted_content, type, created_by }`

3359 3431 

3360 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).3432 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).

3361 3433 

3362 - `id: string`3434 - `id: string`

3363 3435 


4138 4210 

4139 - `ResponseInputImage object { detail, type, file_id, 2 more }`4211 - `ResponseInputImage object { detail, type, file_id, 2 more }`

4140 4212 

4141 An image input to the model. Learn about [image inputs](/docs/guides/vision).4213 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

4142 4214 

4143 - `ResponseInputFile object { type, detail, file_data, 4 more }`4215 - `ResponseInputFile object { type, detail, file_data, 4 more }`

4144 4216 

Details

15- `include: optional array of ResponseIncludable`15- `include: optional array of ResponseIncludable`

16 16 

17 Additional fields to include in the response. See the `include`17 Additional fields to include in the response. See the `include`

18 parameter for [listing Conversation items above](/docs/api-reference/conversations/list-items#conversations_list_items-include) for more information.18 parameter for [listing Conversation items above](/api/reference/resources/conversations/subresources/items/methods/list#%28resource%29%20conversations.items%20%3E%20%28method%29%20list%20%3E%20%28params%29%20default%20%3E%20%28param%29%20include%20%3E%20%28schema%29) for more information.

19 19 

20 - `"file_search_call.results"`20 - `"file_search_call.results"`

21 21 


37 37 

38- `ConversationItem = Message or object { id, arguments, call_id, 7 more } or object { id, output, status, 6 more } or 26 more`38- `ConversationItem = Message or object { id, arguments, call_id, 7 more } or object { id, output, status, 6 more } or 26 more`

39 39 

40 A single item within a conversation. The set of possible types are the same as the `output` type of a [Response object](/docs/api-reference/responses/object#responses/object-output).40 A single item within a conversation. The set of possible types are the same as the `output` type of a [Response object](/api/reference/resources/responses#%28resource%29%20responses%20%3E%20%28model%29%20response%20%3E%20%28schema%29%20%3E%20%28property%29%20output).

41 41 

42 - `Message object { id, content, role, 3 more }`42 - `Message object { id, content, role, 3 more }`

43 43 


259 259 

260 - `ResponseInputImage object { detail, type, file_id, 2 more }`260 - `ResponseInputImage object { detail, type, file_id, 2 more }`

261 261 

262 An image input to the model. Learn about [image inputs](/docs/guides/vision).262 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

263 263 

264 - `detail: ImageDetail`264 - `detail: ImageDetail`

265 265 


511 511 

512 - `ResponseInputImage object { detail, type, file_id, 2 more }`512 - `ResponseInputImage object { detail, type, file_id, 2 more }`

513 513 

514 An image input to the model. Learn about [image inputs](/docs/guides/vision).514 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

515 515 

516 - `ResponseInputFile object { type, detail, file_data, 4 more }`516 - `ResponseInputFile object { type, detail, file_data, 4 more }`

517 517 


577 - `FileSearchCall object { id, queries, status, 2 more }`577 - `FileSearchCall object { id, queries, status, 2 more }`

578 578 

579 The results of a file search tool call. See the579 The results of a file search tool call. See the

580 [file search guide](/docs/guides/tools-file-search) for more information.580 [file search guide](/api/docs/guides/tools-file-search) for more information.

581 581 

582 - `id: string`582 - `id: string`

583 583 


645 - `WebSearchCall object { id, action, status, type }`645 - `WebSearchCall object { id, action, status, type }`

646 646 

647 The results of a web search tool call. See the647 The results of a web search tool call. See the

648 [web search guide](/docs/guides/tools-web-search) for more information.648 [web search guide](/api/docs/guides/tools-web-search) for more information.

649 649 

650 - `id: string`650 - `id: string`

651 651 


740 740 

741 - `"web_search_call"`741 - `"web_search_call"`

742 742 

743 - `ImageGenerationCall object { id, result, status, type }`743 - `ImageGenerationCall object { id, result, status, 3 more }`

744 744 

745 An image generation request made by the model.745 An image generation request made by the model.

746 746 


770 770 

771 - `"image_generation_call"`771 - `"image_generation_call"`

772 772 

773 - `quality: optional "low" or "medium" or "high" or 3 more or null`

774 

775 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.

776 

777 - `"low"`

778 

779 - `"medium"`

780 

781 - `"high"`

782 

783 - `"xhigh"`

784 

785 - `"max"`

786 

787 - `"auto"`

788 

789 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`

790 

791 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

792 

793 - `string`

794 

795 - `"1024x1024" or "1024x1536" or "1536x1024"`

796 

797 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

798 

799 - `"1024x1024"`

800 

801 - `"1024x1536"`

802 

803 - `"1536x1024"`

804 

773 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`805 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`

774 806 

775 A tool call to a computer use tool. See the807 A tool call to a computer use tool. See the

776 [computer use guide](/docs/guides/tools-computer-use) for more information.808 [computer use guide](/api/docs/guides/tools-computer-use) for more information.

777 809 

778 - `id: string`810 - `id: string`

779 811 


1197 1229 

1198 - `Function object { name, parameters, strict, 6 more }`1230 - `Function object { name, parameters, strict, 6 more }`

1199 1231 

1200 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).1232 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

1201 1233 

1202 - `name: string`1234 - `name: string`

1203 1235 


1241 1273 

1242 - `FileSearch object { type, vector_store_ids, filters, 2 more }`1274 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

1243 1275 

1244 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).1276 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

1245 1277 

1246 - `type: "file_search"`1278 - `type: "file_search"`

1247 1279 


1366 1398 

1367 - `Computer object { type }`1399 - `Computer object { type }`

1368 1400 

1369 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1401 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1370 1402 

1371 - `type: "computer"`1403 - `type: "computer"`

1372 1404 


1376 1408 

1377 - `ComputerUsePreview object { display_height, display_width, environment, type }`1409 - `ComputerUsePreview object { display_height, display_width, environment, type }`

1378 1410 

1379 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1411 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1380 1412 

1381 - `display_height: number`1413 - `display_height: number`

1382 1414 


1409 - `WebSearch object { type, external_web_access, filters, 2 more }`1441 - `WebSearch object { type, external_web_access, filters, 2 more }`

1410 1442 

1411 Search the Internet for sources related to the prompt. Learn more about the1443 Search the Internet for sources related to the prompt. Learn more about the

1412 [web search tool](/docs/guides/tools-web-search).1444 [web search tool](/api/docs/guides/tools-web-search).

1413 1445 

1414 - `type: "web_search" or "web_search_2025_08_26"`1446 - `type: "web_search" or "web_search_2025_08_26"`

1415 1447 


1473 - `Mcp object { server_label, type, allowed_callers, 9 more }`1505 - `Mcp object { server_label, type, allowed_callers, 9 more }`

1474 1506 

1475 Give the model access to additional tools via remote Model Context Protocol1507 Give the model access to additional tools via remote Model Context Protocol

1476 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).1508 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

1477 1509 

1478 - `server_label: string`1510 - `server_label: string`

1479 1511 


1525 1557 

1526 Identifier for service connectors, like those available in ChatGPT. One of1558 Identifier for service connectors, like those available in ChatGPT. One of

1527 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more1559 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

1528 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).1560 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

1529 1561 

1530 Currently supported `connector_id` values are:1562 Currently supported `connector_id` values are:

1531 1563 


1749 1781 

1750 - `background: optional "transparent" or "opaque" or "auto"`1782 - `background: optional "transparent" or "opaque" or "auto"`

1751 1783 

1752 Set the background of the generated image. One of `transparent`,1784 Set the background of the generated image. One of `transparent`, `opaque`,

1753 `opaque`, or `auto`. Transparent backgrounds are available for1785 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

1754 supported GPT Image models. For `gpt-image-2` and1786 their `2026-09-08` snapshots, support `opaque` and `transparent`

1755 `gpt-image-2-2026-04-21`, this support is in preview. When using1787 backgrounds. Transparent backgrounds are available for supported GPT Image

1756 `transparent`, set the output format to `png` or `webp`. Default: `auto`.1788 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

1789 preview. When using `transparent`, set the output format to `png` or `webp`.

1790 Default: `auto`.

1757 1791 

1758 - `"transparent"`1792 - `"transparent"`

1759 1793 


1782 1816 

1783 Base64-encoded mask image.1817 Base64-encoded mask image.

1784 1818 

1785 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1819 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1786 1820 

1787 The image generation model to use. One of `gpt-image-1`,1821 The image generation model to use. One of `gpt-image-1`,

1788 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1822 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1789 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1823 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1824 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1825 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1790 `gpt-image-1`.1826 `gpt-image-1`.

1791 1827 

1792 - `string`1828 - `string`

1793 1829 

1794 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1830 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1795 1831 

1796 The image generation model to use. One of `gpt-image-1`,1832 The image generation model to use. One of `gpt-image-1`,

1797 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1833 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1798 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1834 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1835 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1836 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1799 `gpt-image-1`.1837 `gpt-image-1`.

1800 1838 

1801 - `"gpt-image-1"`1839 - `"gpt-image-1"`


1808 1846 

1809 - `"gpt-image-2-2026-04-21"`1847 - `"gpt-image-2-2026-04-21"`

1810 1848 

1849 - `"gpt-image-2.5-sunburst"`

1850 

1851 - `"gpt-image-2.5-sunburst-2026-09-08"`

1852 

1853 - `"gpt-image-2.5-flare"`

1854 

1855 - `"gpt-image-2.5-flare-2026-09-08"`

1856 

1811 - `moderation: optional "auto" or "low"`1857 - `moderation: optional "auto" or "low"`

1812 1858 

1813 Moderation level for the generated image. Default: `auto`.1859 Moderation level for the generated image. Default: `auto`.


1835 1881 

1836 Number of partial images to generate in streaming mode, from 0 (default value) to 3.1882 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

1837 1883 

1838 - `quality: optional "low" or "medium" or "high" or "auto"`1884 - `quality: optional "low" or "medium" or "high" or 3 more`

1839 1885 

1840 The quality of the generated image. One of `low`, `medium`, `high`,1886 The quality of the generated image. The GPT image models support `low`,

1841 or `auto`. Default: `auto`.1887 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

1888 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

1889 Default: `auto`.

1842 1890 

1843 - `"low"`1891 - `"low"`

1844 1892 


1846 1894 

1847 - `"high"`1895 - `"high"`

1848 1896 

1897 - `"xhigh"`

1898 

1899 - `"max"`

1900 

1849 - `"auto"`1901 - `"auto"`

1850 1902 

1851 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`1903 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

1852 1904 

1853 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`.1905 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`.

1854 1906 

1855 - `string`1907 - `string`

1856 1908 

1857 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`1909 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

1858 1910 

1859 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`.1911 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`.

1860 1912 

1861 - `"1024x1024"`1913 - `"1024x1024"`

1862 1914 


2022 2074 

2023 - `Custom object { name, type, allowed_callers, 4 more }`2075 - `Custom object { name, type, allowed_callers, 4 more }`

2024 2076 

2025 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2077 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2026 2078 

2027 - `name: string`2079 - `name: string`

2028 2080 


2144 2196 

2145 - `Custom object { name, type, allowed_callers, 4 more }`2197 - `Custom object { name, type, allowed_callers, 4 more }`

2146 2198 

2147 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2199 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2148 2200 

2149 - `name: string`2201 - `name: string`

2150 2202 


2214 2266 

2215 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`2267 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

2216 2268 

2217 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).2269 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).

2218 2270 

2219 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`2271 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

2220 2272 


2326 2378 

2327 - `Function object { name, parameters, strict, 6 more }`2379 - `Function object { name, parameters, strict, 6 more }`

2328 2380 

2329 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).2381 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

2330 2382 

2331 - `name: string`2383 - `name: string`

2332 2384 


2370 2422 

2371 - `FileSearch object { type, vector_store_ids, filters, 2 more }`2423 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

2372 2424 

2373 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).2425 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

2374 2426 

2375 - `type: "file_search"`2427 - `type: "file_search"`

2376 2428 


2428 2480 

2429 - `Computer object { type }`2481 - `Computer object { type }`

2430 2482 

2431 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).2483 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

2432 2484 

2433 - `type: "computer"`2485 - `type: "computer"`

2434 2486 


2438 2490 

2439 - `ComputerUsePreview object { display_height, display_width, environment, type }`2491 - `ComputerUsePreview object { display_height, display_width, environment, type }`

2440 2492 

2441 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).2493 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

2442 2494 

2443 - `display_height: number`2495 - `display_height: number`

2444 2496 


2471 - `WebSearch object { type, external_web_access, filters, 2 more }`2523 - `WebSearch object { type, external_web_access, filters, 2 more }`

2472 2524 

2473 Search the Internet for sources related to the prompt. Learn more about the2525 Search the Internet for sources related to the prompt. Learn more about the

2474 [web search tool](/docs/guides/tools-web-search).2526 [web search tool](/api/docs/guides/tools-web-search).

2475 2527 

2476 - `type: "web_search" or "web_search_2025_08_26"`2528 - `type: "web_search" or "web_search_2025_08_26"`

2477 2529 


2535 - `Mcp object { server_label, type, allowed_callers, 9 more }`2587 - `Mcp object { server_label, type, allowed_callers, 9 more }`

2536 2588 

2537 Give the model access to additional tools via remote Model Context Protocol2589 Give the model access to additional tools via remote Model Context Protocol

2538 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).2590 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

2539 2591 

2540 - `server_label: string`2592 - `server_label: string`

2541 2593 


2587 2639 

2588 Identifier for service connectors, like those available in ChatGPT. One of2640 Identifier for service connectors, like those available in ChatGPT. One of

2589 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more2641 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

2590 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).2642 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

2591 2643 

2592 Currently supported `connector_id` values are:2644 Currently supported `connector_id` values are:

2593 2645 


2779 2831 

2780 - `background: optional "transparent" or "opaque" or "auto"`2832 - `background: optional "transparent" or "opaque" or "auto"`

2781 2833 

2782 Set the background of the generated image. One of `transparent`,2834 Set the background of the generated image. One of `transparent`, `opaque`,

2783 `opaque`, or `auto`. Transparent backgrounds are available for2835 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

2784 supported GPT Image models. For `gpt-image-2` and2836 their `2026-09-08` snapshots, support `opaque` and `transparent`

2785 `gpt-image-2-2026-04-21`, this support is in preview. When using2837 backgrounds. Transparent backgrounds are available for supported GPT Image

2786 `transparent`, set the output format to `png` or `webp`. Default: `auto`.2838 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

2839 preview. When using `transparent`, set the output format to `png` or `webp`.

2840 Default: `auto`.

2787 2841 

2788 - `"transparent"`2842 - `"transparent"`

2789 2843 


2812 2866 

2813 Base64-encoded mask image.2867 Base64-encoded mask image.

2814 2868 

2815 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2869 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2816 2870 

2817 The image generation model to use. One of `gpt-image-1`,2871 The image generation model to use. One of `gpt-image-1`,

2818 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2872 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2819 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2873 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2874 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2875 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2820 `gpt-image-1`.2876 `gpt-image-1`.

2821 2877 

2822 - `string`2878 - `string`

2823 2879 

2824 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2880 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2825 2881 

2826 The image generation model to use. One of `gpt-image-1`,2882 The image generation model to use. One of `gpt-image-1`,

2827 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2883 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2828 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2884 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2885 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2886 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2829 `gpt-image-1`.2887 `gpt-image-1`.

2830 2888 

2831 - `"gpt-image-1"`2889 - `"gpt-image-1"`


2838 2896 

2839 - `"gpt-image-2-2026-04-21"`2897 - `"gpt-image-2-2026-04-21"`

2840 2898 

2899 - `"gpt-image-2.5-sunburst"`

2900 

2901 - `"gpt-image-2.5-sunburst-2026-09-08"`

2902 

2903 - `"gpt-image-2.5-flare"`

2904 

2905 - `"gpt-image-2.5-flare-2026-09-08"`

2906 

2841 - `moderation: optional "auto" or "low"`2907 - `moderation: optional "auto" or "low"`

2842 2908 

2843 Moderation level for the generated image. Default: `auto`.2909 Moderation level for the generated image. Default: `auto`.


2865 2931 

2866 Number of partial images to generate in streaming mode, from 0 (default value) to 3.2932 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

2867 2933 

2868 - `quality: optional "low" or "medium" or "high" or "auto"`2934 - `quality: optional "low" or "medium" or "high" or 3 more`

2869 2935 

2870 The quality of the generated image. One of `low`, `medium`, `high`,2936 The quality of the generated image. The GPT image models support `low`,

2871 or `auto`. Default: `auto`.2937 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

2938 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

2939 Default: `auto`.

2872 2940 

2873 - `"low"`2941 - `"low"`

2874 2942 


2876 2944 

2877 - `"high"`2945 - `"high"`

2878 2946 

2947 - `"xhigh"`

2948 

2949 - `"max"`

2950 

2879 - `"auto"`2951 - `"auto"`

2880 2952 

2881 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`2953 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2882 2954 

2883 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`.2955 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`.

2884 2956 

2885 - `string`2957 - `string`

2886 2958 

2887 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`2959 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2888 2960 

2889 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`.2961 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`.

2890 2962 

2891 - `"1024x1024"`2963 - `"1024x1024"`

2892 2964 


2934 3006 

2935 - `Custom object { name, type, allowed_callers, 4 more }`3007 - `Custom object { name, type, allowed_callers, 4 more }`

2936 3008 

2937 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3009 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2938 3010 

2939 - `name: string`3011 - `name: string`

2940 3012 


3024 3096 

3025 - `Custom object { name, type, allowed_callers, 4 more }`3097 - `Custom object { name, type, allowed_callers, 4 more }`

3026 3098 

3027 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3099 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

3028 3100 

3029 - `name: string`3101 - `name: string`

3030 3102 


3094 3166 

3095 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`3167 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

3096 3168 

3097 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).3169 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).

3098 3170 

3099 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`3171 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

3100 3172 


3213 A description of the chain of thought used by a reasoning model while generating3285 A description of the chain of thought used by a reasoning model while generating

3214 a response. Be sure to include these items in your `input` to the Responses API3286 a response. Be sure to include these items in your `input` to the Responses API

3215 for subsequent turns of a conversation if you are manually3287 for subsequent turns of a conversation if you are manually

3216 [managing context](/docs/guides/conversation-state).3288 [managing context](/api/docs/guides/conversation-state).

3217 3289 

3218 - `id: string`3290 - `id: string`

3219 3291 


3328 3400 

3329 - `Compaction object { id, encrypted_content, type, created_by }`3401 - `Compaction object { id, encrypted_content, type, created_by }`

3330 3402 

3331 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).3403 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).

3332 3404 

3333 - `id: string`3405 - `id: string`

3334 3406 


4109 4181 

4110 - `ResponseInputImage object { detail, type, file_id, 2 more }`4182 - `ResponseInputImage object { detail, type, file_id, 2 more }`

4111 4183 

4112 An image input to the model. Learn about [image inputs](/docs/guides/vision).4184 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

4113 4185 

4114 - `ResponseInputFile object { type, detail, file_data, 4 more }`4186 - `ResponseInputFile object { type, detail, file_data, 4 more }`

4115 4187 

Details

28 28 

29- `model: string or EmbeddingModel`29- `model: string or EmbeddingModel`

30 30 

31 ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.31 ID of the model to use. You can use the [List models](/api/reference/resources/models/methods/list) API to see all of your available models, or see our [Model overview](/api/docs/models) for descriptions of them.

32 32 

33 - `string`33 - `string`

34 34 


54 54 

55- `user: optional string`55- `user: optional string`

56 56 

57 A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).57 A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/api/docs/guides/safety-best-practices#implement-safety-identifiers).

58 58 

59### Returns59### Returns

60 60 


66 66 

67 - `embedding: array of number`67 - `embedding: array of number`

68 68 

69 The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the [embedding guide](/docs/guides/embeddings).69 The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the [embedding guide](/api/docs/guides/embeddings).

70 70 

71 - `index: number`71 - `index: number`

72 72 

Details

4 4 

5Create the structure of an evaluation that can be used to test a model's performance.5Create the structure of an evaluation that can be used to test a model's performance.

6An evaluation is a set of testing criteria and the config for a data source, which dictates the schema of the data used in the evaluation. After creating an evaluation, you can run it on different models and model parameters. We support several types of graders and datasources.6An evaluation is a set of testing criteria and the config for a data source, which dictates the schema of the data used in the evaluation. After creating an evaluation, you can run it on different models and model parameters. We support several types of graders and datasources.

7For more information, see the [Evals guide](/docs/guides/evals).7For more information, see the [Evals guide](/api/docs/guides/evals).

8 8 

9### Body Parameters9### Body Parameters

10 10 

Details

201 201 

202 - `ResponseInputImage object { detail, type, file_id, 2 more }`202 - `ResponseInputImage object { detail, type, file_id, 2 more }`

203 203 

204 An image input to the model. Learn about [image inputs](/docs/guides/vision).204 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

205 205 

206 - `detail: ImageDetail`206 - `detail: ImageDetail`

207 207 


494 Reducing reasoning effort can result in faster responses and fewer tokens494 Reducing reasoning effort can result in faster responses and fewer tokens

495 used on reasoning in a response. Not all reasoning models support every495 used on reasoning in a response. Not all reasoning models support every

496 value. See the496 value. See the

497 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)497 [reasoning guide](/api/docs/guides/reasoning)

498 for model-specific support.498 for model-specific support.

499 499 

500 - `"none"`500 - `"none"`


518 Setting to `{ "type": "json_schema", "json_schema": {...} }` enables518 Setting to `{ "type": "json_schema", "json_schema": {...} }` enables

519 Structured Outputs which ensures the model will match your supplied JSON519 Structured Outputs which ensures the model will match your supplied JSON

520 schema. Learn more in the [Structured Outputs520 schema. Learn more in the [Structured Outputs

521 guide](/docs/guides/structured-outputs).521 guide](/api/docs/guides/structured-outputs).

522 522 

523 Setting to `{ "type": "json_object" }` enables the older JSON mode, which523 Setting to `{ "type": "json_object" }` enables the older JSON mode, which

524 ensures the message the model generates is valid JSON. Using `json_schema`524 ensures the message the model generates is valid JSON. Using `json_schema`


537 - `ResponseFormatJSONSchema object { json_schema, type }`537 - `ResponseFormatJSONSchema object { json_schema, type }`

538 538 

539 JSON Schema response format. Used to generate structured JSON responses.539 JSON Schema response format. Used to generate structured JSON responses.

540 Learn more about [Structured Outputs](/docs/guides/structured-outputs).540 Learn more about [Structured Outputs](/api/docs/guides/structured-outputs).

541 541 

542 - `json_schema: object { name, description, schema, strict }`542 - `json_schema: object { name, description, schema, strict }`

543 543 


564 If set to true, the model will always follow the exact schema defined564 If set to true, the model will always follow the exact schema defined

565 in the `schema` field. Only a subset of JSON Schema is supported when565 in the `schema` field. Only a subset of JSON Schema is supported when

566 `strict` is `true`. To learn more, read the [Structured Outputs566 `strict` is `true`. To learn more, read the [Structured Outputs

567 guide](/docs/guides/structured-outputs).567 guide](/api/docs/guides/structured-outputs).

568 568 

569 - `type: "json_schema"`569 - `type: "json_schema"`

570 570 


609 609 

610 - `parameters: optional FunctionParameters`610 - `parameters: optional FunctionParameters`

611 611 

612 The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.612 The parameters the functions accepts, described as a JSON Schema object. See the [guide](/api/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.

613 613 

614 Omitting `parameters` defines a function with an empty parameter list.614 Omitting `parameters` defines a function with an empty parameter list.

615 615 

616 - `strict: optional boolean or null`616 - `strict: optional boolean or null`

617 617 

618 Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](/docs/guides/function-calling).618 Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](/api/docs/guides/function-calling).

619 619 

620 - `type: "function"`620 - `type: "function"`

621 621 


700 Reducing reasoning effort can result in faster responses and fewer tokens700 Reducing reasoning effort can result in faster responses and fewer tokens

701 used on reasoning in a response. Not all reasoning models support every701 used on reasoning in a response. Not all reasoning models support every

702 value. See the702 value. See the

703 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)703 [reasoning guide](/api/docs/guides/reasoning)

704 for model-specific support.704 for model-specific support.

705 705 

706 - `temperature: optional number or null`706 - `temperature: optional number or null`


860 Reducing reasoning effort can result in faster responses and fewer tokens860 Reducing reasoning effort can result in faster responses and fewer tokens

861 used on reasoning in a response. Not all reasoning models support every861 used on reasoning in a response. Not all reasoning models support every

862 value. See the862 value. See the

863 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)863 [reasoning guide](/api/docs/guides/reasoning)

864 for model-specific support.864 for model-specific support.

865 865 

866 - `seed: optional number`866 - `seed: optional number`


876 Configuration options for a text response from the model. Can be plain876 Configuration options for a text response from the model. Can be plain

877 text or structured JSON data. Learn more:877 text or structured JSON data. Learn more:

878 878 

879 - [Text inputs and outputs](/docs/guides/text)879 - [Text inputs and outputs](/api/docs/guides/text)

880 - [Structured Outputs](/docs/guides/structured-outputs)880 - [Structured Outputs](/api/docs/guides/structured-outputs)

881 881 

882 - `format: optional ResponseFormatTextConfig`882 - `format: optional ResponseFormatTextConfig`

883 883 


885 885 

886 Configuring `{ "type": "json_schema" }` enables Structured Outputs,886 Configuring `{ "type": "json_schema" }` enables Structured Outputs,

887 which ensures the model will match your supplied JSON schema. Learn more in the887 which ensures the model will match your supplied JSON schema. Learn more in the

888 [Structured Outputs guide](/docs/guides/structured-outputs).888 [Structured Outputs guide](/api/docs/guides/structured-outputs).

889 889 

890 The default format is `{ "type": "text" }` with no additional options.890 The default format is `{ "type": "text" }` with no additional options.

891 891 


902 - `ResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`902 - `ResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`

903 903 

904 JSON Schema response format. Used to generate structured JSON responses.904 JSON Schema response format. Used to generate structured JSON responses.

905 Learn more about [Structured Outputs](/docs/guides/structured-outputs).905 Learn more about [Structured Outputs](/api/docs/guides/structured-outputs).

906 906 

907 - `name: string`907 - `name: string`

908 908 


931 If set to true, the model will always follow the exact schema defined931 If set to true, the model will always follow the exact schema defined

932 in the `schema` field. Only a subset of JSON Schema is supported when932 in the `schema` field. Only a subset of JSON Schema is supported when

933 `strict` is `true`. To learn more, read the [Structured Outputs933 `strict` is `true`. To learn more, read the [Structured Outputs

934 guide](/docs/guides/structured-outputs).934 guide](/api/docs/guides/structured-outputs).

935 935 

936 - `ResponseFormatJSONObject object { type }`936 - `ResponseFormatJSONObject object { type }`

937 937 


948 The two categories of tools you can provide the model are:948 The two categories of tools you can provide the model are:

949 949 

950 - **Built-in tools**: Tools that are provided by OpenAI that extend the950 - **Built-in tools**: Tools that are provided by OpenAI that extend the

951 model's capabilities, like [web search](/docs/guides/tools-web-search)951 model's capabilities, like [web search](/api/docs/guides/tools-web-search)

952 or [file search](/docs/guides/tools-file-search). Learn more about952 or [file search](/api/docs/guides/tools-file-search). Learn more about

953 [built-in tools](/docs/guides/tools).953 [built-in tools](/api/docs/guides/tools).

954 - **Function calls (custom tools)**: Functions that are defined by you,954 - **Function calls (custom tools)**: Functions that are defined by you,

955 enabling the model to call your own code. Learn more about955 enabling the model to call your own code. Learn more about

956 [function calling](/docs/guides/function-calling).956 [function calling](/api/docs/guides/function-calling).

957 957 

958 - `Function object { name, parameters, strict, 6 more }`958 - `Function object { name, parameters, strict, 6 more }`

959 959 

960 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).960 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

961 961 

962 - `name: string`962 - `name: string`

963 963 


1001 1001 

1002 - `FileSearch object { type, vector_store_ids, filters, 2 more }`1002 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

1003 1003 

1004 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).1004 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

1005 1005 

1006 - `type: "file_search"`1006 - `type: "file_search"`

1007 1007 


1126 1126 

1127 - `Computer object { type }`1127 - `Computer object { type }`

1128 1128 

1129 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1129 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1130 1130 

1131 - `type: "computer"`1131 - `type: "computer"`

1132 1132 


1136 1136 

1137 - `ComputerUsePreview object { display_height, display_width, environment, type }`1137 - `ComputerUsePreview object { display_height, display_width, environment, type }`

1138 1138 

1139 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1139 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1140 1140 

1141 - `display_height: number`1141 - `display_height: number`

1142 1142 


1169 - `WebSearch object { type, external_web_access, filters, 2 more }`1169 - `WebSearch object { type, external_web_access, filters, 2 more }`

1170 1170 

1171 Search the Internet for sources related to the prompt. Learn more about the1171 Search the Internet for sources related to the prompt. Learn more about the

1172 [web search tool](/docs/guides/tools-web-search).1172 [web search tool](/api/docs/guides/tools-web-search).

1173 1173 

1174 - `type: "web_search" or "web_search_2025_08_26"`1174 - `type: "web_search" or "web_search_2025_08_26"`

1175 1175 


1233 - `Mcp object { server_label, type, allowed_callers, 9 more }`1233 - `Mcp object { server_label, type, allowed_callers, 9 more }`

1234 1234 

1235 Give the model access to additional tools via remote Model Context Protocol1235 Give the model access to additional tools via remote Model Context Protocol

1236 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).1236 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

1237 1237 

1238 - `server_label: string`1238 - `server_label: string`

1239 1239 


1285 1285 

1286 Identifier for service connectors, like those available in ChatGPT. One of1286 Identifier for service connectors, like those available in ChatGPT. One of

1287 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more1287 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

1288 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).1288 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

1289 1289 

1290 Currently supported `connector_id` values are:1290 Currently supported `connector_id` values are:

1291 1291 


1509 1509 

1510 - `background: optional "transparent" or "opaque" or "auto"`1510 - `background: optional "transparent" or "opaque" or "auto"`

1511 1511 

1512 Set the background of the generated image. One of `transparent`,1512 Set the background of the generated image. One of `transparent`, `opaque`,

1513 `opaque`, or `auto`. Transparent backgrounds are available for1513 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

1514 supported GPT Image models. For `gpt-image-2` and1514 their `2026-09-08` snapshots, support `opaque` and `transparent`

1515 `gpt-image-2-2026-04-21`, this support is in preview. When using1515 backgrounds. Transparent backgrounds are available for supported GPT Image

1516 `transparent`, set the output format to `png` or `webp`. Default: `auto`.1516 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

1517 preview. When using `transparent`, set the output format to `png` or `webp`.

1518 Default: `auto`.

1517 1519 

1518 - `"transparent"`1520 - `"transparent"`

1519 1521 


1542 1544 

1543 Base64-encoded mask image.1545 Base64-encoded mask image.

1544 1546 

1545 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1547 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1546 1548 

1547 The image generation model to use. One of `gpt-image-1`,1549 The image generation model to use. One of `gpt-image-1`,

1548 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1550 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1549 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1551 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1552 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1553 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1550 `gpt-image-1`.1554 `gpt-image-1`.

1551 1555 

1552 - `string`1556 - `string`

1553 1557 

1554 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1558 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1555 1559 

1556 The image generation model to use. One of `gpt-image-1`,1560 The image generation model to use. One of `gpt-image-1`,

1557 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1561 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1558 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1562 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1563 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1564 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1559 `gpt-image-1`.1565 `gpt-image-1`.

1560 1566 

1561 - `"gpt-image-1"`1567 - `"gpt-image-1"`


1568 1574 

1569 - `"gpt-image-2-2026-04-21"`1575 - `"gpt-image-2-2026-04-21"`

1570 1576 

1577 - `"gpt-image-2.5-sunburst"`

1578 

1579 - `"gpt-image-2.5-sunburst-2026-09-08"`

1580 

1581 - `"gpt-image-2.5-flare"`

1582 

1583 - `"gpt-image-2.5-flare-2026-09-08"`

1584 

1571 - `moderation: optional "auto" or "low"`1585 - `moderation: optional "auto" or "low"`

1572 1586 

1573 Moderation level for the generated image. Default: `auto`.1587 Moderation level for the generated image. Default: `auto`.


1595 1609 

1596 Number of partial images to generate in streaming mode, from 0 (default value) to 3.1610 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

1597 1611 

1598 - `quality: optional "low" or "medium" or "high" or "auto"`1612 - `quality: optional "low" or "medium" or "high" or 3 more`

1599 1613 

1600 The quality of the generated image. One of `low`, `medium`, `high`,1614 The quality of the generated image. The GPT image models support `low`,

1601 or `auto`. Default: `auto`.1615 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

1616 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

1617 Default: `auto`.

1602 1618 

1603 - `"low"`1619 - `"low"`

1604 1620 


1606 1622 

1607 - `"high"`1623 - `"high"`

1608 1624 

1625 - `"xhigh"`

1626 

1627 - `"max"`

1628 

1609 - `"auto"`1629 - `"auto"`

1610 1630 

1611 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`1631 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

1612 1632 

1613 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`.1633 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`.

1614 1634 

1615 - `string`1635 - `string`

1616 1636 

1617 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`1637 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

1618 1638 

1619 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`.1639 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`.

1620 1640 

1621 - `"1024x1024"`1641 - `"1024x1024"`

1622 1642 


1782 1802 

1783 - `Custom object { name, type, allowed_callers, 4 more }`1803 - `Custom object { name, type, allowed_callers, 4 more }`

1784 1804 

1785 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)1805 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

1786 1806 

1787 - `name: string`1807 - `name: string`

1788 1808 


1904 1924 

1905 - `Custom object { name, type, allowed_callers, 4 more }`1925 - `Custom object { name, type, allowed_callers, 4 more }`

1906 1926 

1907 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)1927 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

1908 1928 

1909 - `name: string`1929 - `name: string`

1910 1930 


1974 1994 

1975 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`1995 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

1976 1996 

1977 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).1997 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).

1978 1998 

1979 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`1999 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

1980 2000 

Details

191 191 

192 - `ResponseInputImage object { detail, type, file_id, 2 more }`192 - `ResponseInputImage object { detail, type, file_id, 2 more }`

193 193 

194 An image input to the model. Learn about [image inputs](/docs/guides/vision).194 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

195 195 

196 - `detail: ImageDetail`196 - `detail: ImageDetail`

197 197 


484 Reducing reasoning effort can result in faster responses and fewer tokens484 Reducing reasoning effort can result in faster responses and fewer tokens

485 used on reasoning in a response. Not all reasoning models support every485 used on reasoning in a response. Not all reasoning models support every

486 value. See the486 value. See the

487 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)487 [reasoning guide](/api/docs/guides/reasoning)

488 for model-specific support.488 for model-specific support.

489 489 

490 - `"none"`490 - `"none"`


508 Setting to `{ "type": "json_schema", "json_schema": {...} }` enables508 Setting to `{ "type": "json_schema", "json_schema": {...} }` enables

509 Structured Outputs which ensures the model will match your supplied JSON509 Structured Outputs which ensures the model will match your supplied JSON

510 schema. Learn more in the [Structured Outputs510 schema. Learn more in the [Structured Outputs

511 guide](/docs/guides/structured-outputs).511 guide](/api/docs/guides/structured-outputs).

512 512 

513 Setting to `{ "type": "json_object" }` enables the older JSON mode, which513 Setting to `{ "type": "json_object" }` enables the older JSON mode, which

514 ensures the message the model generates is valid JSON. Using `json_schema`514 ensures the message the model generates is valid JSON. Using `json_schema`


527 - `ResponseFormatJSONSchema object { json_schema, type }`527 - `ResponseFormatJSONSchema object { json_schema, type }`

528 528 

529 JSON Schema response format. Used to generate structured JSON responses.529 JSON Schema response format. Used to generate structured JSON responses.

530 Learn more about [Structured Outputs](/docs/guides/structured-outputs).530 Learn more about [Structured Outputs](/api/docs/guides/structured-outputs).

531 531 

532 - `json_schema: object { name, description, schema, strict }`532 - `json_schema: object { name, description, schema, strict }`

533 533 


554 If set to true, the model will always follow the exact schema defined554 If set to true, the model will always follow the exact schema defined

555 in the `schema` field. Only a subset of JSON Schema is supported when555 in the `schema` field. Only a subset of JSON Schema is supported when

556 `strict` is `true`. To learn more, read the [Structured Outputs556 `strict` is `true`. To learn more, read the [Structured Outputs

557 guide](/docs/guides/structured-outputs).557 guide](/api/docs/guides/structured-outputs).

558 558 

559 - `type: "json_schema"`559 - `type: "json_schema"`

560 560 


599 599 

600 - `parameters: optional FunctionParameters`600 - `parameters: optional FunctionParameters`

601 601 

602 The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.602 The parameters the functions accepts, described as a JSON Schema object. See the [guide](/api/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.

603 603 

604 Omitting `parameters` defines a function with an empty parameter list.604 Omitting `parameters` defines a function with an empty parameter list.

605 605 

606 - `strict: optional boolean or null`606 - `strict: optional boolean or null`

607 607 

608 Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](/docs/guides/function-calling).608 Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](/api/docs/guides/function-calling).

609 609 

610 - `type: "function"`610 - `type: "function"`

611 611 


690 Reducing reasoning effort can result in faster responses and fewer tokens690 Reducing reasoning effort can result in faster responses and fewer tokens

691 used on reasoning in a response. Not all reasoning models support every691 used on reasoning in a response. Not all reasoning models support every

692 value. See the692 value. See the

693 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)693 [reasoning guide](/api/docs/guides/reasoning)

694 for model-specific support.694 for model-specific support.

695 695 

696 - `temperature: optional number or null`696 - `temperature: optional number or null`


850 Reducing reasoning effort can result in faster responses and fewer tokens850 Reducing reasoning effort can result in faster responses and fewer tokens

851 used on reasoning in a response. Not all reasoning models support every851 used on reasoning in a response. Not all reasoning models support every

852 value. See the852 value. See the

853 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)853 [reasoning guide](/api/docs/guides/reasoning)

854 for model-specific support.854 for model-specific support.

855 855 

856 - `seed: optional number`856 - `seed: optional number`


866 Configuration options for a text response from the model. Can be plain866 Configuration options for a text response from the model. Can be plain

867 text or structured JSON data. Learn more:867 text or structured JSON data. Learn more:

868 868 

869 - [Text inputs and outputs](/docs/guides/text)869 - [Text inputs and outputs](/api/docs/guides/text)

870 - [Structured Outputs](/docs/guides/structured-outputs)870 - [Structured Outputs](/api/docs/guides/structured-outputs)

871 871 

872 - `format: optional ResponseFormatTextConfig`872 - `format: optional ResponseFormatTextConfig`

873 873 


875 875 

876 Configuring `{ "type": "json_schema" }` enables Structured Outputs,876 Configuring `{ "type": "json_schema" }` enables Structured Outputs,

877 which ensures the model will match your supplied JSON schema. Learn more in the877 which ensures the model will match your supplied JSON schema. Learn more in the

878 [Structured Outputs guide](/docs/guides/structured-outputs).878 [Structured Outputs guide](/api/docs/guides/structured-outputs).

879 879 

880 The default format is `{ "type": "text" }` with no additional options.880 The default format is `{ "type": "text" }` with no additional options.

881 881 


892 - `ResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`892 - `ResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`

893 893 

894 JSON Schema response format. Used to generate structured JSON responses.894 JSON Schema response format. Used to generate structured JSON responses.

895 Learn more about [Structured Outputs](/docs/guides/structured-outputs).895 Learn more about [Structured Outputs](/api/docs/guides/structured-outputs).

896 896 

897 - `name: string`897 - `name: string`

898 898 


921 If set to true, the model will always follow the exact schema defined921 If set to true, the model will always follow the exact schema defined

922 in the `schema` field. Only a subset of JSON Schema is supported when922 in the `schema` field. Only a subset of JSON Schema is supported when

923 `strict` is `true`. To learn more, read the [Structured Outputs923 `strict` is `true`. To learn more, read the [Structured Outputs

924 guide](/docs/guides/structured-outputs).924 guide](/api/docs/guides/structured-outputs).

925 925 

926 - `ResponseFormatJSONObject object { type }`926 - `ResponseFormatJSONObject object { type }`

927 927 


938 The two categories of tools you can provide the model are:938 The two categories of tools you can provide the model are:

939 939 

940 - **Built-in tools**: Tools that are provided by OpenAI that extend the940 - **Built-in tools**: Tools that are provided by OpenAI that extend the

941 model's capabilities, like [web search](/docs/guides/tools-web-search)941 model's capabilities, like [web search](/api/docs/guides/tools-web-search)

942 or [file search](/docs/guides/tools-file-search). Learn more about942 or [file search](/api/docs/guides/tools-file-search). Learn more about

943 [built-in tools](/docs/guides/tools).943 [built-in tools](/api/docs/guides/tools).

944 - **Function calls (custom tools)**: Functions that are defined by you,944 - **Function calls (custom tools)**: Functions that are defined by you,

945 enabling the model to call your own code. Learn more about945 enabling the model to call your own code. Learn more about

946 [function calling](/docs/guides/function-calling).946 [function calling](/api/docs/guides/function-calling).

947 947 

948 - `Function object { name, parameters, strict, 6 more }`948 - `Function object { name, parameters, strict, 6 more }`

949 949 

950 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).950 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

951 951 

952 - `name: string`952 - `name: string`

953 953 


991 991 

992 - `FileSearch object { type, vector_store_ids, filters, 2 more }`992 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

993 993 

994 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).994 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

995 995 

996 - `type: "file_search"`996 - `type: "file_search"`

997 997 


1116 1116 

1117 - `Computer object { type }`1117 - `Computer object { type }`

1118 1118 

1119 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1119 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1120 1120 

1121 - `type: "computer"`1121 - `type: "computer"`

1122 1122 


1126 1126 

1127 - `ComputerUsePreview object { display_height, display_width, environment, type }`1127 - `ComputerUsePreview object { display_height, display_width, environment, type }`

1128 1128 

1129 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1129 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1130 1130 

1131 - `display_height: number`1131 - `display_height: number`

1132 1132 


1159 - `WebSearch object { type, external_web_access, filters, 2 more }`1159 - `WebSearch object { type, external_web_access, filters, 2 more }`

1160 1160 

1161 Search the Internet for sources related to the prompt. Learn more about the1161 Search the Internet for sources related to the prompt. Learn more about the

1162 [web search tool](/docs/guides/tools-web-search).1162 [web search tool](/api/docs/guides/tools-web-search).

1163 1163 

1164 - `type: "web_search" or "web_search_2025_08_26"`1164 - `type: "web_search" or "web_search_2025_08_26"`

1165 1165 


1223 - `Mcp object { server_label, type, allowed_callers, 9 more }`1223 - `Mcp object { server_label, type, allowed_callers, 9 more }`

1224 1224 

1225 Give the model access to additional tools via remote Model Context Protocol1225 Give the model access to additional tools via remote Model Context Protocol

1226 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).1226 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

1227 1227 

1228 - `server_label: string`1228 - `server_label: string`

1229 1229 


1275 1275 

1276 Identifier for service connectors, like those available in ChatGPT. One of1276 Identifier for service connectors, like those available in ChatGPT. One of

1277 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more1277 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

1278 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).1278 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

1279 1279 

1280 Currently supported `connector_id` values are:1280 Currently supported `connector_id` values are:

1281 1281 


1499 1499 

1500 - `background: optional "transparent" or "opaque" or "auto"`1500 - `background: optional "transparent" or "opaque" or "auto"`

1501 1501 

1502 Set the background of the generated image. One of `transparent`,1502 Set the background of the generated image. One of `transparent`, `opaque`,

1503 `opaque`, or `auto`. Transparent backgrounds are available for1503 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

1504 supported GPT Image models. For `gpt-image-2` and1504 their `2026-09-08` snapshots, support `opaque` and `transparent`

1505 `gpt-image-2-2026-04-21`, this support is in preview. When using1505 backgrounds. Transparent backgrounds are available for supported GPT Image

1506 `transparent`, set the output format to `png` or `webp`. Default: `auto`.1506 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

1507 preview. When using `transparent`, set the output format to `png` or `webp`.

1508 Default: `auto`.

1507 1509 

1508 - `"transparent"`1510 - `"transparent"`

1509 1511 


1532 1534 

1533 Base64-encoded mask image.1535 Base64-encoded mask image.

1534 1536 

1535 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1537 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1536 1538 

1537 The image generation model to use. One of `gpt-image-1`,1539 The image generation model to use. One of `gpt-image-1`,

1538 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1540 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1539 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1541 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1542 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1543 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1540 `gpt-image-1`.1544 `gpt-image-1`.

1541 1545 

1542 - `string`1546 - `string`

1543 1547 

1544 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1548 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1545 1549 

1546 The image generation model to use. One of `gpt-image-1`,1550 The image generation model to use. One of `gpt-image-1`,

1547 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1551 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1548 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1552 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1553 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1554 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1549 `gpt-image-1`.1555 `gpt-image-1`.

1550 1556 

1551 - `"gpt-image-1"`1557 - `"gpt-image-1"`


1558 1564 

1559 - `"gpt-image-2-2026-04-21"`1565 - `"gpt-image-2-2026-04-21"`

1560 1566 

1567 - `"gpt-image-2.5-sunburst"`

1568 

1569 - `"gpt-image-2.5-sunburst-2026-09-08"`

1570 

1571 - `"gpt-image-2.5-flare"`

1572 

1573 - `"gpt-image-2.5-flare-2026-09-08"`

1574 

1561 - `moderation: optional "auto" or "low"`1575 - `moderation: optional "auto" or "low"`

1562 1576 

1563 Moderation level for the generated image. Default: `auto`.1577 Moderation level for the generated image. Default: `auto`.


1585 1599 

1586 Number of partial images to generate in streaming mode, from 0 (default value) to 3.1600 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

1587 1601 

1588 - `quality: optional "low" or "medium" or "high" or "auto"`1602 - `quality: optional "low" or "medium" or "high" or 3 more`

1589 1603 

1590 The quality of the generated image. One of `low`, `medium`, `high`,1604 The quality of the generated image. The GPT image models support `low`,

1591 or `auto`. Default: `auto`.1605 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

1606 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

1607 Default: `auto`.

1592 1608 

1593 - `"low"`1609 - `"low"`

1594 1610 


1596 1612 

1597 - `"high"`1613 - `"high"`

1598 1614 

1615 - `"xhigh"`

1616 

1617 - `"max"`

1618 

1599 - `"auto"`1619 - `"auto"`

1600 1620 

1601 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`1621 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

1602 1622 

1603 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`.1623 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`.

1604 1624 

1605 - `string`1625 - `string`

1606 1626 

1607 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`1627 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

1608 1628 

1609 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`.1629 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`.

1610 1630 

1611 - `"1024x1024"`1631 - `"1024x1024"`

1612 1632 


1772 1792 

1773 - `Custom object { name, type, allowed_callers, 4 more }`1793 - `Custom object { name, type, allowed_callers, 4 more }`

1774 1794 

1775 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)1795 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

1776 1796 

1777 - `name: string`1797 - `name: string`

1778 1798 


1894 1914 

1895 - `Custom object { name, type, allowed_callers, 4 more }`1915 - `Custom object { name, type, allowed_callers, 4 more }`

1896 1916 

1897 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)1917 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

1898 1918 

1899 - `name: string`1919 - `name: string`

1900 1920 


1964 1984 

1965 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`1985 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

1966 1986 

1967 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).1987 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).

1968 1988 

1969 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`1989 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

1970 1990 


2242 2262 

2243 - `ResponseInputImage object { detail, type, file_id, 2 more }`2263 - `ResponseInputImage object { detail, type, file_id, 2 more }`

2244 2264 

2245 An image input to the model. Learn about [image inputs](/docs/guides/vision).2265 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

2246 2266 

2247 - `detail: ImageDetail`2267 - `detail: ImageDetail`

2248 2268 


2535 Reducing reasoning effort can result in faster responses and fewer tokens2555 Reducing reasoning effort can result in faster responses and fewer tokens

2536 used on reasoning in a response. Not all reasoning models support every2556 used on reasoning in a response. Not all reasoning models support every

2537 value. See the2557 value. See the

2538 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)2558 [reasoning guide](/api/docs/guides/reasoning)

2539 for model-specific support.2559 for model-specific support.

2540 2560 

2541 - `"none"`2561 - `"none"`


2559 Setting to `{ "type": "json_schema", "json_schema": {...} }` enables2579 Setting to `{ "type": "json_schema", "json_schema": {...} }` enables

2560 Structured Outputs which ensures the model will match your supplied JSON2580 Structured Outputs which ensures the model will match your supplied JSON

2561 schema. Learn more in the [Structured Outputs2581 schema. Learn more in the [Structured Outputs

2562 guide](/docs/guides/structured-outputs).2582 guide](/api/docs/guides/structured-outputs).

2563 2583 

2564 Setting to `{ "type": "json_object" }` enables the older JSON mode, which2584 Setting to `{ "type": "json_object" }` enables the older JSON mode, which

2565 ensures the message the model generates is valid JSON. Using `json_schema`2585 ensures the message the model generates is valid JSON. Using `json_schema`


2578 - `ResponseFormatJSONSchema object { json_schema, type }`2598 - `ResponseFormatJSONSchema object { json_schema, type }`

2579 2599 

2580 JSON Schema response format. Used to generate structured JSON responses.2600 JSON Schema response format. Used to generate structured JSON responses.

2581 Learn more about [Structured Outputs](/docs/guides/structured-outputs).2601 Learn more about [Structured Outputs](/api/docs/guides/structured-outputs).

2582 2602 

2583 - `json_schema: object { name, description, schema, strict }`2603 - `json_schema: object { name, description, schema, strict }`

2584 2604 


2605 If set to true, the model will always follow the exact schema defined2625 If set to true, the model will always follow the exact schema defined

2606 in the `schema` field. Only a subset of JSON Schema is supported when2626 in the `schema` field. Only a subset of JSON Schema is supported when

2607 `strict` is `true`. To learn more, read the [Structured Outputs2627 `strict` is `true`. To learn more, read the [Structured Outputs

2608 guide](/docs/guides/structured-outputs).2628 guide](/api/docs/guides/structured-outputs).

2609 2629 

2610 - `type: "json_schema"`2630 - `type: "json_schema"`

2611 2631 


2650 2670 

2651 - `parameters: optional FunctionParameters`2671 - `parameters: optional FunctionParameters`

2652 2672 

2653 The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.2673 The parameters the functions accepts, described as a JSON Schema object. See the [guide](/api/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.

2654 2674 

2655 Omitting `parameters` defines a function with an empty parameter list.2675 Omitting `parameters` defines a function with an empty parameter list.

2656 2676 

2657 - `strict: optional boolean or null`2677 - `strict: optional boolean or null`

2658 2678 

2659 Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](/docs/guides/function-calling).2679 Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](/api/docs/guides/function-calling).

2660 2680 

2661 - `type: "function"`2681 - `type: "function"`

2662 2682 


2741 Reducing reasoning effort can result in faster responses and fewer tokens2761 Reducing reasoning effort can result in faster responses and fewer tokens

2742 used on reasoning in a response. Not all reasoning models support every2762 used on reasoning in a response. Not all reasoning models support every

2743 value. See the2763 value. See the

2744 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)2764 [reasoning guide](/api/docs/guides/reasoning)

2745 for model-specific support.2765 for model-specific support.

2746 2766 

2747 - `temperature: optional number or null`2767 - `temperature: optional number or null`


2901 Reducing reasoning effort can result in faster responses and fewer tokens2921 Reducing reasoning effort can result in faster responses and fewer tokens

2902 used on reasoning in a response. Not all reasoning models support every2922 used on reasoning in a response. Not all reasoning models support every

2903 value. See the2923 value. See the

2904 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)2924 [reasoning guide](/api/docs/guides/reasoning)

2905 for model-specific support.2925 for model-specific support.

2906 2926 

2907 - `seed: optional number`2927 - `seed: optional number`


2917 Configuration options for a text response from the model. Can be plain2937 Configuration options for a text response from the model. Can be plain

2918 text or structured JSON data. Learn more:2938 text or structured JSON data. Learn more:

2919 2939 

2920 - [Text inputs and outputs](/docs/guides/text)2940 - [Text inputs and outputs](/api/docs/guides/text)

2921 - [Structured Outputs](/docs/guides/structured-outputs)2941 - [Structured Outputs](/api/docs/guides/structured-outputs)

2922 2942 

2923 - `format: optional ResponseFormatTextConfig`2943 - `format: optional ResponseFormatTextConfig`

2924 2944 


2926 2946 

2927 Configuring `{ "type": "json_schema" }` enables Structured Outputs,2947 Configuring `{ "type": "json_schema" }` enables Structured Outputs,

2928 which ensures the model will match your supplied JSON schema. Learn more in the2948 which ensures the model will match your supplied JSON schema. Learn more in the

2929 [Structured Outputs guide](/docs/guides/structured-outputs).2949 [Structured Outputs guide](/api/docs/guides/structured-outputs).

2930 2950 

2931 The default format is `{ "type": "text" }` with no additional options.2951 The default format is `{ "type": "text" }` with no additional options.

2932 2952 


2943 - `ResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`2963 - `ResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`

2944 2964 

2945 JSON Schema response format. Used to generate structured JSON responses.2965 JSON Schema response format. Used to generate structured JSON responses.

2946 Learn more about [Structured Outputs](/docs/guides/structured-outputs).2966 Learn more about [Structured Outputs](/api/docs/guides/structured-outputs).

2947 2967 

2948 - `name: string`2968 - `name: string`

2949 2969 


2972 If set to true, the model will always follow the exact schema defined2992 If set to true, the model will always follow the exact schema defined

2973 in the `schema` field. Only a subset of JSON Schema is supported when2993 in the `schema` field. Only a subset of JSON Schema is supported when

2974 `strict` is `true`. To learn more, read the [Structured Outputs2994 `strict` is `true`. To learn more, read the [Structured Outputs

2975 guide](/docs/guides/structured-outputs).2995 guide](/api/docs/guides/structured-outputs).

2976 2996 

2977 - `ResponseFormatJSONObject object { type }`2997 - `ResponseFormatJSONObject object { type }`

2978 2998 


2989 The two categories of tools you can provide the model are:3009 The two categories of tools you can provide the model are:

2990 3010 

2991 - **Built-in tools**: Tools that are provided by OpenAI that extend the3011 - **Built-in tools**: Tools that are provided by OpenAI that extend the

2992 model's capabilities, like [web search](/docs/guides/tools-web-search)3012 model's capabilities, like [web search](/api/docs/guides/tools-web-search)

2993 or [file search](/docs/guides/tools-file-search). Learn more about3013 or [file search](/api/docs/guides/tools-file-search). Learn more about

2994 [built-in tools](/docs/guides/tools).3014 [built-in tools](/api/docs/guides/tools).

2995 - **Function calls (custom tools)**: Functions that are defined by you,3015 - **Function calls (custom tools)**: Functions that are defined by you,

2996 enabling the model to call your own code. Learn more about3016 enabling the model to call your own code. Learn more about

2997 [function calling](/docs/guides/function-calling).3017 [function calling](/api/docs/guides/function-calling).

2998 3018 

2999 - `Function object { name, parameters, strict, 6 more }`3019 - `Function object { name, parameters, strict, 6 more }`

3000 3020 

3001 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).3021 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

3002 3022 

3003 - `name: string`3023 - `name: string`

3004 3024 


3042 3062 

3043 - `FileSearch object { type, vector_store_ids, filters, 2 more }`3063 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

3044 3064 

3045 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).3065 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

3046 3066 

3047 - `type: "file_search"`3067 - `type: "file_search"`

3048 3068 


3167 3187 

3168 - `Computer object { type }`3188 - `Computer object { type }`

3169 3189 

3170 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).3190 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

3171 3191 

3172 - `type: "computer"`3192 - `type: "computer"`

3173 3193 


3177 3197 

3178 - `ComputerUsePreview object { display_height, display_width, environment, type }`3198 - `ComputerUsePreview object { display_height, display_width, environment, type }`

3179 3199 

3180 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).3200 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

3181 3201 

3182 - `display_height: number`3202 - `display_height: number`

3183 3203 


3210 - `WebSearch object { type, external_web_access, filters, 2 more }`3230 - `WebSearch object { type, external_web_access, filters, 2 more }`

3211 3231 

3212 Search the Internet for sources related to the prompt. Learn more about the3232 Search the Internet for sources related to the prompt. Learn more about the

3213 [web search tool](/docs/guides/tools-web-search).3233 [web search tool](/api/docs/guides/tools-web-search).

3214 3234 

3215 - `type: "web_search" or "web_search_2025_08_26"`3235 - `type: "web_search" or "web_search_2025_08_26"`

3216 3236 


3274 - `Mcp object { server_label, type, allowed_callers, 9 more }`3294 - `Mcp object { server_label, type, allowed_callers, 9 more }`

3275 3295 

3276 Give the model access to additional tools via remote Model Context Protocol3296 Give the model access to additional tools via remote Model Context Protocol

3277 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).3297 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

3278 3298 

3279 - `server_label: string`3299 - `server_label: string`

3280 3300 


3326 3346 

3327 Identifier for service connectors, like those available in ChatGPT. One of3347 Identifier for service connectors, like those available in ChatGPT. One of

3328 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more3348 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

3329 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).3349 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

3330 3350 

3331 Currently supported `connector_id` values are:3351 Currently supported `connector_id` values are:

3332 3352 


3550 3570 

3551 - `background: optional "transparent" or "opaque" or "auto"`3571 - `background: optional "transparent" or "opaque" or "auto"`

3552 3572 

3553 Set the background of the generated image. One of `transparent`,3573 Set the background of the generated image. One of `transparent`, `opaque`,

3554 `opaque`, or `auto`. Transparent backgrounds are available for3574 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

3555 supported GPT Image models. For `gpt-image-2` and3575 their `2026-09-08` snapshots, support `opaque` and `transparent`

3556 `gpt-image-2-2026-04-21`, this support is in preview. When using3576 backgrounds. Transparent backgrounds are available for supported GPT Image

3557 `transparent`, set the output format to `png` or `webp`. Default: `auto`.3577 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

3578 preview. When using `transparent`, set the output format to `png` or `webp`.

3579 Default: `auto`.

3558 3580 

3559 - `"transparent"`3581 - `"transparent"`

3560 3582 


3583 3605 

3584 Base64-encoded mask image.3606 Base64-encoded mask image.

3585 3607 

3586 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`3608 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

3587 3609 

3588 The image generation model to use. One of `gpt-image-1`,3610 The image generation model to use. One of `gpt-image-1`,

3589 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,3611 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

3590 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:3612 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3613 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3614 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

3591 `gpt-image-1`.3615 `gpt-image-1`.

3592 3616 

3593 - `string`3617 - `string`

3594 3618 

3595 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`3619 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

3596 3620 

3597 The image generation model to use. One of `gpt-image-1`,3621 The image generation model to use. One of `gpt-image-1`,

3598 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,3622 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

3599 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:3623 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3624 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3625 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

3600 `gpt-image-1`.3626 `gpt-image-1`.

3601 3627 

3602 - `"gpt-image-1"`3628 - `"gpt-image-1"`


3609 3635 

3610 - `"gpt-image-2-2026-04-21"`3636 - `"gpt-image-2-2026-04-21"`

3611 3637 

3638 - `"gpt-image-2.5-sunburst"`

3639 

3640 - `"gpt-image-2.5-sunburst-2026-09-08"`

3641 

3642 - `"gpt-image-2.5-flare"`

3643 

3644 - `"gpt-image-2.5-flare-2026-09-08"`

3645 

3612 - `moderation: optional "auto" or "low"`3646 - `moderation: optional "auto" or "low"`

3613 3647 

3614 Moderation level for the generated image. Default: `auto`.3648 Moderation level for the generated image. Default: `auto`.


3636 3670 

3637 Number of partial images to generate in streaming mode, from 0 (default value) to 3.3671 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

3638 3672 

3639 - `quality: optional "low" or "medium" or "high" or "auto"`3673 - `quality: optional "low" or "medium" or "high" or 3 more`

3640 3674 

3641 The quality of the generated image. One of `low`, `medium`, `high`,3675 The quality of the generated image. The GPT image models support `low`,

3642 or `auto`. Default: `auto`.3676 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

3677 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

3678 Default: `auto`.

3643 3679 

3644 - `"low"`3680 - `"low"`

3645 3681 


3647 3683 

3648 - `"high"`3684 - `"high"`

3649 3685 

3686 - `"xhigh"`

3687 

3688 - `"max"`

3689 

3650 - `"auto"`3690 - `"auto"`

3651 3691 

3652 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`3692 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

3653 3693 

3654 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`.3694 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`.

3655 3695 

3656 - `string`3696 - `string`

3657 3697 

3658 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`3698 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

3659 3699 

3660 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`.3700 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`.

3661 3701 

3662 - `"1024x1024"`3702 - `"1024x1024"`

3663 3703 


3823 3863 

3824 - `Custom object { name, type, allowed_callers, 4 more }`3864 - `Custom object { name, type, allowed_callers, 4 more }`

3825 3865 

3826 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3866 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

3827 3867 

3828 - `name: string`3868 - `name: string`

3829 3869 


3945 3985 

3946 - `Custom object { name, type, allowed_callers, 4 more }`3986 - `Custom object { name, type, allowed_callers, 4 more }`

3947 3987 

3948 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3988 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

3949 3989 

3950 - `name: string`3990 - `name: string`

3951 3991 


4015 4055 

4016 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`4056 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

4017 4057 

4018 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).4058 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).

4019 4059 

4020 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`4060 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

4021 4061 

Details

235 235 

236 - `ResponseInputImage object { detail, type, file_id, 2 more }`236 - `ResponseInputImage object { detail, type, file_id, 2 more }`

237 237 

238 An image input to the model. Learn about [image inputs](/docs/guides/vision).238 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

239 239 

240 - `detail: ImageDetail`240 - `detail: ImageDetail`

241 241 


528 Reducing reasoning effort can result in faster responses and fewer tokens528 Reducing reasoning effort can result in faster responses and fewer tokens

529 used on reasoning in a response. Not all reasoning models support every529 used on reasoning in a response. Not all reasoning models support every

530 value. See the530 value. See the

531 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)531 [reasoning guide](/api/docs/guides/reasoning)

532 for model-specific support.532 for model-specific support.

533 533 

534 - `"none"`534 - `"none"`


552 Setting to `{ "type": "json_schema", "json_schema": {...} }` enables552 Setting to `{ "type": "json_schema", "json_schema": {...} }` enables

553 Structured Outputs which ensures the model will match your supplied JSON553 Structured Outputs which ensures the model will match your supplied JSON

554 schema. Learn more in the [Structured Outputs554 schema. Learn more in the [Structured Outputs

555 guide](/docs/guides/structured-outputs).555 guide](/api/docs/guides/structured-outputs).

556 556 

557 Setting to `{ "type": "json_object" }` enables the older JSON mode, which557 Setting to `{ "type": "json_object" }` enables the older JSON mode, which

558 ensures the message the model generates is valid JSON. Using `json_schema`558 ensures the message the model generates is valid JSON. Using `json_schema`


571 - `ResponseFormatJSONSchema object { json_schema, type }`571 - `ResponseFormatJSONSchema object { json_schema, type }`

572 572 

573 JSON Schema response format. Used to generate structured JSON responses.573 JSON Schema response format. Used to generate structured JSON responses.

574 Learn more about [Structured Outputs](/docs/guides/structured-outputs).574 Learn more about [Structured Outputs](/api/docs/guides/structured-outputs).

575 575 

576 - `json_schema: object { name, description, schema, strict }`576 - `json_schema: object { name, description, schema, strict }`

577 577 


598 If set to true, the model will always follow the exact schema defined598 If set to true, the model will always follow the exact schema defined

599 in the `schema` field. Only a subset of JSON Schema is supported when599 in the `schema` field. Only a subset of JSON Schema is supported when

600 `strict` is `true`. To learn more, read the [Structured Outputs600 `strict` is `true`. To learn more, read the [Structured Outputs

601 guide](/docs/guides/structured-outputs).601 guide](/api/docs/guides/structured-outputs).

602 602 

603 - `type: "json_schema"`603 - `type: "json_schema"`

604 604 


643 643 

644 - `parameters: optional FunctionParameters`644 - `parameters: optional FunctionParameters`

645 645 

646 The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.646 The parameters the functions accepts, described as a JSON Schema object. See the [guide](/api/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.

647 647 

648 Omitting `parameters` defines a function with an empty parameter list.648 Omitting `parameters` defines a function with an empty parameter list.

649 649 

650 - `strict: optional boolean or null`650 - `strict: optional boolean or null`

651 651 

652 Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](/docs/guides/function-calling).652 Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](/api/docs/guides/function-calling).

653 653 

654 - `type: "function"`654 - `type: "function"`

655 655 


734 Reducing reasoning effort can result in faster responses and fewer tokens734 Reducing reasoning effort can result in faster responses and fewer tokens

735 used on reasoning in a response. Not all reasoning models support every735 used on reasoning in a response. Not all reasoning models support every

736 value. See the736 value. See the

737 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)737 [reasoning guide](/api/docs/guides/reasoning)

738 for model-specific support.738 for model-specific support.

739 739 

740 - `temperature: optional number or null`740 - `temperature: optional number or null`


894 Reducing reasoning effort can result in faster responses and fewer tokens894 Reducing reasoning effort can result in faster responses and fewer tokens

895 used on reasoning in a response. Not all reasoning models support every895 used on reasoning in a response. Not all reasoning models support every

896 value. See the896 value. See the

897 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)897 [reasoning guide](/api/docs/guides/reasoning)

898 for model-specific support.898 for model-specific support.

899 899 

900 - `seed: optional number`900 - `seed: optional number`


910 Configuration options for a text response from the model. Can be plain910 Configuration options for a text response from the model. Can be plain

911 text or structured JSON data. Learn more:911 text or structured JSON data. Learn more:

912 912 

913 - [Text inputs and outputs](/docs/guides/text)913 - [Text inputs and outputs](/api/docs/guides/text)

914 - [Structured Outputs](/docs/guides/structured-outputs)914 - [Structured Outputs](/api/docs/guides/structured-outputs)

915 915 

916 - `format: optional ResponseFormatTextConfig`916 - `format: optional ResponseFormatTextConfig`

917 917 


919 919 

920 Configuring `{ "type": "json_schema" }` enables Structured Outputs,920 Configuring `{ "type": "json_schema" }` enables Structured Outputs,

921 which ensures the model will match your supplied JSON schema. Learn more in the921 which ensures the model will match your supplied JSON schema. Learn more in the

922 [Structured Outputs guide](/docs/guides/structured-outputs).922 [Structured Outputs guide](/api/docs/guides/structured-outputs).

923 923 

924 The default format is `{ "type": "text" }` with no additional options.924 The default format is `{ "type": "text" }` with no additional options.

925 925 


936 - `ResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`936 - `ResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`

937 937 

938 JSON Schema response format. Used to generate structured JSON responses.938 JSON Schema response format. Used to generate structured JSON responses.

939 Learn more about [Structured Outputs](/docs/guides/structured-outputs).939 Learn more about [Structured Outputs](/api/docs/guides/structured-outputs).

940 940 

941 - `name: string`941 - `name: string`

942 942 


965 If set to true, the model will always follow the exact schema defined965 If set to true, the model will always follow the exact schema defined

966 in the `schema` field. Only a subset of JSON Schema is supported when966 in the `schema` field. Only a subset of JSON Schema is supported when

967 `strict` is `true`. To learn more, read the [Structured Outputs967 `strict` is `true`. To learn more, read the [Structured Outputs

968 guide](/docs/guides/structured-outputs).968 guide](/api/docs/guides/structured-outputs).

969 969 

970 - `ResponseFormatJSONObject object { type }`970 - `ResponseFormatJSONObject object { type }`

971 971 


982 The two categories of tools you can provide the model are:982 The two categories of tools you can provide the model are:

983 983 

984 - **Built-in tools**: Tools that are provided by OpenAI that extend the984 - **Built-in tools**: Tools that are provided by OpenAI that extend the

985 model's capabilities, like [web search](/docs/guides/tools-web-search)985 model's capabilities, like [web search](/api/docs/guides/tools-web-search)

986 or [file search](/docs/guides/tools-file-search). Learn more about986 or [file search](/api/docs/guides/tools-file-search). Learn more about

987 [built-in tools](/docs/guides/tools).987 [built-in tools](/api/docs/guides/tools).

988 - **Function calls (custom tools)**: Functions that are defined by you,988 - **Function calls (custom tools)**: Functions that are defined by you,

989 enabling the model to call your own code. Learn more about989 enabling the model to call your own code. Learn more about

990 [function calling](/docs/guides/function-calling).990 [function calling](/api/docs/guides/function-calling).

991 991 

992 - `Function object { name, parameters, strict, 6 more }`992 - `Function object { name, parameters, strict, 6 more }`

993 993 

994 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).994 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

995 995 

996 - `name: string`996 - `name: string`

997 997 


1035 1035 

1036 - `FileSearch object { type, vector_store_ids, filters, 2 more }`1036 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

1037 1037 

1038 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).1038 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

1039 1039 

1040 - `type: "file_search"`1040 - `type: "file_search"`

1041 1041 


1160 1160 

1161 - `Computer object { type }`1161 - `Computer object { type }`

1162 1162 

1163 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1163 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1164 1164 

1165 - `type: "computer"`1165 - `type: "computer"`

1166 1166 


1170 1170 

1171 - `ComputerUsePreview object { display_height, display_width, environment, type }`1171 - `ComputerUsePreview object { display_height, display_width, environment, type }`

1172 1172 

1173 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1173 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1174 1174 

1175 - `display_height: number`1175 - `display_height: number`

1176 1176 


1203 - `WebSearch object { type, external_web_access, filters, 2 more }`1203 - `WebSearch object { type, external_web_access, filters, 2 more }`

1204 1204 

1205 Search the Internet for sources related to the prompt. Learn more about the1205 Search the Internet for sources related to the prompt. Learn more about the

1206 [web search tool](/docs/guides/tools-web-search).1206 [web search tool](/api/docs/guides/tools-web-search).

1207 1207 

1208 - `type: "web_search" or "web_search_2025_08_26"`1208 - `type: "web_search" or "web_search_2025_08_26"`

1209 1209 


1267 - `Mcp object { server_label, type, allowed_callers, 9 more }`1267 - `Mcp object { server_label, type, allowed_callers, 9 more }`

1268 1268 

1269 Give the model access to additional tools via remote Model Context Protocol1269 Give the model access to additional tools via remote Model Context Protocol

1270 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).1270 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

1271 1271 

1272 - `server_label: string`1272 - `server_label: string`

1273 1273 


1319 1319 

1320 Identifier for service connectors, like those available in ChatGPT. One of1320 Identifier for service connectors, like those available in ChatGPT. One of

1321 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more1321 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

1322 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).1322 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

1323 1323 

1324 Currently supported `connector_id` values are:1324 Currently supported `connector_id` values are:

1325 1325 


1543 1543 

1544 - `background: optional "transparent" or "opaque" or "auto"`1544 - `background: optional "transparent" or "opaque" or "auto"`

1545 1545 

1546 Set the background of the generated image. One of `transparent`,1546 Set the background of the generated image. One of `transparent`, `opaque`,

1547 `opaque`, or `auto`. Transparent backgrounds are available for1547 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

1548 supported GPT Image models. For `gpt-image-2` and1548 their `2026-09-08` snapshots, support `opaque` and `transparent`

1549 `gpt-image-2-2026-04-21`, this support is in preview. When using1549 backgrounds. Transparent backgrounds are available for supported GPT Image

1550 `transparent`, set the output format to `png` or `webp`. Default: `auto`.1550 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

1551 preview. When using `transparent`, set the output format to `png` or `webp`.

1552 Default: `auto`.

1551 1553 

1552 - `"transparent"`1554 - `"transparent"`

1553 1555 


1576 1578 

1577 Base64-encoded mask image.1579 Base64-encoded mask image.

1578 1580 

1579 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1581 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1580 1582 

1581 The image generation model to use. One of `gpt-image-1`,1583 The image generation model to use. One of `gpt-image-1`,

1582 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1584 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1583 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1585 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1586 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1587 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1584 `gpt-image-1`.1588 `gpt-image-1`.

1585 1589 

1586 - `string`1590 - `string`

1587 1591 

1588 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1592 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1589 1593 

1590 The image generation model to use. One of `gpt-image-1`,1594 The image generation model to use. One of `gpt-image-1`,

1591 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1595 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1592 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1596 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1597 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1598 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1593 `gpt-image-1`.1599 `gpt-image-1`.

1594 1600 

1595 - `"gpt-image-1"`1601 - `"gpt-image-1"`


1602 1608 

1603 - `"gpt-image-2-2026-04-21"`1609 - `"gpt-image-2-2026-04-21"`

1604 1610 

1611 - `"gpt-image-2.5-sunburst"`

1612 

1613 - `"gpt-image-2.5-sunburst-2026-09-08"`

1614 

1615 - `"gpt-image-2.5-flare"`

1616 

1617 - `"gpt-image-2.5-flare-2026-09-08"`

1618 

1605 - `moderation: optional "auto" or "low"`1619 - `moderation: optional "auto" or "low"`

1606 1620 

1607 Moderation level for the generated image. Default: `auto`.1621 Moderation level for the generated image. Default: `auto`.


1629 1643 

1630 Number of partial images to generate in streaming mode, from 0 (default value) to 3.1644 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

1631 1645 

1632 - `quality: optional "low" or "medium" or "high" or "auto"`1646 - `quality: optional "low" or "medium" or "high" or 3 more`

1633 1647 

1634 The quality of the generated image. One of `low`, `medium`, `high`,1648 The quality of the generated image. The GPT image models support `low`,

1635 or `auto`. Default: `auto`.1649 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

1650 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

1651 Default: `auto`.

1636 1652 

1637 - `"low"`1653 - `"low"`

1638 1654 


1640 1656 

1641 - `"high"`1657 - `"high"`

1642 1658 

1659 - `"xhigh"`

1660 

1661 - `"max"`

1662 

1643 - `"auto"`1663 - `"auto"`

1644 1664 

1645 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`1665 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

1646 1666 

1647 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`.1667 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`.

1648 1668 

1649 - `string`1669 - `string`

1650 1670 

1651 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`1671 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

1652 1672 

1653 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`.1673 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`.

1654 1674 

1655 - `"1024x1024"`1675 - `"1024x1024"`

1656 1676 


1816 1836 

1817 - `Custom object { name, type, allowed_callers, 4 more }`1837 - `Custom object { name, type, allowed_callers, 4 more }`

1818 1838 

1819 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)1839 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

1820 1840 

1821 - `name: string`1841 - `name: string`

1822 1842 


1938 1958 

1939 - `Custom object { name, type, allowed_callers, 4 more }`1959 - `Custom object { name, type, allowed_callers, 4 more }`

1940 1960 

1941 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)1961 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

1942 1962 

1943 - `name: string`1963 - `name: string`

1944 1964 


2008 2028 

2009 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`2029 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

2010 2030 

2011 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).2031 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).

2012 2032 

2013 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`2033 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

2014 2034 

Details

201 201 

202 - `ResponseInputImage object { detail, type, file_id, 2 more }`202 - `ResponseInputImage object { detail, type, file_id, 2 more }`

203 203 

204 An image input to the model. Learn about [image inputs](/docs/guides/vision).204 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

205 205 

206 - `detail: ImageDetail`206 - `detail: ImageDetail`

207 207 


494 Reducing reasoning effort can result in faster responses and fewer tokens494 Reducing reasoning effort can result in faster responses and fewer tokens

495 used on reasoning in a response. Not all reasoning models support every495 used on reasoning in a response. Not all reasoning models support every

496 value. See the496 value. See the

497 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)497 [reasoning guide](/api/docs/guides/reasoning)

498 for model-specific support.498 for model-specific support.

499 499 

500 - `"none"`500 - `"none"`


518 Setting to `{ "type": "json_schema", "json_schema": {...} }` enables518 Setting to `{ "type": "json_schema", "json_schema": {...} }` enables

519 Structured Outputs which ensures the model will match your supplied JSON519 Structured Outputs which ensures the model will match your supplied JSON

520 schema. Learn more in the [Structured Outputs520 schema. Learn more in the [Structured Outputs

521 guide](/docs/guides/structured-outputs).521 guide](/api/docs/guides/structured-outputs).

522 522 

523 Setting to `{ "type": "json_object" }` enables the older JSON mode, which523 Setting to `{ "type": "json_object" }` enables the older JSON mode, which

524 ensures the message the model generates is valid JSON. Using `json_schema`524 ensures the message the model generates is valid JSON. Using `json_schema`


537 - `ResponseFormatJSONSchema object { json_schema, type }`537 - `ResponseFormatJSONSchema object { json_schema, type }`

538 538 

539 JSON Schema response format. Used to generate structured JSON responses.539 JSON Schema response format. Used to generate structured JSON responses.

540 Learn more about [Structured Outputs](/docs/guides/structured-outputs).540 Learn more about [Structured Outputs](/api/docs/guides/structured-outputs).

541 541 

542 - `json_schema: object { name, description, schema, strict }`542 - `json_schema: object { name, description, schema, strict }`

543 543 


564 If set to true, the model will always follow the exact schema defined564 If set to true, the model will always follow the exact schema defined

565 in the `schema` field. Only a subset of JSON Schema is supported when565 in the `schema` field. Only a subset of JSON Schema is supported when

566 `strict` is `true`. To learn more, read the [Structured Outputs566 `strict` is `true`. To learn more, read the [Structured Outputs

567 guide](/docs/guides/structured-outputs).567 guide](/api/docs/guides/structured-outputs).

568 568 

569 - `type: "json_schema"`569 - `type: "json_schema"`

570 570 


609 609 

610 - `parameters: optional FunctionParameters`610 - `parameters: optional FunctionParameters`

611 611 

612 The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.612 The parameters the functions accepts, described as a JSON Schema object. See the [guide](/api/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.

613 613 

614 Omitting `parameters` defines a function with an empty parameter list.614 Omitting `parameters` defines a function with an empty parameter list.

615 615 

616 - `strict: optional boolean or null`616 - `strict: optional boolean or null`

617 617 

618 Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](/docs/guides/function-calling).618 Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn more about Structured Outputs in the [function calling guide](/api/docs/guides/function-calling).

619 619 

620 - `type: "function"`620 - `type: "function"`

621 621 


700 Reducing reasoning effort can result in faster responses and fewer tokens700 Reducing reasoning effort can result in faster responses and fewer tokens

701 used on reasoning in a response. Not all reasoning models support every701 used on reasoning in a response. Not all reasoning models support every

702 value. See the702 value. See the

703 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)703 [reasoning guide](/api/docs/guides/reasoning)

704 for model-specific support.704 for model-specific support.

705 705 

706 - `temperature: optional number or null`706 - `temperature: optional number or null`


860 Reducing reasoning effort can result in faster responses and fewer tokens860 Reducing reasoning effort can result in faster responses and fewer tokens

861 used on reasoning in a response. Not all reasoning models support every861 used on reasoning in a response. Not all reasoning models support every

862 value. See the862 value. See the

863 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)863 [reasoning guide](/api/docs/guides/reasoning)

864 for model-specific support.864 for model-specific support.

865 865 

866 - `seed: optional number`866 - `seed: optional number`


876 Configuration options for a text response from the model. Can be plain876 Configuration options for a text response from the model. Can be plain

877 text or structured JSON data. Learn more:877 text or structured JSON data. Learn more:

878 878 

879 - [Text inputs and outputs](/docs/guides/text)879 - [Text inputs and outputs](/api/docs/guides/text)

880 - [Structured Outputs](/docs/guides/structured-outputs)880 - [Structured Outputs](/api/docs/guides/structured-outputs)

881 881 

882 - `format: optional ResponseFormatTextConfig`882 - `format: optional ResponseFormatTextConfig`

883 883 


885 885 

886 Configuring `{ "type": "json_schema" }` enables Structured Outputs,886 Configuring `{ "type": "json_schema" }` enables Structured Outputs,

887 which ensures the model will match your supplied JSON schema. Learn more in the887 which ensures the model will match your supplied JSON schema. Learn more in the

888 [Structured Outputs guide](/docs/guides/structured-outputs).888 [Structured Outputs guide](/api/docs/guides/structured-outputs).

889 889 

890 The default format is `{ "type": "text" }` with no additional options.890 The default format is `{ "type": "text" }` with no additional options.

891 891 


902 - `ResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`902 - `ResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`

903 903 

904 JSON Schema response format. Used to generate structured JSON responses.904 JSON Schema response format. Used to generate structured JSON responses.

905 Learn more about [Structured Outputs](/docs/guides/structured-outputs).905 Learn more about [Structured Outputs](/api/docs/guides/structured-outputs).

906 906 

907 - `name: string`907 - `name: string`

908 908 


931 If set to true, the model will always follow the exact schema defined931 If set to true, the model will always follow the exact schema defined

932 in the `schema` field. Only a subset of JSON Schema is supported when932 in the `schema` field. Only a subset of JSON Schema is supported when

933 `strict` is `true`. To learn more, read the [Structured Outputs933 `strict` is `true`. To learn more, read the [Structured Outputs

934 guide](/docs/guides/structured-outputs).934 guide](/api/docs/guides/structured-outputs).

935 935 

936 - `ResponseFormatJSONObject object { type }`936 - `ResponseFormatJSONObject object { type }`

937 937 


948 The two categories of tools you can provide the model are:948 The two categories of tools you can provide the model are:

949 949 

950 - **Built-in tools**: Tools that are provided by OpenAI that extend the950 - **Built-in tools**: Tools that are provided by OpenAI that extend the

951 model's capabilities, like [web search](/docs/guides/tools-web-search)951 model's capabilities, like [web search](/api/docs/guides/tools-web-search)

952 or [file search](/docs/guides/tools-file-search). Learn more about952 or [file search](/api/docs/guides/tools-file-search). Learn more about

953 [built-in tools](/docs/guides/tools).953 [built-in tools](/api/docs/guides/tools).

954 - **Function calls (custom tools)**: Functions that are defined by you,954 - **Function calls (custom tools)**: Functions that are defined by you,

955 enabling the model to call your own code. Learn more about955 enabling the model to call your own code. Learn more about

956 [function calling](/docs/guides/function-calling).956 [function calling](/api/docs/guides/function-calling).

957 957 

958 - `Function object { name, parameters, strict, 6 more }`958 - `Function object { name, parameters, strict, 6 more }`

959 959 

960 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).960 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

961 961 

962 - `name: string`962 - `name: string`

963 963 


1001 1001 

1002 - `FileSearch object { type, vector_store_ids, filters, 2 more }`1002 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

1003 1003 

1004 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).1004 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

1005 1005 

1006 - `type: "file_search"`1006 - `type: "file_search"`

1007 1007 


1126 1126 

1127 - `Computer object { type }`1127 - `Computer object { type }`

1128 1128 

1129 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1129 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1130 1130 

1131 - `type: "computer"`1131 - `type: "computer"`

1132 1132 


1136 1136 

1137 - `ComputerUsePreview object { display_height, display_width, environment, type }`1137 - `ComputerUsePreview object { display_height, display_width, environment, type }`

1138 1138 

1139 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1139 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1140 1140 

1141 - `display_height: number`1141 - `display_height: number`

1142 1142 


1169 - `WebSearch object { type, external_web_access, filters, 2 more }`1169 - `WebSearch object { type, external_web_access, filters, 2 more }`

1170 1170 

1171 Search the Internet for sources related to the prompt. Learn more about the1171 Search the Internet for sources related to the prompt. Learn more about the

1172 [web search tool](/docs/guides/tools-web-search).1172 [web search tool](/api/docs/guides/tools-web-search).

1173 1173 

1174 - `type: "web_search" or "web_search_2025_08_26"`1174 - `type: "web_search" or "web_search_2025_08_26"`

1175 1175 


1233 - `Mcp object { server_label, type, allowed_callers, 9 more }`1233 - `Mcp object { server_label, type, allowed_callers, 9 more }`

1234 1234 

1235 Give the model access to additional tools via remote Model Context Protocol1235 Give the model access to additional tools via remote Model Context Protocol

1236 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).1236 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

1237 1237 

1238 - `server_label: string`1238 - `server_label: string`

1239 1239 


1285 1285 

1286 Identifier for service connectors, like those available in ChatGPT. One of1286 Identifier for service connectors, like those available in ChatGPT. One of

1287 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more1287 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

1288 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).1288 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

1289 1289 

1290 Currently supported `connector_id` values are:1290 Currently supported `connector_id` values are:

1291 1291 


1509 1509 

1510 - `background: optional "transparent" or "opaque" or "auto"`1510 - `background: optional "transparent" or "opaque" or "auto"`

1511 1511 

1512 Set the background of the generated image. One of `transparent`,1512 Set the background of the generated image. One of `transparent`, `opaque`,

1513 `opaque`, or `auto`. Transparent backgrounds are available for1513 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

1514 supported GPT Image models. For `gpt-image-2` and1514 their `2026-09-08` snapshots, support `opaque` and `transparent`

1515 `gpt-image-2-2026-04-21`, this support is in preview. When using1515 backgrounds. Transparent backgrounds are available for supported GPT Image

1516 `transparent`, set the output format to `png` or `webp`. Default: `auto`.1516 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

1517 preview. When using `transparent`, set the output format to `png` or `webp`.

1518 Default: `auto`.

1517 1519 

1518 - `"transparent"`1520 - `"transparent"`

1519 1521 


1542 1544 

1543 Base64-encoded mask image.1545 Base64-encoded mask image.

1544 1546 

1545 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1547 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1546 1548 

1547 The image generation model to use. One of `gpt-image-1`,1549 The image generation model to use. One of `gpt-image-1`,

1548 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1550 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1549 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1551 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1552 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1553 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1550 `gpt-image-1`.1554 `gpt-image-1`.

1551 1555 

1552 - `string`1556 - `string`

1553 1557 

1554 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1558 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1555 1559 

1556 The image generation model to use. One of `gpt-image-1`,1560 The image generation model to use. One of `gpt-image-1`,

1557 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1561 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1558 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1562 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1563 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1564 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1559 `gpt-image-1`.1565 `gpt-image-1`.

1560 1566 

1561 - `"gpt-image-1"`1567 - `"gpt-image-1"`


1568 1574 

1569 - `"gpt-image-2-2026-04-21"`1575 - `"gpt-image-2-2026-04-21"`

1570 1576 

1577 - `"gpt-image-2.5-sunburst"`

1578 

1579 - `"gpt-image-2.5-sunburst-2026-09-08"`

1580 

1581 - `"gpt-image-2.5-flare"`

1582 

1583 - `"gpt-image-2.5-flare-2026-09-08"`

1584 

1571 - `moderation: optional "auto" or "low"`1585 - `moderation: optional "auto" or "low"`

1572 1586 

1573 Moderation level for the generated image. Default: `auto`.1587 Moderation level for the generated image. Default: `auto`.


1595 1609 

1596 Number of partial images to generate in streaming mode, from 0 (default value) to 3.1610 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

1597 1611 

1598 - `quality: optional "low" or "medium" or "high" or "auto"`1612 - `quality: optional "low" or "medium" or "high" or 3 more`

1599 1613 

1600 The quality of the generated image. One of `low`, `medium`, `high`,1614 The quality of the generated image. The GPT image models support `low`,

1601 or `auto`. Default: `auto`.1615 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

1616 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

1617 Default: `auto`.

1602 1618 

1603 - `"low"`1619 - `"low"`

1604 1620 


1606 1622 

1607 - `"high"`1623 - `"high"`

1608 1624 

1625 - `"xhigh"`

1626 

1627 - `"max"`

1628 

1609 - `"auto"`1629 - `"auto"`

1610 1630 

1611 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`1631 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

1612 1632 

1613 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`.1633 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`.

1614 1634 

1615 - `string`1635 - `string`

1616 1636 

1617 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`1637 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

1618 1638 

1619 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`.1639 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`.

1620 1640 

1621 - `"1024x1024"`1641 - `"1024x1024"`

1622 1642 


1782 1802 

1783 - `Custom object { name, type, allowed_callers, 4 more }`1803 - `Custom object { name, type, allowed_callers, 4 more }`

1784 1804 

1785 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)1805 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

1786 1806 

1787 - `name: string`1807 - `name: string`

1788 1808 


1904 1924 

1905 - `Custom object { name, type, allowed_callers, 4 more }`1925 - `Custom object { name, type, allowed_callers, 4 more }`

1906 1926 

1907 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)1927 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

1908 1928 

1909 - `name: string`1929 - `name: string`

1910 1930 


1974 1994 

1975 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`1995 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

1976 1996 

1977 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).1997 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).

1978 1998 

1979 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`1999 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

1980 2000 

Details

9user.9user.

10 10 

11- The Assistants API supports files up to 2 million tokens and of specific11- The Assistants API supports files up to 2 million tokens and of specific

12 file types. See the [Assistants Tools guide](/docs/assistants/tools) for12 file types. See the [Assistants Tools guide](/api/docs/guides/tools) for

13 details.13 details.

14- The Fine-tuning API only supports `.jsonl` files. The input also has14- The Fine-tuning API only supports `.jsonl` files. The input also has

15 certain required formats for fine-tuning15 certain required formats for fine-tuning

16 [chat](/docs/api-reference/fine-tuning/chat-input) or16 [chat](/api/docs/guides/supervised-fine-tuning#formatting-your-data) or

17 [completions](/docs/api-reference/fine-tuning/completions-input) models.17 [completions](/api/docs/guides/supervised-fine-tuning#formatting-your-data) models.

18- The Batch API only supports `.jsonl` files up to 200 MB in size. The input18- The Batch API only supports `.jsonl` files up to 200 MB in size. The input

19 also has a specific required19 also has a specific required

20 [format](/docs/api-reference/batch/request-input).20 [format](/api/docs/guides/batch#1-prepare-your-batch-file).

21- For Retrieval or `file_search` ingestion, upload files here first. If21- For Retrieval or `file_search` ingestion, upload files here first. If

22 you need to attach multiple uploaded files to the same vector store, use22 you need to attach multiple uploaded files to the same vector store, use

23 [`/vector_stores/{vector_store_id}/file_batches`](/docs/api-reference/vector-stores-file-batches/createBatch)23 [`/vector_stores/{vector_store_id}/file_batches`](/api/reference/resources/vector_stores/subresources/file_batches/methods/create)

24 instead of attaching them one by one. Vector store attachment has separate24 instead of attaching them one by one. Vector store attachment has separate

25 limits from file upload, including 2,000 attached files per minute per25 limits from file upload, including 2,000 attached files per minute per

26 organization.26 organization.

Details

314 Reducing reasoning effort can result in faster responses and fewer tokens314 Reducing reasoning effort can result in faster responses and fewer tokens

315 used on reasoning in a response. Not all reasoning models support every315 used on reasoning in a response. Not all reasoning models support every

316 value. See the316 value. See the

317 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)317 [reasoning guide](/api/docs/guides/reasoning)

318 for model-specific support.318 for model-specific support.

319 319 

320 - `"none"`320 - `"none"`


485- `model_sample: string`485- `model_sample: string`

486 486 

487 The model sample to be evaluated. This value will be used to populate487 The model sample to be evaluated. This value will be used to populate

488 the `sample` namespace. See [the guide](/docs/guides/graders) for more details.488 the `sample` namespace. See [the guide](/api/docs/guides/graders) for more details.

489 The `output_json` variable will be populated if the model sample is a489 The `output_json` variable will be populated if the model sample is a

490 valid JSON string.490 valid JSON string.

491 491 

492- `item: optional unknown`492- `item: optional unknown`

493 493 

494 The dataset item provided to the grader. This will be used to populate494 The dataset item provided to the grader. This will be used to populate

495 the `item` namespace. See [the guide](/docs/guides/graders) for more details.495 the `item` namespace. See [the guide](/api/docs/guides/graders) for more details.

496 496 

497### Returns497### Returns

498 498 

Details

314 Reducing reasoning effort can result in faster responses and fewer tokens314 Reducing reasoning effort can result in faster responses and fewer tokens

315 used on reasoning in a response. Not all reasoning models support every315 used on reasoning in a response. Not all reasoning models support every

316 value. See the316 value. See the

317 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)317 [reasoning guide](/api/docs/guides/reasoning)

318 for model-specific support.318 for model-specific support.

319 319 

320 - `"none"`320 - `"none"`


792 Reducing reasoning effort can result in faster responses and fewer tokens792 Reducing reasoning effort can result in faster responses and fewer tokens

793 used on reasoning in a response. Not all reasoning models support every793 used on reasoning in a response. Not all reasoning models support every

794 value. See the794 value. See the

795 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)795 [reasoning guide](/api/docs/guides/reasoning)

796 for model-specific support.796 for model-specific support.

797 797 

798 - `"none"`798 - `"none"`

Details

2 2 

3**post** `/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions`3**post** `/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions`

4 4 

5**NOTE:** Calling this endpoint requires an [admin API key](../admin-api-keys).5**NOTE:** Calling this endpoint requires an [admin API key](/api/reference/resources/admin/subresources/organization/subresources/admin_api_keys).

6 6 

7This enables organization owners to share fine-tuned models with other projects in their organization.7This enables organization owners to share fine-tuned models with other projects in their organization.

8 8 

Details

2 2 

3**delete** `/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions/{permission_id}`3**delete** `/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions/{permission_id}`

4 4 

5**NOTE:** This endpoint requires an [admin API key](../admin-api-keys).5**NOTE:** This endpoint requires an [admin API key](/api/reference/resources/admin/subresources/organization/subresources/admin_api_keys).

6 6 

7Organization owners can use this endpoint to delete a permission for a fine-tuned model checkpoint.7Organization owners can use this endpoint to delete a permission for a fine-tuned model checkpoint.

8 8 

Details

2 2 

3**get** `/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions`3**get** `/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions`

4 4 

5**NOTE:** This endpoint requires an [admin API key](../admin-api-keys).5**NOTE:** This endpoint requires an [admin API key](/api/reference/resources/admin/subresources/organization/subresources/admin_api_keys).

6 6 

7Organization owners can use this endpoint to view all permissions for a fine-tuned model checkpoint.7Organization owners can use this endpoint to view all permissions for a fine-tuned model checkpoint.

8 8 

Details

2 2 

3**get** `/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions`3**get** `/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions`

4 4 

5**NOTE:** This endpoint requires an [admin API key](../admin-api-keys).5**NOTE:** This endpoint requires an [admin API key](/api/reference/resources/admin/subresources/organization/subresources/admin_api_keys).

6 6 

7Organization owners can use this endpoint to view all permissions for a fine-tuned model checkpoint.7Organization owners can use this endpoint to view all permissions for a fine-tuned model checkpoint.

8 8 

Details

99 99 

100 - `result_files: array of string`100 - `result_files: array of string`

101 101 

102 The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the [Files API](/docs/api-reference/files/retrieve-contents).102 The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the [Files API](/api/reference/resources/files/methods/content).

103 103 

104 - `seed: number`104 - `seed: number`

105 105 


127 127 

128 - `training_file: string`128 - `training_file: string`

129 129 

130 The file ID used for training. You can retrieve the training data with the [Files API](/docs/api-reference/files/retrieve-contents).130 The file ID used for training. You can retrieve the training data with the [Files API](/api/reference/resources/files/methods/content).

131 131 

132 - `validation_file: string or null`132 - `validation_file: string or null`

133 133 

134 The file ID used for validation. You can retrieve the validation results with the [Files API](/docs/api-reference/files/retrieve-contents).134 The file ID used for validation. You can retrieve the validation results with the [Files API](/api/reference/resources/files/methods/content).

135 135 

136 - `estimated_finish: optional number or null`136 - `estimated_finish: optional number or null`

137 137 


554 Reducing reasoning effort can result in faster responses and fewer tokens554 Reducing reasoning effort can result in faster responses and fewer tokens

555 used on reasoning in a response. Not all reasoning models support every555 used on reasoning in a response. Not all reasoning models support every

556 value. See the556 value. See the

557 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)557 [reasoning guide](/api/docs/guides/reasoning)

558 for model-specific support.558 for model-specific support.

559 559 

560 - `"none"`560 - `"none"`

Details

6 6 

7Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete.7Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete.

8 8 

9[Learn more about fine-tuning](/docs/guides/model-optimization)9[Learn more about fine-tuning](/api/docs/guides/model-optimization)

10 10 

11### Body Parameters11### Body Parameters

12 12 

13- `model: string or "babbage-002" or "davinci-002" or "gpt-3.5-turbo" or "gpt-4o-mini"`13- `model: string or "babbage-002" or "davinci-002" or "gpt-3.5-turbo" or "gpt-4o-mini"`

14 14 

15 The name of the model to fine-tune. You can select one of the15 The name of the model to fine-tune. You can select one of the

16 [supported models](/docs/guides/fine-tuning#which-models-can-be-fine-tuned).16 [supported models](/api/docs/guides/model-optimization#fine-tuning-methods).

17 17 

18 - `string`18 - `string`

19 19 

20 - `"babbage-002" or "davinci-002" or "gpt-3.5-turbo" or "gpt-4o-mini"`20 - `"babbage-002" or "davinci-002" or "gpt-3.5-turbo" or "gpt-4o-mini"`

21 21 

22 The name of the model to fine-tune. You can select one of the22 The name of the model to fine-tune. You can select one of the

23 [supported models](/docs/guides/fine-tuning#which-models-can-be-fine-tuned).23 [supported models](/api/docs/guides/model-optimization#fine-tuning-methods).

24 24 

25 - `"babbage-002"`25 - `"babbage-002"`

26 26 


34 34 

35 The ID of an uploaded file that contains training data.35 The ID of an uploaded file that contains training data.

36 36 

37 See [upload file](/docs/api-reference/files/create) for how to upload a file.37 See [upload file](/api/reference/resources/files/methods/create) for how to upload a file.

38 38 

39 Your dataset must be formatted as a JSONL file. Additionally, you must upload your file with the purpose `fine-tune`.39 Your dataset must be formatted as a JSONL file. Additionally, you must upload your file with the purpose `fine-tune`.

40 40 

41 The contents of the file should differ depending on if the model uses the [chat](/docs/api-reference/fine-tuning/chat-input), [completions](/docs/api-reference/fine-tuning/completions-input) format, or if the fine-tuning method uses the [preference](/docs/api-reference/fine-tuning/preference-input) format.41 The contents of the file should differ depending on if the model uses the [chat](/api/docs/guides/supervised-fine-tuning#formatting-your-data), [completions](/api/docs/guides/supervised-fine-tuning#formatting-your-data) format, or if the fine-tuning method uses the [preference](/api/docs/guides/direct-preference-optimization) format.

42 42 

43 See the [fine-tuning guide](/docs/guides/model-optimization) for more details.43 See the [fine-tuning guide](/api/docs/guides/model-optimization) for more details.

44 44 

45- `hyperparameters: optional object { batch_size, learning_rate_multiplier, n_epochs }`45- `hyperparameters: optional object { batch_size, learning_rate_multiplier, n_epochs }`

46 46 


497 Reducing reasoning effort can result in faster responses and fewer tokens497 Reducing reasoning effort can result in faster responses and fewer tokens

498 used on reasoning in a response. Not all reasoning models support every498 used on reasoning in a response. Not all reasoning models support every

499 value. See the499 value. See the

500 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)500 [reasoning guide](/api/docs/guides/reasoning)

501 for model-specific support.501 for model-specific support.

502 502 

503 - `"none"`503 - `"none"`


801 801 

802 Your dataset must be formatted as a JSONL file. You must upload your file with the purpose `fine-tune`.802 Your dataset must be formatted as a JSONL file. You must upload your file with the purpose `fine-tune`.

803 803 

804 See the [fine-tuning guide](/docs/guides/model-optimization) for more details.804 See the [fine-tuning guide](/api/docs/guides/model-optimization) for more details.

805 805 

806### Returns806### Returns

807 807 


894 894 

895 - `result_files: array of string`895 - `result_files: array of string`

896 896 

897 The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the [Files API](/docs/api-reference/files/retrieve-contents).897 The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the [Files API](/api/reference/resources/files/methods/content).

898 898 

899 - `seed: number`899 - `seed: number`

900 900 


922 922 

923 - `training_file: string`923 - `training_file: string`

924 924 

925 The file ID used for training. You can retrieve the training data with the [Files API](/docs/api-reference/files/retrieve-contents).925 The file ID used for training. You can retrieve the training data with the [Files API](/api/reference/resources/files/methods/content).

926 926 

927 - `validation_file: string or null`927 - `validation_file: string or null`

928 928 

929 The file ID used for validation. You can retrieve the validation results with the [Files API](/docs/api-reference/files/retrieve-contents).929 The file ID used for validation. You can retrieve the validation results with the [Files API](/api/reference/resources/files/methods/content).

930 930 

931 - `estimated_finish: optional number or null`931 - `estimated_finish: optional number or null`

932 932 


1349 Reducing reasoning effort can result in faster responses and fewer tokens1349 Reducing reasoning effort can result in faster responses and fewer tokens

1350 used on reasoning in a response. Not all reasoning models support every1350 used on reasoning in a response. Not all reasoning models support every

1351 value. See the1351 value. See the

1352 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)1352 [reasoning guide](/api/docs/guides/reasoning)

1353 for model-specific support.1353 for model-specific support.

1354 1354 

1355 - `"none"`1355 - `"none"`

Details

107 107 

108 - `result_files: array of string`108 - `result_files: array of string`

109 109 

110 The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the [Files API](/docs/api-reference/files/retrieve-contents).110 The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the [Files API](/api/reference/resources/files/methods/content).

111 111 

112 - `seed: number`112 - `seed: number`

113 113 


135 135 

136 - `training_file: string`136 - `training_file: string`

137 137 

138 The file ID used for training. You can retrieve the training data with the [Files API](/docs/api-reference/files/retrieve-contents).138 The file ID used for training. You can retrieve the training data with the [Files API](/api/reference/resources/files/methods/content).

139 139 

140 - `validation_file: string or null`140 - `validation_file: string or null`

141 141 

142 The file ID used for validation. You can retrieve the validation results with the [Files API](/docs/api-reference/files/retrieve-contents).142 The file ID used for validation. You can retrieve the validation results with the [Files API](/api/reference/resources/files/methods/content).

143 143 

144 - `estimated_finish: optional number or null`144 - `estimated_finish: optional number or null`

145 145 


562 Reducing reasoning effort can result in faster responses and fewer tokens562 Reducing reasoning effort can result in faster responses and fewer tokens

563 used on reasoning in a response. Not all reasoning models support every563 used on reasoning in a response. Not all reasoning models support every

564 value. See the564 value. See the

565 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)565 [reasoning guide](/api/docs/guides/reasoning)

566 for model-specific support.566 for model-specific support.

567 567 

568 - `"none"`568 - `"none"`

Details

99 99 

100 - `result_files: array of string`100 - `result_files: array of string`

101 101 

102 The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the [Files API](/docs/api-reference/files/retrieve-contents).102 The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the [Files API](/api/reference/resources/files/methods/content).

103 103 

104 - `seed: number`104 - `seed: number`

105 105 


127 127 

128 - `training_file: string`128 - `training_file: string`

129 129 

130 The file ID used for training. You can retrieve the training data with the [Files API](/docs/api-reference/files/retrieve-contents).130 The file ID used for training. You can retrieve the training data with the [Files API](/api/reference/resources/files/methods/content).

131 131 

132 - `validation_file: string or null`132 - `validation_file: string or null`

133 133 

134 The file ID used for validation. You can retrieve the validation results with the [Files API](/docs/api-reference/files/retrieve-contents).134 The file ID used for validation. You can retrieve the validation results with the [Files API](/api/reference/resources/files/methods/content).

135 135 

136 - `estimated_finish: optional number or null`136 - `estimated_finish: optional number or null`

137 137 


554 Reducing reasoning effort can result in faster responses and fewer tokens554 Reducing reasoning effort can result in faster responses and fewer tokens

555 used on reasoning in a response. Not all reasoning models support every555 used on reasoning in a response. Not all reasoning models support every

556 value. See the556 value. See the

557 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)557 [reasoning guide](/api/docs/guides/reasoning)

558 for model-specific support.558 for model-specific support.

559 559 

560 - `"none"`560 - `"none"`

Details

99 99 

100 - `result_files: array of string`100 - `result_files: array of string`

101 101 

102 The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the [Files API](/docs/api-reference/files/retrieve-contents).102 The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the [Files API](/api/reference/resources/files/methods/content).

103 103 

104 - `seed: number`104 - `seed: number`

105 105 


127 127 

128 - `training_file: string`128 - `training_file: string`

129 129 

130 The file ID used for training. You can retrieve the training data with the [Files API](/docs/api-reference/files/retrieve-contents).130 The file ID used for training. You can retrieve the training data with the [Files API](/api/reference/resources/files/methods/content).

131 131 

132 - `validation_file: string or null`132 - `validation_file: string or null`

133 133 

134 The file ID used for validation. You can retrieve the validation results with the [Files API](/docs/api-reference/files/retrieve-contents).134 The file ID used for validation. You can retrieve the validation results with the [Files API](/api/reference/resources/files/methods/content).

135 135 

136 - `estimated_finish: optional number or null`136 - `estimated_finish: optional number or null`

137 137 


554 Reducing reasoning effort can result in faster responses and fewer tokens554 Reducing reasoning effort can result in faster responses and fewer tokens

555 used on reasoning in a response. Not all reasoning models support every555 used on reasoning in a response. Not all reasoning models support every

556 value. See the556 value. See the

557 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)557 [reasoning guide](/api/docs/guides/reasoning)

558 for model-specific support.558 for model-specific support.

559 559 

560 - `"none"`560 - `"none"`

Details

4 4 

5Get info about a fine-tuning job.5Get info about a fine-tuning job.

6 6 

7[Learn more about fine-tuning](/docs/guides/model-optimization)7[Learn more about fine-tuning](/api/docs/guides/model-optimization)

8 8 

9### Path Parameters9### Path Parameters

10 10 


101 101 

102 - `result_files: array of string`102 - `result_files: array of string`

103 103 

104 The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the [Files API](/docs/api-reference/files/retrieve-contents).104 The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the [Files API](/api/reference/resources/files/methods/content).

105 105 

106 - `seed: number`106 - `seed: number`

107 107 


129 129 

130 - `training_file: string`130 - `training_file: string`

131 131 

132 The file ID used for training. You can retrieve the training data with the [Files API](/docs/api-reference/files/retrieve-contents).132 The file ID used for training. You can retrieve the training data with the [Files API](/api/reference/resources/files/methods/content).

133 133 

134 - `validation_file: string or null`134 - `validation_file: string or null`

135 135 

136 The file ID used for validation. You can retrieve the validation results with the [Files API](/docs/api-reference/files/retrieve-contents).136 The file ID used for validation. You can retrieve the validation results with the [Files API](/api/reference/resources/files/methods/content).

137 137 

138 - `estimated_finish: optional number or null`138 - `estimated_finish: optional number or null`

139 139 


556 Reducing reasoning effort can result in faster responses and fewer tokens556 Reducing reasoning effort can result in faster responses and fewer tokens

557 used on reasoning in a response. Not all reasoning models support every557 used on reasoning in a response. Not all reasoning models support every

558 value. See the558 value. See the

559 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)559 [reasoning guide](/api/docs/guides/reasoning)

560 for model-specific support.560 for model-specific support.

561 561 

562 - `"none"`562 - `"none"`

Details

490 Reducing reasoning effort can result in faster responses and fewer tokens490 Reducing reasoning effort can result in faster responses and fewer tokens

491 used on reasoning in a response. Not all reasoning models support every491 used on reasoning in a response. Not all reasoning models support every

492 value. See the492 value. See the

493 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)493 [reasoning guide](/api/docs/guides/reasoning)

494 for model-specific support.494 for model-specific support.

495 495 

496 - `"none"`496 - `"none"`

Details

600 Reducing reasoning effort can result in faster responses and fewer tokens600 Reducing reasoning effort can result in faster responses and fewer tokens

601 used on reasoning in a response. Not all reasoning models support every601 used on reasoning in a response. Not all reasoning models support every

602 value. See the602 value. See the

603 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)603 [reasoning guide](/api/docs/guides/reasoning)

604 for model-specific support.604 for model-specific support.

605 605 

606 - `"none"`606 - `"none"`


964 Reducing reasoning effort can result in faster responses and fewer tokens964 Reducing reasoning effort can result in faster responses and fewer tokens

965 used on reasoning in a response. Not all reasoning models support every965 used on reasoning in a response. Not all reasoning models support every

966 value. See the966 value. See the

967 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)967 [reasoning guide](/api/docs/guides/reasoning)

968 for model-specific support.968 for model-specific support.

969 969 

970 - `"none"`970 - `"none"`

Details

3> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.3> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.

4 4 

5Stream image generation and editing in real time with server-sent events.5Stream image generation and editing in real time with server-sent events.

6[Learn more about image streaming](https://developers.openai.com/docs/guides/image-generation).6[Learn more about image streaming](https://developers.openai.com/api/docs/guides/image-generation).

7 7 

8## image_edit.partial_image8## image_edit.partial_image

9 9 


196 "kind": "HttpTypeLiteral",196 "kind": "HttpTypeLiteral",

197 "literal": "high"197 "literal": "high"

198 },198 },

199 {

200 "kind": "HttpTypeLiteral",

201 "literal": "xhigh"

202 },

203 {

204 "kind": "HttpTypeLiteral",

205 "literal": "max"

206 },

199 {207 {

200 "kind": "HttpTypeLiteral",208 "kind": "HttpTypeLiteral",

201 "literal": "auto"209 "literal": "auto"


210 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) quality > (member) 0",218 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) quality > (member) 0",

211 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) quality > (member) 1",219 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) quality > (member) 1",

212 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) quality > (member) 2",220 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) quality > (member) 2",

213 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) quality > (member) 3"221 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) quality > (member) 3",

222 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) quality > (member) 4",

223 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) quality > (member) 5"

214 ]224 ]

215 },225 },

216 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) size": {226 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) size": {


218 "oasRef": "#/components/schemas/ImageEditPartialImageEvent/properties/size",228 "oasRef": "#/components/schemas/ImageEditPartialImageEvent/properties/size",

219 "deprecated": false,229 "deprecated": false,

220 "key": "size",230 "key": "size",

221 "docstring": "The size of the requested edited image.\n",231 "docstring": "The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.",

222 "type": {232 "type": {

223 "kind": "HttpTypeUnion",233 "kind": "HttpTypeUnion",

224 "oasRef": "#/components/schemas/ImageEditPartialImageEvent/properties/size",234 "oasRef": "#/components/schemas/ImageEditPartialImageEvent/properties/size",

235 "types": [

236 {

237 "kind": "HttpTypeString"

238 },

239 {

240 "kind": "HttpTypeUnion",

241 "oasRef": "#/components/schemas/ImageEditPartialImageEvent/properties/size/anyOf/1",

225 "types": [242 "types": [

226 {243 {

227 "kind": "HttpTypeLiteral",244 "kind": "HttpTypeLiteral",


240 "literal": "auto"257 "literal": "auto"

241 }258 }

242 ]259 ]

260 }

261 ]

243 },262 },

244 "optional": false,263 "optional": false,

245 "nullable": false,264 "nullable": false,

246 "schemaType": "enum",265 "schemaType": "union",

247 "childrenParentSchema": "enum",266 "childrenParentSchema": "union",

248 "children": [267 "children": [

249 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) size > (member) 0",268 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) size > (variant) 0",

250 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) size > (member) 1",269 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) size > (variant) 1"

251 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) size > (member) 2",

252 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) size > (member) 3"

253 ]270 ]

254 },271 },

255 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) type": {272 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) type": {


343 "kind": "HttpDeclReference",360 "kind": "HttpDeclReference",

344 "type": {361 "type": {

345 "kind": "HttpTypeLiteral",362 "kind": "HttpTypeLiteral",

346 "literal": "auto"363 "literal": "xhigh"

347 }364 }

348 },365 },

349 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) size > (member) 0": {366 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) quality > (member) 4": {

350 "kind": "HttpDeclReference",367 "kind": "HttpDeclReference",

351 "type": {368 "type": {

352 "kind": "HttpTypeLiteral",369 "kind": "HttpTypeLiteral",

353 "literal": "1024x1024"370 "literal": "max"

354 }371 }

355 },372 },

356 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) size > (member) 1": {373 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) quality > (member) 5": {

357 "kind": "HttpDeclReference",374 "kind": "HttpDeclReference",

358 "type": {375 "type": {

376 "kind": "HttpTypeLiteral",

377 "literal": "auto"

378 }

379 },

380 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) size > (variant) 0": {

381 "kind": "HttpDeclTypeAlias",

382 "oasRef": "#/components/schemas/ImageEditPartialImageEvent/properties/size/anyOf/0",

383 "ident": "UnionMember0",

384 "type": {

385 "kind": "HttpTypeString"

386 },

387 "children": []

388 },

389 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) size > (variant) 1": {

390 "kind": "HttpDeclTypeAlias",

391 "oasRef": "#/components/schemas/ImageEditPartialImageEvent/properties/size/anyOf/1",

392 "docstring": "The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.",

393 "ident": "UnionMember1",

394 "type": {

395 "kind": "HttpTypeUnion",

396 "oasRef": "#/components/schemas/ImageEditPartialImageEvent/properties/size/anyOf/1",

397 "types": [

398 {

399 "kind": "HttpTypeLiteral",

400 "literal": "1024x1024"

401 },

402 {

359 "kind": "HttpTypeLiteral",403 "kind": "HttpTypeLiteral",

360 "literal": "1024x1536"404 "literal": "1024x1536"

405 },

406 {

407 "kind": "HttpTypeLiteral",

408 "literal": "1536x1024"

409 },

410 {

411 "kind": "HttpTypeLiteral",

412 "literal": "auto"

361 }413 }

414 ]

415 },

416 "childrenParentSchema": "enum",

417 "children": [

418 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) size > (variant) 1 > (member) 0",

419 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) size > (variant) 1 > (member) 1",

420 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) size > (variant) 1 > (member) 2",

421 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) size > (variant) 1 > (member) 3"

422 ]

362 },423 },

363 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) size > (member) 2": {424 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) type > (member) 0": {

364 "kind": "HttpDeclReference",425 "kind": "HttpDeclReference",

365 "type": {426 "type": {

366 "kind": "HttpTypeLiteral",427 "kind": "HttpTypeLiteral",

367 "literal": "1536x1024"428 "literal": "image_edit.partial_image"

368 }429 }

369 },430 },

370 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) size > (member) 3": {431 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) size > (variant) 1 > (member) 0": {

371 "kind": "HttpDeclReference",432 "kind": "HttpDeclReference",

372 "type": {433 "type": {

373 "kind": "HttpTypeLiteral",434 "kind": "HttpTypeLiteral",

374 "literal": "auto"435 "literal": "1024x1024"

375 }436 }

376 },437 },

377 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) type > (member) 0": {438 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) size > (variant) 1 > (member) 1": {

378 "kind": "HttpDeclReference",439 "kind": "HttpDeclReference",

379 "type": {440 "type": {

380 "kind": "HttpTypeLiteral",441 "kind": "HttpTypeLiteral",

381 "literal": "image_edit.partial_image"442 "literal": "1024x1536"

443 }

444 },

445 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) size > (variant) 1 > (member) 2": {

446 "kind": "HttpDeclReference",

447 "type": {

448 "kind": "HttpTypeLiteral",

449 "literal": "1536x1024"

450 }

451 },

452 "(resource) images > (model) image_edit_partial_image_event > (schema) > (property) size > (variant) 1 > (member) 3": {

453 "kind": "HttpDeclReference",

454 "type": {

455 "kind": "HttpTypeLiteral",

456 "literal": "auto"

382 }457 }

383 }458 }

384}459}


576 "kind": "HttpTypeLiteral",651 "kind": "HttpTypeLiteral",

577 "literal": "high"652 "literal": "high"

578 },653 },

654 {

655 "kind": "HttpTypeLiteral",

656 "literal": "xhigh"

657 },

658 {

659 "kind": "HttpTypeLiteral",

660 "literal": "max"

661 },

579 {662 {

580 "kind": "HttpTypeLiteral",663 "kind": "HttpTypeLiteral",

581 "literal": "auto"664 "literal": "auto"


590 "(resource) images > (model) image_edit_completed_event > (schema) > (property) quality > (member) 0",673 "(resource) images > (model) image_edit_completed_event > (schema) > (property) quality > (member) 0",

591 "(resource) images > (model) image_edit_completed_event > (schema) > (property) quality > (member) 1",674 "(resource) images > (model) image_edit_completed_event > (schema) > (property) quality > (member) 1",

592 "(resource) images > (model) image_edit_completed_event > (schema) > (property) quality > (member) 2",675 "(resource) images > (model) image_edit_completed_event > (schema) > (property) quality > (member) 2",

593 "(resource) images > (model) image_edit_completed_event > (schema) > (property) quality > (member) 3"676 "(resource) images > (model) image_edit_completed_event > (schema) > (property) quality > (member) 3",

677 "(resource) images > (model) image_edit_completed_event > (schema) > (property) quality > (member) 4",

678 "(resource) images > (model) image_edit_completed_event > (schema) > (property) quality > (member) 5"

594 ]679 ]

595 },680 },

596 "(resource) images > (model) image_edit_completed_event > (schema) > (property) size": {681 "(resource) images > (model) image_edit_completed_event > (schema) > (property) size": {


598 "oasRef": "#/components/schemas/ImageEditCompletedEvent/properties/size",683 "oasRef": "#/components/schemas/ImageEditCompletedEvent/properties/size",

599 "deprecated": false,684 "deprecated": false,

600 "key": "size",685 "key": "size",

601 "docstring": "The size of the edited image.\n",686 "docstring": "The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.",

602 "type": {687 "type": {

603 "kind": "HttpTypeUnion",688 "kind": "HttpTypeUnion",

604 "oasRef": "#/components/schemas/ImageEditCompletedEvent/properties/size",689 "oasRef": "#/components/schemas/ImageEditCompletedEvent/properties/size",

690 "types": [

691 {

692 "kind": "HttpTypeString"

693 },

694 {

695 "kind": "HttpTypeUnion",

696 "oasRef": "#/components/schemas/ImageEditCompletedEvent/properties/size/anyOf/1",

605 "types": [697 "types": [

606 {698 {

607 "kind": "HttpTypeLiteral",699 "kind": "HttpTypeLiteral",


620 "literal": "auto"712 "literal": "auto"

621 }713 }

622 ]714 ]

715 }

716 ]

623 },717 },

624 "optional": false,718 "optional": false,

625 "nullable": false,719 "nullable": false,

626 "schemaType": "enum",720 "schemaType": "union",

627 "childrenParentSchema": "enum",721 "childrenParentSchema": "union",

628 "children": [722 "children": [

629 "(resource) images > (model) image_edit_completed_event > (schema) > (property) size > (member) 0",723 "(resource) images > (model) image_edit_completed_event > (schema) > (property) size > (variant) 0",

630 "(resource) images > (model) image_edit_completed_event > (schema) > (property) size > (member) 1",724 "(resource) images > (model) image_edit_completed_event > (schema) > (property) size > (variant) 1"

631 "(resource) images > (model) image_edit_completed_event > (schema) > (property) size > (member) 2",

632 "(resource) images > (model) image_edit_completed_event > (schema) > (property) size > (member) 3"

633 ]725 ]

634 },726 },

635 "(resource) images > (model) image_edit_completed_event > (schema) > (property) type": {727 "(resource) images > (model) image_edit_completed_event > (schema) > (property) type": {


757 "kind": "HttpDeclReference",849 "kind": "HttpDeclReference",

758 "type": {850 "type": {

759 "kind": "HttpTypeLiteral",851 "kind": "HttpTypeLiteral",

760 "literal": "auto"852 "literal": "xhigh"

761 }853 }

762 },854 },

763 "(resource) images > (model) image_edit_completed_event > (schema) > (property) size > (member) 0": {855 "(resource) images > (model) image_edit_completed_event > (schema) > (property) quality > (member) 4": {

764 "kind": "HttpDeclReference",856 "kind": "HttpDeclReference",

765 "type": {857 "type": {

766 "kind": "HttpTypeLiteral",858 "kind": "HttpTypeLiteral",

767 "literal": "1024x1024"859 "literal": "max"

768 }860 }

769 },861 },

770 "(resource) images > (model) image_edit_completed_event > (schema) > (property) size > (member) 1": {862 "(resource) images > (model) image_edit_completed_event > (schema) > (property) quality > (member) 5": {

771 "kind": "HttpDeclReference",863 "kind": "HttpDeclReference",

772 "type": {864 "type": {

773 "kind": "HttpTypeLiteral",865 "kind": "HttpTypeLiteral",

774 "literal": "1024x1536"866 "literal": "auto"

775 }867 }

776 },868 },

777 "(resource) images > (model) image_edit_completed_event > (schema) > (property) size > (member) 2": {869 "(resource) images > (model) image_edit_completed_event > (schema) > (property) size > (variant) 0": {

778 "kind": "HttpDeclReference",870 "kind": "HttpDeclTypeAlias",

871 "oasRef": "#/components/schemas/ImageEditCompletedEvent/properties/size/anyOf/0",

872 "ident": "UnionMember0",

873 "type": {

874 "kind": "HttpTypeString"

875 },

876 "children": []

877 },

878 "(resource) images > (model) image_edit_completed_event > (schema) > (property) size > (variant) 1": {

879 "kind": "HttpDeclTypeAlias",

880 "oasRef": "#/components/schemas/ImageEditCompletedEvent/properties/size/anyOf/1",

881 "docstring": "The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.",

882 "ident": "UnionMember1",

779 "type": {883 "type": {

884 "kind": "HttpTypeUnion",

885 "oasRef": "#/components/schemas/ImageEditCompletedEvent/properties/size/anyOf/1",

886 "types": [

887 {

888 "kind": "HttpTypeLiteral",

889 "literal": "1024x1024"

890 },

891 {

892 "kind": "HttpTypeLiteral",

893 "literal": "1024x1536"

894 },

895 {

780 "kind": "HttpTypeLiteral",896 "kind": "HttpTypeLiteral",

781 "literal": "1536x1024"897 "literal": "1536x1024"

782 }

783 },898 },

784 "(resource) images > (model) image_edit_completed_event > (schema) > (property) size > (member) 3": {899 {

785 "kind": "HttpDeclReference",

786 "type": {

787 "kind": "HttpTypeLiteral",900 "kind": "HttpTypeLiteral",

788 "literal": "auto"901 "literal": "auto"

789 }902 }

903 ]

904 },

905 "childrenParentSchema": "enum",

906 "children": [

907 "(resource) images > (model) image_edit_completed_event > (schema) > (property) size > (variant) 1 > (member) 0",

908 "(resource) images > (model) image_edit_completed_event > (schema) > (property) size > (variant) 1 > (member) 1",

909 "(resource) images > (model) image_edit_completed_event > (schema) > (property) size > (variant) 1 > (member) 2",

910 "(resource) images > (model) image_edit_completed_event > (schema) > (property) size > (variant) 1 > (member) 3"

911 ]

790 },912 },

791 "(resource) images > (model) image_edit_completed_event > (schema) > (property) type > (member) 0": {913 "(resource) images > (model) image_edit_completed_event > (schema) > (property) type > (member) 0": {

792 "kind": "HttpDeclReference",914 "kind": "HttpDeclReference",


863 "schemaType": "integer",985 "schemaType": "integer",

864 "children": []986 "children": []

865 },987 },

988 "(resource) images > (model) image_edit_completed_event > (schema) > (property) size > (variant) 1 > (member) 0": {

989 "kind": "HttpDeclReference",

990 "type": {

991 "kind": "HttpTypeLiteral",

992 "literal": "1024x1024"

993 }

994 },

995 "(resource) images > (model) image_edit_completed_event > (schema) > (property) size > (variant) 1 > (member) 1": {

996 "kind": "HttpDeclReference",

997 "type": {

998 "kind": "HttpTypeLiteral",

999 "literal": "1024x1536"

1000 }

1001 },

1002 "(resource) images > (model) image_edit_completed_event > (schema) > (property) size > (variant) 1 > (member) 2": {

1003 "kind": "HttpDeclReference",

1004 "type": {

1005 "kind": "HttpTypeLiteral",

1006 "literal": "1536x1024"

1007 }

1008 },

1009 "(resource) images > (model) image_edit_completed_event > (schema) > (property) size > (variant) 1 > (member) 3": {

1010 "kind": "HttpDeclReference",

1011 "type": {

1012 "kind": "HttpTypeLiteral",

1013 "literal": "auto"

1014 }

1015 },

866 "(resource) images > (model) image_edit_completed_event > (schema) > (property) usage > (property) input_tokens_details > (property) image_tokens": {1016 "(resource) images > (model) image_edit_completed_event > (schema) > (property) usage > (property) input_tokens_details > (property) image_tokens": {

867 "kind": "HttpDeclProperty",1017 "kind": "HttpDeclProperty",

868 "oasRef": "#/components/schemas/ImagesUsage/properties/input_tokens_details/properties/image_tokens",1018 "oasRef": "#/components/schemas/ImagesUsage/properties/input_tokens_details/properties/image_tokens",

Details

3> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.3> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.

4 4 

5Stream image generation and editing in real time with server-sent events.5Stream image generation and editing in real time with server-sent events.

6[Learn more about image streaming](https://developers.openai.com/docs/guides/image-generation).6[Learn more about image streaming](https://developers.openai.com/api/docs/guides/image-generation).

7 7 

8## image_generation.partial_image8## image_generation.partial_image

9 9 


196 "kind": "HttpTypeLiteral",196 "kind": "HttpTypeLiteral",

197 "literal": "high"197 "literal": "high"

198 },198 },

199 {

200 "kind": "HttpTypeLiteral",

201 "literal": "xhigh"

202 },

203 {

204 "kind": "HttpTypeLiteral",

205 "literal": "max"

206 },

199 {207 {

200 "kind": "HttpTypeLiteral",208 "kind": "HttpTypeLiteral",

201 "literal": "auto"209 "literal": "auto"


210 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) quality > (member) 0",218 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) quality > (member) 0",

211 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) quality > (member) 1",219 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) quality > (member) 1",

212 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) quality > (member) 2",220 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) quality > (member) 2",

213 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) quality > (member) 3"221 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) quality > (member) 3",

222 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) quality > (member) 4",

223 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) quality > (member) 5"

214 ]224 ]

215 },225 },

216 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) size": {226 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) size": {


218 "oasRef": "#/components/schemas/ImageGenPartialImageEvent/properties/size",228 "oasRef": "#/components/schemas/ImageGenPartialImageEvent/properties/size",

219 "deprecated": false,229 "deprecated": false,

220 "key": "size",230 "key": "size",

221 "docstring": "The size of the requested image.\n",231 "docstring": "The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.",

222 "type": {232 "type": {

223 "kind": "HttpTypeUnion",233 "kind": "HttpTypeUnion",

224 "oasRef": "#/components/schemas/ImageGenPartialImageEvent/properties/size",234 "oasRef": "#/components/schemas/ImageGenPartialImageEvent/properties/size",

235 "types": [

236 {

237 "kind": "HttpTypeString"

238 },

239 {

240 "kind": "HttpTypeUnion",

241 "oasRef": "#/components/schemas/ImageGenPartialImageEvent/properties/size/anyOf/1",

225 "types": [242 "types": [

226 {243 {

227 "kind": "HttpTypeLiteral",244 "kind": "HttpTypeLiteral",


240 "literal": "auto"257 "literal": "auto"

241 }258 }

242 ]259 ]

260 }

261 ]

243 },262 },

244 "optional": false,263 "optional": false,

245 "nullable": false,264 "nullable": false,

246 "schemaType": "enum",265 "schemaType": "union",

247 "childrenParentSchema": "enum",266 "childrenParentSchema": "union",

248 "children": [267 "children": [

249 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) size > (member) 0",268 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) size > (variant) 0",

250 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) size > (member) 1",269 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) size > (variant) 1"

251 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) size > (member) 2",

252 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) size > (member) 3"

253 ]270 ]

254 },271 },

255 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) type": {272 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) type": {


343 "kind": "HttpDeclReference",360 "kind": "HttpDeclReference",

344 "type": {361 "type": {

345 "kind": "HttpTypeLiteral",362 "kind": "HttpTypeLiteral",

346 "literal": "auto"363 "literal": "xhigh"

347 }364 }

348 },365 },

349 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) size > (member) 0": {366 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) quality > (member) 4": {

350 "kind": "HttpDeclReference",367 "kind": "HttpDeclReference",

351 "type": {368 "type": {

352 "kind": "HttpTypeLiteral",369 "kind": "HttpTypeLiteral",

353 "literal": "1024x1024"370 "literal": "max"

354 }371 }

355 },372 },

356 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) size > (member) 1": {373 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) quality > (member) 5": {

357 "kind": "HttpDeclReference",374 "kind": "HttpDeclReference",

358 "type": {375 "type": {

376 "kind": "HttpTypeLiteral",

377 "literal": "auto"

378 }

379 },

380 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) size > (variant) 0": {

381 "kind": "HttpDeclTypeAlias",

382 "oasRef": "#/components/schemas/ImageGenPartialImageEvent/properties/size/anyOf/0",

383 "ident": "UnionMember0",

384 "type": {

385 "kind": "HttpTypeString"

386 },

387 "children": []

388 },

389 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) size > (variant) 1": {

390 "kind": "HttpDeclTypeAlias",

391 "oasRef": "#/components/schemas/ImageGenPartialImageEvent/properties/size/anyOf/1",

392 "docstring": "The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.",

393 "ident": "UnionMember1",

394 "type": {

395 "kind": "HttpTypeUnion",

396 "oasRef": "#/components/schemas/ImageGenPartialImageEvent/properties/size/anyOf/1",

397 "types": [

398 {

399 "kind": "HttpTypeLiteral",

400 "literal": "1024x1024"

401 },

402 {

359 "kind": "HttpTypeLiteral",403 "kind": "HttpTypeLiteral",

360 "literal": "1024x1536"404 "literal": "1024x1536"

405 },

406 {

407 "kind": "HttpTypeLiteral",

408 "literal": "1536x1024"

409 },

410 {

411 "kind": "HttpTypeLiteral",

412 "literal": "auto"

361 }413 }

414 ]

415 },

416 "childrenParentSchema": "enum",

417 "children": [

418 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) size > (variant) 1 > (member) 0",

419 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) size > (variant) 1 > (member) 1",

420 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) size > (variant) 1 > (member) 2",

421 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) size > (variant) 1 > (member) 3"

422 ]

362 },423 },

363 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) size > (member) 2": {424 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) type > (member) 0": {

364 "kind": "HttpDeclReference",425 "kind": "HttpDeclReference",

365 "type": {426 "type": {

366 "kind": "HttpTypeLiteral",427 "kind": "HttpTypeLiteral",

367 "literal": "1536x1024"428 "literal": "image_generation.partial_image"

368 }429 }

369 },430 },

370 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) size > (member) 3": {431 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) size > (variant) 1 > (member) 0": {

371 "kind": "HttpDeclReference",432 "kind": "HttpDeclReference",

372 "type": {433 "type": {

373 "kind": "HttpTypeLiteral",434 "kind": "HttpTypeLiteral",

374 "literal": "auto"435 "literal": "1024x1024"

375 }436 }

376 },437 },

377 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) type > (member) 0": {438 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) size > (variant) 1 > (member) 1": {

378 "kind": "HttpDeclReference",439 "kind": "HttpDeclReference",

379 "type": {440 "type": {

380 "kind": "HttpTypeLiteral",441 "kind": "HttpTypeLiteral",

381 "literal": "image_generation.partial_image"442 "literal": "1024x1536"

443 }

444 },

445 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) size > (variant) 1 > (member) 2": {

446 "kind": "HttpDeclReference",

447 "type": {

448 "kind": "HttpTypeLiteral",

449 "literal": "1536x1024"

450 }

451 },

452 "(resource) images > (model) image_gen_partial_image_event > (schema) > (property) size > (variant) 1 > (member) 3": {

453 "kind": "HttpDeclReference",

454 "type": {

455 "kind": "HttpTypeLiteral",

456 "literal": "auto"

382 }457 }

383 }458 }

384}459}


576 "kind": "HttpTypeLiteral",651 "kind": "HttpTypeLiteral",

577 "literal": "high"652 "literal": "high"

578 },653 },

654 {

655 "kind": "HttpTypeLiteral",

656 "literal": "xhigh"

657 },

658 {

659 "kind": "HttpTypeLiteral",

660 "literal": "max"

661 },

579 {662 {

580 "kind": "HttpTypeLiteral",663 "kind": "HttpTypeLiteral",

581 "literal": "auto"664 "literal": "auto"


590 "(resource) images > (model) image_gen_completed_event > (schema) > (property) quality > (member) 0",673 "(resource) images > (model) image_gen_completed_event > (schema) > (property) quality > (member) 0",

591 "(resource) images > (model) image_gen_completed_event > (schema) > (property) quality > (member) 1",674 "(resource) images > (model) image_gen_completed_event > (schema) > (property) quality > (member) 1",

592 "(resource) images > (model) image_gen_completed_event > (schema) > (property) quality > (member) 2",675 "(resource) images > (model) image_gen_completed_event > (schema) > (property) quality > (member) 2",

593 "(resource) images > (model) image_gen_completed_event > (schema) > (property) quality > (member) 3"676 "(resource) images > (model) image_gen_completed_event > (schema) > (property) quality > (member) 3",

677 "(resource) images > (model) image_gen_completed_event > (schema) > (property) quality > (member) 4",

678 "(resource) images > (model) image_gen_completed_event > (schema) > (property) quality > (member) 5"

594 ]679 ]

595 },680 },

596 "(resource) images > (model) image_gen_completed_event > (schema) > (property) size": {681 "(resource) images > (model) image_gen_completed_event > (schema) > (property) size": {


598 "oasRef": "#/components/schemas/ImageGenCompletedEvent/properties/size",683 "oasRef": "#/components/schemas/ImageGenCompletedEvent/properties/size",

599 "deprecated": false,684 "deprecated": false,

600 "key": "size",685 "key": "size",

601 "docstring": "The size of the generated image.\n",686 "docstring": "The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.",

602 "type": {687 "type": {

603 "kind": "HttpTypeUnion",688 "kind": "HttpTypeUnion",

604 "oasRef": "#/components/schemas/ImageGenCompletedEvent/properties/size",689 "oasRef": "#/components/schemas/ImageGenCompletedEvent/properties/size",

690 "types": [

691 {

692 "kind": "HttpTypeString"

693 },

694 {

695 "kind": "HttpTypeUnion",

696 "oasRef": "#/components/schemas/ImageGenCompletedEvent/properties/size/anyOf/1",

605 "types": [697 "types": [

606 {698 {

607 "kind": "HttpTypeLiteral",699 "kind": "HttpTypeLiteral",


620 "literal": "auto"712 "literal": "auto"

621 }713 }

622 ]714 ]

715 }

716 ]

623 },717 },

624 "optional": false,718 "optional": false,

625 "nullable": false,719 "nullable": false,

626 "schemaType": "enum",720 "schemaType": "union",

627 "childrenParentSchema": "enum",721 "childrenParentSchema": "union",

628 "children": [722 "children": [

629 "(resource) images > (model) image_gen_completed_event > (schema) > (property) size > (member) 0",723 "(resource) images > (model) image_gen_completed_event > (schema) > (property) size > (variant) 0",

630 "(resource) images > (model) image_gen_completed_event > (schema) > (property) size > (member) 1",724 "(resource) images > (model) image_gen_completed_event > (schema) > (property) size > (variant) 1"

631 "(resource) images > (model) image_gen_completed_event > (schema) > (property) size > (member) 2",

632 "(resource) images > (model) image_gen_completed_event > (schema) > (property) size > (member) 3"

633 ]725 ]

634 },726 },

635 "(resource) images > (model) image_gen_completed_event > (schema) > (property) type": {727 "(resource) images > (model) image_gen_completed_event > (schema) > (property) type": {


757 "kind": "HttpDeclReference",849 "kind": "HttpDeclReference",

758 "type": {850 "type": {

759 "kind": "HttpTypeLiteral",851 "kind": "HttpTypeLiteral",

760 "literal": "auto"852 "literal": "xhigh"

761 }853 }

762 },854 },

763 "(resource) images > (model) image_gen_completed_event > (schema) > (property) size > (member) 0": {855 "(resource) images > (model) image_gen_completed_event > (schema) > (property) quality > (member) 4": {

764 "kind": "HttpDeclReference",856 "kind": "HttpDeclReference",

765 "type": {857 "type": {

766 "kind": "HttpTypeLiteral",858 "kind": "HttpTypeLiteral",

767 "literal": "1024x1024"859 "literal": "max"

768 }860 }

769 },861 },

770 "(resource) images > (model) image_gen_completed_event > (schema) > (property) size > (member) 1": {862 "(resource) images > (model) image_gen_completed_event > (schema) > (property) quality > (member) 5": {

771 "kind": "HttpDeclReference",863 "kind": "HttpDeclReference",

772 "type": {864 "type": {

773 "kind": "HttpTypeLiteral",865 "kind": "HttpTypeLiteral",

774 "literal": "1024x1536"866 "literal": "auto"

775 }867 }

776 },868 },

777 "(resource) images > (model) image_gen_completed_event > (schema) > (property) size > (member) 2": {869 "(resource) images > (model) image_gen_completed_event > (schema) > (property) size > (variant) 0": {

778 "kind": "HttpDeclReference",870 "kind": "HttpDeclTypeAlias",

871 "oasRef": "#/components/schemas/ImageGenCompletedEvent/properties/size/anyOf/0",

872 "ident": "UnionMember0",

873 "type": {

874 "kind": "HttpTypeString"

875 },

876 "children": []

877 },

878 "(resource) images > (model) image_gen_completed_event > (schema) > (property) size > (variant) 1": {

879 "kind": "HttpDeclTypeAlias",

880 "oasRef": "#/components/schemas/ImageGenCompletedEvent/properties/size/anyOf/1",

881 "docstring": "The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.",

882 "ident": "UnionMember1",

779 "type": {883 "type": {

884 "kind": "HttpTypeUnion",

885 "oasRef": "#/components/schemas/ImageGenCompletedEvent/properties/size/anyOf/1",

886 "types": [

887 {

888 "kind": "HttpTypeLiteral",

889 "literal": "1024x1024"

890 },

891 {

892 "kind": "HttpTypeLiteral",

893 "literal": "1024x1536"

894 },

895 {

780 "kind": "HttpTypeLiteral",896 "kind": "HttpTypeLiteral",

781 "literal": "1536x1024"897 "literal": "1536x1024"

782 }

783 },898 },

784 "(resource) images > (model) image_gen_completed_event > (schema) > (property) size > (member) 3": {899 {

785 "kind": "HttpDeclReference",

786 "type": {

787 "kind": "HttpTypeLiteral",900 "kind": "HttpTypeLiteral",

788 "literal": "auto"901 "literal": "auto"

789 }902 }

903 ]

904 },

905 "childrenParentSchema": "enum",

906 "children": [

907 "(resource) images > (model) image_gen_completed_event > (schema) > (property) size > (variant) 1 > (member) 0",

908 "(resource) images > (model) image_gen_completed_event > (schema) > (property) size > (variant) 1 > (member) 1",

909 "(resource) images > (model) image_gen_completed_event > (schema) > (property) size > (variant) 1 > (member) 2",

910 "(resource) images > (model) image_gen_completed_event > (schema) > (property) size > (variant) 1 > (member) 3"

911 ]

790 },912 },

791 "(resource) images > (model) image_gen_completed_event > (schema) > (property) type > (member) 0": {913 "(resource) images > (model) image_gen_completed_event > (schema) > (property) type > (member) 0": {

792 "kind": "HttpDeclReference",914 "kind": "HttpDeclReference",


863 "schemaType": "integer",985 "schemaType": "integer",

864 "children": []986 "children": []

865 },987 },

988 "(resource) images > (model) image_gen_completed_event > (schema) > (property) size > (variant) 1 > (member) 0": {

989 "kind": "HttpDeclReference",

990 "type": {

991 "kind": "HttpTypeLiteral",

992 "literal": "1024x1024"

993 }

994 },

995 "(resource) images > (model) image_gen_completed_event > (schema) > (property) size > (variant) 1 > (member) 1": {

996 "kind": "HttpDeclReference",

997 "type": {

998 "kind": "HttpTypeLiteral",

999 "literal": "1024x1536"

1000 }

1001 },

1002 "(resource) images > (model) image_gen_completed_event > (schema) > (property) size > (variant) 1 > (member) 2": {

1003 "kind": "HttpDeclReference",

1004 "type": {

1005 "kind": "HttpTypeLiteral",

1006 "literal": "1536x1024"

1007 }

1008 },

1009 "(resource) images > (model) image_gen_completed_event > (schema) > (property) size > (variant) 1 > (member) 3": {

1010 "kind": "HttpDeclReference",

1011 "type": {

1012 "kind": "HttpTypeLiteral",

1013 "literal": "auto"

1014 }

1015 },

866 "(resource) images > (model) image_gen_completed_event > (schema) > (property) usage > (property) input_tokens_details > (property) image_tokens": {1016 "(resource) images > (model) image_gen_completed_event > (schema) > (property) usage > (property) input_tokens_details > (property) image_tokens": {

867 "kind": "HttpDeclProperty",1017 "kind": "HttpDeclProperty",

868 "oasRef": "#/components/schemas/ImagesUsage/properties/input_tokens_details/properties/image_tokens",1018 "oasRef": "#/components/schemas/ImagesUsage/properties/input_tokens_details/properties/image_tokens",

Details

48 48 

49 - `"jpeg"`49 - `"jpeg"`

50 50 

51 - `quality: optional "low" or "medium" or "high"`51 - `quality: optional "low" or "medium" or "high" or 2 more`

52 52 

53 The quality of the image generated. Either `low`, `medium`, or `high`.53 The quality of the image generated. One of `low`, `medium`, `high`, `xhigh`, or `max`.

54 54 

55 - `"low"`55 - `"low"`

56 56 


58 58 

59 - `"high"`59 - `"high"`

60 60 

61 - `size: optional "1024x1024" or "1024x1536" or "1536x1024"`61 - `"xhigh"`

62 62 

63 The size of the image generated. Either `1024x1024`, `1024x1536`, or `1536x1024`.63 - `"max"`

64 

65 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024"`

66 

67 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

68 

69 - `string`

70 

71 - `"1024x1024" or "1024x1536" or "1536x1024"`

72 

73 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

64 74 

65 - `"1024x1024"`75 - `"1024x1024"`

66 76 

Details

2 2 

3**post** `/images/edits`3**post** `/images/edits`

4 4 

5Creates an edited or extended image given one or more source images and a prompt. This endpoint supports GPT Image models (`gpt-image-1.5`, `gpt-image-1`, `gpt-image-1-mini`, and `chatgpt-image-latest`) and `dall-e-2`.5Creates an edited or extended image given one or more source images and a prompt. This endpoint supports GPT Image models and `dall-e-2`.

6 6 

7### Body Parameters7### Body Parameters

8 8 


25 25 

26- `background: optional "transparent" or "opaque" or "auto" or null`26- `background: optional "transparent" or "opaque" or "auto" or null`

27 27 

28 Set the background of the generated image output. Transparent backgrounds are available for supported GPT Image models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in preview. When using `transparent`, set the output format to `png` or `webp`.28 Set the background of the generated image output. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their `2026-09-08` snapshots, support `opaque` and `transparent` backgrounds. Transparent backgrounds are available for supported GPT Image models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in preview. When using `transparent`, set the output format to `png` or `webp`.

29 29 

30 - `"transparent"`30 - `"transparent"`

31 31 


54 54 

55 A fully qualified URL or base64-encoded data URL.55 A fully qualified URL or base64-encoded data URL.

56 56 

57- `model: optional string or "gpt-image-1.5" or "gpt-image-2" or "gpt-image-2-2026-04-21" or 3 more or null`57- `model: optional string or "gpt-image-1.5" or "gpt-image-2" or "gpt-image-2-2026-04-21" or 7 more or null`

58 58 

59 The GPT image model to use for image editing, including `gpt-image-2` and its dated snapshot `gpt-image-2-2026-04-21`.59 The GPT image model to use for image editing, including `gpt-image-2`, its dated snapshot `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`.

60 60 

61 - `string`61 - `string`

62 62 

63 - `"gpt-image-1.5" or "gpt-image-2" or "gpt-image-2-2026-04-21" or 3 more`63 - `"gpt-image-1.5" or "gpt-image-2" or "gpt-image-2-2026-04-21" or 7 more`

64 64 

65 The GPT image model to use for image editing, including `gpt-image-2` and its dated snapshot `gpt-image-2-2026-04-21`.65 The GPT image model to use for image editing, including `gpt-image-2`, its dated snapshot `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`.

66 66 

67 - `"gpt-image-1.5"`67 - `"gpt-image-1.5"`

68 68 


70 70 

71 - `"gpt-image-2-2026-04-21"`71 - `"gpt-image-2-2026-04-21"`

72 72 

73 - `"gpt-image-2.5-sunburst"`

74 

75 - `"gpt-image-2.5-sunburst-2026-09-08"`

76 

77 - `"gpt-image-2.5-flare"`

78 

79 - `"gpt-image-2.5-flare-2026-09-08"`

80 

73 - `"gpt-image-1"`81 - `"gpt-image-1"`

74 82 

75 - `"gpt-image-1-mini"`83 - `"gpt-image-1-mini"`


111 Note that the final image may be sent before the full number of partial images119 Note that the final image may be sent before the full number of partial images

112 are generated if the full image is generated more quickly.120 are generated if the full image is generated more quickly.

113 121 

114- `quality: optional "low" or "medium" or "high" or "auto" or null`122- `quality: optional "low" or "medium" or "high" or 3 more or null`

115 123 

116 Output quality for GPT image models.124 Output quality for GPT image models. The GPT image models support `low`, `medium`,

125 and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their

126 `2026-09-08` snapshots, also support `xhigh` and `max`. Defaults to `auto`.

117 127 

118 - `"low"`128 - `"low"`

119 129 


121 131 

122 - `"high"`132 - `"high"`

123 133 

134 - `"xhigh"`

135 

136 - `"max"`

137 

124 - `"auto"`138 - `"auto"`

125 139 

126- `size: optional "auto" or "1024x1024" or "1536x1024" or "1024x1536" or null`140- `size: optional string or "auto" or "1024x1024" or "1536x1024" or "1024x1536" or null`

141 

142 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.

143 

144 - `string`

145 

146 - `"auto" or "1024x1024" or "1536x1024" or "1024x1536"`

127 147 

128 Requested output image size.148 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.

129 149 

130 - `"auto"`150 - `"auto"`

131 151 


188 208 

189 - `"jpeg"`209 - `"jpeg"`

190 210 

191 - `quality: optional "low" or "medium" or "high"`211 - `quality: optional "low" or "medium" or "high" or 2 more`

192 212 

193 The quality of the image generated. Either `low`, `medium`, or `high`.213 The quality of the image generated. One of `low`, `medium`, `high`, `xhigh`, or `max`.

194 214 

195 - `"low"`215 - `"low"`

196 216 


198 218 

199 - `"high"`219 - `"high"`

200 220 

201 - `size: optional "1024x1024" or "1024x1536" or "1536x1024"`221 - `"xhigh"`

222 

223 - `"max"`

224 

225 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024"`

226 

227 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

228 

229 - `string`

230 

231 - `"1024x1024" or "1024x1536" or "1536x1024"`

202 232 

203 The size of the image generated. Either `1024x1024`, `1024x1536`, or `1536x1024`.233 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

204 234 

205 - `"1024x1024"`235 - `"1024x1024"`

206 236 

Details

2 2 

3**post** `/images/generations`3**post** `/images/generations`

4 4 

5Creates an image given a prompt. [Learn more](/docs/guides/images).5Creates an image given a prompt. [Learn more](/api/docs/guides/images-vision).

6 6 

7### Body Parameters7### Body Parameters

8 8 


12 12 

13- `background: optional "transparent" or "opaque" or "auto" or null`13- `background: optional "transparent" or "opaque" or "auto" or null`

14 14 

15 Set the background of the generated image(s). This parameter is only15 Set the background of the generated image(s). This parameter is only supported for

16 supported for the GPT image models. Must be one of `transparent`, `opaque`,16 the GPT image models. Must be one of `transparent`, `opaque`, or `auto` (default

17 or `auto` (default value). When `auto` is used, the model will automatically17 value). When `auto` is used, the model will automatically determine the best

18 determine the best background for the image.18 background for the image.

19 19 

20 Transparent backgrounds are available for supported GPT Image models. For20 `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their `2026-09-08`

21 `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in preview. When21 snapshots, support `opaque` and `transparent` backgrounds. Transparent backgrounds

22 using `transparent`, set the output format to `png` or `webp`.22 are available for supported GPT Image models. For `gpt-image-2` and

23 `gpt-image-2-2026-04-21`, this support is in preview. When using `transparent`,

24 set the output format to `png` or `webp`.

23 25 

24 - `"transparent"`26 - `"transparent"`

25 27 


29 31 

30- `model: optional string or ImageModel or null`32- `model: optional string or ImageModel or null`

31 33 

32 The model to use for image generation. One of `dall-e-2`, `dall-e-3`, or a GPT image model (`gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`, `gpt-image-2-2026-04-21`). Defaults to `dall-e-2` unless a parameter specific to the GPT image models is used.34 The model to use for image generation. One of `dall-e-2`, `dall-e-3`, or a GPT image model (`gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`, `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`, `gpt-image-2.5-flare-2026-09-08`). Defaults to `dall-e-2` unless a parameter specific to the GPT image models is used.

33 35 

34 - `string`36 - `string`

35 37 

36 - `ImageModel = "gpt-image-1.5" or "gpt-image-2" or "gpt-image-2-2026-04-21" or 4 more`38 - `ImageModel = "gpt-image-1.5" or "gpt-image-2" or "gpt-image-2-2026-04-21" or 8 more`

37 39 

38 - `"gpt-image-1.5"`40 - `"gpt-image-1.5"`

39 41 


41 43 

42 - `"gpt-image-2-2026-04-21"`44 - `"gpt-image-2-2026-04-21"`

43 45 

46 - `"gpt-image-2.5-sunburst"`

47 

48 - `"gpt-image-2.5-sunburst-2026-09-08"`

49 

50 - `"gpt-image-2.5-flare"`

51 

52 - `"gpt-image-2.5-flare-2026-09-08"`

53 

44 - `"dall-e-2"`54 - `"dall-e-2"`

45 55 

46 - `"dall-e-3"`56 - `"dall-e-3"`


84 Note that the final image may be sent before the full number of partial images94 Note that the final image may be sent before the full number of partial images

85 are generated if the full image is generated more quickly.95 are generated if the full image is generated more quickly.

86 96 

87- `quality: optional "standard" or "hd" or "low" or 3 more or null`97- `quality: optional "standard" or "hd" or "low" or 5 more or null`

88 98 

89 The quality of the image that will be generated.99 The quality of the image that will be generated.

90 100 

91 - `auto` (default value) will automatically select the best quality for the given model.101 - `auto` (default value) will automatically select the best quality for the given

102 model.

92 - `high`, `medium` and `low` are supported for the GPT image models.103 - `high`, `medium` and `low` are supported for the GPT image models.

104 - `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their `2026-09-08`

105 snapshots, also support `xhigh` and `max`.

93 - `hd` and `standard` are supported for `dall-e-3`.106 - `hd` and `standard` are supported for `dall-e-3`.

94 - `standard` is the only option for `dall-e-2`.107 - `standard` is the only option for `dall-e-2`.

95 108 


103 116 

104 - `"high"`117 - `"high"`

105 118 

119 - `"xhigh"`

120 

121 - `"max"`

122 

106 - `"auto"`123 - `"auto"`

107 124 

108- `response_format: optional "url" or "b64_json" or null`125- `response_format: optional "url" or "b64_json" or null`


115 132 

116- `size: optional string or "auto" or "1024x1024" or "1536x1024" or 5 more or null`133- `size: optional string or "auto" or "1024x1024" or "1536x1024" or 5 more or null`

117 134 

118 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`.135 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`.

119 136 

120 - `string`137 - `string`

121 138 

122 - `"auto" or "1024x1024" or "1536x1024" or 5 more`139 - `"auto" or "1024x1024" or "1536x1024" or 5 more`

123 140 

124 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`.141 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`.

125 142 

126 - `"auto"`143 - `"auto"`

127 144 


142- `stream: optional boolean or null`159- `stream: optional boolean or null`

143 160 

144 Generate the image in streaming mode. Defaults to `false`. See the161 Generate the image in streaming mode. Defaults to `false`. See the

145 [Image generation guide](/docs/guides/image-generation) for more information.162 [Image generation guide](/api/docs/guides/image-generation) for more information.

146 This parameter is only supported for the GPT image models.163 This parameter is only supported for the GPT image models.

147 164 

148- `style: optional "vivid" or "natural" or null`165- `style: optional "vivid" or "natural" or null`


155 172 

156- `user: optional string`173- `user: optional string`

157 174 

158 A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices#end-user-ids).175 A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/api/docs/guides/safety-best-practices#implement-safety-identifiers).

159 176 

160### Returns177### Returns

161 178 


201 218 

202 - `"jpeg"`219 - `"jpeg"`

203 220 

204 - `quality: optional "low" or "medium" or "high"`221 - `quality: optional "low" or "medium" or "high" or 2 more`

205 222 

206 The quality of the image generated. Either `low`, `medium`, or `high`.223 The quality of the image generated. One of `low`, `medium`, `high`, `xhigh`, or `max`.

207 224 

208 - `"low"`225 - `"low"`

209 226 


211 228 

212 - `"high"`229 - `"high"`

213 230 

214 - `size: optional "1024x1024" or "1024x1536" or "1536x1024"`231 - `"xhigh"`

232 

233 - `"max"`

234 

235 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024"`

236 

237 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

238 

239 - `string`

240 

241 - `"1024x1024" or "1024x1536" or "1536x1024"`

215 242 

216 The size of the image generated. Either `1024x1024`, `1024x1536`, or `1536x1024`.243 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

217 244 

218 - `"1024x1024"`245 - `"1024x1024"`

219 246 

Details

3**post** `/moderations`3**post** `/moderations`

4 4 

5Classifies if text and/or image inputs are potentially harmful. Learn5Classifies if text and/or image inputs are potentially harmful. Learn

6more in the [moderation guide](/docs/guides/moderation).6more in the [moderation guide](/api/docs/guides/moderation).

7 7 

8### Body Parameters8### Body Parameters

9 9 


59- `model: optional string or ModerationModel`59- `model: optional string or ModerationModel`

60 60 

61 The content moderation model you would like to use. Learn more in61 The content moderation model you would like to use. Learn more in

62 [the moderation guide](/docs/guides/moderation), and learn about62 [the moderation guide](/api/docs/guides/moderation), and learn about

63 available models [here](/docs/models#moderation).63 available models [here](/api/docs/guides/moderation).

64 64 

65 - `string`65 - `string`

66 66 

Details

545 "oasRef": "#/components/schemas/RealtimeSessionCreateRequestGA/properties/prompt",545 "oasRef": "#/components/schemas/RealtimeSessionCreateRequestGA/properties/prompt",

546 "deprecated": false,546 "deprecated": false,

547 "key": "prompt",547 "key": "prompt",

548 "docstring": "Reference to a prompt template and its variables.\n[Learn more](/docs/guides/text?api-mode=responses#reusable-prompts).\n",548 "docstring": "Reference to a prompt template and its variables.\n[Learn more](/api/docs/guides/text?api-mode=responses#version-prompts-in-code).\n",

549 "type": {549 "type": {

550 "kind": "HttpTypeReference",550 "kind": "HttpTypeReference",

551 "ident": "ResponsePrompt",551 "ident": "ResponsePrompt",


1075 "(resource) responses > (model) response_prompt > (schema)": {1075 "(resource) responses > (model) response_prompt > (schema)": {

1076 "kind": "HttpDeclTypeAlias",1076 "kind": "HttpDeclTypeAlias",

1077 "oasRef": "#/components/schemas/Prompt",1077 "oasRef": "#/components/schemas/Prompt",

1078 "docstring": "Reference to a prompt template and its variables.\n[Learn more](/docs/guides/text?api-mode=responses#reusable-prompts).\n",1078 "docstring": "Reference to a prompt template and its variables.\n[Learn more](/api/docs/guides/text?api-mode=responses#version-prompts-in-code).\n",

1079 "ident": "ResponsePrompt",1079 "ident": "ResponsePrompt",

1080 "type": {1080 "type": {

1081 "kind": "HttpTypeObject",1081 "kind": "HttpTypeObject",


1234 "(resource) realtime > (model) realtime_tools_config_union > (schema) > (variant) 1": {1234 "(resource) realtime > (model) realtime_tools_config_union > (schema) > (variant) 1": {

1235 "kind": "HttpDeclTypeAlias",1235 "kind": "HttpDeclTypeAlias",

1236 "oasRef": "#/components/schemas/RealtimeSessionCreateRequestGA/properties/tools/items/oneOf/1",1236 "oasRef": "#/components/schemas/RealtimeSessionCreateRequestGA/properties/tools/items/oneOf/1",

1237 "docstring": "Give the model access to additional tools via remote Model Context Protocol\n(MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).\n",1237 "docstring": "Give the model access to additional tools via remote Model Context Protocol\n(MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).\n",

1238 "ident": "McpTool",1238 "ident": "McpTool",

1239 "type": {1239 "type": {

1240 "kind": "HttpTypeObject",1240 "kind": "HttpTypeObject",


1601 "oasRef": "#/components/schemas/RealtimeSessionCreateRequestGA/properties/audio/properties/input/properties/transcription",1601 "oasRef": "#/components/schemas/RealtimeSessionCreateRequestGA/properties/audio/properties/input/properties/transcription",

1602 "deprecated": false,1602 "deprecated": false,

1603 "key": "transcription",1603 "key": "transcription",

1604 "docstring": "Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](/docs/api-reference/audio/createTranscription) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.\n",1604 "docstring": "Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](/api/reference/resources/audio/subresources/transcriptions/methods/create) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.\n",

1605 "type": {1605 "type": {

1606 "kind": "HttpTypeReference",1606 "kind": "HttpTypeReference",

1607 "ident": "AudioTranscription",1607 "ident": "AudioTranscription",


2048 "(resource) responses > (model) response_input_image > (schema)": {2048 "(resource) responses > (model) response_input_image > (schema)": {

2049 "kind": "HttpDeclTypeAlias",2049 "kind": "HttpDeclTypeAlias",

2050 "oasRef": "#/components/schemas/InputImageContent",2050 "oasRef": "#/components/schemas/InputImageContent",

2051 "docstring": "An image input to the model. Learn about [image inputs](/docs/guides/vision).",2051 "docstring": "An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).",

2052 "ident": "ResponseInputImage",2052 "ident": "ResponseInputImage",

2053 "type": {2053 "type": {

2054 "kind": "HttpTypeObject",2054 "kind": "HttpTypeObject",


2609 "oasRef": "#/components/schemas/MCPTool/properties/connector_id",2609 "oasRef": "#/components/schemas/MCPTool/properties/connector_id",

2610 "deprecated": false,2610 "deprecated": false,

2611 "key": "connector_id",2611 "key": "connector_id",

2612 "docstring": "Identifier for service connectors, like those available in ChatGPT. One of\n`server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more\nabout service connectors [here](/docs/guides/tools-remote-mcp#connectors).\n\nCurrently supported `connector_id` values are:\n\n- Dropbox: `connector_dropbox`\n- Gmail: `connector_gmail`\n- Google Calendar: `connector_googlecalendar`\n- Google Drive: `connector_googledrive`\n- Microsoft Teams: `connector_microsoftteams`\n- Outlook Calendar: `connector_outlookcalendar`\n- Outlook Email: `connector_outlookemail`\n- SharePoint: `connector_sharepoint`\n",2612 "docstring": "Identifier for service connectors, like those available in ChatGPT. One of\n`server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more\nabout service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).\n\nCurrently supported `connector_id` values are:\n\n- Dropbox: `connector_dropbox`\n- Gmail: `connector_gmail`\n- Google Calendar: `connector_googlecalendar`\n- Google Drive: `connector_googledrive`\n- Microsoft Teams: `connector_microsoftteams`\n- Outlook Calendar: `connector_outlookcalendar`\n- Outlook Email: `connector_outlookemail`\n- SharePoint: `connector_sharepoint`\n",

2613 "type": {2613 "type": {

2614 "kind": "HttpTypeUnion",2614 "kind": "HttpTypeUnion",

2615 "oasRef": "#/components/schemas/MCPTool/properties/connector_id",2615 "oasRef": "#/components/schemas/MCPTool/properties/connector_id",


2796 "(resource) realtime > (model) realtime_tools_config_union > (schema)": {2796 "(resource) realtime > (model) realtime_tools_config_union > (schema)": {

2797 "kind": "HttpDeclTypeAlias",2797 "kind": "HttpDeclTypeAlias",

2798 "oasRef": "#/components/schemas/RealtimeSessionCreateRequestGA/properties/tools/items",2798 "oasRef": "#/components/schemas/RealtimeSessionCreateRequestGA/properties/tools/items",

2799 "docstring": "Give the model access to additional tools via remote Model Context Protocol\n(MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).\n",2799 "docstring": "Give the model access to additional tools via remote Model Context Protocol\n(MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).\n",

2800 "ident": "RealtimeToolsConfigUnion",2800 "ident": "RealtimeToolsConfigUnion",

2801 "type": {2801 "type": {

2802 "kind": "HttpTypeUnion",2802 "kind": "HttpTypeUnion",


3033 "oasRef": "#/components/schemas/RealtimeTranscriptionSessionCreateRequestGA/properties/audio/properties/input/properties/transcription",3033 "oasRef": "#/components/schemas/RealtimeTranscriptionSessionCreateRequestGA/properties/audio/properties/input/properties/transcription",

3034 "deprecated": false,3034 "deprecated": false,

3035 "key": "transcription",3035 "key": "transcription",

3036 "docstring": "Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](/docs/api-reference/audio/createTranscription) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.\n",3036 "docstring": "Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](/api/reference/resources/audio/subresources/transcriptions/methods/create) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.\n",

3037 "type": {3037 "type": {

3038 "kind": "HttpTypeReference",3038 "kind": "HttpTypeReference",

3039 "ident": "AudioTranscription",3039 "ident": "AudioTranscription",


3392 "oasRef": "#/components/schemas/AudioTranscription/properties/prompt",3392 "oasRef": "#/components/schemas/AudioTranscription/properties/prompt",

3393 "deprecated": false,3393 "deprecated": false,

3394 "key": "prompt",3394 "key": "prompt",

3395 "docstring": "An optional text to guide the model's style or continue a previous audio\nsegment.\nFor `whisper-1`, the [prompt is a list of keywords](/docs/guides/speech-to-text#prompting).\nFor `gpt-4o-transcribe` models (excluding `gpt-4o-transcribe-diarize`), the prompt is a free text string, for example \"expect words related to technology\".\nPrompt is not supported with `gpt-realtime-whisper` in GA Realtime sessions.\n",3395 "docstring": "An optional text to guide the model's style or continue a previous audio\nsegment.\nFor `whisper-1`, the [prompt is a list of keywords](/api/docs/guides/speech-to-text#prompting).\nFor `gpt-4o-transcribe` models (excluding `gpt-4o-transcribe-diarize`), the prompt is a free text string, for example \"expect words related to technology\".\nPrompt is not supported with `gpt-realtime-whisper` in GA Realtime sessions.\n",

3396 "type": {3396 "type": {

3397 "kind": "HttpTypeString"3397 "kind": "HttpTypeString"

3398 },3398 },


9384 "oasRef": "#/components/schemas/RealtimeResponseCreateParams/properties/prompt",9384 "oasRef": "#/components/schemas/RealtimeResponseCreateParams/properties/prompt",

9385 "deprecated": false,9385 "deprecated": false,

9386 "key": "prompt",9386 "key": "prompt",

9387 "docstring": "Reference to a prompt template and its variables.\n[Learn more](/docs/guides/text?api-mode=responses#reusable-prompts).\n",9387 "docstring": "Reference to a prompt template and its variables.\n[Learn more](/api/docs/guides/text?api-mode=responses#version-prompts-in-code).\n",

9388 "type": {9388 "type": {

9389 "kind": "HttpTypeReference",9389 "kind": "HttpTypeReference",

9390 "ident": "ResponsePrompt",9390 "ident": "ResponsePrompt",


10038 "(resource) responses > (model) response_prompt > (schema)": {10038 "(resource) responses > (model) response_prompt > (schema)": {

10039 "kind": "HttpDeclTypeAlias",10039 "kind": "HttpDeclTypeAlias",

10040 "oasRef": "#/components/schemas/Prompt",10040 "oasRef": "#/components/schemas/Prompt",

10041 "docstring": "Reference to a prompt template and its variables.\n[Learn more](/docs/guides/text?api-mode=responses#reusable-prompts).\n",10041 "docstring": "Reference to a prompt template and its variables.\n[Learn more](/api/docs/guides/text?api-mode=responses#version-prompts-in-code).\n",

10042 "ident": "ResponsePrompt",10042 "ident": "ResponsePrompt",

10043 "type": {10043 "type": {

10044 "kind": "HttpTypeObject",10044 "kind": "HttpTypeObject",


10242 "(resource) realtime > (model) realtime_response_create_params > (schema) > (property) tools > (items) > (variant) 1": {10242 "(resource) realtime > (model) realtime_response_create_params > (schema) > (property) tools > (items) > (variant) 1": {

10243 "kind": "HttpDeclTypeAlias",10243 "kind": "HttpDeclTypeAlias",

10244 "oasRef": "#/components/schemas/RealtimeResponseCreateParams/properties/tools/items/oneOf/1",10244 "oasRef": "#/components/schemas/RealtimeResponseCreateParams/properties/tools/items/oneOf/1",

10245 "docstring": "Give the model access to additional tools via remote Model Context Protocol\n(MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).\n",10245 "docstring": "Give the model access to additional tools via remote Model Context Protocol\n(MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).\n",

10246 "ident": "McpTool",10246 "ident": "McpTool",

10247 "type": {10247 "type": {

10248 "kind": "HttpTypeObject",10248 "kind": "HttpTypeObject",


12010 "(resource) responses > (model) response_input_image > (schema)": {12010 "(resource) responses > (model) response_input_image > (schema)": {

12011 "kind": "HttpDeclTypeAlias",12011 "kind": "HttpDeclTypeAlias",

12012 "oasRef": "#/components/schemas/InputImageContent",12012 "oasRef": "#/components/schemas/InputImageContent",

12013 "docstring": "An image input to the model. Learn about [image inputs](/docs/guides/vision).",12013 "docstring": "An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).",

12014 "ident": "ResponseInputImage",12014 "ident": "ResponseInputImage",

12015 "type": {12015 "type": {

12016 "kind": "HttpTypeObject",12016 "kind": "HttpTypeObject",


12464 "oasRef": "#/components/schemas/MCPTool/properties/connector_id",12464 "oasRef": "#/components/schemas/MCPTool/properties/connector_id",

12465 "deprecated": false,12465 "deprecated": false,

12466 "key": "connector_id",12466 "key": "connector_id",

12467 "docstring": "Identifier for service connectors, like those available in ChatGPT. One of\n`server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more\nabout service connectors [here](/docs/guides/tools-remote-mcp#connectors).\n\nCurrently supported `connector_id` values are:\n\n- Dropbox: `connector_dropbox`\n- Gmail: `connector_gmail`\n- Google Calendar: `connector_googlecalendar`\n- Google Drive: `connector_googledrive`\n- Microsoft Teams: `connector_microsoftteams`\n- Outlook Calendar: `connector_outlookcalendar`\n- Outlook Email: `connector_outlookemail`\n- SharePoint: `connector_sharepoint`\n",12467 "docstring": "Identifier for service connectors, like those available in ChatGPT. One of\n`server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more\nabout service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).\n\nCurrently supported `connector_id` values are:\n\n- Dropbox: `connector_dropbox`\n- Gmail: `connector_gmail`\n- Google Calendar: `connector_googlecalendar`\n- Google Drive: `connector_googledrive`\n- Microsoft Teams: `connector_microsoftteams`\n- Outlook Calendar: `connector_outlookcalendar`\n- Outlook Email: `connector_outlookemail`\n- SharePoint: `connector_sharepoint`\n",

12468 "type": {12468 "type": {

12469 "kind": "HttpTypeUnion",12469 "kind": "HttpTypeUnion",

12470 "oasRef": "#/components/schemas/MCPTool/properties/connector_id",12470 "oasRef": "#/components/schemas/MCPTool/properties/connector_id",


14916stop generating audio and emit a `output_audio_buffer.cleared` event. This14916stop generating audio and emit a `output_audio_buffer.cleared` event. This

14917event should be preceded by a `response.cancel` client event to stop the14917event should be preceded by a `response.cancel` client event to stop the

14918generation of the current response.14918generation of the current response.

14919[Learn more](https://developers.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).14919[Learn more](https://developers.openai.com/api/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).

14920 14920 

14921### Schema14921### Schema

14922 14922 


14927 "(resource) realtime > (model) output_audio_buffer_clear_event > (schema)": {14927 "(resource) realtime > (model) output_audio_buffer_clear_event > (schema)": {

14928 "kind": "HttpDeclTypeAlias",14928 "kind": "HttpDeclTypeAlias",

14929 "oasRef": "#/components/schemas/RealtimeClientEventOutputAudioBufferClear",14929 "oasRef": "#/components/schemas/RealtimeClientEventOutputAudioBufferClear",

14930 "docstring": "**WebRTC/SIP Only:** Emit to cut off the current audio response. This will trigger the server to\nstop generating audio and emit a `output_audio_buffer.cleared` event. This\nevent should be preceded by a `response.cancel` client event to stop the\ngeneration of the current response.\n[Learn more](/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).\n",14930 "docstring": "**WebRTC/SIP Only:** Emit to cut off the current audio response. This will trigger the server to\nstop generating audio and emit a `output_audio_buffer.cleared` event. This\nevent should be preceded by a `response.cancel` client event to stop the\ngeneration of the current response.\n[Learn more](/api/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).\n",

14931 "ident": "OutputAudioBufferClearEvent",14931 "ident": "OutputAudioBufferClearEvent",

14932 "type": {14932 "type": {

14933 "kind": "HttpTypeObject",14933 "kind": "HttpTypeObject",

Details

24391 "oasRef": "#/components/schemas/RealtimeSessionCreateResponseGA/properties/prompt",24391 "oasRef": "#/components/schemas/RealtimeSessionCreateResponseGA/properties/prompt",

24392 "deprecated": false,24392 "deprecated": false,

24393 "key": "prompt",24393 "key": "prompt",

24394 "docstring": "Reference to a prompt template and its variables.\n[Learn more](/docs/guides/text?api-mode=responses#reusable-prompts).\n",24394 "docstring": "Reference to a prompt template and its variables.\n[Learn more](/api/docs/guides/text?api-mode=responses#version-prompts-in-code).\n",

24395 "type": {24395 "type": {

24396 "kind": "HttpTypeReference",24396 "kind": "HttpTypeReference",

24397 "ident": "ResponsePrompt",24397 "ident": "ResponsePrompt",


25055 "(resource) responses > (model) response_prompt > (schema)": {25055 "(resource) responses > (model) response_prompt > (schema)": {

25056 "kind": "HttpDeclTypeAlias",25056 "kind": "HttpDeclTypeAlias",

25057 "oasRef": "#/components/schemas/Prompt",25057 "oasRef": "#/components/schemas/Prompt",

25058 "docstring": "Reference to a prompt template and its variables.\n[Learn more](/docs/guides/text?api-mode=responses#reusable-prompts).\n",25058 "docstring": "Reference to a prompt template and its variables.\n[Learn more](/api/docs/guides/text?api-mode=responses#version-prompts-in-code).\n",

25059 "ident": "ResponsePrompt",25059 "ident": "ResponsePrompt",

25060 "type": {25060 "type": {

25061 "kind": "HttpTypeObject",25061 "kind": "HttpTypeObject",


25259 "(resource) realtime.client_secrets > (model) realtime_session_create_response > (schema) > (property) tools > (items) > (variant) 1": {25259 "(resource) realtime.client_secrets > (model) realtime_session_create_response > (schema) > (property) tools > (items) > (variant) 1": {

25260 "kind": "HttpDeclTypeAlias",25260 "kind": "HttpDeclTypeAlias",

25261 "oasRef": "#/components/schemas/RealtimeSessionCreateResponseGA/properties/tools/items/oneOf/1",25261 "oasRef": "#/components/schemas/RealtimeSessionCreateResponseGA/properties/tools/items/oneOf/1",

25262 "docstring": "Give the model access to additional tools via remote Model Context Protocol\n(MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).\n",25262 "docstring": "Give the model access to additional tools via remote Model Context Protocol\n(MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).\n",

25263 "ident": "McpTool",25263 "ident": "McpTool",

25264 "type": {25264 "type": {

25265 "kind": "HttpTypeObject",25265 "kind": "HttpTypeObject",


25586 "oasRef": "#/components/schemas/RealtimeSessionCreateResponseGA/properties/audio/properties/input/properties/transcription",25586 "oasRef": "#/components/schemas/RealtimeSessionCreateResponseGA/properties/audio/properties/input/properties/transcription",

25587 "deprecated": false,25587 "deprecated": false,

25588 "key": "transcription",25588 "key": "transcription",

25589 "docstring": "Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](/docs/api-reference/audio/createTranscription) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.\n",25589 "docstring": "Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](/api/reference/resources/audio/subresources/transcriptions/methods/create) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.\n",

25590 "type": {25590 "type": {

25591 "kind": "HttpTypeObject",25591 "kind": "HttpTypeObject",

25592 "members": [25592 "members": [


26022 "(resource) responses > (model) response_input_image > (schema)": {26022 "(resource) responses > (model) response_input_image > (schema)": {

26023 "kind": "HttpDeclTypeAlias",26023 "kind": "HttpDeclTypeAlias",

26024 "oasRef": "#/components/schemas/InputImageContent",26024 "oasRef": "#/components/schemas/InputImageContent",

26025 "docstring": "An image input to the model. Learn about [image inputs](/docs/guides/vision).",26025 "docstring": "An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).",

26026 "ident": "ResponseInputImage",26026 "ident": "ResponseInputImage",

26027 "type": {26027 "type": {

26028 "kind": "HttpTypeObject",26028 "kind": "HttpTypeObject",


26476 "oasRef": "#/components/schemas/MCPTool/properties/connector_id",26476 "oasRef": "#/components/schemas/MCPTool/properties/connector_id",

26477 "deprecated": false,26477 "deprecated": false,

26478 "key": "connector_id",26478 "key": "connector_id",

26479 "docstring": "Identifier for service connectors, like those available in ChatGPT. One of\n`server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more\nabout service connectors [here](/docs/guides/tools-remote-mcp#connectors).\n\nCurrently supported `connector_id` values are:\n\n- Dropbox: `connector_dropbox`\n- Gmail: `connector_gmail`\n- Google Calendar: `connector_googlecalendar`\n- Google Drive: `connector_googledrive`\n- Microsoft Teams: `connector_microsoftteams`\n- Outlook Calendar: `connector_outlookcalendar`\n- Outlook Email: `connector_outlookemail`\n- SharePoint: `connector_sharepoint`\n",26479 "docstring": "Identifier for service connectors, like those available in ChatGPT. One of\n`server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more\nabout service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).\n\nCurrently supported `connector_id` values are:\n\n- Dropbox: `connector_dropbox`\n- Gmail: `connector_gmail`\n- Google Calendar: `connector_googlecalendar`\n- Google Drive: `connector_googledrive`\n- Microsoft Teams: `connector_microsoftteams`\n- Outlook Calendar: `connector_outlookcalendar`\n- Outlook Email: `connector_outlookemail`\n- SharePoint: `connector_sharepoint`\n",

26480 "type": {26480 "type": {

26481 "kind": "HttpTypeUnion",26481 "kind": "HttpTypeUnion",

26482 "oasRef": "#/components/schemas/MCPTool/properties/connector_id",26482 "oasRef": "#/components/schemas/MCPTool/properties/connector_id",


29744 "oasRef": "#/components/schemas/RealtimeSessionCreateResponseGA/properties/prompt",29744 "oasRef": "#/components/schemas/RealtimeSessionCreateResponseGA/properties/prompt",

29745 "deprecated": false,29745 "deprecated": false,

29746 "key": "prompt",29746 "key": "prompt",

29747 "docstring": "Reference to a prompt template and its variables.\n[Learn more](/docs/guides/text?api-mode=responses#reusable-prompts).\n",29747 "docstring": "Reference to a prompt template and its variables.\n[Learn more](/api/docs/guides/text?api-mode=responses#version-prompts-in-code).\n",

29748 "type": {29748 "type": {

29749 "kind": "HttpTypeReference",29749 "kind": "HttpTypeReference",

29750 "ident": "ResponsePrompt",29750 "ident": "ResponsePrompt",


30408 "(resource) responses > (model) response_prompt > (schema)": {30408 "(resource) responses > (model) response_prompt > (schema)": {

30409 "kind": "HttpDeclTypeAlias",30409 "kind": "HttpDeclTypeAlias",

30410 "oasRef": "#/components/schemas/Prompt",30410 "oasRef": "#/components/schemas/Prompt",

30411 "docstring": "Reference to a prompt template and its variables.\n[Learn more](/docs/guides/text?api-mode=responses#reusable-prompts).\n",30411 "docstring": "Reference to a prompt template and its variables.\n[Learn more](/api/docs/guides/text?api-mode=responses#version-prompts-in-code).\n",

30412 "ident": "ResponsePrompt",30412 "ident": "ResponsePrompt",

30413 "type": {30413 "type": {

30414 "kind": "HttpTypeObject",30414 "kind": "HttpTypeObject",


30612 "(resource) realtime.client_secrets > (model) realtime_session_create_response > (schema) > (property) tools > (items) > (variant) 1": {30612 "(resource) realtime.client_secrets > (model) realtime_session_create_response > (schema) > (property) tools > (items) > (variant) 1": {

30613 "kind": "HttpDeclTypeAlias",30613 "kind": "HttpDeclTypeAlias",

30614 "oasRef": "#/components/schemas/RealtimeSessionCreateResponseGA/properties/tools/items/oneOf/1",30614 "oasRef": "#/components/schemas/RealtimeSessionCreateResponseGA/properties/tools/items/oneOf/1",

30615 "docstring": "Give the model access to additional tools via remote Model Context Protocol\n(MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).\n",30615 "docstring": "Give the model access to additional tools via remote Model Context Protocol\n(MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).\n",

30616 "ident": "McpTool",30616 "ident": "McpTool",

30617 "type": {30617 "type": {

30618 "kind": "HttpTypeObject",30618 "kind": "HttpTypeObject",


30939 "oasRef": "#/components/schemas/RealtimeSessionCreateResponseGA/properties/audio/properties/input/properties/transcription",30939 "oasRef": "#/components/schemas/RealtimeSessionCreateResponseGA/properties/audio/properties/input/properties/transcription",

30940 "deprecated": false,30940 "deprecated": false,

30941 "key": "transcription",30941 "key": "transcription",

30942 "docstring": "Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](/docs/api-reference/audio/createTranscription) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.\n",30942 "docstring": "Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](/api/reference/resources/audio/subresources/transcriptions/methods/create) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.\n",

30943 "type": {30943 "type": {

30944 "kind": "HttpTypeObject",30944 "kind": "HttpTypeObject",

30945 "members": [30945 "members": [


31375 "(resource) responses > (model) response_input_image > (schema)": {31375 "(resource) responses > (model) response_input_image > (schema)": {

31376 "kind": "HttpDeclTypeAlias",31376 "kind": "HttpDeclTypeAlias",

31377 "oasRef": "#/components/schemas/InputImageContent",31377 "oasRef": "#/components/schemas/InputImageContent",

31378 "docstring": "An image input to the model. Learn about [image inputs](/docs/guides/vision).",31378 "docstring": "An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).",

31379 "ident": "ResponseInputImage",31379 "ident": "ResponseInputImage",

31380 "type": {31380 "type": {

31381 "kind": "HttpTypeObject",31381 "kind": "HttpTypeObject",


31829 "oasRef": "#/components/schemas/MCPTool/properties/connector_id",31829 "oasRef": "#/components/schemas/MCPTool/properties/connector_id",

31830 "deprecated": false,31830 "deprecated": false,

31831 "key": "connector_id",31831 "key": "connector_id",

31832 "docstring": "Identifier for service connectors, like those available in ChatGPT. One of\n`server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more\nabout service connectors [here](/docs/guides/tools-remote-mcp#connectors).\n\nCurrently supported `connector_id` values are:\n\n- Dropbox: `connector_dropbox`\n- Gmail: `connector_gmail`\n- Google Calendar: `connector_googlecalendar`\n- Google Drive: `connector_googledrive`\n- Microsoft Teams: `connector_microsoftteams`\n- Outlook Calendar: `connector_outlookcalendar`\n- Outlook Email: `connector_outlookemail`\n- SharePoint: `connector_sharepoint`\n",31832 "docstring": "Identifier for service connectors, like those available in ChatGPT. One of\n`server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more\nabout service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).\n\nCurrently supported `connector_id` values are:\n\n- Dropbox: `connector_dropbox`\n- Gmail: `connector_gmail`\n- Google Calendar: `connector_googlecalendar`\n- Google Drive: `connector_googledrive`\n- Microsoft Teams: `connector_microsoftteams`\n- Outlook Calendar: `connector_outlookcalendar`\n- Outlook Email: `connector_outlookemail`\n- SharePoint: `connector_sharepoint`\n",

31833 "type": {31833 "type": {

31834 "kind": "HttpTypeUnion",31834 "kind": "HttpTypeUnion",

31835 "oasRef": "#/components/schemas/MCPTool/properties/connector_id",31835 "oasRef": "#/components/schemas/MCPTool/properties/connector_id",


34529**WebRTC/SIP Only:** Emitted when the server begins streaming audio to the client. This event is34529**WebRTC/SIP Only:** Emitted when the server begins streaming audio to the client. This event is

34530emitted after an audio content part has been added (`response.content_part.added`)34530emitted after an audio content part has been added (`response.content_part.added`)

34531to the response.34531to the response.

34532[Learn more](https://developers.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).34532[Learn more](https://developers.openai.com/api/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).

34533 34533 

34534### Schema34534### Schema

34535 34535 


34540 "(resource) realtime > (model) realtime_server_event > (schema) > (variant) 31": {34540 "(resource) realtime > (model) realtime_server_event > (schema) > (variant) 31": {

34541 "kind": "HttpDeclTypeAlias",34541 "kind": "HttpDeclTypeAlias",

34542 "oasRef": "#/components/schemas/RealtimeServerEvent/anyOf/31",34542 "oasRef": "#/components/schemas/RealtimeServerEvent/anyOf/31",

34543 "docstring": "**WebRTC/SIP Only:** Emitted when the server begins streaming audio to the client. This event is\nemitted after an audio content part has been added (`response.content_part.added`)\nto the response.\n[Learn more](/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).\n",34543 "docstring": "**WebRTC/SIP Only:** Emitted when the server begins streaming audio to the client. This event is\nemitted after an audio content part has been added (`response.content_part.added`)\nto the response.\n[Learn more](/api/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).\n",

34544 "ident": "OutputAudioBufferStarted",34544 "ident": "OutputAudioBufferStarted",

34545 "type": {34545 "type": {

34546 "kind": "HttpTypeObject",34546 "kind": "HttpTypeObject",


34636**WebRTC/SIP Only:** Emitted when the output audio buffer has been completely drained on the server,34636**WebRTC/SIP Only:** Emitted when the output audio buffer has been completely drained on the server,

34637and no more audio is forthcoming. This event is emitted after the full response34637and no more audio is forthcoming. This event is emitted after the full response

34638data has been sent to the client (`response.done`).34638data has been sent to the client (`response.done`).

34639[Learn more](https://developers.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).34639[Learn more](https://developers.openai.com/api/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).

34640 34640 

34641### Schema34641### Schema

34642 34642 


34647 "(resource) realtime > (model) realtime_server_event > (schema) > (variant) 32": {34647 "(resource) realtime > (model) realtime_server_event > (schema) > (variant) 32": {

34648 "kind": "HttpDeclTypeAlias",34648 "kind": "HttpDeclTypeAlias",

34649 "oasRef": "#/components/schemas/RealtimeServerEvent/anyOf/32",34649 "oasRef": "#/components/schemas/RealtimeServerEvent/anyOf/32",

34650 "docstring": "**WebRTC/SIP Only:** Emitted when the output audio buffer has been completely drained on the server,\nand no more audio is forthcoming. This event is emitted after the full response\ndata has been sent to the client (`response.done`).\n[Learn more](/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).\n",34650 "docstring": "**WebRTC/SIP Only:** Emitted when the output audio buffer has been completely drained on the server,\nand no more audio is forthcoming. This event is emitted after the full response\ndata has been sent to the client (`response.done`).\n[Learn more](/api/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).\n",

34651 "ident": "OutputAudioBufferStopped",34651 "ident": "OutputAudioBufferStopped",

34652 "type": {34652 "type": {

34653 "kind": "HttpTypeObject",34653 "kind": "HttpTypeObject",


34744mode when the user has interrupted (`input_audio_buffer.speech_started`),34744mode when the user has interrupted (`input_audio_buffer.speech_started`),

34745or when the client has emitted the `output_audio_buffer.clear` event to manually34745or when the client has emitted the `output_audio_buffer.clear` event to manually

34746cut off the current audio response.34746cut off the current audio response.

34747[Learn more](https://developers.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).34747[Learn more](https://developers.openai.com/api/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).

34748 34748 

34749### Schema34749### Schema

34750 34750 


34755 "(resource) realtime > (model) realtime_server_event > (schema) > (variant) 33": {34755 "(resource) realtime > (model) realtime_server_event > (schema) > (variant) 33": {

34756 "kind": "HttpDeclTypeAlias",34756 "kind": "HttpDeclTypeAlias",

34757 "oasRef": "#/components/schemas/RealtimeServerEvent/anyOf/33",34757 "oasRef": "#/components/schemas/RealtimeServerEvent/anyOf/33",

34758 "docstring": "**WebRTC/SIP Only:** Emitted when the output audio buffer is cleared. This happens either in VAD\nmode when the user has interrupted (`input_audio_buffer.speech_started`),\nor when the client has emitted the `output_audio_buffer.clear` event to manually\ncut off the current audio response.\n[Learn more](/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).\n",34758 "docstring": "**WebRTC/SIP Only:** Emitted when the output audio buffer is cleared. This happens either in VAD\nmode when the user has interrupted (`input_audio_buffer.speech_started`),\nor when the client has emitted the `output_audio_buffer.clear` event to manually\ncut off the current audio response.\n[Learn more](/api/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).\n",

34759 "ident": "OutputAudioBufferCleared",34759 "ident": "OutputAudioBufferCleared",

34760 "type": {34760 "type": {

34761 "kind": "HttpTypeObject",34761 "kind": "HttpTypeObject",

Details

79 79 

80 - `transcription: optional AudioTranscription`80 - `transcription: optional AudioTranscription`

81 81 

82 Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](/docs/api-reference/audio/createTranscription) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.82 Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](/api/reference/resources/audio/subresources/transcriptions/methods/create) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.

83 83 

84 - `delay: optional "minimal" or "low" or "medium" or 2 more`84 - `delay: optional "minimal" or "low" or "medium" or 2 more`

85 85 


141 141 

142 An optional text to guide the model's style or continue a previous audio142 An optional text to guide the model's style or continue a previous audio

143 segment.143 segment.

144 For `whisper-1`, the [prompt is a list of keywords](/docs/guides/speech-to-text#prompting).144 For `whisper-1`, the [prompt is a list of keywords](/api/docs/guides/speech-to-text#prompting).

145 For `gpt-4o-transcribe` models (excluding `gpt-4o-transcribe-diarize`), the prompt is a free text string, for example "expect words related to technology".145 For `gpt-4o-transcribe` models (excluding `gpt-4o-transcribe-diarize`), the prompt is a free text string, for example "expect words related to technology".

146 Prompt is not supported with `gpt-realtime-whisper` in GA Realtime sessions.146 Prompt is not supported with `gpt-realtime-whisper` in GA Realtime sessions.

147 147 


389- `prompt: optional ResponsePrompt or null`389- `prompt: optional ResponsePrompt or null`

390 390 

391 Reference to a prompt template and its variables.391 Reference to a prompt template and its variables.

392 [Learn more](/docs/guides/text?api-mode=responses#reusable-prompts).392 [Learn more](/api/docs/guides/text?api-mode=responses#version-prompts-in-code).

393 393 

394 - `id: string`394 - `id: string`

395 395 


429 429 

430 - `ResponseInputImage object { detail, type, file_id, 2 more }`430 - `ResponseInputImage object { detail, type, file_id, 2 more }`

431 431 

432 An image input to the model. Learn about [image inputs](/docs/guides/vision).432 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

433 433 

434 - `detail: ImageDetail`434 - `detail: ImageDetail`

435 435 


619 - `McpTool object { server_label, type, allowed_callers, 9 more }`619 - `McpTool object { server_label, type, allowed_callers, 9 more }`

620 620 

621 Give the model access to additional tools via remote Model Context Protocol621 Give the model access to additional tools via remote Model Context Protocol

622 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).622 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

623 623 

624 - `server_label: string`624 - `server_label: string`

625 625 


671 671 

672 Identifier for service connectors, like those available in ChatGPT. One of672 Identifier for service connectors, like those available in ChatGPT. One of

673 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more673 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

674 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).674 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

675 675 

676 Currently supported `connector_id` values are:676 Currently supported `connector_id` values are:

677 677 

Details

12applied to any sessions created using that client secret, but these can also be overridden12applied to any sessions created using that client secret, but these can also be overridden

13by the client connection.13by the client connection.

14 14 

15[Learn more about authentication with client secrets over WebRTC](/docs/guides/realtime-webrtc).15[Learn more about authentication with client secrets over WebRTC](/api/docs/guides/realtime-webrtc).

16 16 

17Returns the created client secret and the effective session object. The client secret is a string that looks like `ek_1234`.17Returns the created client secret and the effective session object. The client secret is a string that looks like `ek_1234`.

18 18 


112 112 

113 - `transcription: optional AudioTranscription`113 - `transcription: optional AudioTranscription`

114 114 

115 Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](/docs/api-reference/audio/createTranscription) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.115 Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](/api/reference/resources/audio/subresources/transcriptions/methods/create) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.

116 116 

117 - `delay: optional "minimal" or "low" or "medium" or 2 more`117 - `delay: optional "minimal" or "low" or "medium" or 2 more`

118 118 


174 174 

175 An optional text to guide the model's style or continue a previous audio175 An optional text to guide the model's style or continue a previous audio

176 segment.176 segment.

177 For `whisper-1`, the [prompt is a list of keywords](/docs/guides/speech-to-text#prompting).177 For `whisper-1`, the [prompt is a list of keywords](/api/docs/guides/speech-to-text#prompting).

178 For `gpt-4o-transcribe` models (excluding `gpt-4o-transcribe-diarize`), the prompt is a free text string, for example "expect words related to technology".178 For `gpt-4o-transcribe` models (excluding `gpt-4o-transcribe-diarize`), the prompt is a free text string, for example "expect words related to technology".

179 Prompt is not supported with `gpt-realtime-whisper` in GA Realtime sessions.179 Prompt is not supported with `gpt-realtime-whisper` in GA Realtime sessions.

180 180 


422 - `prompt: optional ResponsePrompt or null`422 - `prompt: optional ResponsePrompt or null`

423 423 

424 Reference to a prompt template and its variables.424 Reference to a prompt template and its variables.

425 [Learn more](/docs/guides/text?api-mode=responses#reusable-prompts).425 [Learn more](/api/docs/guides/text?api-mode=responses#version-prompts-in-code).

426 426 

427 - `id: string`427 - `id: string`

428 428 


462 462 

463 - `ResponseInputImage object { detail, type, file_id, 2 more }`463 - `ResponseInputImage object { detail, type, file_id, 2 more }`

464 464 

465 An image input to the model. Learn about [image inputs](/docs/guides/vision).465 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

466 466 

467 - `detail: ImageDetail`467 - `detail: ImageDetail`

468 468 


652 - `McpTool object { server_label, type, allowed_callers, 9 more }`652 - `McpTool object { server_label, type, allowed_callers, 9 more }`

653 653 

654 Give the model access to additional tools via remote Model Context Protocol654 Give the model access to additional tools via remote Model Context Protocol

655 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).655 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

656 656 

657 - `server_label: string`657 - `server_label: string`

658 658 


704 704 

705 Identifier for service connectors, like those available in ChatGPT. One of705 Identifier for service connectors, like those available in ChatGPT. One of

706 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more706 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

707 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).707 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

708 708 

709 Currently supported `connector_id` values are:709 Currently supported `connector_id` values are:

710 710 


909 909 

910 - `transcription: optional AudioTranscription`910 - `transcription: optional AudioTranscription`

911 911 

912 Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](/docs/api-reference/audio/createTranscription) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.912 Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](/api/reference/resources/audio/subresources/transcriptions/methods/create) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.

913 913 

914 - `turn_detection: optional RealtimeTranscriptionSessionAudioInputTurnDetection or null`914 - `turn_detection: optional RealtimeTranscriptionSessionAudioInputTurnDetection or null`

915 915 


1107 1107 

1108 - `transcription: optional object { language, languages, model, prompt }`1108 - `transcription: optional object { language, languages, model, prompt }`

1109 1109 

1110 Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](/docs/api-reference/audio/createTranscription) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.1110 Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](/api/reference/resources/audio/subresources/transcriptions/methods/create) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.

1111 1111 

1112 - `language: optional string`1112 - `language: optional string`

1113 1113 


1387 - `prompt: optional ResponsePrompt or null`1387 - `prompt: optional ResponsePrompt or null`

1388 1388 

1389 Reference to a prompt template and its variables.1389 Reference to a prompt template and its variables.

1390 [Learn more](/docs/guides/text?api-mode=responses#reusable-prompts).1390 [Learn more](/api/docs/guides/text?api-mode=responses#version-prompts-in-code).

1391 1391 

1392 - `id: string`1392 - `id: string`

1393 1393 


1427 1427 

1428 - `ResponseInputImage object { detail, type, file_id, 2 more }`1428 - `ResponseInputImage object { detail, type, file_id, 2 more }`

1429 1429 

1430 An image input to the model. Learn about [image inputs](/docs/guides/vision).1430 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

1431 1431 

1432 - `detail: ImageDetail`1432 - `detail: ImageDetail`

1433 1433 


1617 - `McpTool object { server_label, type, allowed_callers, 9 more }`1617 - `McpTool object { server_label, type, allowed_callers, 9 more }`

1618 1618 

1619 Give the model access to additional tools via remote Model Context Protocol1619 Give the model access to additional tools via remote Model Context Protocol

1620 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).1620 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

1621 1621 

1622 - `server_label: string`1622 - `server_label: string`

1623 1623 


1669 1669 

1670 Identifier for service connectors, like those available in ChatGPT. One of1670 Identifier for service connectors, like those available in ChatGPT. One of

1671 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more1671 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

1672 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).1672 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

1673 1673 

1674 Currently supported `connector_id` values are:1674 Currently supported `connector_id` values are:

1675 1675 

Details

79- `prompt: optional ResponsePrompt or null`79- `prompt: optional ResponsePrompt or null`

80 80 

81 Reference to a prompt template and its variables.81 Reference to a prompt template and its variables.

82 [Learn more](/docs/guides/text?api-mode=responses#reusable-prompts).82 [Learn more](/api/docs/guides/text?api-mode=responses#version-prompts-in-code).

83 83 

84 - `id: string`84 - `id: string`

85 85 


119 119 

120 - `ResponseInputImage object { detail, type, file_id, 2 more }`120 - `ResponseInputImage object { detail, type, file_id, 2 more }`

121 121 

122 An image input to the model. Learn about [image inputs](/docs/guides/vision).122 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

123 123 

124 - `detail: ImageDetail`124 - `detail: ImageDetail`

125 125 

Details

111 111 

112 An optional text to guide the model's style or continue a previous audio112 An optional text to guide the model's style or continue a previous audio

113 segment.113 segment.

114 For `whisper-1`, the [prompt is a list of keywords](/docs/guides/speech-to-text#prompting).114 For `whisper-1`, the [prompt is a list of keywords](/api/docs/guides/speech-to-text#prompting).

115 For `gpt-4o-transcribe` models (excluding `gpt-4o-transcribe-diarize`), the prompt is a free text string, for example "expect words related to technology".115 For `gpt-4o-transcribe` models (excluding `gpt-4o-transcribe-diarize`), the prompt is a free text string, for example "expect words related to technology".

116 Prompt is not supported with `gpt-realtime-whisper` in GA Realtime sessions.116 Prompt is not supported with `gpt-realtime-whisper` in GA Realtime sessions.

117 117 

Details

4 4 

5Cancels a model response with the given ID. Only responses created with5Cancels a model response with the given ID. Only responses created with

6the `background` parameter set to `true` can be cancelled.6the `background` parameter set to `true` can be cancelled.

7[Learn more](/docs/guides/background).7[Learn more](/api/docs/guides/background).

8 8 

9### Path Parameters9### Path Parameters

10 10 


193 193 

194 - `ResponseInputImage object { detail, type, file_id, 2 more }`194 - `ResponseInputImage object { detail, type, file_id, 2 more }`

195 195 

196 An image input to the model. Learn about [image inputs](/docs/guides/vision).196 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

197 197 

198 - `detail: ImageDetail`198 - `detail: ImageDetail`

199 199 


536 - `FileSearchCall object { id, queries, status, 2 more }`536 - `FileSearchCall object { id, queries, status, 2 more }`

537 537 

538 The results of a file search tool call. See the538 The results of a file search tool call. See the

539 [file search guide](/docs/guides/tools-file-search) for more information.539 [file search guide](/api/docs/guides/tools-file-search) for more information.

540 540 

541 - `id: string`541 - `id: string`

542 542 


604 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`604 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`

605 605 

606 A tool call to a computer use tool. See the606 A tool call to a computer use tool. See the

607 [computer use guide](/docs/guides/tools-computer-use) for more information.607 [computer use guide](/api/docs/guides/tools-computer-use) for more information.

608 608 

609 - `id: string`609 - `id: string`

610 610 


949 - `WebSearchCall object { id, action, status, type }`949 - `WebSearchCall object { id, action, status, type }`

950 950 

951 The results of a web search tool call. See the951 The results of a web search tool call. See the

952 [web search guide](/docs/guides/tools-web-search) for more information.952 [web search guide](/api/docs/guides/tools-web-search) for more information.

953 953 

954 - `id: string`954 - `id: string`

955 955 


1047 - `FunctionCall object { arguments, call_id, name, 6 more }`1047 - `FunctionCall object { arguments, call_id, name, 6 more }`

1048 1048 

1049 A tool call to run a function. See the1049 A tool call to run a function. See the

1050 [function calling guide](/docs/guides/function-calling) for more information.1050 [function calling guide](/api/docs/guides/function-calling) for more information.

1051 1051 

1052 - `arguments: string`1052 - `arguments: string`

1053 1053 


1152 1152 

1153 - `ResponseInputImageContent object { type, detail, file_id, 2 more }`1153 - `ResponseInputImageContent object { type, detail, file_id, 2 more }`

1154 1154 

1155 An image input to the model. Learn about [image inputs](/docs/guides/vision)1155 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision)

1156 1156 

1157 - `type: "input_image"`1157 - `type: "input_image"`

1158 1158 


1330 1330 

1331 - `Function object { name, parameters, strict, 6 more }`1331 - `Function object { name, parameters, strict, 6 more }`

1332 1332 

1333 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).1333 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

1334 1334 

1335 - `name: string`1335 - `name: string`

1336 1336 


1374 1374 

1375 - `FileSearch object { type, vector_store_ids, filters, 2 more }`1375 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

1376 1376 

1377 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).1377 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

1378 1378 

1379 - `type: "file_search"`1379 - `type: "file_search"`

1380 1380 


1499 1499 

1500 - `Computer object { type }`1500 - `Computer object { type }`

1501 1501 

1502 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1502 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1503 1503 

1504 - `type: "computer"`1504 - `type: "computer"`

1505 1505 


1509 1509 

1510 - `ComputerUsePreview object { display_height, display_width, environment, type }`1510 - `ComputerUsePreview object { display_height, display_width, environment, type }`

1511 1511 

1512 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1512 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1513 1513 

1514 - `display_height: number`1514 - `display_height: number`

1515 1515 


1542 - `WebSearch object { type, external_web_access, filters, 2 more }`1542 - `WebSearch object { type, external_web_access, filters, 2 more }`

1543 1543 

1544 Search the Internet for sources related to the prompt. Learn more about the1544 Search the Internet for sources related to the prompt. Learn more about the

1545 [web search tool](/docs/guides/tools-web-search).1545 [web search tool](/api/docs/guides/tools-web-search).

1546 1546 

1547 - `type: "web_search" or "web_search_2025_08_26"`1547 - `type: "web_search" or "web_search_2025_08_26"`

1548 1548 


1606 - `Mcp object { server_label, type, allowed_callers, 9 more }`1606 - `Mcp object { server_label, type, allowed_callers, 9 more }`

1607 1607 

1608 Give the model access to additional tools via remote Model Context Protocol1608 Give the model access to additional tools via remote Model Context Protocol

1609 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).1609 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

1610 1610 

1611 - `server_label: string`1611 - `server_label: string`

1612 1612 


1658 1658 

1659 Identifier for service connectors, like those available in ChatGPT. One of1659 Identifier for service connectors, like those available in ChatGPT. One of

1660 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more1660 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

1661 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).1661 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

1662 1662 

1663 Currently supported `connector_id` values are:1663 Currently supported `connector_id` values are:

1664 1664 


1882 1882 

1883 - `background: optional "transparent" or "opaque" or "auto"`1883 - `background: optional "transparent" or "opaque" or "auto"`

1884 1884 

1885 Set the background of the generated image. One of `transparent`,1885 Set the background of the generated image. One of `transparent`, `opaque`,

1886 `opaque`, or `auto`. Transparent backgrounds are available for1886 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

1887 supported GPT Image models. For `gpt-image-2` and1887 their `2026-09-08` snapshots, support `opaque` and `transparent`

1888 `gpt-image-2-2026-04-21`, this support is in preview. When using1888 backgrounds. Transparent backgrounds are available for supported GPT Image

1889 `transparent`, set the output format to `png` or `webp`. Default: `auto`.1889 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

1890 preview. When using `transparent`, set the output format to `png` or `webp`.

1891 Default: `auto`.

1890 1892 

1891 - `"transparent"`1893 - `"transparent"`

1892 1894 


1915 1917 

1916 Base64-encoded mask image.1918 Base64-encoded mask image.

1917 1919 

1918 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1920 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1919 1921 

1920 The image generation model to use. One of `gpt-image-1`,1922 The image generation model to use. One of `gpt-image-1`,

1921 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1923 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1922 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1924 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1925 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1926 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1923 `gpt-image-1`.1927 `gpt-image-1`.

1924 1928 

1925 - `string`1929 - `string`

1926 1930 

1927 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1931 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1928 1932 

1929 The image generation model to use. One of `gpt-image-1`,1933 The image generation model to use. One of `gpt-image-1`,

1930 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1934 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1931 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1935 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1936 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1937 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1932 `gpt-image-1`.1938 `gpt-image-1`.

1933 1939 

1934 - `"gpt-image-1"`1940 - `"gpt-image-1"`


1941 1947 

1942 - `"gpt-image-2-2026-04-21"`1948 - `"gpt-image-2-2026-04-21"`

1943 1949 

1950 - `"gpt-image-2.5-sunburst"`

1951 

1952 - `"gpt-image-2.5-sunburst-2026-09-08"`

1953 

1954 - `"gpt-image-2.5-flare"`

1955 

1956 - `"gpt-image-2.5-flare-2026-09-08"`

1957 

1944 - `moderation: optional "auto" or "low"`1958 - `moderation: optional "auto" or "low"`

1945 1959 

1946 Moderation level for the generated image. Default: `auto`.1960 Moderation level for the generated image. Default: `auto`.


1968 1982 

1969 Number of partial images to generate in streaming mode, from 0 (default value) to 3.1983 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

1970 1984 

1971 - `quality: optional "low" or "medium" or "high" or "auto"`1985 - `quality: optional "low" or "medium" or "high" or 3 more`

1972 1986 

1973 The quality of the generated image. One of `low`, `medium`, `high`,1987 The quality of the generated image. The GPT image models support `low`,

1974 or `auto`. Default: `auto`.1988 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

1989 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

1990 Default: `auto`.

1975 1991 

1976 - `"low"`1992 - `"low"`

1977 1993 


1979 1995 

1980 - `"high"`1996 - `"high"`

1981 1997 

1998 - `"xhigh"`

1999 

2000 - `"max"`

2001 

1982 - `"auto"`2002 - `"auto"`

1983 2003 

1984 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`2004 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

1985 2005 

1986 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`.2006 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`.

1987 2007 

1988 - `string`2008 - `string`

1989 2009 

1990 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`2010 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

1991 2011 

1992 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`.2012 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`.

1993 2013 

1994 - `"1024x1024"`2014 - `"1024x1024"`

1995 2015 


2155 2175 

2156 - `Custom object { name, type, allowed_callers, 4 more }`2176 - `Custom object { name, type, allowed_callers, 4 more }`

2157 2177 

2158 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2178 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2159 2179 

2160 - `name: string`2180 - `name: string`

2161 2181 


2277 2297 

2278 - `Custom object { name, type, allowed_callers, 4 more }`2298 - `Custom object { name, type, allowed_callers, 4 more }`

2279 2299 

2280 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2300 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2281 2301 

2282 - `name: string`2302 - `name: string`

2283 2303 


2347 2367 

2348 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`2368 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

2349 2369 

2350 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).2370 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).

2351 2371 

2352 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`2372 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

2353 2373 


2463 2483 

2464 - `Function object { name, parameters, strict, 6 more }`2484 - `Function object { name, parameters, strict, 6 more }`

2465 2485 

2466 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).2486 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

2467 2487 

2468 - `name: string`2488 - `name: string`

2469 2489 


2507 2527 

2508 - `FileSearch object { type, vector_store_ids, filters, 2 more }`2528 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

2509 2529 

2510 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).2530 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

2511 2531 

2512 - `type: "file_search"`2532 - `type: "file_search"`

2513 2533 


2565 2585 

2566 - `Computer object { type }`2586 - `Computer object { type }`

2567 2587 

2568 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).2588 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

2569 2589 

2570 - `type: "computer"`2590 - `type: "computer"`

2571 2591 


2575 2595 

2576 - `ComputerUsePreview object { display_height, display_width, environment, type }`2596 - `ComputerUsePreview object { display_height, display_width, environment, type }`

2577 2597 

2578 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).2598 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

2579 2599 

2580 - `display_height: number`2600 - `display_height: number`

2581 2601 


2608 - `WebSearch object { type, external_web_access, filters, 2 more }`2628 - `WebSearch object { type, external_web_access, filters, 2 more }`

2609 2629 

2610 Search the Internet for sources related to the prompt. Learn more about the2630 Search the Internet for sources related to the prompt. Learn more about the

2611 [web search tool](/docs/guides/tools-web-search).2631 [web search tool](/api/docs/guides/tools-web-search).

2612 2632 

2613 - `type: "web_search" or "web_search_2025_08_26"`2633 - `type: "web_search" or "web_search_2025_08_26"`

2614 2634 


2672 - `Mcp object { server_label, type, allowed_callers, 9 more }`2692 - `Mcp object { server_label, type, allowed_callers, 9 more }`

2673 2693 

2674 Give the model access to additional tools via remote Model Context Protocol2694 Give the model access to additional tools via remote Model Context Protocol

2675 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).2695 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

2676 2696 

2677 - `server_label: string`2697 - `server_label: string`

2678 2698 


2724 2744 

2725 Identifier for service connectors, like those available in ChatGPT. One of2745 Identifier for service connectors, like those available in ChatGPT. One of

2726 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more2746 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

2727 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).2747 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

2728 2748 

2729 Currently supported `connector_id` values are:2749 Currently supported `connector_id` values are:

2730 2750 


2916 2936 

2917 - `background: optional "transparent" or "opaque" or "auto"`2937 - `background: optional "transparent" or "opaque" or "auto"`

2918 2938 

2919 Set the background of the generated image. One of `transparent`,2939 Set the background of the generated image. One of `transparent`, `opaque`,

2920 `opaque`, or `auto`. Transparent backgrounds are available for2940 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

2921 supported GPT Image models. For `gpt-image-2` and2941 their `2026-09-08` snapshots, support `opaque` and `transparent`

2922 `gpt-image-2-2026-04-21`, this support is in preview. When using2942 backgrounds. Transparent backgrounds are available for supported GPT Image

2923 `transparent`, set the output format to `png` or `webp`. Default: `auto`.2943 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

2944 preview. When using `transparent`, set the output format to `png` or `webp`.

2945 Default: `auto`.

2924 2946 

2925 - `"transparent"`2947 - `"transparent"`

2926 2948 


2949 2971 

2950 Base64-encoded mask image.2972 Base64-encoded mask image.

2951 2973 

2952 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2974 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2953 2975 

2954 The image generation model to use. One of `gpt-image-1`,2976 The image generation model to use. One of `gpt-image-1`,

2955 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2977 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2956 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2978 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2979 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2980 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2957 `gpt-image-1`.2981 `gpt-image-1`.

2958 2982 

2959 - `string`2983 - `string`

2960 2984 

2961 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2985 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2962 2986 

2963 The image generation model to use. One of `gpt-image-1`,2987 The image generation model to use. One of `gpt-image-1`,

2964 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2988 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2965 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2989 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2990 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2991 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2966 `gpt-image-1`.2992 `gpt-image-1`.

2967 2993 

2968 - `"gpt-image-1"`2994 - `"gpt-image-1"`


2975 3001 

2976 - `"gpt-image-2-2026-04-21"`3002 - `"gpt-image-2-2026-04-21"`

2977 3003 

3004 - `"gpt-image-2.5-sunburst"`

3005 

3006 - `"gpt-image-2.5-sunburst-2026-09-08"`

3007 

3008 - `"gpt-image-2.5-flare"`

3009 

3010 - `"gpt-image-2.5-flare-2026-09-08"`

3011 

2978 - `moderation: optional "auto" or "low"`3012 - `moderation: optional "auto" or "low"`

2979 3013 

2980 Moderation level for the generated image. Default: `auto`.3014 Moderation level for the generated image. Default: `auto`.


3002 3036 

3003 Number of partial images to generate in streaming mode, from 0 (default value) to 3.3037 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

3004 3038 

3005 - `quality: optional "low" or "medium" or "high" or "auto"`3039 - `quality: optional "low" or "medium" or "high" or 3 more`

3006 3040 

3007 The quality of the generated image. One of `low`, `medium`, `high`,3041 The quality of the generated image. The GPT image models support `low`,

3008 or `auto`. Default: `auto`.3042 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

3043 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

3044 Default: `auto`.

3009 3045 

3010 - `"low"`3046 - `"low"`

3011 3047 


3013 3049 

3014 - `"high"`3050 - `"high"`

3015 3051 

3052 - `"xhigh"`

3053 

3054 - `"max"`

3055 

3016 - `"auto"`3056 - `"auto"`

3017 3057 

3018 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`3058 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

3019 3059 

3020 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`.3060 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`.

3021 3061 

3022 - `string`3062 - `string`

3023 3063 

3024 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`3064 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

3025 3065 

3026 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`.3066 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`.

3027 3067 

3028 - `"1024x1024"`3068 - `"1024x1024"`

3029 3069 


3071 3111 

3072 - `Custom object { name, type, allowed_callers, 4 more }`3112 - `Custom object { name, type, allowed_callers, 4 more }`

3073 3113 

3074 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3114 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

3075 3115 

3076 - `name: string`3116 - `name: string`

3077 3117 


3161 3201 

3162 - `Custom object { name, type, allowed_callers, 4 more }`3202 - `Custom object { name, type, allowed_callers, 4 more }`

3163 3203 

3164 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3204 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

3165 3205 

3166 - `name: string`3206 - `name: string`

3167 3207 


3231 3271 

3232 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`3272 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

3233 3273 

3234 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).3274 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).

3235 3275 

3236 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`3276 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

3237 3277 


3355 A description of the chain of thought used by a reasoning model while generating3395 A description of the chain of thought used by a reasoning model while generating

3356 a response. Be sure to include these items in your `input` to the Responses API3396 a response. Be sure to include these items in your `input` to the Responses API

3357 for subsequent turns of a conversation if you are manually3397 for subsequent turns of a conversation if you are manually

3358 [managing context](/docs/guides/conversation-state).3398 [managing context](/api/docs/guides/conversation-state).

3359 3399 

3360 - `id: string`3400 - `id: string`

3361 3401 


3420 3460 

3421 - `Compaction object { encrypted_content, type, id }`3461 - `Compaction object { encrypted_content, type, id }`

3422 3462 

3423 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).3463 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).

3424 3464 

3425 - `encrypted_content: string`3465 - `encrypted_content: string`

3426 3466 


3436 3476 

3437 The ID of the compaction item.3477 The ID of the compaction item.

3438 3478 

3439 - `ImageGenerationCall object { id, result, status, type }`3479 - `ImageGenerationCall object { id, result, status, 3 more }`

3440 3480 

3441 An image generation request made by the model.3481 An image generation request made by the model.

3442 3482 


3466 3506 

3467 - `"image_generation_call"`3507 - `"image_generation_call"`

3468 3508 

3509 - `quality: optional "low" or "medium" or "high" or 3 more or null`

3510 

3511 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.

3512 

3513 - `"low"`

3514 

3515 - `"medium"`

3516 

3517 - `"high"`

3518 

3519 - `"xhigh"`

3520 

3521 - `"max"`

3522 

3523 - `"auto"`

3524 

3525 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`

3526 

3527 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

3528 

3529 - `string`

3530 

3531 - `"1024x1024" or "1024x1536" or "1536x1024"`

3532 

3533 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

3534 

3535 - `"1024x1024"`

3536 

3537 - `"1024x1536"`

3538 

3539 - `"1536x1024"`

3540 

3469 - `CodeInterpreterCall object { id, code, container_id, 3 more }`3541 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

3470 3542 

3471 A tool call to run code.3543 A tool call to run code.


4153 4225 

4154 - `ResponseInputImage object { detail, type, file_id, 2 more }`4226 - `ResponseInputImage object { detail, type, file_id, 2 more }`

4155 4227 

4156 An image input to the model. Learn about [image inputs](/docs/guides/vision).4228 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

4157 4229 

4158 - `ResponseInputFile object { type, detail, file_data, 4 more }`4230 - `ResponseInputFile object { type, detail, file_data, 4 more }`

4159 4231 


4340 4412 

4341 Model ID used to generate the response, like `gpt-6-astra`. OpenAI4413 Model ID used to generate the response, like `gpt-6-astra`. OpenAI

4342 offers a wide range of models with different capabilities, performance4414 offers a wide range of models with different capabilities, performance

4343 characteristics, and price points. Refer to the [model guide](/docs/models)4415 characteristics, and price points. Refer to the [model guide](/api/docs/models)

4344 to browse and compare available models.4416 to browse and compare available models.

4345 4417 

4346 - `string`4418 - `string`


4579 - `FileSearchCall object { id, queries, status, 2 more }`4651 - `FileSearchCall object { id, queries, status, 2 more }`

4580 4652 

4581 The results of a file search tool call. See the4653 The results of a file search tool call. See the

4582 [file search guide](/docs/guides/tools-file-search) for more information.4654 [file search guide](/api/docs/guides/tools-file-search) for more information.

4583 4655 

4584 - `id: string`4656 - `id: string`

4585 4657 


4647 - `FunctionCall object { arguments, call_id, name, 6 more }`4719 - `FunctionCall object { arguments, call_id, name, 6 more }`

4648 4720 

4649 A tool call to run a function. See the4721 A tool call to run a function. See the

4650 [function calling guide](/docs/guides/function-calling) for more information.4722 [function calling guide](/api/docs/guides/function-calling) for more information.

4651 4723 

4652 - `arguments: string`4724 - `arguments: string`

4653 4725 


4735 4807 

4736 - `ResponseInputImage object { detail, type, file_id, 2 more }`4808 - `ResponseInputImage object { detail, type, file_id, 2 more }`

4737 4809 

4738 An image input to the model. Learn about [image inputs](/docs/guides/vision).4810 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

4739 4811 

4740 - `ResponseInputFile object { type, detail, file_data, 4 more }`4812 - `ResponseInputFile object { type, detail, file_data, 4 more }`

4741 4813 


4801 - `WebSearchCall object { id, action, status, type }`4873 - `WebSearchCall object { id, action, status, type }`

4802 4874 

4803 The results of a web search tool call. See the4875 The results of a web search tool call. See the

4804 [web search guide](/docs/guides/tools-web-search) for more information.4876 [web search guide](/api/docs/guides/tools-web-search) for more information.

4805 4877 

4806 - `id: string`4878 - `id: string`

4807 4879 


4899 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`4971 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`

4900 4972 

4901 A tool call to a computer use tool. See the4973 A tool call to a computer use tool. See the

4902 [computer use guide](/docs/guides/tools-computer-use) for more information.4974 [computer use guide](/api/docs/guides/tools-computer-use) for more information.

4903 4975 

4904 - `id: string`4976 - `id: string`

4905 4977 


5010 A description of the chain of thought used by a reasoning model while generating5082 A description of the chain of thought used by a reasoning model while generating

5011 a response. Be sure to include these items in your `input` to the Responses API5083 a response. Be sure to include these items in your `input` to the Responses API

5012 for subsequent turns of a conversation if you are manually5084 for subsequent turns of a conversation if you are manually

5013 [managing context](/docs/guides/conversation-state).5085 [managing context](/api/docs/guides/conversation-state).

5014 5086 

5015 - `id: string`5087 - `id: string`

5016 5088 


5199 5271 

5200 - `Function object { name, parameters, strict, 6 more }`5272 - `Function object { name, parameters, strict, 6 more }`

5201 5273 

5202 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).5274 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

5203 5275 

5204 - `name: string`5276 - `name: string`

5205 5277 


5243 5315 

5244 - `FileSearch object { type, vector_store_ids, filters, 2 more }`5316 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

5245 5317 

5246 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).5318 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

5247 5319 

5248 - `type: "file_search"`5320 - `type: "file_search"`

5249 5321 


5301 5373 

5302 - `Computer object { type }`5374 - `Computer object { type }`

5303 5375 

5304 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).5376 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

5305 5377 

5306 - `type: "computer"`5378 - `type: "computer"`

5307 5379 


5311 5383 

5312 - `ComputerUsePreview object { display_height, display_width, environment, type }`5384 - `ComputerUsePreview object { display_height, display_width, environment, type }`

5313 5385 

5314 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).5386 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

5315 5387 

5316 - `display_height: number`5388 - `display_height: number`

5317 5389 


5344 - `WebSearch object { type, external_web_access, filters, 2 more }`5416 - `WebSearch object { type, external_web_access, filters, 2 more }`

5345 5417 

5346 Search the Internet for sources related to the prompt. Learn more about the5418 Search the Internet for sources related to the prompt. Learn more about the

5347 [web search tool](/docs/guides/tools-web-search).5419 [web search tool](/api/docs/guides/tools-web-search).

5348 5420 

5349 - `type: "web_search" or "web_search_2025_08_26"`5421 - `type: "web_search" or "web_search_2025_08_26"`

5350 5422 


5408 - `Mcp object { server_label, type, allowed_callers, 9 more }`5480 - `Mcp object { server_label, type, allowed_callers, 9 more }`

5409 5481 

5410 Give the model access to additional tools via remote Model Context Protocol5482 Give the model access to additional tools via remote Model Context Protocol

5411 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).5483 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

5412 5484 

5413 - `server_label: string`5485 - `server_label: string`

5414 5486 


5460 5532 

5461 Identifier for service connectors, like those available in ChatGPT. One of5533 Identifier for service connectors, like those available in ChatGPT. One of

5462 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more5534 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

5463 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).5535 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

5464 5536 

5465 Currently supported `connector_id` values are:5537 Currently supported `connector_id` values are:

5466 5538 


5652 5724 

5653 - `background: optional "transparent" or "opaque" or "auto"`5725 - `background: optional "transparent" or "opaque" or "auto"`

5654 5726 

5655 Set the background of the generated image. One of `transparent`,5727 Set the background of the generated image. One of `transparent`, `opaque`,

5656 `opaque`, or `auto`. Transparent backgrounds are available for5728 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

5657 supported GPT Image models. For `gpt-image-2` and5729 their `2026-09-08` snapshots, support `opaque` and `transparent`

5658 `gpt-image-2-2026-04-21`, this support is in preview. When using5730 backgrounds. Transparent backgrounds are available for supported GPT Image

5659 `transparent`, set the output format to `png` or `webp`. Default: `auto`.5731 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

5732 preview. When using `transparent`, set the output format to `png` or `webp`.

5733 Default: `auto`.

5660 5734 

5661 - `"transparent"`5735 - `"transparent"`

5662 5736 


5685 5759 

5686 Base64-encoded mask image.5760 Base64-encoded mask image.

5687 5761 

5688 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`5762 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

5689 5763 

5690 The image generation model to use. One of `gpt-image-1`,5764 The image generation model to use. One of `gpt-image-1`,

5691 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,5765 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

5692 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:5766 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

5767 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

5768 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

5693 `gpt-image-1`.5769 `gpt-image-1`.

5694 5770 

5695 - `string`5771 - `string`

5696 5772 

5697 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`5773 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

5698 5774 

5699 The image generation model to use. One of `gpt-image-1`,5775 The image generation model to use. One of `gpt-image-1`,

5700 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,5776 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

5701 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:5777 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

5778 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

5779 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

5702 `gpt-image-1`.5780 `gpt-image-1`.

5703 5781 

5704 - `"gpt-image-1"`5782 - `"gpt-image-1"`


5711 5789 

5712 - `"gpt-image-2-2026-04-21"`5790 - `"gpt-image-2-2026-04-21"`

5713 5791 

5792 - `"gpt-image-2.5-sunburst"`

5793 

5794 - `"gpt-image-2.5-sunburst-2026-09-08"`

5795 

5796 - `"gpt-image-2.5-flare"`

5797 

5798 - `"gpt-image-2.5-flare-2026-09-08"`

5799 

5714 - `moderation: optional "auto" or "low"`5800 - `moderation: optional "auto" or "low"`

5715 5801 

5716 Moderation level for the generated image. Default: `auto`.5802 Moderation level for the generated image. Default: `auto`.


5738 5824 

5739 Number of partial images to generate in streaming mode, from 0 (default value) to 3.5825 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

5740 5826 

5741 - `quality: optional "low" or "medium" or "high" or "auto"`5827 - `quality: optional "low" or "medium" or "high" or 3 more`

5742 5828 

5743 The quality of the generated image. One of `low`, `medium`, `high`,5829 The quality of the generated image. The GPT image models support `low`,

5744 or `auto`. Default: `auto`.5830 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

5831 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

5832 Default: `auto`.

5745 5833 

5746 - `"low"`5834 - `"low"`

5747 5835 


5749 5837 

5750 - `"high"`5838 - `"high"`

5751 5839 

5840 - `"xhigh"`

5841 

5842 - `"max"`

5843 

5752 - `"auto"`5844 - `"auto"`

5753 5845 

5754 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`5846 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

5755 5847 

5756 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`.5848 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`.

5757 5849 

5758 - `string`5850 - `string`

5759 5851 

5760 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`5852 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

5761 5853 

5762 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`.5854 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`.

5763 5855 

5764 - `"1024x1024"`5856 - `"1024x1024"`

5765 5857 


5807 5899 

5808 - `Custom object { name, type, allowed_callers, 4 more }`5900 - `Custom object { name, type, allowed_callers, 4 more }`

5809 5901 

5810 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)5902 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

5811 5903 

5812 - `name: string`5904 - `name: string`

5813 5905 


5897 5989 

5898 - `Custom object { name, type, allowed_callers, 4 more }`5990 - `Custom object { name, type, allowed_callers, 4 more }`

5899 5991 

5900 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)5992 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

5901 5993 

5902 - `name: string`5994 - `name: string`

5903 5995 


5967 6059 

5968 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`6060 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

5969 6061 

5970 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).6062 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).

5971 6063 

5972 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`6064 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

5973 6065 


6079 6171 

6080 - `Function object { name, parameters, strict, 6 more }`6172 - `Function object { name, parameters, strict, 6 more }`

6081 6173 

6082 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).6174 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

6083 6175 

6084 - `name: string`6176 - `name: string`

6085 6177 


6123 6215 

6124 - `FileSearch object { type, vector_store_ids, filters, 2 more }`6216 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

6125 6217 

6126 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).6218 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

6127 6219 

6128 - `type: "file_search"`6220 - `type: "file_search"`

6129 6221 


6181 6273 

6182 - `Computer object { type }`6274 - `Computer object { type }`

6183 6275 

6184 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).6276 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

6185 6277 

6186 - `type: "computer"`6278 - `type: "computer"`

6187 6279 


6191 6283 

6192 - `ComputerUsePreview object { display_height, display_width, environment, type }`6284 - `ComputerUsePreview object { display_height, display_width, environment, type }`

6193 6285 

6194 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).6286 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

6195 6287 

6196 - `display_height: number`6288 - `display_height: number`

6197 6289 


6224 - `WebSearch object { type, external_web_access, filters, 2 more }`6316 - `WebSearch object { type, external_web_access, filters, 2 more }`

6225 6317 

6226 Search the Internet for sources related to the prompt. Learn more about the6318 Search the Internet for sources related to the prompt. Learn more about the

6227 [web search tool](/docs/guides/tools-web-search).6319 [web search tool](/api/docs/guides/tools-web-search).

6228 6320 

6229 - `type: "web_search" or "web_search_2025_08_26"`6321 - `type: "web_search" or "web_search_2025_08_26"`

6230 6322 


6288 - `Mcp object { server_label, type, allowed_callers, 9 more }`6380 - `Mcp object { server_label, type, allowed_callers, 9 more }`

6289 6381 

6290 Give the model access to additional tools via remote Model Context Protocol6382 Give the model access to additional tools via remote Model Context Protocol

6291 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).6383 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

6292 6384 

6293 - `server_label: string`6385 - `server_label: string`

6294 6386 


6340 6432 

6341 Identifier for service connectors, like those available in ChatGPT. One of6433 Identifier for service connectors, like those available in ChatGPT. One of

6342 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more6434 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

6343 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).6435 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

6344 6436 

6345 Currently supported `connector_id` values are:6437 Currently supported `connector_id` values are:

6346 6438 


6532 6624 

6533 - `background: optional "transparent" or "opaque" or "auto"`6625 - `background: optional "transparent" or "opaque" or "auto"`

6534 6626 

6535 Set the background of the generated image. One of `transparent`,6627 Set the background of the generated image. One of `transparent`, `opaque`,

6536 `opaque`, or `auto`. Transparent backgrounds are available for6628 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

6537 supported GPT Image models. For `gpt-image-2` and6629 their `2026-09-08` snapshots, support `opaque` and `transparent`

6538 `gpt-image-2-2026-04-21`, this support is in preview. When using6630 backgrounds. Transparent backgrounds are available for supported GPT Image

6539 `transparent`, set the output format to `png` or `webp`. Default: `auto`.6631 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

6632 preview. When using `transparent`, set the output format to `png` or `webp`.

6633 Default: `auto`.

6540 6634 

6541 - `"transparent"`6635 - `"transparent"`

6542 6636 


6565 6659 

6566 Base64-encoded mask image.6660 Base64-encoded mask image.

6567 6661 

6568 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`6662 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

6569 6663 

6570 The image generation model to use. One of `gpt-image-1`,6664 The image generation model to use. One of `gpt-image-1`,

6571 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,6665 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

6572 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:6666 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6667 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6668 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

6573 `gpt-image-1`.6669 `gpt-image-1`.

6574 6670 

6575 - `string`6671 - `string`

6576 6672 

6577 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`6673 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

6578 6674 

6579 The image generation model to use. One of `gpt-image-1`,6675 The image generation model to use. One of `gpt-image-1`,

6580 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,6676 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

6581 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:6677 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6678 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6679 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

6582 `gpt-image-1`.6680 `gpt-image-1`.

6583 6681 

6584 - `"gpt-image-1"`6682 - `"gpt-image-1"`


6591 6689 

6592 - `"gpt-image-2-2026-04-21"`6690 - `"gpt-image-2-2026-04-21"`

6593 6691 

6692 - `"gpt-image-2.5-sunburst"`

6693 

6694 - `"gpt-image-2.5-sunburst-2026-09-08"`

6695 

6696 - `"gpt-image-2.5-flare"`

6697 

6698 - `"gpt-image-2.5-flare-2026-09-08"`

6699 

6594 - `moderation: optional "auto" or "low"`6700 - `moderation: optional "auto" or "low"`

6595 6701 

6596 Moderation level for the generated image. Default: `auto`.6702 Moderation level for the generated image. Default: `auto`.


6618 6724 

6619 Number of partial images to generate in streaming mode, from 0 (default value) to 3.6725 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

6620 6726 

6621 - `quality: optional "low" or "medium" or "high" or "auto"`6727 - `quality: optional "low" or "medium" or "high" or 3 more`

6622 6728 

6623 The quality of the generated image. One of `low`, `medium`, `high`,6729 The quality of the generated image. The GPT image models support `low`,

6624 or `auto`. Default: `auto`.6730 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

6731 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

6732 Default: `auto`.

6625 6733 

6626 - `"low"`6734 - `"low"`

6627 6735 


6629 6737 

6630 - `"high"`6738 - `"high"`

6631 6739 

6740 - `"xhigh"`

6741 

6742 - `"max"`

6743 

6632 - `"auto"`6744 - `"auto"`

6633 6745 

6634 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`6746 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

6635 6747 

6636 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`.6748 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`.

6637 6749 

6638 - `string`6750 - `string`

6639 6751 

6640 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`6752 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

6641 6753 

6642 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`.6754 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`.

6643 6755 

6644 - `"1024x1024"`6756 - `"1024x1024"`

6645 6757 


6687 6799 

6688 - `Custom object { name, type, allowed_callers, 4 more }`6800 - `Custom object { name, type, allowed_callers, 4 more }`

6689 6801 

6690 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)6802 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

6691 6803 

6692 - `name: string`6804 - `name: string`

6693 6805 


6777 6889 

6778 - `Custom object { name, type, allowed_callers, 4 more }`6890 - `Custom object { name, type, allowed_callers, 4 more }`

6779 6891 

6780 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)6892 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

6781 6893 

6782 - `name: string`6894 - `name: string`

6783 6895 


6847 6959 

6848 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`6960 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

6849 6961 

6850 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).6962 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).

6851 6963 

6852 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`6964 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

6853 6965 


6925 7037 

6926 - `Compaction object { id, encrypted_content, type, created_by }`7038 - `Compaction object { id, encrypted_content, type, created_by }`

6927 7039 

6928 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).7040 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).

6929 7041 

6930 - `id: string`7042 - `id: string`

6931 7043 


6945 7057 

6946 The identifier of the actor that created the item.7058 The identifier of the actor that created the item.

6947 7059 

6948 - `ImageGenerationCall object { id, result, status, type }`7060 - `ImageGenerationCall object { id, result, status, 3 more }`

6949 7061 

6950 An image generation request made by the model.7062 An image generation request made by the model.

6951 7063 


6975 7087 

6976 - `"image_generation_call"`7088 - `"image_generation_call"`

6977 7089 

7090 - `quality: optional "low" or "medium" or "high" or 3 more or null`

7091 

7092 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.

7093 

7094 - `"low"`

7095 

7096 - `"medium"`

7097 

7098 - `"high"`

7099 

7100 - `"xhigh"`

7101 

7102 - `"max"`

7103 

7104 - `"auto"`

7105 

7106 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`

7107 

7108 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

7109 

7110 - `string`

7111 

7112 - `"1024x1024" or "1024x1536" or "1536x1024"`

7113 

7114 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

7115 

7116 - `"1024x1024"`

7117 

7118 - `"1024x1536"`

7119 

7120 - `"1536x1024"`

7121 

6978 - `CodeInterpreterCall object { id, code, container_id, 3 more }`7122 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

6979 7123 

6980 A tool call to run code.7124 A tool call to run code.


7710 7854 

7711 - `ResponseInputImage object { detail, type, file_id, 2 more }`7855 - `ResponseInputImage object { detail, type, file_id, 2 more }`

7712 7856 

7713 An image input to the model. Learn about [image inputs](/docs/guides/vision).7857 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

7714 7858 

7715 - `ResponseInputFile object { type, detail, file_data, 4 more }`7859 - `ResponseInputFile object { type, detail, file_data, 4 more }`

7716 7860 


7833 - `ToolChoiceTypes object { type }`7977 - `ToolChoiceTypes object { type }`

7834 7978 

7835 Indicates that the model should use a built-in tool to generate a response.7979 Indicates that the model should use a built-in tool to generate a response.

7836 [Learn more about built-in tools](/docs/guides/tools).7980 [Learn more about built-in tools](/api/docs/guides/tools).

7837 7981 

7838 - `type: "file_search" or "web_search_preview" or "computer" or 5 more`7982 - `type: "file_search" or "web_search_preview" or "computer" or 5 more`

7839 7983 

7840 The type of hosted tool the model should to use. Learn more about7984 The type of hosted tool the model should to use. Learn more about

7841 [built-in tools](/docs/guides/tools).7985 [built-in tools](/api/docs/guides/tools).

7842 7986 

7843 Allowed values are:7987 Allowed values are:

7844 7988 


7948 We support the following categories of tools:8092 We support the following categories of tools:

7949 8093 

7950 - **Built-in tools**: Tools that are provided by OpenAI that extend the8094 - **Built-in tools**: Tools that are provided by OpenAI that extend the

7951 model's capabilities, like [web search](/docs/guides/tools-web-search)8095 model's capabilities, like [web search](/api/docs/guides/tools-web-search)

7952 or [file search](/docs/guides/tools-file-search). Learn more about8096 or [file search](/api/docs/guides/tools-file-search). Learn more about

7953 [built-in tools](/docs/guides/tools).8097 [built-in tools](/api/docs/guides/tools).

7954 - **MCP Tools**: Integrations with third-party systems via custom MCP servers8098 - **MCP Tools**: Integrations with third-party systems via custom MCP servers

7955 or predefined connectors such as Google Drive and SharePoint. Learn more about8099 or predefined connectors such as Google Drive and SharePoint. Learn more about

7956 [MCP Tools](/docs/guides/tools-connectors-mcp).8100 [MCP Tools](/api/docs/guides/tools-connectors-mcp).

7957 - **Function calls (custom tools)**: Functions that are defined by you,8101 - **Function calls (custom tools)**: Functions that are defined by you,

7958 enabling the model to call your own code with strongly typed arguments8102 enabling the model to call your own code with strongly typed arguments

7959 and outputs. Learn more about8103 and outputs. Learn more about

7960 [function calling](/docs/guides/function-calling). You can also use8104 [function calling](/api/docs/guides/function-calling). You can also use

7961 custom tools to call your own code.8105 custom tools to call your own code.

7962 8106 

7963 - `Function object { name, parameters, strict, 6 more }`8107 - `Function object { name, parameters, strict, 6 more }`

7964 8108 

7965 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).8109 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

7966 8110 

7967 - `name: string`8111 - `name: string`

7968 8112 


8006 8150 

8007 - `FileSearch object { type, vector_store_ids, filters, 2 more }`8151 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

8008 8152 

8009 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).8153 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

8010 8154 

8011 - `type: "file_search"`8155 - `type: "file_search"`

8012 8156 


8064 8208 

8065 - `Computer object { type }`8209 - `Computer object { type }`

8066 8210 

8067 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).8211 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

8068 8212 

8069 - `type: "computer"`8213 - `type: "computer"`

8070 8214 


8074 8218 

8075 - `ComputerUsePreview object { display_height, display_width, environment, type }`8219 - `ComputerUsePreview object { display_height, display_width, environment, type }`

8076 8220 

8077 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).8221 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

8078 8222 

8079 - `display_height: number`8223 - `display_height: number`

8080 8224 


8107 - `WebSearch object { type, external_web_access, filters, 2 more }`8251 - `WebSearch object { type, external_web_access, filters, 2 more }`

8108 8252 

8109 Search the Internet for sources related to the prompt. Learn more about the8253 Search the Internet for sources related to the prompt. Learn more about the

8110 [web search tool](/docs/guides/tools-web-search).8254 [web search tool](/api/docs/guides/tools-web-search).

8111 8255 

8112 - `type: "web_search" or "web_search_2025_08_26"`8256 - `type: "web_search" or "web_search_2025_08_26"`

8113 8257 


8171 - `Mcp object { server_label, type, allowed_callers, 9 more }`8315 - `Mcp object { server_label, type, allowed_callers, 9 more }`

8172 8316 

8173 Give the model access to additional tools via remote Model Context Protocol8317 Give the model access to additional tools via remote Model Context Protocol

8174 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).8318 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

8175 8319 

8176 - `server_label: string`8320 - `server_label: string`

8177 8321 


8223 8367 

8224 Identifier for service connectors, like those available in ChatGPT. One of8368 Identifier for service connectors, like those available in ChatGPT. One of

8225 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more8369 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

8226 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).8370 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

8227 8371 

8228 Currently supported `connector_id` values are:8372 Currently supported `connector_id` values are:

8229 8373 


8415 8559 

8416 - `background: optional "transparent" or "opaque" or "auto"`8560 - `background: optional "transparent" or "opaque" or "auto"`

8417 8561 

8418 Set the background of the generated image. One of `transparent`,8562 Set the background of the generated image. One of `transparent`, `opaque`,

8419 `opaque`, or `auto`. Transparent backgrounds are available for8563 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

8420 supported GPT Image models. For `gpt-image-2` and8564 their `2026-09-08` snapshots, support `opaque` and `transparent`

8421 `gpt-image-2-2026-04-21`, this support is in preview. When using8565 backgrounds. Transparent backgrounds are available for supported GPT Image

8422 `transparent`, set the output format to `png` or `webp`. Default: `auto`.8566 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

8567 preview. When using `transparent`, set the output format to `png` or `webp`.

8568 Default: `auto`.

8423 8569 

8424 - `"transparent"`8570 - `"transparent"`

8425 8571 


8448 8594 

8449 Base64-encoded mask image.8595 Base64-encoded mask image.

8450 8596 

8451 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`8597 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

8452 8598 

8453 The image generation model to use. One of `gpt-image-1`,8599 The image generation model to use. One of `gpt-image-1`,

8454 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,8600 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

8455 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:8601 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

8602 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

8603 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

8456 `gpt-image-1`.8604 `gpt-image-1`.

8457 8605 

8458 - `string`8606 - `string`

8459 8607 

8460 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`8608 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

8461 8609 

8462 The image generation model to use. One of `gpt-image-1`,8610 The image generation model to use. One of `gpt-image-1`,

8463 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,8611 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

8464 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:8612 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

8613 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

8614 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

8465 `gpt-image-1`.8615 `gpt-image-1`.

8466 8616 

8467 - `"gpt-image-1"`8617 - `"gpt-image-1"`


8474 8624 

8475 - `"gpt-image-2-2026-04-21"`8625 - `"gpt-image-2-2026-04-21"`

8476 8626 

8627 - `"gpt-image-2.5-sunburst"`

8628 

8629 - `"gpt-image-2.5-sunburst-2026-09-08"`

8630 

8631 - `"gpt-image-2.5-flare"`

8632 

8633 - `"gpt-image-2.5-flare-2026-09-08"`

8634 

8477 - `moderation: optional "auto" or "low"`8635 - `moderation: optional "auto" or "low"`

8478 8636 

8479 Moderation level for the generated image. Default: `auto`.8637 Moderation level for the generated image. Default: `auto`.


8501 8659 

8502 Number of partial images to generate in streaming mode, from 0 (default value) to 3.8660 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

8503 8661 

8504 - `quality: optional "low" or "medium" or "high" or "auto"`8662 - `quality: optional "low" or "medium" or "high" or 3 more`

8505 8663 

8506 The quality of the generated image. One of `low`, `medium`, `high`,8664 The quality of the generated image. The GPT image models support `low`,

8507 or `auto`. Default: `auto`.8665 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

8666 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

8667 Default: `auto`.

8508 8668 

8509 - `"low"`8669 - `"low"`

8510 8670 


8512 8672 

8513 - `"high"`8673 - `"high"`

8514 8674 

8675 - `"xhigh"`

8676 

8677 - `"max"`

8678 

8515 - `"auto"`8679 - `"auto"`

8516 8680 

8517 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`8681 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

8518 8682 

8519 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`.8683 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`.

8520 8684 

8521 - `string`8685 - `string`

8522 8686 

8523 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`8687 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

8524 8688 

8525 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`.8689 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`.

8526 8690 

8527 - `"1024x1024"`8691 - `"1024x1024"`

8528 8692 


8570 8734 

8571 - `Custom object { name, type, allowed_callers, 4 more }`8735 - `Custom object { name, type, allowed_callers, 4 more }`

8572 8736 

8573 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)8737 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

8574 8738 

8575 - `name: string`8739 - `name: string`

8576 8740 


8660 8824 

8661 - `Custom object { name, type, allowed_callers, 4 more }`8825 - `Custom object { name, type, allowed_callers, 4 more }`

8662 8826 

8663 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)8827 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

8664 8828 

8665 - `name: string`8829 - `name: string`

8666 8830 


8730 8894 

8731 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`8895 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

8732 8896 

8733 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).8897 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).

8734 8898 

8735 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`8899 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

8736 8900 


8812 - `background: optional boolean or null`8976 - `background: optional boolean or null`

8813 8977 

8814 Whether to run the model response in the background.8978 Whether to run the model response in the background.

8815 [Learn more](/docs/guides/background).8979 [Learn more](/api/docs/guides/background).

8816 8980 

8817 - `completed_at: optional number or null`8981 - `completed_at: optional number or null`

8818 8982 


8829 8993 

8830 - `max_output_tokens: optional number or null`8994 - `max_output_tokens: optional number or null`

8831 8995 

8832 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).8996 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).

8833 8997 

8834 - `max_tool_calls: optional number or null`8998 - `max_tool_calls: optional number or null`

8835 8999 


8961 9125 

8962 The unique ID of the previous response to the model. Use this to9126 The unique ID of the previous response to the model. Use this to

8963 create multi-turn conversations. Learn more about9127 create multi-turn conversations. Learn more about

8964 [conversation state](/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.9128 [conversation state](/api/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.

8965 9129 

8966 - `prompt: optional ResponsePrompt or null`9130 - `prompt: optional ResponsePrompt or null`

8967 9131 

8968 Reference to a prompt template and its variables.9132 Reference to a prompt template and its variables.

8969 [Learn more](/docs/guides/text?api-mode=responses#reusable-prompts).9133 [Learn more](/api/docs/guides/text?api-mode=responses#version-prompts-in-code).

8970 9134 

8971 - `id: string`9135 - `id: string`

8972 9136 


8986 9150 

8987 - `ResponseInputImage object { detail, type, file_id, 2 more }`9151 - `ResponseInputImage object { detail, type, file_id, 2 more }`

8988 9152 

8989 An image input to the model. Learn about [image inputs](/docs/guides/vision).9153 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

8990 9154 

8991 - `ResponseInputFile object { type, detail, file_data, 4 more }`9155 - `ResponseInputFile object { type, detail, file_data, 4 more }`

8992 9156 


9056 9220 

9057 - `prompt_cache_key: optional string or null`9221 - `prompt_cache_key: optional string or null`

9058 9222 

9059 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).9223 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).

9060 9224 

9061 - `prompt_cache_options: optional object { mode, ttl, comparison_response_id }`9225 - `prompt_cache_options: optional object { mode, ttl, comparison_response_id }`

9062 9226 


9084 9248 

9085 Deprecated. Use `prompt_cache_options.ttl` instead.9249 Deprecated. Use `prompt_cache_options.ttl` instead.

9086 9250 

9087 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).9251 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).

9088 This field expresses a maximum retention policy, while9252 This field expresses a maximum retention policy, while

9089 `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two9253 `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two

9090 fields are independent and do not interact.9254 fields are independent and do not interact.


9102 - `reasoning: optional Reasoning or null`9266 - `reasoning: optional Reasoning or null`

9103 9267 

9104 Configuration options for9268 Configuration options for

9105 [reasoning models](https://platform.openai.com/docs/guides/reasoning).9269 [reasoning models](/api/docs/guides/reasoning).

9106 9270 

9107 - `context: optional "auto" or "current_turn" or "all_turns" or null`9271 - `context: optional "auto" or "current_turn" or "all_turns" or null`

9108 9272 


9127 Reducing reasoning effort can result in faster responses and fewer tokens9291 Reducing reasoning effort can result in faster responses and fewer tokens

9128 used on reasoning in a response. Not all reasoning models support every9292 used on reasoning in a response. Not all reasoning models support every

9129 value. See the9293 value. See the

9130 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)9294 [reasoning guide](/api/docs/guides/reasoning)

9131 for model-specific support.9295 for model-specific support.

9132 9296 

9133 - `generate_summary: optional "auto" or "concise" or "detailed" or null`9297 - `generate_summary: optional "auto" or "concise" or "detailed" or null`


9179 - `safety_identifier: optional string or null`9343 - `safety_identifier: optional string or null`

9180 9344 

9181 A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.9345 A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.

9182 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).9346 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).

9183 9347 

9184 - `service_tier: optional ServiceTier or null`9348 - `service_tier: optional ServiceTier or null`

9185 9349 


9187 9351 

9188 - 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'.9352 - 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'.

9189 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.9353 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.

9190 - If set to '[flex](/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.9354 - If set to '[flex](/api/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.

9191 - 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.9355 - 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.

9192 - 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`.9356 - 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`.

9193 - When not set, the default behavior is 'auto'.9357 - When not set, the default behavior is 'auto'.


9230 Configuration options for a text response from the model. Can be plain9394 Configuration options for a text response from the model. Can be plain

9231 text or structured JSON data. Learn more:9395 text or structured JSON data. Learn more:

9232 9396 

9233 - [Text inputs and outputs](/docs/guides/text)9397 - [Text inputs and outputs](/api/docs/guides/text)

9234 - [Structured Outputs](/docs/guides/structured-outputs)9398 - [Structured Outputs](/api/docs/guides/structured-outputs)

9235 9399 

9236 - `format: optional ResponseFormatTextConfig`9400 - `format: optional ResponseFormatTextConfig`

9237 9401 


9239 9403 

9240 Configuring `{ "type": "json_schema" }` enables Structured Outputs,9404 Configuring `{ "type": "json_schema" }` enables Structured Outputs,

9241 which ensures the model will match your supplied JSON schema. Learn more in the9405 which ensures the model will match your supplied JSON schema. Learn more in the

9242 [Structured Outputs guide](/docs/guides/structured-outputs).9406 [Structured Outputs guide](/api/docs/guides/structured-outputs).

9243 9407 

9244 The default format is `{ "type": "text" }` with no additional options.9408 The default format is `{ "type": "text" }` with no additional options.

9245 9409 


9262 - `ResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`9426 - `ResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`

9263 9427 

9264 JSON Schema response format. Used to generate structured JSON responses.9428 JSON Schema response format. Used to generate structured JSON responses.

9265 Learn more about [Structured Outputs](/docs/guides/structured-outputs).9429 Learn more about [Structured Outputs](/api/docs/guides/structured-outputs).

9266 9430 

9267 - `name: string`9431 - `name: string`

9268 9432 


9291 If set to true, the model will always follow the exact schema defined9455 If set to true, the model will always follow the exact schema defined

9292 in the `schema` field. Only a subset of JSON Schema is supported when9456 in the `schema` field. Only a subset of JSON Schema is supported when

9293 `strict` is `true`. To learn more, read the [Structured Outputs9457 `strict` is `true`. To learn more, read the [Structured Outputs

9294 guide](/docs/guides/structured-outputs).9458 guide](/api/docs/guides/structured-outputs).

9295 9459 

9296 - `ResponseFormatJSONObject object { type }`9460 - `ResponseFormatJSONObject object { type }`

9297 9461 


9360 - `cached_tokens: number`9524 - `cached_tokens: number`

9361 9525 

9362 The number of tokens that were retrieved from the cache.9526 The number of tokens that were retrieved from the cache.

9363 [More on prompt caching](/docs/guides/prompt-caching).9527 [More on prompt caching](/api/docs/guides/prompt-caching).

9364 9528 

9365 - `output_tokens: number`9529 - `output_tokens: number`

9366 9530 


9382 9546 

9383 This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.9547 This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.

9384 A stable identifier for your end-users.9548 A stable identifier for your end-users.

9385 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).9549 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).

9386 9550 

9387### Example9551### Example

9388 9552 

Details

4 4 

5Compact a conversation. Returns a compacted response object.5Compact a conversation. Returns a compacted response object.

6 6 

7Learn when and how to compact long-running conversations in the [conversation state guide](/docs/guides/conversation-state#managing-the-context-window). For ZDR-compatible compaction details, see [Compaction (advanced)](/docs/guides/conversation-state#compaction-advanced).7Learn when and how to compact long-running conversations in the [conversation state guide](/api/docs/guides/conversation-state#managing-the-context-window). For ZDR-compatible compaction details, see [Compaction (advanced)](/api/docs/guides/conversation-state#compaction-advanced).

8 8 

9### Body Parameters9### Body Parameters

10 10 

11- `model: "gpt-6-astra" or "gpt-5.6-sol" or "gpt-5.6-terra" or 100 more or string or null`11- `model: "gpt-6-astra" or "gpt-5.6-sol" or "gpt-5.6-terra" or 100 more or string or null`

12 12 

13 Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](/docs/models) to browse and compare available models.13 Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](/api/docs/models) to browse and compare available models.

14 14 

15 - `"gpt-6-astra" or "gpt-5.6-sol" or "gpt-5.6-terra" or 100 more`15 - `"gpt-6-astra" or "gpt-5.6-sol" or "gpt-5.6-terra" or 100 more`

16 16 

17 Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](/docs/models) to browse and compare available models.17 Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](/api/docs/models) to browse and compare available models.

18 18 

19 - `"gpt-6-astra"`19 - `"gpt-6-astra"`

20 20 


284 284 

285 - `ResponseInputImage object { detail, type, file_id, 2 more }`285 - `ResponseInputImage object { detail, type, file_id, 2 more }`

286 286 

287 An image input to the model. Learn about [image inputs](/docs/guides/vision).287 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

288 288 

289 - `detail: ImageDetail`289 - `detail: ImageDetail`

290 290 


627 - `FileSearchCall object { id, queries, status, 2 more }`627 - `FileSearchCall object { id, queries, status, 2 more }`

628 628 

629 The results of a file search tool call. See the629 The results of a file search tool call. See the

630 [file search guide](/docs/guides/tools-file-search) for more information.630 [file search guide](/api/docs/guides/tools-file-search) for more information.

631 631 

632 - `id: string`632 - `id: string`

633 633 


695 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`695 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`

696 696 

697 A tool call to a computer use tool. See the697 A tool call to a computer use tool. See the

698 [computer use guide](/docs/guides/tools-computer-use) for more information.698 [computer use guide](/api/docs/guides/tools-computer-use) for more information.

699 699 

700 - `id: string`700 - `id: string`

701 701 


1040 - `WebSearchCall object { id, action, status, type }`1040 - `WebSearchCall object { id, action, status, type }`

1041 1041 

1042 The results of a web search tool call. See the1042 The results of a web search tool call. See the

1043 [web search guide](/docs/guides/tools-web-search) for more information.1043 [web search guide](/api/docs/guides/tools-web-search) for more information.

1044 1044 

1045 - `id: string`1045 - `id: string`

1046 1046 


1138 - `FunctionCall object { arguments, call_id, name, 6 more }`1138 - `FunctionCall object { arguments, call_id, name, 6 more }`

1139 1139 

1140 A tool call to run a function. See the1140 A tool call to run a function. See the

1141 [function calling guide](/docs/guides/function-calling) for more information.1141 [function calling guide](/api/docs/guides/function-calling) for more information.

1142 1142 

1143 - `arguments: string`1143 - `arguments: string`

1144 1144 


1243 1243 

1244 - `ResponseInputImageContent object { type, detail, file_id, 2 more }`1244 - `ResponseInputImageContent object { type, detail, file_id, 2 more }`

1245 1245 

1246 An image input to the model. Learn about [image inputs](/docs/guides/vision)1246 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision)

1247 1247 

1248 - `type: "input_image"`1248 - `type: "input_image"`

1249 1249 


1421 1421 

1422 - `Function object { name, parameters, strict, 6 more }`1422 - `Function object { name, parameters, strict, 6 more }`

1423 1423 

1424 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).1424 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

1425 1425 

1426 - `name: string`1426 - `name: string`

1427 1427 


1465 1465 

1466 - `FileSearch object { type, vector_store_ids, filters, 2 more }`1466 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

1467 1467 

1468 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).1468 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

1469 1469 

1470 - `type: "file_search"`1470 - `type: "file_search"`

1471 1471 


1590 1590 

1591 - `Computer object { type }`1591 - `Computer object { type }`

1592 1592 

1593 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1593 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1594 1594 

1595 - `type: "computer"`1595 - `type: "computer"`

1596 1596 


1600 1600 

1601 - `ComputerUsePreview object { display_height, display_width, environment, type }`1601 - `ComputerUsePreview object { display_height, display_width, environment, type }`

1602 1602 

1603 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1603 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1604 1604 

1605 - `display_height: number`1605 - `display_height: number`

1606 1606 


1633 - `WebSearch object { type, external_web_access, filters, 2 more }`1633 - `WebSearch object { type, external_web_access, filters, 2 more }`

1634 1634 

1635 Search the Internet for sources related to the prompt. Learn more about the1635 Search the Internet for sources related to the prompt. Learn more about the

1636 [web search tool](/docs/guides/tools-web-search).1636 [web search tool](/api/docs/guides/tools-web-search).

1637 1637 

1638 - `type: "web_search" or "web_search_2025_08_26"`1638 - `type: "web_search" or "web_search_2025_08_26"`

1639 1639 


1697 - `Mcp object { server_label, type, allowed_callers, 9 more }`1697 - `Mcp object { server_label, type, allowed_callers, 9 more }`

1698 1698 

1699 Give the model access to additional tools via remote Model Context Protocol1699 Give the model access to additional tools via remote Model Context Protocol

1700 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).1700 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

1701 1701 

1702 - `server_label: string`1702 - `server_label: string`

1703 1703 


1749 1749 

1750 Identifier for service connectors, like those available in ChatGPT. One of1750 Identifier for service connectors, like those available in ChatGPT. One of

1751 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more1751 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

1752 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).1752 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

1753 1753 

1754 Currently supported `connector_id` values are:1754 Currently supported `connector_id` values are:

1755 1755 


1973 1973 

1974 - `background: optional "transparent" or "opaque" or "auto"`1974 - `background: optional "transparent" or "opaque" or "auto"`

1975 1975 

1976 Set the background of the generated image. One of `transparent`,1976 Set the background of the generated image. One of `transparent`, `opaque`,

1977 `opaque`, or `auto`. Transparent backgrounds are available for1977 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

1978 supported GPT Image models. For `gpt-image-2` and1978 their `2026-09-08` snapshots, support `opaque` and `transparent`

1979 `gpt-image-2-2026-04-21`, this support is in preview. When using1979 backgrounds. Transparent backgrounds are available for supported GPT Image

1980 `transparent`, set the output format to `png` or `webp`. Default: `auto`.1980 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

1981 preview. When using `transparent`, set the output format to `png` or `webp`.

1982 Default: `auto`.

1981 1983 

1982 - `"transparent"`1984 - `"transparent"`

1983 1985 


2006 2008 

2007 Base64-encoded mask image.2009 Base64-encoded mask image.

2008 2010 

2009 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2011 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2010 2012 

2011 The image generation model to use. One of `gpt-image-1`,2013 The image generation model to use. One of `gpt-image-1`,

2012 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2014 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2013 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2015 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2016 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2017 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2014 `gpt-image-1`.2018 `gpt-image-1`.

2015 2019 

2016 - `string`2020 - `string`

2017 2021 

2018 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2022 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2019 2023 

2020 The image generation model to use. One of `gpt-image-1`,2024 The image generation model to use. One of `gpt-image-1`,

2021 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2025 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2022 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2026 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2027 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2028 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2023 `gpt-image-1`.2029 `gpt-image-1`.

2024 2030 

2025 - `"gpt-image-1"`2031 - `"gpt-image-1"`


2032 2038 

2033 - `"gpt-image-2-2026-04-21"`2039 - `"gpt-image-2-2026-04-21"`

2034 2040 

2041 - `"gpt-image-2.5-sunburst"`

2042 

2043 - `"gpt-image-2.5-sunburst-2026-09-08"`

2044 

2045 - `"gpt-image-2.5-flare"`

2046 

2047 - `"gpt-image-2.5-flare-2026-09-08"`

2048 

2035 - `moderation: optional "auto" or "low"`2049 - `moderation: optional "auto" or "low"`

2036 2050 

2037 Moderation level for the generated image. Default: `auto`.2051 Moderation level for the generated image. Default: `auto`.


2059 2073 

2060 Number of partial images to generate in streaming mode, from 0 (default value) to 3.2074 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

2061 2075 

2062 - `quality: optional "low" or "medium" or "high" or "auto"`2076 - `quality: optional "low" or "medium" or "high" or 3 more`

2063 2077 

2064 The quality of the generated image. One of `low`, `medium`, `high`,2078 The quality of the generated image. The GPT image models support `low`,

2065 or `auto`. Default: `auto`.2079 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

2080 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

2081 Default: `auto`.

2066 2082 

2067 - `"low"`2083 - `"low"`

2068 2084 


2070 2086 

2071 - `"high"`2087 - `"high"`

2072 2088 

2089 - `"xhigh"`

2090 

2091 - `"max"`

2092 

2073 - `"auto"`2093 - `"auto"`

2074 2094 

2075 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`2095 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2076 2096 

2077 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`.2097 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`.

2078 2098 

2079 - `string`2099 - `string`

2080 2100 

2081 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`2101 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2082 2102 

2083 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`.2103 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`.

2084 2104 

2085 - `"1024x1024"`2105 - `"1024x1024"`

2086 2106 


2246 2266 

2247 - `Custom object { name, type, allowed_callers, 4 more }`2267 - `Custom object { name, type, allowed_callers, 4 more }`

2248 2268 

2249 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2269 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2250 2270 

2251 - `name: string`2271 - `name: string`

2252 2272 


2368 2388 

2369 - `Custom object { name, type, allowed_callers, 4 more }`2389 - `Custom object { name, type, allowed_callers, 4 more }`

2370 2390 

2371 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2391 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2372 2392 

2373 - `name: string`2393 - `name: string`

2374 2394 


2438 2458 

2439 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`2459 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

2440 2460 

2441 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).2461 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).

2442 2462 

2443 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`2463 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

2444 2464 


2554 2574 

2555 - `Function object { name, parameters, strict, 6 more }`2575 - `Function object { name, parameters, strict, 6 more }`

2556 2576 

2557 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).2577 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

2558 2578 

2559 - `name: string`2579 - `name: string`

2560 2580 


2598 2618 

2599 - `FileSearch object { type, vector_store_ids, filters, 2 more }`2619 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

2600 2620 

2601 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).2621 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

2602 2622 

2603 - `type: "file_search"`2623 - `type: "file_search"`

2604 2624 


2656 2676 

2657 - `Computer object { type }`2677 - `Computer object { type }`

2658 2678 

2659 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).2679 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

2660 2680 

2661 - `type: "computer"`2681 - `type: "computer"`

2662 2682 


2666 2686 

2667 - `ComputerUsePreview object { display_height, display_width, environment, type }`2687 - `ComputerUsePreview object { display_height, display_width, environment, type }`

2668 2688 

2669 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).2689 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

2670 2690 

2671 - `display_height: number`2691 - `display_height: number`

2672 2692 


2699 - `WebSearch object { type, external_web_access, filters, 2 more }`2719 - `WebSearch object { type, external_web_access, filters, 2 more }`

2700 2720 

2701 Search the Internet for sources related to the prompt. Learn more about the2721 Search the Internet for sources related to the prompt. Learn more about the

2702 [web search tool](/docs/guides/tools-web-search).2722 [web search tool](/api/docs/guides/tools-web-search).

2703 2723 

2704 - `type: "web_search" or "web_search_2025_08_26"`2724 - `type: "web_search" or "web_search_2025_08_26"`

2705 2725 


2763 - `Mcp object { server_label, type, allowed_callers, 9 more }`2783 - `Mcp object { server_label, type, allowed_callers, 9 more }`

2764 2784 

2765 Give the model access to additional tools via remote Model Context Protocol2785 Give the model access to additional tools via remote Model Context Protocol

2766 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).2786 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

2767 2787 

2768 - `server_label: string`2788 - `server_label: string`

2769 2789 


2815 2835 

2816 Identifier for service connectors, like those available in ChatGPT. One of2836 Identifier for service connectors, like those available in ChatGPT. One of

2817 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more2837 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

2818 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).2838 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

2819 2839 

2820 Currently supported `connector_id` values are:2840 Currently supported `connector_id` values are:

2821 2841 


3007 3027 

3008 - `background: optional "transparent" or "opaque" or "auto"`3028 - `background: optional "transparent" or "opaque" or "auto"`

3009 3029 

3010 Set the background of the generated image. One of `transparent`,3030 Set the background of the generated image. One of `transparent`, `opaque`,

3011 `opaque`, or `auto`. Transparent backgrounds are available for3031 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

3012 supported GPT Image models. For `gpt-image-2` and3032 their `2026-09-08` snapshots, support `opaque` and `transparent`

3013 `gpt-image-2-2026-04-21`, this support is in preview. When using3033 backgrounds. Transparent backgrounds are available for supported GPT Image

3014 `transparent`, set the output format to `png` or `webp`. Default: `auto`.3034 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

3035 preview. When using `transparent`, set the output format to `png` or `webp`.

3036 Default: `auto`.

3015 3037 

3016 - `"transparent"`3038 - `"transparent"`

3017 3039 


3040 3062 

3041 Base64-encoded mask image.3063 Base64-encoded mask image.

3042 3064 

3043 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`3065 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

3044 3066 

3045 The image generation model to use. One of `gpt-image-1`,3067 The image generation model to use. One of `gpt-image-1`,

3046 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,3068 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

3047 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:3069 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3070 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3071 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

3048 `gpt-image-1`.3072 `gpt-image-1`.

3049 3073 

3050 - `string`3074 - `string`

3051 3075 

3052 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`3076 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

3053 3077 

3054 The image generation model to use. One of `gpt-image-1`,3078 The image generation model to use. One of `gpt-image-1`,

3055 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,3079 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

3056 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:3080 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3081 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3082 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

3057 `gpt-image-1`.3083 `gpt-image-1`.

3058 3084 

3059 - `"gpt-image-1"`3085 - `"gpt-image-1"`


3066 3092 

3067 - `"gpt-image-2-2026-04-21"`3093 - `"gpt-image-2-2026-04-21"`

3068 3094 

3095 - `"gpt-image-2.5-sunburst"`

3096 

3097 - `"gpt-image-2.5-sunburst-2026-09-08"`

3098 

3099 - `"gpt-image-2.5-flare"`

3100 

3101 - `"gpt-image-2.5-flare-2026-09-08"`

3102 

3069 - `moderation: optional "auto" or "low"`3103 - `moderation: optional "auto" or "low"`

3070 3104 

3071 Moderation level for the generated image. Default: `auto`.3105 Moderation level for the generated image. Default: `auto`.


3093 3127 

3094 Number of partial images to generate in streaming mode, from 0 (default value) to 3.3128 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

3095 3129 

3096 - `quality: optional "low" or "medium" or "high" or "auto"`3130 - `quality: optional "low" or "medium" or "high" or 3 more`

3097 3131 

3098 The quality of the generated image. One of `low`, `medium`, `high`,3132 The quality of the generated image. The GPT image models support `low`,

3099 or `auto`. Default: `auto`.3133 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

3134 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

3135 Default: `auto`.

3100 3136 

3101 - `"low"`3137 - `"low"`

3102 3138 


3104 3140 

3105 - `"high"`3141 - `"high"`

3106 3142 

3143 - `"xhigh"`

3144 

3145 - `"max"`

3146 

3107 - `"auto"`3147 - `"auto"`

3108 3148 

3109 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`3149 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

3110 3150 

3111 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`.3151 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`.

3112 3152 

3113 - `string`3153 - `string`

3114 3154 

3115 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`3155 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

3116 3156 

3117 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`.3157 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`.

3118 3158 

3119 - `"1024x1024"`3159 - `"1024x1024"`

3120 3160 


3162 3202 

3163 - `Custom object { name, type, allowed_callers, 4 more }`3203 - `Custom object { name, type, allowed_callers, 4 more }`

3164 3204 

3165 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3205 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

3166 3206 

3167 - `name: string`3207 - `name: string`

3168 3208 


3252 3292 

3253 - `Custom object { name, type, allowed_callers, 4 more }`3293 - `Custom object { name, type, allowed_callers, 4 more }`

3254 3294 

3255 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3295 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

3256 3296 

3257 - `name: string`3297 - `name: string`

3258 3298 


3322 3362 

3323 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`3363 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

3324 3364 

3325 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).3365 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).

3326 3366 

3327 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`3367 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

3328 3368 


3446 A description of the chain of thought used by a reasoning model while generating3486 A description of the chain of thought used by a reasoning model while generating

3447 a response. Be sure to include these items in your `input` to the Responses API3487 a response. Be sure to include these items in your `input` to the Responses API

3448 for subsequent turns of a conversation if you are manually3488 for subsequent turns of a conversation if you are manually

3449 [managing context](/docs/guides/conversation-state).3489 [managing context](/api/docs/guides/conversation-state).

3450 3490 

3451 - `id: string`3491 - `id: string`

3452 3492 


3511 3551 

3512 - `Compaction object { encrypted_content, type, id }`3552 - `Compaction object { encrypted_content, type, id }`

3513 3553 

3514 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).3554 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).

3515 3555 

3516 - `encrypted_content: string`3556 - `encrypted_content: string`

3517 3557 


3527 3567 

3528 The ID of the compaction item.3568 The ID of the compaction item.

3529 3569 

3530 - `ImageGenerationCall object { id, result, status, type }`3570 - `ImageGenerationCall object { id, result, status, 3 more }`

3531 3571 

3532 An image generation request made by the model.3572 An image generation request made by the model.

3533 3573 


3557 3597 

3558 - `"image_generation_call"`3598 - `"image_generation_call"`

3559 3599 

3600 - `quality: optional "low" or "medium" or "high" or 3 more or null`

3601 

3602 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.

3603 

3604 - `"low"`

3605 

3606 - `"medium"`

3607 

3608 - `"high"`

3609 

3610 - `"xhigh"`

3611 

3612 - `"max"`

3613 

3614 - `"auto"`

3615 

3616 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`

3617 

3618 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

3619 

3620 - `string`

3621 

3622 - `"1024x1024" or "1024x1536" or "1536x1024"`

3623 

3624 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

3625 

3626 - `"1024x1024"`

3627 

3628 - `"1024x1536"`

3629 

3630 - `"1536x1024"`

3631 

3560 - `CodeInterpreterCall object { id, code, container_id, 3 more }`3632 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

3561 3633 

3562 A tool call to run code.3634 A tool call to run code.


4244 4316 

4245 - `ResponseInputImage object { detail, type, file_id, 2 more }`4317 - `ResponseInputImage object { detail, type, file_id, 2 more }`

4246 4318 

4247 An image input to the model. Learn about [image inputs](/docs/guides/vision).4319 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

4248 4320 

4249 - `ResponseInputFile object { type, detail, file_data, 4 more }`4321 - `ResponseInputFile object { type, detail, file_data, 4 more }`

4250 4322 


4425 4497 

4426- `previous_response_id: optional string or null`4498- `previous_response_id: optional string or null`

4427 4499 

4428 The unique ID of the previous response to the model. Use this to create multi-turn conversations. Learn more about [conversation state](/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.4500 The unique ID of the previous response to the model. Use this to create multi-turn conversations. Learn more about [conversation state](/api/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.

4429 4501 

4430- `prompt_cache_key: optional string or null`4502- `prompt_cache_key: optional string or null`

4431 4503 


4433 4505 

4434- `prompt_cache_options: optional object { mode, ttl } or null`4506- `prompt_cache_options: optional object { mode, ttl } or null`

4435 4507 

4436 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.4508 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.

4437 4509 

4438 - `mode: optional "implicit" or "explicit"`4510 - `mode: optional "implicit" or "explicit"`

4439 4511 


4459 4531 

4460- `service_tier: optional "auto" or "default" or "fast" or 2 more or null`4532- `service_tier: optional "auto" or "default" or "fast" or 2 more or null`

4461 4533 

4462 Specifies the processing type used for serving the request. - 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'. - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model. - If set to '[flex](/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier. - 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. For models with a dedicated Fast tier, either value resolves to `service_tier=fast`; for other models, either value resolves to `service_tier=priority`. - When not set, the default behavior is 'auto'.4534 Specifies the processing type used for serving the request. - 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'. - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model. - If set to '[flex](/api/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier. - 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. For models with a dedicated Fast tier, either value resolves to `service_tier=fast`; for other models, either value resolves to `service_tier=priority`. - When not set, the default behavior is 'auto'.

4463 When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.4535 When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.

4464 4536 

4465 - `"auto"`4537 - `"auto"`


4714 4786 

4715 - `ResponseInputImage object { detail, type, file_id, 2 more }`4787 - `ResponseInputImage object { detail, type, file_id, 2 more }`

4716 4788 

4717 An image input to the model. Learn about [image inputs](/docs/guides/vision).4789 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

4718 4790 

4719 - `detail: ImageDetail`4791 - `detail: ImageDetail`

4720 4792 


4929 - `FunctionCall object { arguments, call_id, name, 6 more }`5001 - `FunctionCall object { arguments, call_id, name, 6 more }`

4930 5002 

4931 A tool call to run a function. See the5003 A tool call to run a function. See the

4932 [function calling guide](/docs/guides/function-calling) for more information.5004 [function calling guide](/api/docs/guides/function-calling) for more information.

4933 5005 

4934 - `arguments: string`5006 - `arguments: string`

4935 5007 


5068 5140 

5069 - `Function object { name, parameters, strict, 6 more }`5141 - `Function object { name, parameters, strict, 6 more }`

5070 5142 

5071 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).5143 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

5072 5144 

5073 - `name: string`5145 - `name: string`

5074 5146 


5112 5184 

5113 - `FileSearch object { type, vector_store_ids, filters, 2 more }`5185 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

5114 5186 

5115 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).5187 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

5116 5188 

5117 - `type: "file_search"`5189 - `type: "file_search"`

5118 5190 


5237 5309 

5238 - `Computer object { type }`5310 - `Computer object { type }`

5239 5311 

5240 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).5312 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

5241 5313 

5242 - `type: "computer"`5314 - `type: "computer"`

5243 5315 


5247 5319 

5248 - `ComputerUsePreview object { display_height, display_width, environment, type }`5320 - `ComputerUsePreview object { display_height, display_width, environment, type }`

5249 5321 

5250 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).5322 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

5251 5323 

5252 - `display_height: number`5324 - `display_height: number`

5253 5325 


5280 - `WebSearch object { type, external_web_access, filters, 2 more }`5352 - `WebSearch object { type, external_web_access, filters, 2 more }`

5281 5353 

5282 Search the Internet for sources related to the prompt. Learn more about the5354 Search the Internet for sources related to the prompt. Learn more about the

5283 [web search tool](/docs/guides/tools-web-search).5355 [web search tool](/api/docs/guides/tools-web-search).

5284 5356 

5285 - `type: "web_search" or "web_search_2025_08_26"`5357 - `type: "web_search" or "web_search_2025_08_26"`

5286 5358 


5344 - `Mcp object { server_label, type, allowed_callers, 9 more }`5416 - `Mcp object { server_label, type, allowed_callers, 9 more }`

5345 5417 

5346 Give the model access to additional tools via remote Model Context Protocol5418 Give the model access to additional tools via remote Model Context Protocol

5347 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).5419 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

5348 5420 

5349 - `server_label: string`5421 - `server_label: string`

5350 5422 


5396 5468 

5397 Identifier for service connectors, like those available in ChatGPT. One of5469 Identifier for service connectors, like those available in ChatGPT. One of

5398 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more5470 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

5399 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).5471 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

5400 5472 

5401 Currently supported `connector_id` values are:5473 Currently supported `connector_id` values are:

5402 5474 


5620 5692 

5621 - `background: optional "transparent" or "opaque" or "auto"`5693 - `background: optional "transparent" or "opaque" or "auto"`

5622 5694 

5623 Set the background of the generated image. One of `transparent`,5695 Set the background of the generated image. One of `transparent`, `opaque`,

5624 `opaque`, or `auto`. Transparent backgrounds are available for5696 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

5625 supported GPT Image models. For `gpt-image-2` and5697 their `2026-09-08` snapshots, support `opaque` and `transparent`

5626 `gpt-image-2-2026-04-21`, this support is in preview. When using5698 backgrounds. Transparent backgrounds are available for supported GPT Image

5627 `transparent`, set the output format to `png` or `webp`. Default: `auto`.5699 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

5700 preview. When using `transparent`, set the output format to `png` or `webp`.

5701 Default: `auto`.

5628 5702 

5629 - `"transparent"`5703 - `"transparent"`

5630 5704 


5653 5727 

5654 Base64-encoded mask image.5728 Base64-encoded mask image.

5655 5729 

5656 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`5730 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

5657 5731 

5658 The image generation model to use. One of `gpt-image-1`,5732 The image generation model to use. One of `gpt-image-1`,

5659 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,5733 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

5660 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:5734 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

5735 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

5736 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

5661 `gpt-image-1`.5737 `gpt-image-1`.

5662 5738 

5663 - `string`5739 - `string`

5664 5740 

5665 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`5741 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

5666 5742 

5667 The image generation model to use. One of `gpt-image-1`,5743 The image generation model to use. One of `gpt-image-1`,

5668 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,5744 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

5669 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:5745 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

5746 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

5747 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

5670 `gpt-image-1`.5748 `gpt-image-1`.

5671 5749 

5672 - `"gpt-image-1"`5750 - `"gpt-image-1"`


5679 5757 

5680 - `"gpt-image-2-2026-04-21"`5758 - `"gpt-image-2-2026-04-21"`

5681 5759 

5760 - `"gpt-image-2.5-sunburst"`

5761 

5762 - `"gpt-image-2.5-sunburst-2026-09-08"`

5763 

5764 - `"gpt-image-2.5-flare"`

5765 

5766 - `"gpt-image-2.5-flare-2026-09-08"`

5767 

5682 - `moderation: optional "auto" or "low"`5768 - `moderation: optional "auto" or "low"`

5683 5769 

5684 Moderation level for the generated image. Default: `auto`.5770 Moderation level for the generated image. Default: `auto`.


5706 5792 

5707 Number of partial images to generate in streaming mode, from 0 (default value) to 3.5793 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

5708 5794 

5709 - `quality: optional "low" or "medium" or "high" or "auto"`5795 - `quality: optional "low" or "medium" or "high" or 3 more`

5710 5796 

5711 The quality of the generated image. One of `low`, `medium`, `high`,5797 The quality of the generated image. The GPT image models support `low`,

5712 or `auto`. Default: `auto`.5798 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

5799 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

5800 Default: `auto`.

5713 5801 

5714 - `"low"`5802 - `"low"`

5715 5803 


5717 5805 

5718 - `"high"`5806 - `"high"`

5719 5807 

5808 - `"xhigh"`

5809 

5810 - `"max"`

5811 

5720 - `"auto"`5812 - `"auto"`

5721 5813 

5722 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`5814 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

5723 5815 

5724 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`.5816 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`.

5725 5817 

5726 - `string`5818 - `string`

5727 5819 

5728 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`5820 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

5729 5821 

5730 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`.5822 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`.

5731 5823 

5732 - `"1024x1024"`5824 - `"1024x1024"`

5733 5825 


5893 5985 

5894 - `Custom object { name, type, allowed_callers, 4 more }`5986 - `Custom object { name, type, allowed_callers, 4 more }`

5895 5987 

5896 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)5988 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

5897 5989 

5898 - `name: string`5990 - `name: string`

5899 5991 


6015 6107 

6016 - `Custom object { name, type, allowed_callers, 4 more }`6108 - `Custom object { name, type, allowed_callers, 4 more }`

6017 6109 

6018 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)6110 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

6019 6111 

6020 - `name: string`6112 - `name: string`

6021 6113 


6085 6177 

6086 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`6178 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

6087 6179 

6088 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).6180 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).

6089 6181 

6090 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`6182 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

6091 6183 


6197 6289 

6198 - `Function object { name, parameters, strict, 6 more }`6290 - `Function object { name, parameters, strict, 6 more }`

6199 6291 

6200 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).6292 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

6201 6293 

6202 - `name: string`6294 - `name: string`

6203 6295 


6241 6333 

6242 - `FileSearch object { type, vector_store_ids, filters, 2 more }`6334 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

6243 6335 

6244 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).6336 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

6245 6337 

6246 - `type: "file_search"`6338 - `type: "file_search"`

6247 6339 


6299 6391 

6300 - `Computer object { type }`6392 - `Computer object { type }`

6301 6393 

6302 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).6394 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

6303 6395 

6304 - `type: "computer"`6396 - `type: "computer"`

6305 6397 


6309 6401 

6310 - `ComputerUsePreview object { display_height, display_width, environment, type }`6402 - `ComputerUsePreview object { display_height, display_width, environment, type }`

6311 6403 

6312 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).6404 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

6313 6405 

6314 - `display_height: number`6406 - `display_height: number`

6315 6407 


6342 - `WebSearch object { type, external_web_access, filters, 2 more }`6434 - `WebSearch object { type, external_web_access, filters, 2 more }`

6343 6435 

6344 Search the Internet for sources related to the prompt. Learn more about the6436 Search the Internet for sources related to the prompt. Learn more about the

6345 [web search tool](/docs/guides/tools-web-search).6437 [web search tool](/api/docs/guides/tools-web-search).

6346 6438 

6347 - `type: "web_search" or "web_search_2025_08_26"`6439 - `type: "web_search" or "web_search_2025_08_26"`

6348 6440 


6406 - `Mcp object { server_label, type, allowed_callers, 9 more }`6498 - `Mcp object { server_label, type, allowed_callers, 9 more }`

6407 6499 

6408 Give the model access to additional tools via remote Model Context Protocol6500 Give the model access to additional tools via remote Model Context Protocol

6409 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).6501 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

6410 6502 

6411 - `server_label: string`6503 - `server_label: string`

6412 6504 


6458 6550 

6459 Identifier for service connectors, like those available in ChatGPT. One of6551 Identifier for service connectors, like those available in ChatGPT. One of

6460 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more6552 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

6461 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).6553 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

6462 6554 

6463 Currently supported `connector_id` values are:6555 Currently supported `connector_id` values are:

6464 6556 


6650 6742 

6651 - `background: optional "transparent" or "opaque" or "auto"`6743 - `background: optional "transparent" or "opaque" or "auto"`

6652 6744 

6653 Set the background of the generated image. One of `transparent`,6745 Set the background of the generated image. One of `transparent`, `opaque`,

6654 `opaque`, or `auto`. Transparent backgrounds are available for6746 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

6655 supported GPT Image models. For `gpt-image-2` and6747 their `2026-09-08` snapshots, support `opaque` and `transparent`

6656 `gpt-image-2-2026-04-21`, this support is in preview. When using6748 backgrounds. Transparent backgrounds are available for supported GPT Image

6657 `transparent`, set the output format to `png` or `webp`. Default: `auto`.6749 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

6750 preview. When using `transparent`, set the output format to `png` or `webp`.

6751 Default: `auto`.

6658 6752 

6659 - `"transparent"`6753 - `"transparent"`

6660 6754 


6683 6777 

6684 Base64-encoded mask image.6778 Base64-encoded mask image.

6685 6779 

6686 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`6780 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

6687 6781 

6688 The image generation model to use. One of `gpt-image-1`,6782 The image generation model to use. One of `gpt-image-1`,

6689 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,6783 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

6690 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:6784 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6785 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6786 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

6691 `gpt-image-1`.6787 `gpt-image-1`.

6692 6788 

6693 - `string`6789 - `string`

6694 6790 

6695 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`6791 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

6696 6792 

6697 The image generation model to use. One of `gpt-image-1`,6793 The image generation model to use. One of `gpt-image-1`,

6698 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,6794 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

6699 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:6795 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6796 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6797 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

6700 `gpt-image-1`.6798 `gpt-image-1`.

6701 6799 

6702 - `"gpt-image-1"`6800 - `"gpt-image-1"`


6709 6807 

6710 - `"gpt-image-2-2026-04-21"`6808 - `"gpt-image-2-2026-04-21"`

6711 6809 

6810 - `"gpt-image-2.5-sunburst"`

6811 

6812 - `"gpt-image-2.5-sunburst-2026-09-08"`

6813 

6814 - `"gpt-image-2.5-flare"`

6815 

6816 - `"gpt-image-2.5-flare-2026-09-08"`

6817 

6712 - `moderation: optional "auto" or "low"`6818 - `moderation: optional "auto" or "low"`

6713 6819 

6714 Moderation level for the generated image. Default: `auto`.6820 Moderation level for the generated image. Default: `auto`.


6736 6842 

6737 Number of partial images to generate in streaming mode, from 0 (default value) to 3.6843 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

6738 6844 

6739 - `quality: optional "low" or "medium" or "high" or "auto"`6845 - `quality: optional "low" or "medium" or "high" or 3 more`

6740 6846 

6741 The quality of the generated image. One of `low`, `medium`, `high`,6847 The quality of the generated image. The GPT image models support `low`,

6742 or `auto`. Default: `auto`.6848 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

6849 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

6850 Default: `auto`.

6743 6851 

6744 - `"low"`6852 - `"low"`

6745 6853 


6747 6855 

6748 - `"high"`6856 - `"high"`

6749 6857 

6858 - `"xhigh"`

6859 

6860 - `"max"`

6861 

6750 - `"auto"`6862 - `"auto"`

6751 6863 

6752 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`6864 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

6753 6865 

6754 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`.6866 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`.

6755 6867 

6756 - `string`6868 - `string`

6757 6869 

6758 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`6870 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

6759 6871 

6760 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`.6872 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`.

6761 6873 

6762 - `"1024x1024"`6874 - `"1024x1024"`

6763 6875 


6805 6917 

6806 - `Custom object { name, type, allowed_callers, 4 more }`6918 - `Custom object { name, type, allowed_callers, 4 more }`

6807 6919 

6808 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)6920 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

6809 6921 

6810 - `name: string`6922 - `name: string`

6811 6923 


6895 7007 

6896 - `Custom object { name, type, allowed_callers, 4 more }`7008 - `Custom object { name, type, allowed_callers, 4 more }`

6897 7009 

6898 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)7010 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

6899 7011 

6900 - `name: string`7012 - `name: string`

6901 7013 


6965 7077 

6966 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`7078 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

6967 7079 

6968 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).7080 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).

6969 7081 

6970 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`7082 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

6971 7083 


7064 7176 

7065 - `ResponseInputImage object { detail, type, file_id, 2 more }`7177 - `ResponseInputImage object { detail, type, file_id, 2 more }`

7066 7178 

7067 An image input to the model. Learn about [image inputs](/docs/guides/vision).7179 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

7068 7180 

7069 - `ResponseInputFile object { type, detail, file_data, 4 more }`7181 - `ResponseInputFile object { type, detail, file_data, 4 more }`

7070 7182 


7131 - `FileSearchCall object { id, queries, status, 2 more }`7243 - `FileSearchCall object { id, queries, status, 2 more }`

7132 7244 

7133 The results of a file search tool call. See the7245 The results of a file search tool call. See the

7134 [file search guide](/docs/guides/tools-file-search) for more information.7246 [file search guide](/api/docs/guides/tools-file-search) for more information.

7135 7247 

7136 - `id: string`7248 - `id: string`

7137 7249 


7199 - `WebSearchCall object { id, action, status, type }`7311 - `WebSearchCall object { id, action, status, type }`

7200 7312 

7201 The results of a web search tool call. See the7313 The results of a web search tool call. See the

7202 [web search guide](/docs/guides/tools-web-search) for more information.7314 [web search guide](/api/docs/guides/tools-web-search) for more information.

7203 7315 

7204 - `id: string`7316 - `id: string`

7205 7317 


7294 7406 

7295 - `"web_search_call"`7407 - `"web_search_call"`

7296 7408 

7297 - `ImageGenerationCall object { id, result, status, type }`7409 - `ImageGenerationCall object { id, result, status, 3 more }`

7298 7410 

7299 An image generation request made by the model.7411 An image generation request made by the model.

7300 7412 


7324 7436 

7325 - `"image_generation_call"`7437 - `"image_generation_call"`

7326 7438 

7439 - `quality: optional "low" or "medium" or "high" or 3 more or null`

7440 

7441 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.

7442 

7443 - `"low"`

7444 

7445 - `"medium"`

7446 

7447 - `"high"`

7448 

7449 - `"xhigh"`

7450 

7451 - `"max"`

7452 

7453 - `"auto"`

7454 

7455 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`

7456 

7457 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

7458 

7459 - `string`

7460 

7461 - `"1024x1024" or "1024x1536" or "1536x1024"`

7462 

7463 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

7464 

7465 - `"1024x1024"`

7466 

7467 - `"1024x1536"`

7468 

7469 - `"1536x1024"`

7470 

7327 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`7471 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`

7328 7472 

7329 A tool call to a computer use tool. See the7473 A tool call to a computer use tool. See the

7330 [computer use guide](/docs/guides/tools-computer-use) for more information.7474 [computer use guide](/api/docs/guides/tools-computer-use) for more information.

7331 7475 

7332 - `id: string`7476 - `id: string`

7333 7477 


7680 A description of the chain of thought used by a reasoning model while generating7824 A description of the chain of thought used by a reasoning model while generating

7681 a response. Be sure to include these items in your `input` to the Responses API7825 a response. Be sure to include these items in your `input` to the Responses API

7682 for subsequent turns of a conversation if you are manually7826 for subsequent turns of a conversation if you are manually

7683 [managing context](/docs/guides/conversation-state).7827 [managing context](/api/docs/guides/conversation-state).

7684 7828 

7685 - `id: string`7829 - `id: string`

7686 7830 


7743 7887 

7744 - `Compaction object { id, encrypted_content, type, created_by }`7888 - `Compaction object { id, encrypted_content, type, created_by }`

7745 7889 

7746 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).7890 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).

7747 7891 

7748 - `id: string`7892 - `id: string`

7749 7893 


8524 8668 

8525 - `ResponseInputImage object { detail, type, file_id, 2 more }`8669 - `ResponseInputImage object { detail, type, file_id, 2 more }`

8526 8670 

8527 An image input to the model. Learn about [image inputs](/docs/guides/vision).8671 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

8528 8672 

8529 - `ResponseInputFile object { type, detail, file_data, 4 more }`8673 - `ResponseInputFile object { type, detail, file_data, 4 more }`

8530 8674 


8583 - `cached_tokens: number`8727 - `cached_tokens: number`

8584 8728 

8585 The number of tokens that were retrieved from the cache.8729 The number of tokens that were retrieved from the cache.

8586 [More on prompt caching](/docs/guides/prompt-caching).8730 [More on prompt caching](/api/docs/guides/prompt-caching).

8587 8731 

8588 - `output_tokens: number`8732 - `output_tokens: number`

8589 8733 

Details

2 2 

3**post** `/responses`3**post** `/responses`

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### Body Parameters13### Body Parameters


15- `background: optional boolean or null`15- `background: optional boolean or null`

16 16 

17 Whether to run the model response in the background.17 Whether to run the model response in the background.

18 [Learn more](/docs/guides/background).18 [Learn more](/api/docs/guides/background).

19 19 

20- `context_management: optional array of object { type, compact_threshold } or null`20- `context_management: optional array of object { type, compact_threshold } or null`

21 21 


80 80 

81 Learn more:81 Learn more:

82 82 

83 - [Text inputs and outputs](/docs/guides/text)83 - [Text inputs and outputs](/api/docs/guides/text)

84 - [Image inputs](/docs/guides/images)84 - [Image inputs](/api/docs/guides/images-vision)

85 - [File inputs](/docs/guides/pdf-files)85 - [File inputs](/api/docs/guides/file-inputs)

86 - [Conversation state](/docs/guides/conversation-state)86 - [Conversation state](/api/docs/guides/conversation-state)

87 - [Function calling](/docs/guides/function-calling)87 - [Function calling](/api/docs/guides/function-calling)

88 88 

89 - `TextInput = string`89 - `TextInput = string`

90 90 


144 144 

145 - `ResponseInputImage object { detail, type, file_id, 2 more }`145 - `ResponseInputImage object { detail, type, file_id, 2 more }`

146 146 

147 An image input to the model. Learn about [image inputs](/docs/guides/vision).147 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

148 148 

149 - `detail: ImageDetail`149 - `detail: ImageDetail`

150 150 


487 - `FileSearchCall object { id, queries, status, 2 more }`487 - `FileSearchCall object { id, queries, status, 2 more }`

488 488 

489 The results of a file search tool call. See the489 The results of a file search tool call. See the

490 [file search guide](/docs/guides/tools-file-search) for more information.490 [file search guide](/api/docs/guides/tools-file-search) for more information.

491 491 

492 - `id: string`492 - `id: string`

493 493 


555 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`555 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`

556 556 

557 A tool call to a computer use tool. See the557 A tool call to a computer use tool. See the

558 [computer use guide](/docs/guides/tools-computer-use) for more information.558 [computer use guide](/api/docs/guides/tools-computer-use) for more information.

559 559 

560 - `id: string`560 - `id: string`

561 561 


900 - `WebSearchCall object { id, action, status, type }`900 - `WebSearchCall object { id, action, status, type }`

901 901 

902 The results of a web search tool call. See the902 The results of a web search tool call. See the

903 [web search guide](/docs/guides/tools-web-search) for more information.903 [web search guide](/api/docs/guides/tools-web-search) for more information.

904 904 

905 - `id: string`905 - `id: string`

906 906 


998 - `FunctionCall object { arguments, call_id, name, 6 more }`998 - `FunctionCall object { arguments, call_id, name, 6 more }`

999 999 

1000 A tool call to run a function. See the1000 A tool call to run a function. See the

1001 [function calling guide](/docs/guides/function-calling) for more information.1001 [function calling guide](/api/docs/guides/function-calling) for more information.

1002 1002 

1003 - `arguments: string`1003 - `arguments: string`

1004 1004 


1103 1103 

1104 - `ResponseInputImageContent object { type, detail, file_id, 2 more }`1104 - `ResponseInputImageContent object { type, detail, file_id, 2 more }`

1105 1105 

1106 An image input to the model. Learn about [image inputs](/docs/guides/vision)1106 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision)

1107 1107 

1108 - `type: "input_image"`1108 - `type: "input_image"`

1109 1109 


1281 1281 

1282 - `Function object { name, parameters, strict, 6 more }`1282 - `Function object { name, parameters, strict, 6 more }`

1283 1283 

1284 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).1284 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

1285 1285 

1286 - `name: string`1286 - `name: string`

1287 1287 


1325 1325 

1326 - `FileSearch object { type, vector_store_ids, filters, 2 more }`1326 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

1327 1327 

1328 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).1328 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

1329 1329 

1330 - `type: "file_search"`1330 - `type: "file_search"`

1331 1331 


1450 1450 

1451 - `Computer object { type }`1451 - `Computer object { type }`

1452 1452 

1453 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1453 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1454 1454 

1455 - `type: "computer"`1455 - `type: "computer"`

1456 1456 


1460 1460 

1461 - `ComputerUsePreview object { display_height, display_width, environment, type }`1461 - `ComputerUsePreview object { display_height, display_width, environment, type }`

1462 1462 

1463 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1463 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1464 1464 

1465 - `display_height: number`1465 - `display_height: number`

1466 1466 


1493 - `WebSearch object { type, external_web_access, filters, 2 more }`1493 - `WebSearch object { type, external_web_access, filters, 2 more }`

1494 1494 

1495 Search the Internet for sources related to the prompt. Learn more about the1495 Search the Internet for sources related to the prompt. Learn more about the

1496 [web search tool](/docs/guides/tools-web-search).1496 [web search tool](/api/docs/guides/tools-web-search).

1497 1497 

1498 - `type: "web_search" or "web_search_2025_08_26"`1498 - `type: "web_search" or "web_search_2025_08_26"`

1499 1499 


1557 - `Mcp object { server_label, type, allowed_callers, 9 more }`1557 - `Mcp object { server_label, type, allowed_callers, 9 more }`

1558 1558 

1559 Give the model access to additional tools via remote Model Context Protocol1559 Give the model access to additional tools via remote Model Context Protocol

1560 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).1560 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

1561 1561 

1562 - `server_label: string`1562 - `server_label: string`

1563 1563 


1609 1609 

1610 Identifier for service connectors, like those available in ChatGPT. One of1610 Identifier for service connectors, like those available in ChatGPT. One of

1611 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more1611 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

1612 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).1612 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

1613 1613 

1614 Currently supported `connector_id` values are:1614 Currently supported `connector_id` values are:

1615 1615 


1833 1833 

1834 - `background: optional "transparent" or "opaque" or "auto"`1834 - `background: optional "transparent" or "opaque" or "auto"`

1835 1835 

1836 Set the background of the generated image. One of `transparent`,1836 Set the background of the generated image. One of `transparent`, `opaque`,

1837 `opaque`, or `auto`. Transparent backgrounds are available for1837 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

1838 supported GPT Image models. For `gpt-image-2` and1838 their `2026-09-08` snapshots, support `opaque` and `transparent`

1839 `gpt-image-2-2026-04-21`, this support is in preview. When using1839 backgrounds. Transparent backgrounds are available for supported GPT Image

1840 `transparent`, set the output format to `png` or `webp`. Default: `auto`.1840 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

1841 preview. When using `transparent`, set the output format to `png` or `webp`.

1842 Default: `auto`.

1841 1843 

1842 - `"transparent"`1844 - `"transparent"`

1843 1845 


1866 1868 

1867 Base64-encoded mask image.1869 Base64-encoded mask image.

1868 1870 

1869 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1871 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1870 1872 

1871 The image generation model to use. One of `gpt-image-1`,1873 The image generation model to use. One of `gpt-image-1`,

1872 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1874 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1873 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1875 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1876 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1877 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1874 `gpt-image-1`.1878 `gpt-image-1`.

1875 1879 

1876 - `string`1880 - `string`

1877 1881 

1878 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1882 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1879 1883 

1880 The image generation model to use. One of `gpt-image-1`,1884 The image generation model to use. One of `gpt-image-1`,

1881 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1885 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1882 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1886 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1887 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1888 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1883 `gpt-image-1`.1889 `gpt-image-1`.

1884 1890 

1885 - `"gpt-image-1"`1891 - `"gpt-image-1"`


1892 1898 

1893 - `"gpt-image-2-2026-04-21"`1899 - `"gpt-image-2-2026-04-21"`

1894 1900 

1901 - `"gpt-image-2.5-sunburst"`

1902 

1903 - `"gpt-image-2.5-sunburst-2026-09-08"`

1904 

1905 - `"gpt-image-2.5-flare"`

1906 

1907 - `"gpt-image-2.5-flare-2026-09-08"`

1908 

1895 - `moderation: optional "auto" or "low"`1909 - `moderation: optional "auto" or "low"`

1896 1910 

1897 Moderation level for the generated image. Default: `auto`.1911 Moderation level for the generated image. Default: `auto`.


1919 1933 

1920 Number of partial images to generate in streaming mode, from 0 (default value) to 3.1934 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

1921 1935 

1922 - `quality: optional "low" or "medium" or "high" or "auto"`1936 - `quality: optional "low" or "medium" or "high" or 3 more`

1923 1937 

1924 The quality of the generated image. One of `low`, `medium`, `high`,1938 The quality of the generated image. The GPT image models support `low`,

1925 or `auto`. Default: `auto`.1939 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

1940 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

1941 Default: `auto`.

1926 1942 

1927 - `"low"`1943 - `"low"`

1928 1944 


1930 1946 

1931 - `"high"`1947 - `"high"`

1932 1948 

1949 - `"xhigh"`

1950 

1951 - `"max"`

1952 

1933 - `"auto"`1953 - `"auto"`

1934 1954 

1935 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`1955 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

1936 1956 

1937 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`.1957 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`.

1938 1958 

1939 - `string`1959 - `string`

1940 1960 

1941 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`1961 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

1942 1962 

1943 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`.1963 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`.

1944 1964 

1945 - `"1024x1024"`1965 - `"1024x1024"`

1946 1966 


2106 2126 

2107 - `Custom object { name, type, allowed_callers, 4 more }`2127 - `Custom object { name, type, allowed_callers, 4 more }`

2108 2128 

2109 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2129 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2110 2130 

2111 - `name: string`2131 - `name: string`

2112 2132 


2228 2248 

2229 - `Custom object { name, type, allowed_callers, 4 more }`2249 - `Custom object { name, type, allowed_callers, 4 more }`

2230 2250 

2231 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2251 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2232 2252 

2233 - `name: string`2253 - `name: string`

2234 2254 


2298 2318 

2299 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`2319 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

2300 2320 

2301 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).2321 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).

2302 2322 

2303 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`2323 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

2304 2324 


2414 2434 

2415 - `Function object { name, parameters, strict, 6 more }`2435 - `Function object { name, parameters, strict, 6 more }`

2416 2436 

2417 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).2437 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

2418 2438 

2419 - `name: string`2439 - `name: string`

2420 2440 


2458 2478 

2459 - `FileSearch object { type, vector_store_ids, filters, 2 more }`2479 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

2460 2480 

2461 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).2481 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

2462 2482 

2463 - `type: "file_search"`2483 - `type: "file_search"`

2464 2484 


2516 2536 

2517 - `Computer object { type }`2537 - `Computer object { type }`

2518 2538 

2519 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).2539 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

2520 2540 

2521 - `type: "computer"`2541 - `type: "computer"`

2522 2542 


2526 2546 

2527 - `ComputerUsePreview object { display_height, display_width, environment, type }`2547 - `ComputerUsePreview object { display_height, display_width, environment, type }`

2528 2548 

2529 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).2549 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

2530 2550 

2531 - `display_height: number`2551 - `display_height: number`

2532 2552 


2559 - `WebSearch object { type, external_web_access, filters, 2 more }`2579 - `WebSearch object { type, external_web_access, filters, 2 more }`

2560 2580 

2561 Search the Internet for sources related to the prompt. Learn more about the2581 Search the Internet for sources related to the prompt. Learn more about the

2562 [web search tool](/docs/guides/tools-web-search).2582 [web search tool](/api/docs/guides/tools-web-search).

2563 2583 

2564 - `type: "web_search" or "web_search_2025_08_26"`2584 - `type: "web_search" or "web_search_2025_08_26"`

2565 2585 


2623 - `Mcp object { server_label, type, allowed_callers, 9 more }`2643 - `Mcp object { server_label, type, allowed_callers, 9 more }`

2624 2644 

2625 Give the model access to additional tools via remote Model Context Protocol2645 Give the model access to additional tools via remote Model Context Protocol

2626 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).2646 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

2627 2647 

2628 - `server_label: string`2648 - `server_label: string`

2629 2649 


2675 2695 

2676 Identifier for service connectors, like those available in ChatGPT. One of2696 Identifier for service connectors, like those available in ChatGPT. One of

2677 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more2697 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

2678 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).2698 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

2679 2699 

2680 Currently supported `connector_id` values are:2700 Currently supported `connector_id` values are:

2681 2701 


2867 2887 

2868 - `background: optional "transparent" or "opaque" or "auto"`2888 - `background: optional "transparent" or "opaque" or "auto"`

2869 2889 

2870 Set the background of the generated image. One of `transparent`,2890 Set the background of the generated image. One of `transparent`, `opaque`,

2871 `opaque`, or `auto`. Transparent backgrounds are available for2891 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

2872 supported GPT Image models. For `gpt-image-2` and2892 their `2026-09-08` snapshots, support `opaque` and `transparent`

2873 `gpt-image-2-2026-04-21`, this support is in preview. When using2893 backgrounds. Transparent backgrounds are available for supported GPT Image

2874 `transparent`, set the output format to `png` or `webp`. Default: `auto`.2894 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

2895 preview. When using `transparent`, set the output format to `png` or `webp`.

2896 Default: `auto`.

2875 2897 

2876 - `"transparent"`2898 - `"transparent"`

2877 2899 


2900 2922 

2901 Base64-encoded mask image.2923 Base64-encoded mask image.

2902 2924 

2903 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2925 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2904 2926 

2905 The image generation model to use. One of `gpt-image-1`,2927 The image generation model to use. One of `gpt-image-1`,

2906 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2928 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2907 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2929 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2930 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2931 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2908 `gpt-image-1`.2932 `gpt-image-1`.

2909 2933 

2910 - `string`2934 - `string`

2911 2935 

2912 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2936 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2913 2937 

2914 The image generation model to use. One of `gpt-image-1`,2938 The image generation model to use. One of `gpt-image-1`,

2915 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2939 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2916 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2940 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2941 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2942 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2917 `gpt-image-1`.2943 `gpt-image-1`.

2918 2944 

2919 - `"gpt-image-1"`2945 - `"gpt-image-1"`


2926 2952 

2927 - `"gpt-image-2-2026-04-21"`2953 - `"gpt-image-2-2026-04-21"`

2928 2954 

2955 - `"gpt-image-2.5-sunburst"`

2956 

2957 - `"gpt-image-2.5-sunburst-2026-09-08"`

2958 

2959 - `"gpt-image-2.5-flare"`

2960 

2961 - `"gpt-image-2.5-flare-2026-09-08"`

2962 

2929 - `moderation: optional "auto" or "low"`2963 - `moderation: optional "auto" or "low"`

2930 2964 

2931 Moderation level for the generated image. Default: `auto`.2965 Moderation level for the generated image. Default: `auto`.


2953 2987 

2954 Number of partial images to generate in streaming mode, from 0 (default value) to 3.2988 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

2955 2989 

2956 - `quality: optional "low" or "medium" or "high" or "auto"`2990 - `quality: optional "low" or "medium" or "high" or 3 more`

2957 2991 

2958 The quality of the generated image. One of `low`, `medium`, `high`,2992 The quality of the generated image. The GPT image models support `low`,

2959 or `auto`. Default: `auto`.2993 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

2994 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

2995 Default: `auto`.

2960 2996 

2961 - `"low"`2997 - `"low"`

2962 2998 


2964 3000 

2965 - `"high"`3001 - `"high"`

2966 3002 

3003 - `"xhigh"`

3004 

3005 - `"max"`

3006 

2967 - `"auto"`3007 - `"auto"`

2968 3008 

2969 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`3009 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2970 3010 

2971 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`.3011 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`.

2972 3012 

2973 - `string`3013 - `string`

2974 3014 

2975 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`3015 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2976 3016 

2977 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`.3017 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`.

2978 3018 

2979 - `"1024x1024"`3019 - `"1024x1024"`

2980 3020 


3022 3062 

3023 - `Custom object { name, type, allowed_callers, 4 more }`3063 - `Custom object { name, type, allowed_callers, 4 more }`

3024 3064 

3025 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3065 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

3026 3066 

3027 - `name: string`3067 - `name: string`

3028 3068 


3112 3152 

3113 - `Custom object { name, type, allowed_callers, 4 more }`3153 - `Custom object { name, type, allowed_callers, 4 more }`

3114 3154 

3115 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3155 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

3116 3156 

3117 - `name: string`3157 - `name: string`

3118 3158 


3182 3222 

3183 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`3223 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

3184 3224 

3185 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).3225 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).

3186 3226 

3187 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`3227 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

3188 3228 


3306 A description of the chain of thought used by a reasoning model while generating3346 A description of the chain of thought used by a reasoning model while generating

3307 a response. Be sure to include these items in your `input` to the Responses API3347 a response. Be sure to include these items in your `input` to the Responses API

3308 for subsequent turns of a conversation if you are manually3348 for subsequent turns of a conversation if you are manually

3309 [managing context](/docs/guides/conversation-state).3349 [managing context](/api/docs/guides/conversation-state).

3310 3350 

3311 - `id: string`3351 - `id: string`

3312 3352 


3371 3411 

3372 - `Compaction object { encrypted_content, type, id }`3412 - `Compaction object { encrypted_content, type, id }`

3373 3413 

3374 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).3414 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).

3375 3415 

3376 - `encrypted_content: string`3416 - `encrypted_content: string`

3377 3417 


3387 3427 

3388 The ID of the compaction item.3428 The ID of the compaction item.

3389 3429 

3390 - `ImageGenerationCall object { id, result, status, type }`3430 - `ImageGenerationCall object { id, result, status, 3 more }`

3391 3431 

3392 An image generation request made by the model.3432 An image generation request made by the model.

3393 3433 


3417 3457 

3418 - `"image_generation_call"`3458 - `"image_generation_call"`

3419 3459 

3460 - `quality: optional "low" or "medium" or "high" or 3 more or null`

3461 

3462 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.

3463 

3464 - `"low"`

3465 

3466 - `"medium"`

3467 

3468 - `"high"`

3469 

3470 - `"xhigh"`

3471 

3472 - `"max"`

3473 

3474 - `"auto"`

3475 

3476 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`

3477 

3478 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

3479 

3480 - `string`

3481 

3482 - `"1024x1024" or "1024x1536" or "1536x1024"`

3483 

3484 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

3485 

3486 - `"1024x1024"`

3487 

3488 - `"1024x1536"`

3489 

3490 - `"1536x1024"`

3491 

3420 - `CodeInterpreterCall object { id, code, container_id, 3 more }`3492 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

3421 3493 

3422 A tool call to run code.3494 A tool call to run code.


4104 4176 

4105 - `ResponseInputImage object { detail, type, file_id, 2 more }`4177 - `ResponseInputImage object { detail, type, file_id, 2 more }`

4106 4178 

4107 An image input to the model. Learn about [image inputs](/docs/guides/vision).4179 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

4108 4180 

4109 - `ResponseInputFile object { type, detail, file_data, 4 more }`4181 - `ResponseInputFile object { type, detail, file_data, 4 more }`

4110 4182 


4288 4360 

4289- `max_output_tokens: optional number or null`4361- `max_output_tokens: optional number or null`

4290 4362 

4291 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).4363 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).

4292 4364 

4293- `max_tool_calls: optional number or null`4365- `max_tool_calls: optional number or null`

4294 4366 


4307 4379 

4308 Model ID used to generate the response, like `gpt-6-astra`. OpenAI4380 Model ID used to generate the response, like `gpt-6-astra`. OpenAI

4309 offers a wide range of models with different capabilities, performance4381 offers a wide range of models with different capabilities, performance

4310 characteristics, and price points. Refer to the [model guide](/docs/models)4382 characteristics, and price points. Refer to the [model guide](/api/docs/models)

4311 to browse and compare available models.4383 to browse and compare available models.

4312 4384 

4313 - `string`4385 - `string`


4562 4634 

4563 The unique ID of the previous response to the model. Use this to4635 The unique ID of the previous response to the model. Use this to

4564 create multi-turn conversations. Learn more about4636 create multi-turn conversations. Learn more about

4565 [conversation state](/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.4637 [conversation state](/api/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.

4566 4638 

4567- `prompt: optional ResponsePrompt or null`4639- `prompt: optional ResponsePrompt or null`

4568 4640 

4569 Reference to a prompt template and its variables.4641 Reference to a prompt template and its variables.

4570 [Learn more](/docs/guides/text?api-mode=responses#reusable-prompts).4642 [Learn more](/api/docs/guides/text?api-mode=responses#version-prompts-in-code).

4571 4643 

4572 - `id: string`4644 - `id: string`

4573 4645 


4587 4659 

4588 - `ResponseInputImage object { detail, type, file_id, 2 more }`4660 - `ResponseInputImage object { detail, type, file_id, 2 more }`

4589 4661 

4590 An image input to the model. Learn about [image inputs](/docs/guides/vision).4662 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

4591 4663 

4592 - `ResponseInputFile object { type, detail, file_data, 4 more }`4664 - `ResponseInputFile object { type, detail, file_data, 4 more }`

4593 4665 


4599 4671 

4600- `prompt_cache_key: optional string or null`4672- `prompt_cache_key: optional string or null`

4601 4673 

4602 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).4674 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).

4603 4675 

4604- `prompt_cache_options: optional object { comparison_response_id, mode, ttl }`4676- `prompt_cache_options: optional object { comparison_response_id, mode, ttl }`

4605 4677 

4606 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.4678 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.

4607 4679 

4608 - `comparison_response_id: optional string or null`4680 - `comparison_response_id: optional string or null`

4609 4681 


4627 4699 

4628 Deprecated. Use `prompt_cache_options.ttl` instead.4700 Deprecated. Use `prompt_cache_options.ttl` instead.

4629 4701 

4630 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).4702 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).

4631 This field expresses a maximum retention policy, while4703 This field expresses a maximum retention policy, while

4632 `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two4704 `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two

4633 fields are independent and do not interact.4705 fields are independent and do not interact.


4645- `reasoning: optional Reasoning or null`4717- `reasoning: optional Reasoning or null`

4646 4718 

4647 Configuration options for4719 Configuration options for

4648 [reasoning models](https://platform.openai.com/docs/guides/reasoning).4720 [reasoning models](/api/docs/guides/reasoning).

4649 4721 

4650 - `context: optional "auto" or "current_turn" or "all_turns" or null`4722 - `context: optional "auto" or "current_turn" or "all_turns" or null`

4651 4723 


4670 Reducing reasoning effort can result in faster responses and fewer tokens4742 Reducing reasoning effort can result in faster responses and fewer tokens

4671 used on reasoning in a response. Not all reasoning models support every4743 used on reasoning in a response. Not all reasoning models support every

4672 value. See the4744 value. See the

4673 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)4745 [reasoning guide](/api/docs/guides/reasoning)

4674 for model-specific support.4746 for model-specific support.

4675 4747 

4676 - `generate_summary: optional "auto" or "concise" or "detailed" or null`4748 - `generate_summary: optional "auto" or "concise" or "detailed" or null`


4722- `safety_identifier: optional string or null`4794- `safety_identifier: optional string or null`

4723 4795 

4724 A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.4796 A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.

4725 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).4797 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).

4726 4798 

4727- `service_tier: optional ServiceTier or null`4799- `service_tier: optional ServiceTier or null`

4728 4800 


4730 4802 

4731 - 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'.4803 - 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'.

4732 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.4804 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.

4733 - If set to '[flex](/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.4805 - If set to '[flex](/api/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.

4734 - 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.4806 - 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.

4735 - 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`.4807 - 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`.

4736 - When not set, the default behavior is 'auto'.4808 - When not set, the default behavior is 'auto'.


4762 4834 

4763 If set to true, the model response data will be streamed to the client4835 If set to true, the model response data will be streamed to the client

4764 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).4836 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).

4765 See the [Streaming section below](/docs/api-reference/responses-streaming)4837 See the [Streaming section below](/api/reference/resources/responses/streaming-events)

4766 for more information.4838 for more information.

4767 4839 

4768- `stream_options: optional object { include_obfuscation } or null`4840- `stream_options: optional object { include_obfuscation } or null`


4789 Configuration options for a text response from the model. Can be plain4861 Configuration options for a text response from the model. Can be plain

4790 text or structured JSON data. Learn more:4862 text or structured JSON data. Learn more:

4791 4863 

4792 - [Text inputs and outputs](/docs/guides/text)4864 - [Text inputs and outputs](/api/docs/guides/text)

4793 - [Structured Outputs](/docs/guides/structured-outputs)4865 - [Structured Outputs](/api/docs/guides/structured-outputs)

4794 4866 

4795 - `format: optional ResponseFormatTextConfig`4867 - `format: optional ResponseFormatTextConfig`

4796 4868 


4798 4870 

4799 Configuring `{ "type": "json_schema" }` enables Structured Outputs,4871 Configuring `{ "type": "json_schema" }` enables Structured Outputs,

4800 which ensures the model will match your supplied JSON schema. Learn more in the4872 which ensures the model will match your supplied JSON schema. Learn more in the

4801 [Structured Outputs guide](/docs/guides/structured-outputs).4873 [Structured Outputs guide](/api/docs/guides/structured-outputs).

4802 4874 

4803 The default format is `{ "type": "text" }` with no additional options.4875 The default format is `{ "type": "text" }` with no additional options.

4804 4876 


4821 - `ResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`4893 - `ResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`

4822 4894 

4823 JSON Schema response format. Used to generate structured JSON responses.4895 JSON Schema response format. Used to generate structured JSON responses.

4824 Learn more about [Structured Outputs](/docs/guides/structured-outputs).4896 Learn more about [Structured Outputs](/api/docs/guides/structured-outputs).

4825 4897 

4826 - `name: string`4898 - `name: string`

4827 4899 


4850 If set to true, the model will always follow the exact schema defined4922 If set to true, the model will always follow the exact schema defined

4851 in the `schema` field. Only a subset of JSON Schema is supported when4923 in the `schema` field. Only a subset of JSON Schema is supported when

4852 `strict` is `true`. To learn more, read the [Structured Outputs4924 `strict` is `true`. To learn more, read the [Structured Outputs

4853 guide](/docs/guides/structured-outputs).4925 guide](/api/docs/guides/structured-outputs).

4854 4926 

4855 - `ResponseFormatJSONObject object { type }`4927 - `ResponseFormatJSONObject object { type }`

4856 4928 


4941 - `ToolChoiceTypes object { type }`5013 - `ToolChoiceTypes object { type }`

4942 5014 

4943 Indicates that the model should use a built-in tool to generate a response.5015 Indicates that the model should use a built-in tool to generate a response.

4944 [Learn more about built-in tools](/docs/guides/tools).5016 [Learn more about built-in tools](/api/docs/guides/tools).

4945 5017 

4946 - `type: "file_search" or "web_search_preview" or "computer" or 5 more`5018 - `type: "file_search" or "web_search_preview" or "computer" or 5 more`

4947 5019 

4948 The type of hosted tool the model should to use. Learn more about5020 The type of hosted tool the model should to use. Learn more about

4949 [built-in tools](/docs/guides/tools).5021 [built-in tools](/api/docs/guides/tools).

4950 5022 

4951 Allowed values are:5023 Allowed values are:

4952 5024 


5056 We support the following categories of tools:5128 We support the following categories of tools:

5057 5129 

5058 - **Built-in tools**: Tools that are provided by OpenAI that extend the5130 - **Built-in tools**: Tools that are provided by OpenAI that extend the

5059 model's capabilities, like [web search](/docs/guides/tools-web-search)5131 model's capabilities, like [web search](/api/docs/guides/tools-web-search)

5060 or [file search](/docs/guides/tools-file-search). Learn more about5132 or [file search](/api/docs/guides/tools-file-search). Learn more about

5061 [built-in tools](/docs/guides/tools).5133 [built-in tools](/api/docs/guides/tools).

5062 - **MCP Tools**: Integrations with third-party systems via custom MCP servers5134 - **MCP Tools**: Integrations with third-party systems via custom MCP servers

5063 or predefined connectors such as Google Drive and SharePoint. Learn more about5135 or predefined connectors such as Google Drive and SharePoint. Learn more about

5064 [MCP Tools](/docs/guides/tools-connectors-mcp).5136 [MCP Tools](/api/docs/guides/tools-connectors-mcp).

5065 - **Function calls (custom tools)**: Functions that are defined by you,5137 - **Function calls (custom tools)**: Functions that are defined by you,

5066 enabling the model to call your own code with strongly typed arguments5138 enabling the model to call your own code with strongly typed arguments

5067 and outputs. Learn more about5139 and outputs. Learn more about

5068 [function calling](/docs/guides/function-calling). You can also use5140 [function calling](/api/docs/guides/function-calling). You can also use

5069 custom tools to call your own code.5141 custom tools to call your own code.

5070 5142 

5071 - `Function object { name, parameters, strict, 6 more }`5143 - `Function object { name, parameters, strict, 6 more }`

5072 5144 

5073 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).5145 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

5074 5146 

5075 - `name: string`5147 - `name: string`

5076 5148 


5114 5186 

5115 - `FileSearch object { type, vector_store_ids, filters, 2 more }`5187 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

5116 5188 

5117 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).5189 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

5118 5190 

5119 - `type: "file_search"`5191 - `type: "file_search"`

5120 5192 


5172 5244 

5173 - `Computer object { type }`5245 - `Computer object { type }`

5174 5246 

5175 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).5247 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

5176 5248 

5177 - `type: "computer"`5249 - `type: "computer"`

5178 5250 


5182 5254 

5183 - `ComputerUsePreview object { display_height, display_width, environment, type }`5255 - `ComputerUsePreview object { display_height, display_width, environment, type }`

5184 5256 

5185 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).5257 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

5186 5258 

5187 - `display_height: number`5259 - `display_height: number`

5188 5260 


5215 - `WebSearch object { type, external_web_access, filters, 2 more }`5287 - `WebSearch object { type, external_web_access, filters, 2 more }`

5216 5288 

5217 Search the Internet for sources related to the prompt. Learn more about the5289 Search the Internet for sources related to the prompt. Learn more about the

5218 [web search tool](/docs/guides/tools-web-search).5290 [web search tool](/api/docs/guides/tools-web-search).

5219 5291 

5220 - `type: "web_search" or "web_search_2025_08_26"`5292 - `type: "web_search" or "web_search_2025_08_26"`

5221 5293 


5279 - `Mcp object { server_label, type, allowed_callers, 9 more }`5351 - `Mcp object { server_label, type, allowed_callers, 9 more }`

5280 5352 

5281 Give the model access to additional tools via remote Model Context Protocol5353 Give the model access to additional tools via remote Model Context Protocol

5282 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).5354 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

5283 5355 

5284 - `server_label: string`5356 - `server_label: string`

5285 5357 


5331 5403 

5332 Identifier for service connectors, like those available in ChatGPT. One of5404 Identifier for service connectors, like those available in ChatGPT. One of

5333 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more5405 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

5334 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).5406 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

5335 5407 

5336 Currently supported `connector_id` values are:5408 Currently supported `connector_id` values are:

5337 5409 


5523 5595 

5524 - `background: optional "transparent" or "opaque" or "auto"`5596 - `background: optional "transparent" or "opaque" or "auto"`

5525 5597 

5526 Set the background of the generated image. One of `transparent`,5598 Set the background of the generated image. One of `transparent`, `opaque`,

5527 `opaque`, or `auto`. Transparent backgrounds are available for5599 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

5528 supported GPT Image models. For `gpt-image-2` and5600 their `2026-09-08` snapshots, support `opaque` and `transparent`

5529 `gpt-image-2-2026-04-21`, this support is in preview. When using5601 backgrounds. Transparent backgrounds are available for supported GPT Image

5530 `transparent`, set the output format to `png` or `webp`. Default: `auto`.5602 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

5603 preview. When using `transparent`, set the output format to `png` or `webp`.

5604 Default: `auto`.

5531 5605 

5532 - `"transparent"`5606 - `"transparent"`

5533 5607 


5556 5630 

5557 Base64-encoded mask image.5631 Base64-encoded mask image.

5558 5632 

5559 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`5633 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

5560 5634 

5561 The image generation model to use. One of `gpt-image-1`,5635 The image generation model to use. One of `gpt-image-1`,

5562 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,5636 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

5563 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:5637 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

5638 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

5639 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

5564 `gpt-image-1`.5640 `gpt-image-1`.

5565 5641 

5566 - `string`5642 - `string`

5567 5643 

5568 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`5644 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

5569 5645 

5570 The image generation model to use. One of `gpt-image-1`,5646 The image generation model to use. One of `gpt-image-1`,

5571 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,5647 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

5572 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:5648 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

5649 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

5650 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

5573 `gpt-image-1`.5651 `gpt-image-1`.

5574 5652 

5575 - `"gpt-image-1"`5653 - `"gpt-image-1"`


5582 5660 

5583 - `"gpt-image-2-2026-04-21"`5661 - `"gpt-image-2-2026-04-21"`

5584 5662 

5663 - `"gpt-image-2.5-sunburst"`

5664 

5665 - `"gpt-image-2.5-sunburst-2026-09-08"`

5666 

5667 - `"gpt-image-2.5-flare"`

5668 

5669 - `"gpt-image-2.5-flare-2026-09-08"`

5670 

5585 - `moderation: optional "auto" or "low"`5671 - `moderation: optional "auto" or "low"`

5586 5672 

5587 Moderation level for the generated image. Default: `auto`.5673 Moderation level for the generated image. Default: `auto`.


5609 5695 

5610 Number of partial images to generate in streaming mode, from 0 (default value) to 3.5696 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

5611 5697 

5612 - `quality: optional "low" or "medium" or "high" or "auto"`5698 - `quality: optional "low" or "medium" or "high" or 3 more`

5613 5699 

5614 The quality of the generated image. One of `low`, `medium`, `high`,5700 The quality of the generated image. The GPT image models support `low`,

5615 or `auto`. Default: `auto`.5701 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

5702 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

5703 Default: `auto`.

5616 5704 

5617 - `"low"`5705 - `"low"`

5618 5706 


5620 5708 

5621 - `"high"`5709 - `"high"`

5622 5710 

5711 - `"xhigh"`

5712 

5713 - `"max"`

5714 

5623 - `"auto"`5715 - `"auto"`

5624 5716 

5625 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`5717 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

5626 5718 

5627 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`.5719 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`.

5628 5720 

5629 - `string`5721 - `string`

5630 5722 

5631 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`5723 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

5632 5724 

5633 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`.5725 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`.

5634 5726 

5635 - `"1024x1024"`5727 - `"1024x1024"`

5636 5728 


5678 5770 

5679 - `Custom object { name, type, allowed_callers, 4 more }`5771 - `Custom object { name, type, allowed_callers, 4 more }`

5680 5772 

5681 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)5773 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

5682 5774 

5683 - `name: string`5775 - `name: string`

5684 5776 


5768 5860 

5769 - `Custom object { name, type, allowed_callers, 4 more }`5861 - `Custom object { name, type, allowed_callers, 4 more }`

5770 5862 

5771 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)5863 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

5772 5864 

5773 - `name: string`5865 - `name: string`

5774 5866 


5838 5930 

5839 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`5931 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

5840 5932 

5841 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).5933 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).

5842 5934 

5843 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`5935 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

5844 5936 


5942 6034 

5943 This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.6035 This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.

5944 A stable identifier for your end-users.6036 A stable identifier for your end-users.

5945 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).6037 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).

5946 6038 

5947### Returns6039### Returns

5948 6040 


6127 6219 

6128 - `ResponseInputImage object { detail, type, file_id, 2 more }`6220 - `ResponseInputImage object { detail, type, file_id, 2 more }`

6129 6221 

6130 An image input to the model. Learn about [image inputs](/docs/guides/vision).6222 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

6131 6223 

6132 - `detail: ImageDetail`6224 - `detail: ImageDetail`

6133 6225 


6470 - `FileSearchCall object { id, queries, status, 2 more }`6562 - `FileSearchCall object { id, queries, status, 2 more }`

6471 6563 

6472 The results of a file search tool call. See the6564 The results of a file search tool call. See the

6473 [file search guide](/docs/guides/tools-file-search) for more information.6565 [file search guide](/api/docs/guides/tools-file-search) for more information.

6474 6566 

6475 - `id: string`6567 - `id: string`

6476 6568 


6538 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`6630 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`

6539 6631 

6540 A tool call to a computer use tool. See the6632 A tool call to a computer use tool. See the

6541 [computer use guide](/docs/guides/tools-computer-use) for more information.6633 [computer use guide](/api/docs/guides/tools-computer-use) for more information.

6542 6634 

6543 - `id: string`6635 - `id: string`

6544 6636 


6883 - `WebSearchCall object { id, action, status, type }`6975 - `WebSearchCall object { id, action, status, type }`

6884 6976 

6885 The results of a web search tool call. See the6977 The results of a web search tool call. See the

6886 [web search guide](/docs/guides/tools-web-search) for more information.6978 [web search guide](/api/docs/guides/tools-web-search) for more information.

6887 6979 

6888 - `id: string`6980 - `id: string`

6889 6981 


6981 - `FunctionCall object { arguments, call_id, name, 6 more }`7073 - `FunctionCall object { arguments, call_id, name, 6 more }`

6982 7074 

6983 A tool call to run a function. See the7075 A tool call to run a function. See the

6984 [function calling guide](/docs/guides/function-calling) for more information.7076 [function calling guide](/api/docs/guides/function-calling) for more information.

6985 7077 

6986 - `arguments: string`7078 - `arguments: string`

6987 7079 


7086 7178 

7087 - `ResponseInputImageContent object { type, detail, file_id, 2 more }`7179 - `ResponseInputImageContent object { type, detail, file_id, 2 more }`

7088 7180 

7089 An image input to the model. Learn about [image inputs](/docs/guides/vision)7181 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision)

7090 7182 

7091 - `type: "input_image"`7183 - `type: "input_image"`

7092 7184 


7264 7356 

7265 - `Function object { name, parameters, strict, 6 more }`7357 - `Function object { name, parameters, strict, 6 more }`

7266 7358 

7267 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).7359 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

7268 7360 

7269 - `name: string`7361 - `name: string`

7270 7362 


7308 7400 

7309 - `FileSearch object { type, vector_store_ids, filters, 2 more }`7401 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

7310 7402 

7311 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).7403 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

7312 7404 

7313 - `type: "file_search"`7405 - `type: "file_search"`

7314 7406 


7433 7525 

7434 - `Computer object { type }`7526 - `Computer object { type }`

7435 7527 

7436 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).7528 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

7437 7529 

7438 - `type: "computer"`7530 - `type: "computer"`

7439 7531 


7443 7535 

7444 - `ComputerUsePreview object { display_height, display_width, environment, type }`7536 - `ComputerUsePreview object { display_height, display_width, environment, type }`

7445 7537 

7446 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).7538 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

7447 7539 

7448 - `display_height: number`7540 - `display_height: number`

7449 7541 


7476 - `WebSearch object { type, external_web_access, filters, 2 more }`7568 - `WebSearch object { type, external_web_access, filters, 2 more }`

7477 7569 

7478 Search the Internet for sources related to the prompt. Learn more about the7570 Search the Internet for sources related to the prompt. Learn more about the

7479 [web search tool](/docs/guides/tools-web-search).7571 [web search tool](/api/docs/guides/tools-web-search).

7480 7572 

7481 - `type: "web_search" or "web_search_2025_08_26"`7573 - `type: "web_search" or "web_search_2025_08_26"`

7482 7574 


7540 - `Mcp object { server_label, type, allowed_callers, 9 more }`7632 - `Mcp object { server_label, type, allowed_callers, 9 more }`

7541 7633 

7542 Give the model access to additional tools via remote Model Context Protocol7634 Give the model access to additional tools via remote Model Context Protocol

7543 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).7635 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

7544 7636 

7545 - `server_label: string`7637 - `server_label: string`

7546 7638 


7592 7684 

7593 Identifier for service connectors, like those available in ChatGPT. One of7685 Identifier for service connectors, like those available in ChatGPT. One of

7594 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more7686 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

7595 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).7687 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

7596 7688 

7597 Currently supported `connector_id` values are:7689 Currently supported `connector_id` values are:

7598 7690 


7816 7908 

7817 - `background: optional "transparent" or "opaque" or "auto"`7909 - `background: optional "transparent" or "opaque" or "auto"`

7818 7910 

7819 Set the background of the generated image. One of `transparent`,7911 Set the background of the generated image. One of `transparent`, `opaque`,

7820 `opaque`, or `auto`. Transparent backgrounds are available for7912 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

7821 supported GPT Image models. For `gpt-image-2` and7913 their `2026-09-08` snapshots, support `opaque` and `transparent`

7822 `gpt-image-2-2026-04-21`, this support is in preview. When using7914 backgrounds. Transparent backgrounds are available for supported GPT Image

7823 `transparent`, set the output format to `png` or `webp`. Default: `auto`.7915 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

7916 preview. When using `transparent`, set the output format to `png` or `webp`.

7917 Default: `auto`.

7824 7918 

7825 - `"transparent"`7919 - `"transparent"`

7826 7920 


7849 7943 

7850 Base64-encoded mask image.7944 Base64-encoded mask image.

7851 7945 

7852 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`7946 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

7853 7947 

7854 The image generation model to use. One of `gpt-image-1`,7948 The image generation model to use. One of `gpt-image-1`,

7855 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,7949 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

7856 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:7950 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

7951 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

7952 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

7857 `gpt-image-1`.7953 `gpt-image-1`.

7858 7954 

7859 - `string`7955 - `string`

7860 7956 

7861 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`7957 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

7862 7958 

7863 The image generation model to use. One of `gpt-image-1`,7959 The image generation model to use. One of `gpt-image-1`,

7864 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,7960 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

7865 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:7961 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

7962 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

7963 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

7866 `gpt-image-1`.7964 `gpt-image-1`.

7867 7965 

7868 - `"gpt-image-1"`7966 - `"gpt-image-1"`


7875 7973 

7876 - `"gpt-image-2-2026-04-21"`7974 - `"gpt-image-2-2026-04-21"`

7877 7975 

7976 - `"gpt-image-2.5-sunburst"`

7977 

7978 - `"gpt-image-2.5-sunburst-2026-09-08"`

7979 

7980 - `"gpt-image-2.5-flare"`

7981 

7982 - `"gpt-image-2.5-flare-2026-09-08"`

7983 

7878 - `moderation: optional "auto" or "low"`7984 - `moderation: optional "auto" or "low"`

7879 7985 

7880 Moderation level for the generated image. Default: `auto`.7986 Moderation level for the generated image. Default: `auto`.


7902 8008 

7903 Number of partial images to generate in streaming mode, from 0 (default value) to 3.8009 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

7904 8010 

7905 - `quality: optional "low" or "medium" or "high" or "auto"`8011 - `quality: optional "low" or "medium" or "high" or 3 more`

7906 8012 

7907 The quality of the generated image. One of `low`, `medium`, `high`,8013 The quality of the generated image. The GPT image models support `low`,

7908 or `auto`. Default: `auto`.8014 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

8015 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

8016 Default: `auto`.

7909 8017 

7910 - `"low"`8018 - `"low"`

7911 8019 


7913 8021 

7914 - `"high"`8022 - `"high"`

7915 8023 

8024 - `"xhigh"`

8025 

8026 - `"max"`

8027 

7916 - `"auto"`8028 - `"auto"`

7917 8029 

7918 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`8030 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

7919 8031 

7920 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`.8032 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`.

7921 8033 

7922 - `string`8034 - `string`

7923 8035 

7924 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`8036 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

7925 8037 

7926 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`.8038 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`.

7927 8039 

7928 - `"1024x1024"`8040 - `"1024x1024"`

7929 8041 


8089 8201 

8090 - `Custom object { name, type, allowed_callers, 4 more }`8202 - `Custom object { name, type, allowed_callers, 4 more }`

8091 8203 

8092 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)8204 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

8093 8205 

8094 - `name: string`8206 - `name: string`

8095 8207 


8211 8323 

8212 - `Custom object { name, type, allowed_callers, 4 more }`8324 - `Custom object { name, type, allowed_callers, 4 more }`

8213 8325 

8214 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)8326 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

8215 8327 

8216 - `name: string`8328 - `name: string`

8217 8329 


8281 8393 

8282 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`8394 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

8283 8395 

8284 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).8396 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).

8285 8397 

8286 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`8398 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

8287 8399 


8397 8509 

8398 - `Function object { name, parameters, strict, 6 more }`8510 - `Function object { name, parameters, strict, 6 more }`

8399 8511 

8400 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).8512 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

8401 8513 

8402 - `name: string`8514 - `name: string`

8403 8515 


8441 8553 

8442 - `FileSearch object { type, vector_store_ids, filters, 2 more }`8554 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

8443 8555 

8444 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).8556 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

8445 8557 

8446 - `type: "file_search"`8558 - `type: "file_search"`

8447 8559 


8499 8611 

8500 - `Computer object { type }`8612 - `Computer object { type }`

8501 8613 

8502 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).8614 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

8503 8615 

8504 - `type: "computer"`8616 - `type: "computer"`

8505 8617 


8509 8621 

8510 - `ComputerUsePreview object { display_height, display_width, environment, type }`8622 - `ComputerUsePreview object { display_height, display_width, environment, type }`

8511 8623 

8512 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).8624 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

8513 8625 

8514 - `display_height: number`8626 - `display_height: number`

8515 8627 


8542 - `WebSearch object { type, external_web_access, filters, 2 more }`8654 - `WebSearch object { type, external_web_access, filters, 2 more }`

8543 8655 

8544 Search the Internet for sources related to the prompt. Learn more about the8656 Search the Internet for sources related to the prompt. Learn more about the

8545 [web search tool](/docs/guides/tools-web-search).8657 [web search tool](/api/docs/guides/tools-web-search).

8546 8658 

8547 - `type: "web_search" or "web_search_2025_08_26"`8659 - `type: "web_search" or "web_search_2025_08_26"`

8548 8660 


8606 - `Mcp object { server_label, type, allowed_callers, 9 more }`8718 - `Mcp object { server_label, type, allowed_callers, 9 more }`

8607 8719 

8608 Give the model access to additional tools via remote Model Context Protocol8720 Give the model access to additional tools via remote Model Context Protocol

8609 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).8721 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

8610 8722 

8611 - `server_label: string`8723 - `server_label: string`

8612 8724 


8658 8770 

8659 Identifier for service connectors, like those available in ChatGPT. One of8771 Identifier for service connectors, like those available in ChatGPT. One of

8660 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more8772 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

8661 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).8773 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

8662 8774 

8663 Currently supported `connector_id` values are:8775 Currently supported `connector_id` values are:

8664 8776 


8850 8962 

8851 - `background: optional "transparent" or "opaque" or "auto"`8963 - `background: optional "transparent" or "opaque" or "auto"`

8852 8964 

8853 Set the background of the generated image. One of `transparent`,8965 Set the background of the generated image. One of `transparent`, `opaque`,

8854 `opaque`, or `auto`. Transparent backgrounds are available for8966 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

8855 supported GPT Image models. For `gpt-image-2` and8967 their `2026-09-08` snapshots, support `opaque` and `transparent`

8856 `gpt-image-2-2026-04-21`, this support is in preview. When using8968 backgrounds. Transparent backgrounds are available for supported GPT Image

8857 `transparent`, set the output format to `png` or `webp`. Default: `auto`.8969 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

8970 preview. When using `transparent`, set the output format to `png` or `webp`.

8971 Default: `auto`.

8858 8972 

8859 - `"transparent"`8973 - `"transparent"`

8860 8974 


8883 8997 

8884 Base64-encoded mask image.8998 Base64-encoded mask image.

8885 8999 

8886 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`9000 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

8887 9001 

8888 The image generation model to use. One of `gpt-image-1`,9002 The image generation model to use. One of `gpt-image-1`,

8889 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,9003 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

8890 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:9004 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

9005 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

9006 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

8891 `gpt-image-1`.9007 `gpt-image-1`.

8892 9008 

8893 - `string`9009 - `string`

8894 9010 

8895 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`9011 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

8896 9012 

8897 The image generation model to use. One of `gpt-image-1`,9013 The image generation model to use. One of `gpt-image-1`,

8898 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,9014 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

8899 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:9015 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

9016 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

9017 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

8900 `gpt-image-1`.9018 `gpt-image-1`.

8901 9019 

8902 - `"gpt-image-1"`9020 - `"gpt-image-1"`


8909 9027 

8910 - `"gpt-image-2-2026-04-21"`9028 - `"gpt-image-2-2026-04-21"`

8911 9029 

9030 - `"gpt-image-2.5-sunburst"`

9031 

9032 - `"gpt-image-2.5-sunburst-2026-09-08"`

9033 

9034 - `"gpt-image-2.5-flare"`

9035 

9036 - `"gpt-image-2.5-flare-2026-09-08"`

9037 

8912 - `moderation: optional "auto" or "low"`9038 - `moderation: optional "auto" or "low"`

8913 9039 

8914 Moderation level for the generated image. Default: `auto`.9040 Moderation level for the generated image. Default: `auto`.


8936 9062 

8937 Number of partial images to generate in streaming mode, from 0 (default value) to 3.9063 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

8938 9064 

8939 - `quality: optional "low" or "medium" or "high" or "auto"`9065 - `quality: optional "low" or "medium" or "high" or 3 more`

8940 9066 

8941 The quality of the generated image. One of `low`, `medium`, `high`,9067 The quality of the generated image. The GPT image models support `low`,

8942 or `auto`. Default: `auto`.9068 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

9069 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

9070 Default: `auto`.

8943 9071 

8944 - `"low"`9072 - `"low"`

8945 9073 


8947 9075 

8948 - `"high"`9076 - `"high"`

8949 9077 

9078 - `"xhigh"`

9079 

9080 - `"max"`

9081 

8950 - `"auto"`9082 - `"auto"`

8951 9083 

8952 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`9084 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

8953 9085 

8954 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`.9086 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`.

8955 9087 

8956 - `string`9088 - `string`

8957 9089 

8958 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`9090 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

8959 9091 

8960 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`.9092 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`.

8961 9093 

8962 - `"1024x1024"`9094 - `"1024x1024"`

8963 9095 


9005 9137 

9006 - `Custom object { name, type, allowed_callers, 4 more }`9138 - `Custom object { name, type, allowed_callers, 4 more }`

9007 9139 

9008 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)9140 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

9009 9141 

9010 - `name: string`9142 - `name: string`

9011 9143 


9095 9227 

9096 - `Custom object { name, type, allowed_callers, 4 more }`9228 - `Custom object { name, type, allowed_callers, 4 more }`

9097 9229 

9098 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)9230 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

9099 9231 

9100 - `name: string`9232 - `name: string`

9101 9233 


9165 9297 

9166 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`9298 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

9167 9299 

9168 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).9300 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).

9169 9301 

9170 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`9302 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

9171 9303 


9289 A description of the chain of thought used by a reasoning model while generating9421 A description of the chain of thought used by a reasoning model while generating

9290 a response. Be sure to include these items in your `input` to the Responses API9422 a response. Be sure to include these items in your `input` to the Responses API

9291 for subsequent turns of a conversation if you are manually9423 for subsequent turns of a conversation if you are manually

9292 [managing context](/docs/guides/conversation-state).9424 [managing context](/api/docs/guides/conversation-state).

9293 9425 

9294 - `id: string`9426 - `id: string`

9295 9427 


9354 9486 

9355 - `Compaction object { encrypted_content, type, id }`9487 - `Compaction object { encrypted_content, type, id }`

9356 9488 

9357 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).9489 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).

9358 9490 

9359 - `encrypted_content: string`9491 - `encrypted_content: string`

9360 9492 


9370 9502 

9371 The ID of the compaction item.9503 The ID of the compaction item.

9372 9504 

9373 - `ImageGenerationCall object { id, result, status, type }`9505 - `ImageGenerationCall object { id, result, status, 3 more }`

9374 9506 

9375 An image generation request made by the model.9507 An image generation request made by the model.

9376 9508 


9400 9532 

9401 - `"image_generation_call"`9533 - `"image_generation_call"`

9402 9534 

9535 - `quality: optional "low" or "medium" or "high" or 3 more or null`

9536 

9537 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.

9538 

9539 - `"low"`

9540 

9541 - `"medium"`

9542 

9543 - `"high"`

9544 

9545 - `"xhigh"`

9546 

9547 - `"max"`

9548 

9549 - `"auto"`

9550 

9551 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`

9552 

9553 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

9554 

9555 - `string`

9556 

9557 - `"1024x1024" or "1024x1536" or "1536x1024"`

9558 

9559 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

9560 

9561 - `"1024x1024"`

9562 

9563 - `"1024x1536"`

9564 

9565 - `"1536x1024"`

9566 

9403 - `CodeInterpreterCall object { id, code, container_id, 3 more }`9567 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

9404 9568 

9405 A tool call to run code.9569 A tool call to run code.


10087 10251 

10088 - `ResponseInputImage object { detail, type, file_id, 2 more }`10252 - `ResponseInputImage object { detail, type, file_id, 2 more }`

10089 10253 

10090 An image input to the model. Learn about [image inputs](/docs/guides/vision).10254 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

10091 10255 

10092 - `ResponseInputFile object { type, detail, file_data, 4 more }`10256 - `ResponseInputFile object { type, detail, file_data, 4 more }`

10093 10257 


10274 10438 

10275 Model ID used to generate the response, like `gpt-6-astra`. OpenAI10439 Model ID used to generate the response, like `gpt-6-astra`. OpenAI

10276 offers a wide range of models with different capabilities, performance10440 offers a wide range of models with different capabilities, performance

10277 characteristics, and price points. Refer to the [model guide](/docs/models)10441 characteristics, and price points. Refer to the [model guide](/api/docs/models)

10278 to browse and compare available models.10442 to browse and compare available models.

10279 10443 

10280 - `string`10444 - `string`


10513 - `FileSearchCall object { id, queries, status, 2 more }`10677 - `FileSearchCall object { id, queries, status, 2 more }`

10514 10678 

10515 The results of a file search tool call. See the10679 The results of a file search tool call. See the

10516 [file search guide](/docs/guides/tools-file-search) for more information.10680 [file search guide](/api/docs/guides/tools-file-search) for more information.

10517 10681 

10518 - `id: string`10682 - `id: string`

10519 10683 


10581 - `FunctionCall object { arguments, call_id, name, 6 more }`10745 - `FunctionCall object { arguments, call_id, name, 6 more }`

10582 10746 

10583 A tool call to run a function. See the10747 A tool call to run a function. See the

10584 [function calling guide](/docs/guides/function-calling) for more information.10748 [function calling guide](/api/docs/guides/function-calling) for more information.

10585 10749 

10586 - `arguments: string`10750 - `arguments: string`

10587 10751 


10669 10833 

10670 - `ResponseInputImage object { detail, type, file_id, 2 more }`10834 - `ResponseInputImage object { detail, type, file_id, 2 more }`

10671 10835 

10672 An image input to the model. Learn about [image inputs](/docs/guides/vision).10836 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

10673 10837 

10674 - `ResponseInputFile object { type, detail, file_data, 4 more }`10838 - `ResponseInputFile object { type, detail, file_data, 4 more }`

10675 10839 


10735 - `WebSearchCall object { id, action, status, type }`10899 - `WebSearchCall object { id, action, status, type }`

10736 10900 

10737 The results of a web search tool call. See the10901 The results of a web search tool call. See the

10738 [web search guide](/docs/guides/tools-web-search) for more information.10902 [web search guide](/api/docs/guides/tools-web-search) for more information.

10739 10903 

10740 - `id: string`10904 - `id: string`

10741 10905 


10833 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`10997 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`

10834 10998 

10835 A tool call to a computer use tool. See the10999 A tool call to a computer use tool. See the

10836 [computer use guide](/docs/guides/tools-computer-use) for more information.11000 [computer use guide](/api/docs/guides/tools-computer-use) for more information.

10837 11001 

10838 - `id: string`11002 - `id: string`

10839 11003 


10944 A description of the chain of thought used by a reasoning model while generating11108 A description of the chain of thought used by a reasoning model while generating

10945 a response. Be sure to include these items in your `input` to the Responses API11109 a response. Be sure to include these items in your `input` to the Responses API

10946 for subsequent turns of a conversation if you are manually11110 for subsequent turns of a conversation if you are manually

10947 [managing context](/docs/guides/conversation-state).11111 [managing context](/api/docs/guides/conversation-state).

10948 11112 

10949 - `id: string`11113 - `id: string`

10950 11114 


11133 11297 

11134 - `Function object { name, parameters, strict, 6 more }`11298 - `Function object { name, parameters, strict, 6 more }`

11135 11299 

11136 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).11300 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

11137 11301 

11138 - `name: string`11302 - `name: string`

11139 11303 


11177 11341 

11178 - `FileSearch object { type, vector_store_ids, filters, 2 more }`11342 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

11179 11343 

11180 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).11344 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

11181 11345 

11182 - `type: "file_search"`11346 - `type: "file_search"`

11183 11347 


11235 11399 

11236 - `Computer object { type }`11400 - `Computer object { type }`

11237 11401 

11238 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).11402 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

11239 11403 

11240 - `type: "computer"`11404 - `type: "computer"`

11241 11405 


11245 11409 

11246 - `ComputerUsePreview object { display_height, display_width, environment, type }`11410 - `ComputerUsePreview object { display_height, display_width, environment, type }`

11247 11411 

11248 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).11412 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

11249 11413 

11250 - `display_height: number`11414 - `display_height: number`

11251 11415 


11278 - `WebSearch object { type, external_web_access, filters, 2 more }`11442 - `WebSearch object { type, external_web_access, filters, 2 more }`

11279 11443 

11280 Search the Internet for sources related to the prompt. Learn more about the11444 Search the Internet for sources related to the prompt. Learn more about the

11281 [web search tool](/docs/guides/tools-web-search).11445 [web search tool](/api/docs/guides/tools-web-search).

11282 11446 

11283 - `type: "web_search" or "web_search_2025_08_26"`11447 - `type: "web_search" or "web_search_2025_08_26"`

11284 11448 


11342 - `Mcp object { server_label, type, allowed_callers, 9 more }`11506 - `Mcp object { server_label, type, allowed_callers, 9 more }`

11343 11507 

11344 Give the model access to additional tools via remote Model Context Protocol11508 Give the model access to additional tools via remote Model Context Protocol

11345 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).11509 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

11346 11510 

11347 - `server_label: string`11511 - `server_label: string`

11348 11512 


11394 11558 

11395 Identifier for service connectors, like those available in ChatGPT. One of11559 Identifier for service connectors, like those available in ChatGPT. One of

11396 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more11560 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

11397 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).11561 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

11398 11562 

11399 Currently supported `connector_id` values are:11563 Currently supported `connector_id` values are:

11400 11564 


11586 11750 

11587 - `background: optional "transparent" or "opaque" or "auto"`11751 - `background: optional "transparent" or "opaque" or "auto"`

11588 11752 

11589 Set the background of the generated image. One of `transparent`,11753 Set the background of the generated image. One of `transparent`, `opaque`,

11590 `opaque`, or `auto`. Transparent backgrounds are available for11754 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

11591 supported GPT Image models. For `gpt-image-2` and11755 their `2026-09-08` snapshots, support `opaque` and `transparent`

11592 `gpt-image-2-2026-04-21`, this support is in preview. When using11756 backgrounds. Transparent backgrounds are available for supported GPT Image

11593 `transparent`, set the output format to `png` or `webp`. Default: `auto`.11757 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

11758 preview. When using `transparent`, set the output format to `png` or `webp`.

11759 Default: `auto`.

11594 11760 

11595 - `"transparent"`11761 - `"transparent"`

11596 11762 


11619 11785 

11620 Base64-encoded mask image.11786 Base64-encoded mask image.

11621 11787 

11622 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`11788 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

11623 11789 

11624 The image generation model to use. One of `gpt-image-1`,11790 The image generation model to use. One of `gpt-image-1`,

11625 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,11791 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

11626 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:11792 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

11793 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

11794 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

11627 `gpt-image-1`.11795 `gpt-image-1`.

11628 11796 

11629 - `string`11797 - `string`

11630 11798 

11631 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`11799 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

11632 11800 

11633 The image generation model to use. One of `gpt-image-1`,11801 The image generation model to use. One of `gpt-image-1`,

11634 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,11802 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

11635 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:11803 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

11804 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

11805 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

11636 `gpt-image-1`.11806 `gpt-image-1`.

11637 11807 

11638 - `"gpt-image-1"`11808 - `"gpt-image-1"`


11645 11815 

11646 - `"gpt-image-2-2026-04-21"`11816 - `"gpt-image-2-2026-04-21"`

11647 11817 

11818 - `"gpt-image-2.5-sunburst"`

11819 

11820 - `"gpt-image-2.5-sunburst-2026-09-08"`

11821 

11822 - `"gpt-image-2.5-flare"`

11823 

11824 - `"gpt-image-2.5-flare-2026-09-08"`

11825 

11648 - `moderation: optional "auto" or "low"`11826 - `moderation: optional "auto" or "low"`

11649 11827 

11650 Moderation level for the generated image. Default: `auto`.11828 Moderation level for the generated image. Default: `auto`.


11672 11850 

11673 Number of partial images to generate in streaming mode, from 0 (default value) to 3.11851 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

11674 11852 

11675 - `quality: optional "low" or "medium" or "high" or "auto"`11853 - `quality: optional "low" or "medium" or "high" or 3 more`

11676 11854 

11677 The quality of the generated image. One of `low`, `medium`, `high`,11855 The quality of the generated image. The GPT image models support `low`,

11678 or `auto`. Default: `auto`.11856 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

11857 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

11858 Default: `auto`.

11679 11859 

11680 - `"low"`11860 - `"low"`

11681 11861 


11683 11863 

11684 - `"high"`11864 - `"high"`

11685 11865 

11866 - `"xhigh"`

11867 

11868 - `"max"`

11869 

11686 - `"auto"`11870 - `"auto"`

11687 11871 

11688 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`11872 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

11689 11873 

11690 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`.11874 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`.

11691 11875 

11692 - `string`11876 - `string`

11693 11877 

11694 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`11878 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

11695 11879 

11696 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`.11880 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`.

11697 11881 

11698 - `"1024x1024"`11882 - `"1024x1024"`

11699 11883 


11741 11925 

11742 - `Custom object { name, type, allowed_callers, 4 more }`11926 - `Custom object { name, type, allowed_callers, 4 more }`

11743 11927 

11744 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)11928 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

11745 11929 

11746 - `name: string`11930 - `name: string`

11747 11931 


11831 12015 

11832 - `Custom object { name, type, allowed_callers, 4 more }`12016 - `Custom object { name, type, allowed_callers, 4 more }`

11833 12017 

11834 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)12018 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

11835 12019 

11836 - `name: string`12020 - `name: string`

11837 12021 


11901 12085 

11902 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`12086 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

11903 12087 

11904 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).12088 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).

11905 12089 

11906 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`12090 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

11907 12091 


12013 12197 

12014 - `Function object { name, parameters, strict, 6 more }`12198 - `Function object { name, parameters, strict, 6 more }`

12015 12199 

12016 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).12200 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

12017 12201 

12018 - `name: string`12202 - `name: string`

12019 12203 


12057 12241 

12058 - `FileSearch object { type, vector_store_ids, filters, 2 more }`12242 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

12059 12243 

12060 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).12244 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

12061 12245 

12062 - `type: "file_search"`12246 - `type: "file_search"`

12063 12247 


12115 12299 

12116 - `Computer object { type }`12300 - `Computer object { type }`

12117 12301 

12118 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).12302 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

12119 12303 

12120 - `type: "computer"`12304 - `type: "computer"`

12121 12305 


12125 12309 

12126 - `ComputerUsePreview object { display_height, display_width, environment, type }`12310 - `ComputerUsePreview object { display_height, display_width, environment, type }`

12127 12311 

12128 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).12312 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

12129 12313 

12130 - `display_height: number`12314 - `display_height: number`

12131 12315 


12158 - `WebSearch object { type, external_web_access, filters, 2 more }`12342 - `WebSearch object { type, external_web_access, filters, 2 more }`

12159 12343 

12160 Search the Internet for sources related to the prompt. Learn more about the12344 Search the Internet for sources related to the prompt. Learn more about the

12161 [web search tool](/docs/guides/tools-web-search).12345 [web search tool](/api/docs/guides/tools-web-search).

12162 12346 

12163 - `type: "web_search" or "web_search_2025_08_26"`12347 - `type: "web_search" or "web_search_2025_08_26"`

12164 12348 


12222 - `Mcp object { server_label, type, allowed_callers, 9 more }`12406 - `Mcp object { server_label, type, allowed_callers, 9 more }`

12223 12407 

12224 Give the model access to additional tools via remote Model Context Protocol12408 Give the model access to additional tools via remote Model Context Protocol

12225 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).12409 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

12226 12410 

12227 - `server_label: string`12411 - `server_label: string`

12228 12412 


12274 12458 

12275 Identifier for service connectors, like those available in ChatGPT. One of12459 Identifier for service connectors, like those available in ChatGPT. One of

12276 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more12460 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

12277 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).12461 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

12278 12462 

12279 Currently supported `connector_id` values are:12463 Currently supported `connector_id` values are:

12280 12464 


12466 12650 

12467 - `background: optional "transparent" or "opaque" or "auto"`12651 - `background: optional "transparent" or "opaque" or "auto"`

12468 12652 

12469 Set the background of the generated image. One of `transparent`,12653 Set the background of the generated image. One of `transparent`, `opaque`,

12470 `opaque`, or `auto`. Transparent backgrounds are available for12654 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

12471 supported GPT Image models. For `gpt-image-2` and12655 their `2026-09-08` snapshots, support `opaque` and `transparent`

12472 `gpt-image-2-2026-04-21`, this support is in preview. When using12656 backgrounds. Transparent backgrounds are available for supported GPT Image

12473 `transparent`, set the output format to `png` or `webp`. Default: `auto`.12657 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

12658 preview. When using `transparent`, set the output format to `png` or `webp`.

12659 Default: `auto`.

12474 12660 

12475 - `"transparent"`12661 - `"transparent"`

12476 12662 


12499 12685 

12500 Base64-encoded mask image.12686 Base64-encoded mask image.

12501 12687 

12502 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`12688 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

12503 12689 

12504 The image generation model to use. One of `gpt-image-1`,12690 The image generation model to use. One of `gpt-image-1`,

12505 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,12691 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

12506 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:12692 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

12693 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

12694 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

12507 `gpt-image-1`.12695 `gpt-image-1`.

12508 12696 

12509 - `string`12697 - `string`

12510 12698 

12511 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`12699 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

12512 12700 

12513 The image generation model to use. One of `gpt-image-1`,12701 The image generation model to use. One of `gpt-image-1`,

12514 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,12702 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

12515 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:12703 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

12704 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

12705 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

12516 `gpt-image-1`.12706 `gpt-image-1`.

12517 12707 

12518 - `"gpt-image-1"`12708 - `"gpt-image-1"`


12525 12715 

12526 - `"gpt-image-2-2026-04-21"`12716 - `"gpt-image-2-2026-04-21"`

12527 12717 

12718 - `"gpt-image-2.5-sunburst"`

12719 

12720 - `"gpt-image-2.5-sunburst-2026-09-08"`

12721 

12722 - `"gpt-image-2.5-flare"`

12723 

12724 - `"gpt-image-2.5-flare-2026-09-08"`

12725 

12528 - `moderation: optional "auto" or "low"`12726 - `moderation: optional "auto" or "low"`

12529 12727 

12530 Moderation level for the generated image. Default: `auto`.12728 Moderation level for the generated image. Default: `auto`.


12552 12750 

12553 Number of partial images to generate in streaming mode, from 0 (default value) to 3.12751 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

12554 12752 

12555 - `quality: optional "low" or "medium" or "high" or "auto"`12753 - `quality: optional "low" or "medium" or "high" or 3 more`

12556 12754 

12557 The quality of the generated image. One of `low`, `medium`, `high`,12755 The quality of the generated image. The GPT image models support `low`,

12558 or `auto`. Default: `auto`.12756 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

12757 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

12758 Default: `auto`.

12559 12759 

12560 - `"low"`12760 - `"low"`

12561 12761 


12563 12763 

12564 - `"high"`12764 - `"high"`

12565 12765 

12766 - `"xhigh"`

12767 

12768 - `"max"`

12769 

12566 - `"auto"`12770 - `"auto"`

12567 12771 

12568 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`12772 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

12569 12773 

12570 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`.12774 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`.

12571 12775 

12572 - `string`12776 - `string`

12573 12777 

12574 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`12778 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

12575 12779 

12576 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`.12780 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`.

12577 12781 

12578 - `"1024x1024"`12782 - `"1024x1024"`

12579 12783 


12621 12825 

12622 - `Custom object { name, type, allowed_callers, 4 more }`12826 - `Custom object { name, type, allowed_callers, 4 more }`

12623 12827 

12624 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)12828 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

12625 12829 

12626 - `name: string`12830 - `name: string`

12627 12831 


12711 12915 

12712 - `Custom object { name, type, allowed_callers, 4 more }`12916 - `Custom object { name, type, allowed_callers, 4 more }`

12713 12917 

12714 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)12918 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

12715 12919 

12716 - `name: string`12920 - `name: string`

12717 12921 


12781 12985 

12782 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`12986 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

12783 12987 

12784 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).12988 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).

12785 12989 

12786 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`12990 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

12787 12991 


12859 13063 

12860 - `Compaction object { id, encrypted_content, type, created_by }`13064 - `Compaction object { id, encrypted_content, type, created_by }`

12861 13065 

12862 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).13066 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).

12863 13067 

12864 - `id: string`13068 - `id: string`

12865 13069 


12879 13083 

12880 The identifier of the actor that created the item.13084 The identifier of the actor that created the item.

12881 13085 

12882 - `ImageGenerationCall object { id, result, status, type }`13086 - `ImageGenerationCall object { id, result, status, 3 more }`

12883 13087 

12884 An image generation request made by the model.13088 An image generation request made by the model.

12885 13089 


12909 13113 

12910 - `"image_generation_call"`13114 - `"image_generation_call"`

12911 13115 

13116 - `quality: optional "low" or "medium" or "high" or 3 more or null`

13117 

13118 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.

13119 

13120 - `"low"`

13121 

13122 - `"medium"`

13123 

13124 - `"high"`

13125 

13126 - `"xhigh"`

13127 

13128 - `"max"`

13129 

13130 - `"auto"`

13131 

13132 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`

13133 

13134 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

13135 

13136 - `string`

13137 

13138 - `"1024x1024" or "1024x1536" or "1536x1024"`

13139 

13140 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

13141 

13142 - `"1024x1024"`

13143 

13144 - `"1024x1536"`

13145 

13146 - `"1536x1024"`

13147 

12912 - `CodeInterpreterCall object { id, code, container_id, 3 more }`13148 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

12913 13149 

12914 A tool call to run code.13150 A tool call to run code.


13644 13880 

13645 - `ResponseInputImage object { detail, type, file_id, 2 more }`13881 - `ResponseInputImage object { detail, type, file_id, 2 more }`

13646 13882 

13647 An image input to the model. Learn about [image inputs](/docs/guides/vision).13883 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

13648 13884 

13649 - `ResponseInputFile object { type, detail, file_data, 4 more }`13885 - `ResponseInputFile object { type, detail, file_data, 4 more }`

13650 13886 


13767 - `ToolChoiceTypes object { type }`14003 - `ToolChoiceTypes object { type }`

13768 14004 

13769 Indicates that the model should use a built-in tool to generate a response.14005 Indicates that the model should use a built-in tool to generate a response.

13770 [Learn more about built-in tools](/docs/guides/tools).14006 [Learn more about built-in tools](/api/docs/guides/tools).

13771 14007 

13772 - `type: "file_search" or "web_search_preview" or "computer" or 5 more`14008 - `type: "file_search" or "web_search_preview" or "computer" or 5 more`

13773 14009 

13774 The type of hosted tool the model should to use. Learn more about14010 The type of hosted tool the model should to use. Learn more about

13775 [built-in tools](/docs/guides/tools).14011 [built-in tools](/api/docs/guides/tools).

13776 14012 

13777 Allowed values are:14013 Allowed values are:

13778 14014 


13882 We support the following categories of tools:14118 We support the following categories of tools:

13883 14119 

13884 - **Built-in tools**: Tools that are provided by OpenAI that extend the14120 - **Built-in tools**: Tools that are provided by OpenAI that extend the

13885 model's capabilities, like [web search](/docs/guides/tools-web-search)14121 model's capabilities, like [web search](/api/docs/guides/tools-web-search)

13886 or [file search](/docs/guides/tools-file-search). Learn more about14122 or [file search](/api/docs/guides/tools-file-search). Learn more about

13887 [built-in tools](/docs/guides/tools).14123 [built-in tools](/api/docs/guides/tools).

13888 - **MCP Tools**: Integrations with third-party systems via custom MCP servers14124 - **MCP Tools**: Integrations with third-party systems via custom MCP servers

13889 or predefined connectors such as Google Drive and SharePoint. Learn more about14125 or predefined connectors such as Google Drive and SharePoint. Learn more about

13890 [MCP Tools](/docs/guides/tools-connectors-mcp).14126 [MCP Tools](/api/docs/guides/tools-connectors-mcp).

13891 - **Function calls (custom tools)**: Functions that are defined by you,14127 - **Function calls (custom tools)**: Functions that are defined by you,

13892 enabling the model to call your own code with strongly typed arguments14128 enabling the model to call your own code with strongly typed arguments

13893 and outputs. Learn more about14129 and outputs. Learn more about

13894 [function calling](/docs/guides/function-calling). You can also use14130 [function calling](/api/docs/guides/function-calling). You can also use

13895 custom tools to call your own code.14131 custom tools to call your own code.

13896 14132 

13897 - `Function object { name, parameters, strict, 6 more }`14133 - `Function object { name, parameters, strict, 6 more }`

13898 14134 

13899 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).14135 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

13900 14136 

13901 - `name: string`14137 - `name: string`

13902 14138 


13940 14176 

13941 - `FileSearch object { type, vector_store_ids, filters, 2 more }`14177 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

13942 14178 

13943 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).14179 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

13944 14180 

13945 - `type: "file_search"`14181 - `type: "file_search"`

13946 14182 


13998 14234 

13999 - `Computer object { type }`14235 - `Computer object { type }`

14000 14236 

14001 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).14237 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

14002 14238 

14003 - `type: "computer"`14239 - `type: "computer"`

14004 14240 


14008 14244 

14009 - `ComputerUsePreview object { display_height, display_width, environment, type }`14245 - `ComputerUsePreview object { display_height, display_width, environment, type }`

14010 14246 

14011 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).14247 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

14012 14248 

14013 - `display_height: number`14249 - `display_height: number`

14014 14250 


14041 - `WebSearch object { type, external_web_access, filters, 2 more }`14277 - `WebSearch object { type, external_web_access, filters, 2 more }`

14042 14278 

14043 Search the Internet for sources related to the prompt. Learn more about the14279 Search the Internet for sources related to the prompt. Learn more about the

14044 [web search tool](/docs/guides/tools-web-search).14280 [web search tool](/api/docs/guides/tools-web-search).

14045 14281 

14046 - `type: "web_search" or "web_search_2025_08_26"`14282 - `type: "web_search" or "web_search_2025_08_26"`

14047 14283 


14105 - `Mcp object { server_label, type, allowed_callers, 9 more }`14341 - `Mcp object { server_label, type, allowed_callers, 9 more }`

14106 14342 

14107 Give the model access to additional tools via remote Model Context Protocol14343 Give the model access to additional tools via remote Model Context Protocol

14108 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).14344 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

14109 14345 

14110 - `server_label: string`14346 - `server_label: string`

14111 14347 


14157 14393 

14158 Identifier for service connectors, like those available in ChatGPT. One of14394 Identifier for service connectors, like those available in ChatGPT. One of

14159 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more14395 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

14160 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).14396 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

14161 14397 

14162 Currently supported `connector_id` values are:14398 Currently supported `connector_id` values are:

14163 14399 


14349 14585 

14350 - `background: optional "transparent" or "opaque" or "auto"`14586 - `background: optional "transparent" or "opaque" or "auto"`

14351 14587 

14352 Set the background of the generated image. One of `transparent`,14588 Set the background of the generated image. One of `transparent`, `opaque`,

14353 `opaque`, or `auto`. Transparent backgrounds are available for14589 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

14354 supported GPT Image models. For `gpt-image-2` and14590 their `2026-09-08` snapshots, support `opaque` and `transparent`

14355 `gpt-image-2-2026-04-21`, this support is in preview. When using14591 backgrounds. Transparent backgrounds are available for supported GPT Image

14356 `transparent`, set the output format to `png` or `webp`. Default: `auto`.14592 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

14593 preview. When using `transparent`, set the output format to `png` or `webp`.

14594 Default: `auto`.

14357 14595 

14358 - `"transparent"`14596 - `"transparent"`

14359 14597 


14382 14620 

14383 Base64-encoded mask image.14621 Base64-encoded mask image.

14384 14622 

14385 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`14623 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

14386 14624 

14387 The image generation model to use. One of `gpt-image-1`,14625 The image generation model to use. One of `gpt-image-1`,

14388 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,14626 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

14389 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:14627 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

14628 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

14629 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

14390 `gpt-image-1`.14630 `gpt-image-1`.

14391 14631 

14392 - `string`14632 - `string`

14393 14633 

14394 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`14634 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

14395 14635 

14396 The image generation model to use. One of `gpt-image-1`,14636 The image generation model to use. One of `gpt-image-1`,

14397 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,14637 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

14398 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:14638 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

14639 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

14640 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

14399 `gpt-image-1`.14641 `gpt-image-1`.

14400 14642 

14401 - `"gpt-image-1"`14643 - `"gpt-image-1"`


14408 14650 

14409 - `"gpt-image-2-2026-04-21"`14651 - `"gpt-image-2-2026-04-21"`

14410 14652 

14653 - `"gpt-image-2.5-sunburst"`

14654 

14655 - `"gpt-image-2.5-sunburst-2026-09-08"`

14656 

14657 - `"gpt-image-2.5-flare"`

14658 

14659 - `"gpt-image-2.5-flare-2026-09-08"`

14660 

14411 - `moderation: optional "auto" or "low"`14661 - `moderation: optional "auto" or "low"`

14412 14662 

14413 Moderation level for the generated image. Default: `auto`.14663 Moderation level for the generated image. Default: `auto`.


14435 14685 

14436 Number of partial images to generate in streaming mode, from 0 (default value) to 3.14686 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

14437 14687 

14438 - `quality: optional "low" or "medium" or "high" or "auto"`14688 - `quality: optional "low" or "medium" or "high" or 3 more`

14439 14689 

14440 The quality of the generated image. One of `low`, `medium`, `high`,14690 The quality of the generated image. The GPT image models support `low`,

14441 or `auto`. Default: `auto`.14691 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

14692 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

14693 Default: `auto`.

14442 14694 

14443 - `"low"`14695 - `"low"`

14444 14696 


14446 14698 

14447 - `"high"`14699 - `"high"`

14448 14700 

14701 - `"xhigh"`

14702 

14703 - `"max"`

14704 

14449 - `"auto"`14705 - `"auto"`

14450 14706 

14451 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`14707 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

14452 14708 

14453 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`.14709 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`.

14454 14710 

14455 - `string`14711 - `string`

14456 14712 

14457 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`14713 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

14458 14714 

14459 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`.14715 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`.

14460 14716 

14461 - `"1024x1024"`14717 - `"1024x1024"`

14462 14718 


14504 14760 

14505 - `Custom object { name, type, allowed_callers, 4 more }`14761 - `Custom object { name, type, allowed_callers, 4 more }`

14506 14762 

14507 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)14763 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

14508 14764 

14509 - `name: string`14765 - `name: string`

14510 14766 


14594 14850 

14595 - `Custom object { name, type, allowed_callers, 4 more }`14851 - `Custom object { name, type, allowed_callers, 4 more }`

14596 14852 

14597 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)14853 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

14598 14854 

14599 - `name: string`14855 - `name: string`

14600 14856 


14664 14920 

14665 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`14921 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

14666 14922 

14667 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).14923 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).

14668 14924 

14669 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`14925 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

14670 14926 


14746 - `background: optional boolean or null`15002 - `background: optional boolean or null`

14747 15003 

14748 Whether to run the model response in the background.15004 Whether to run the model response in the background.

14749 [Learn more](/docs/guides/background).15005 [Learn more](/api/docs/guides/background).

14750 15006 

14751 - `completed_at: optional number or null`15007 - `completed_at: optional number or null`

14752 15008 


14763 15019 

14764 - `max_output_tokens: optional number or null`15020 - `max_output_tokens: optional number or null`

14765 15021 

14766 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).15022 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).

14767 15023 

14768 - `max_tool_calls: optional number or null`15024 - `max_tool_calls: optional number or null`

14769 15025 


14895 15151 

14896 The unique ID of the previous response to the model. Use this to15152 The unique ID of the previous response to the model. Use this to

14897 create multi-turn conversations. Learn more about15153 create multi-turn conversations. Learn more about

14898 [conversation state](/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.15154 [conversation state](/api/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.

14899 15155 

14900 - `prompt: optional ResponsePrompt or null`15156 - `prompt: optional ResponsePrompt or null`

14901 15157 

14902 Reference to a prompt template and its variables.15158 Reference to a prompt template and its variables.

14903 [Learn more](/docs/guides/text?api-mode=responses#reusable-prompts).15159 [Learn more](/api/docs/guides/text?api-mode=responses#version-prompts-in-code).

14904 15160 

14905 - `id: string`15161 - `id: string`

14906 15162 


14920 15176 

14921 - `ResponseInputImage object { detail, type, file_id, 2 more }`15177 - `ResponseInputImage object { detail, type, file_id, 2 more }`

14922 15178 

14923 An image input to the model. Learn about [image inputs](/docs/guides/vision).15179 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

14924 15180 

14925 - `ResponseInputFile object { type, detail, file_data, 4 more }`15181 - `ResponseInputFile object { type, detail, file_data, 4 more }`

14926 15182 


14990 15246 

14991 - `prompt_cache_key: optional string or null`15247 - `prompt_cache_key: optional string or null`

14992 15248 

14993 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).15249 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).

14994 15250 

14995 - `prompt_cache_options: optional object { mode, ttl, comparison_response_id }`15251 - `prompt_cache_options: optional object { mode, ttl, comparison_response_id }`

14996 15252 


15018 15274 

15019 Deprecated. Use `prompt_cache_options.ttl` instead.15275 Deprecated. Use `prompt_cache_options.ttl` instead.

15020 15276 

15021 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).15277 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).

15022 This field expresses a maximum retention policy, while15278 This field expresses a maximum retention policy, while

15023 `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two15279 `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two

15024 fields are independent and do not interact.15280 fields are independent and do not interact.


15036 - `reasoning: optional Reasoning or null`15292 - `reasoning: optional Reasoning or null`

15037 15293 

15038 Configuration options for15294 Configuration options for

15039 [reasoning models](https://platform.openai.com/docs/guides/reasoning).15295 [reasoning models](/api/docs/guides/reasoning).

15040 15296 

15041 - `context: optional "auto" or "current_turn" or "all_turns" or null`15297 - `context: optional "auto" or "current_turn" or "all_turns" or null`

15042 15298 


15061 Reducing reasoning effort can result in faster responses and fewer tokens15317 Reducing reasoning effort can result in faster responses and fewer tokens

15062 used on reasoning in a response. Not all reasoning models support every15318 used on reasoning in a response. Not all reasoning models support every

15063 value. See the15319 value. See the

15064 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)15320 [reasoning guide](/api/docs/guides/reasoning)

15065 for model-specific support.15321 for model-specific support.

15066 15322 

15067 - `generate_summary: optional "auto" or "concise" or "detailed" or null`15323 - `generate_summary: optional "auto" or "concise" or "detailed" or null`


15113 - `safety_identifier: optional string or null`15369 - `safety_identifier: optional string or null`

15114 15370 

15115 A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.15371 A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.

15116 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).15372 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).

15117 15373 

15118 - `service_tier: optional ServiceTier or null`15374 - `service_tier: optional ServiceTier or null`

15119 15375 


15121 15377 

15122 - 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'.15378 - 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'.

15123 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.15379 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.

15124 - If set to '[flex](/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.15380 - If set to '[flex](/api/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.

15125 - 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.15381 - 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.

15126 - 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`.15382 - 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`.

15127 - When not set, the default behavior is 'auto'.15383 - When not set, the default behavior is 'auto'.


15164 Configuration options for a text response from the model. Can be plain15420 Configuration options for a text response from the model. Can be plain

15165 text or structured JSON data. Learn more:15421 text or structured JSON data. Learn more:

15166 15422 

15167 - [Text inputs and outputs](/docs/guides/text)15423 - [Text inputs and outputs](/api/docs/guides/text)

15168 - [Structured Outputs](/docs/guides/structured-outputs)15424 - [Structured Outputs](/api/docs/guides/structured-outputs)

15169 15425 

15170 - `format: optional ResponseFormatTextConfig`15426 - `format: optional ResponseFormatTextConfig`

15171 15427 


15173 15429 

15174 Configuring `{ "type": "json_schema" }` enables Structured Outputs,15430 Configuring `{ "type": "json_schema" }` enables Structured Outputs,

15175 which ensures the model will match your supplied JSON schema. Learn more in the15431 which ensures the model will match your supplied JSON schema. Learn more in the

15176 [Structured Outputs guide](/docs/guides/structured-outputs).15432 [Structured Outputs guide](/api/docs/guides/structured-outputs).

15177 15433 

15178 The default format is `{ "type": "text" }` with no additional options.15434 The default format is `{ "type": "text" }` with no additional options.

15179 15435 


15196 - `ResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`15452 - `ResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`

15197 15453 

15198 JSON Schema response format. Used to generate structured JSON responses.15454 JSON Schema response format. Used to generate structured JSON responses.

15199 Learn more about [Structured Outputs](/docs/guides/structured-outputs).15455 Learn more about [Structured Outputs](/api/docs/guides/structured-outputs).

15200 15456 

15201 - `name: string`15457 - `name: string`

15202 15458 


15225 If set to true, the model will always follow the exact schema defined15481 If set to true, the model will always follow the exact schema defined

15226 in the `schema` field. Only a subset of JSON Schema is supported when15482 in the `schema` field. Only a subset of JSON Schema is supported when

15227 `strict` is `true`. To learn more, read the [Structured Outputs15483 `strict` is `true`. To learn more, read the [Structured Outputs

15228 guide](/docs/guides/structured-outputs).15484 guide](/api/docs/guides/structured-outputs).

15229 15485 

15230 - `ResponseFormatJSONObject object { type }`15486 - `ResponseFormatJSONObject object { type }`

15231 15487 


15294 - `cached_tokens: number`15550 - `cached_tokens: number`

15295 15551 

15296 The number of tokens that were retrieved from the cache.15552 The number of tokens that were retrieved from the cache.

15297 [More on prompt caching](/docs/guides/prompt-caching).15553 [More on prompt caching](/api/docs/guides/prompt-caching).

15298 15554 

15299 - `output_tokens: number`15555 - `output_tokens: number`

15300 15556 


15316 15572 

15317 This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.15573 This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.

15318 A stable identifier for your end-users.15574 A stable identifier for your end-users.

15319 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).15575 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).

15320 15576 

15321### Example15577### Example

15322 15578 

Details

49 49 

50 If set to true, the model response data will be streamed to the client50 If set to true, the model response data will be streamed to the client

51 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).51 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).

52 See the [Streaming section below](/docs/api-reference/responses-streaming)52 See the [Streaming section below](/api/reference/resources/responses/streaming-events)

53 for more information.53 for more information.

54 54 

55 - `false`55 - `false`


237 237 

238 - `ResponseInputImage object { detail, type, file_id, 2 more }`238 - `ResponseInputImage object { detail, type, file_id, 2 more }`

239 239 

240 An image input to the model. Learn about [image inputs](/docs/guides/vision).240 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

241 241 

242 - `detail: ImageDetail`242 - `detail: ImageDetail`

243 243 


580 - `FileSearchCall object { id, queries, status, 2 more }`580 - `FileSearchCall object { id, queries, status, 2 more }`

581 581 

582 The results of a file search tool call. See the582 The results of a file search tool call. See the

583 [file search guide](/docs/guides/tools-file-search) for more information.583 [file search guide](/api/docs/guides/tools-file-search) for more information.

584 584 

585 - `id: string`585 - `id: string`

586 586 


648 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`648 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`

649 649 

650 A tool call to a computer use tool. See the650 A tool call to a computer use tool. See the

651 [computer use guide](/docs/guides/tools-computer-use) for more information.651 [computer use guide](/api/docs/guides/tools-computer-use) for more information.

652 652 

653 - `id: string`653 - `id: string`

654 654 


993 - `WebSearchCall object { id, action, status, type }`993 - `WebSearchCall object { id, action, status, type }`

994 994 

995 The results of a web search tool call. See the995 The results of a web search tool call. See the

996 [web search guide](/docs/guides/tools-web-search) for more information.996 [web search guide](/api/docs/guides/tools-web-search) for more information.

997 997 

998 - `id: string`998 - `id: string`

999 999 


1091 - `FunctionCall object { arguments, call_id, name, 6 more }`1091 - `FunctionCall object { arguments, call_id, name, 6 more }`

1092 1092 

1093 A tool call to run a function. See the1093 A tool call to run a function. See the

1094 [function calling guide](/docs/guides/function-calling) for more information.1094 [function calling guide](/api/docs/guides/function-calling) for more information.

1095 1095 

1096 - `arguments: string`1096 - `arguments: string`

1097 1097 


1196 1196 

1197 - `ResponseInputImageContent object { type, detail, file_id, 2 more }`1197 - `ResponseInputImageContent object { type, detail, file_id, 2 more }`

1198 1198 

1199 An image input to the model. Learn about [image inputs](/docs/guides/vision)1199 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision)

1200 1200 

1201 - `type: "input_image"`1201 - `type: "input_image"`

1202 1202 


1374 1374 

1375 - `Function object { name, parameters, strict, 6 more }`1375 - `Function object { name, parameters, strict, 6 more }`

1376 1376 

1377 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).1377 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

1378 1378 

1379 - `name: string`1379 - `name: string`

1380 1380 


1418 1418 

1419 - `FileSearch object { type, vector_store_ids, filters, 2 more }`1419 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

1420 1420 

1421 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).1421 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

1422 1422 

1423 - `type: "file_search"`1423 - `type: "file_search"`

1424 1424 


1543 1543 

1544 - `Computer object { type }`1544 - `Computer object { type }`

1545 1545 

1546 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1546 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1547 1547 

1548 - `type: "computer"`1548 - `type: "computer"`

1549 1549 


1553 1553 

1554 - `ComputerUsePreview object { display_height, display_width, environment, type }`1554 - `ComputerUsePreview object { display_height, display_width, environment, type }`

1555 1555 

1556 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1556 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1557 1557 

1558 - `display_height: number`1558 - `display_height: number`

1559 1559 


1586 - `WebSearch object { type, external_web_access, filters, 2 more }`1586 - `WebSearch object { type, external_web_access, filters, 2 more }`

1587 1587 

1588 Search the Internet for sources related to the prompt. Learn more about the1588 Search the Internet for sources related to the prompt. Learn more about the

1589 [web search tool](/docs/guides/tools-web-search).1589 [web search tool](/api/docs/guides/tools-web-search).

1590 1590 

1591 - `type: "web_search" or "web_search_2025_08_26"`1591 - `type: "web_search" or "web_search_2025_08_26"`

1592 1592 


1650 - `Mcp object { server_label, type, allowed_callers, 9 more }`1650 - `Mcp object { server_label, type, allowed_callers, 9 more }`

1651 1651 

1652 Give the model access to additional tools via remote Model Context Protocol1652 Give the model access to additional tools via remote Model Context Protocol

1653 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).1653 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

1654 1654 

1655 - `server_label: string`1655 - `server_label: string`

1656 1656 


1702 1702 

1703 Identifier for service connectors, like those available in ChatGPT. One of1703 Identifier for service connectors, like those available in ChatGPT. One of

1704 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more1704 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

1705 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).1705 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

1706 1706 

1707 Currently supported `connector_id` values are:1707 Currently supported `connector_id` values are:

1708 1708 


1926 1926 

1927 - `background: optional "transparent" or "opaque" or "auto"`1927 - `background: optional "transparent" or "opaque" or "auto"`

1928 1928 

1929 Set the background of the generated image. One of `transparent`,1929 Set the background of the generated image. One of `transparent`, `opaque`,

1930 `opaque`, or `auto`. Transparent backgrounds are available for1930 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

1931 supported GPT Image models. For `gpt-image-2` and1931 their `2026-09-08` snapshots, support `opaque` and `transparent`

1932 `gpt-image-2-2026-04-21`, this support is in preview. When using1932 backgrounds. Transparent backgrounds are available for supported GPT Image

1933 `transparent`, set the output format to `png` or `webp`. Default: `auto`.1933 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

1934 preview. When using `transparent`, set the output format to `png` or `webp`.

1935 Default: `auto`.

1934 1936 

1935 - `"transparent"`1937 - `"transparent"`

1936 1938 


1959 1961 

1960 Base64-encoded mask image.1962 Base64-encoded mask image.

1961 1963 

1962 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1964 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1963 1965 

1964 The image generation model to use. One of `gpt-image-1`,1966 The image generation model to use. One of `gpt-image-1`,

1965 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1967 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1966 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1968 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1969 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1970 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1967 `gpt-image-1`.1971 `gpt-image-1`.

1968 1972 

1969 - `string`1973 - `string`

1970 1974 

1971 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1975 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1972 1976 

1973 The image generation model to use. One of `gpt-image-1`,1977 The image generation model to use. One of `gpt-image-1`,

1974 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1978 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1975 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1979 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1980 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1981 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1976 `gpt-image-1`.1982 `gpt-image-1`.

1977 1983 

1978 - `"gpt-image-1"`1984 - `"gpt-image-1"`


1985 1991 

1986 - `"gpt-image-2-2026-04-21"`1992 - `"gpt-image-2-2026-04-21"`

1987 1993 

1994 - `"gpt-image-2.5-sunburst"`

1995 

1996 - `"gpt-image-2.5-sunburst-2026-09-08"`

1997 

1998 - `"gpt-image-2.5-flare"`

1999 

2000 - `"gpt-image-2.5-flare-2026-09-08"`

2001 

1988 - `moderation: optional "auto" or "low"`2002 - `moderation: optional "auto" or "low"`

1989 2003 

1990 Moderation level for the generated image. Default: `auto`.2004 Moderation level for the generated image. Default: `auto`.


2012 2026 

2013 Number of partial images to generate in streaming mode, from 0 (default value) to 3.2027 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

2014 2028 

2015 - `quality: optional "low" or "medium" or "high" or "auto"`2029 - `quality: optional "low" or "medium" or "high" or 3 more`

2016 2030 

2017 The quality of the generated image. One of `low`, `medium`, `high`,2031 The quality of the generated image. The GPT image models support `low`,

2018 or `auto`. Default: `auto`.2032 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

2033 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

2034 Default: `auto`.

2019 2035 

2020 - `"low"`2036 - `"low"`

2021 2037 


2023 2039 

2024 - `"high"`2040 - `"high"`

2025 2041 

2042 - `"xhigh"`

2043 

2044 - `"max"`

2045 

2026 - `"auto"`2046 - `"auto"`

2027 2047 

2028 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`2048 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2029 2049 

2030 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`.2050 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`.

2031 2051 

2032 - `string`2052 - `string`

2033 2053 

2034 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`2054 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2035 2055 

2036 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`.2056 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`.

2037 2057 

2038 - `"1024x1024"`2058 - `"1024x1024"`

2039 2059 


2199 2219 

2200 - `Custom object { name, type, allowed_callers, 4 more }`2220 - `Custom object { name, type, allowed_callers, 4 more }`

2201 2221 

2202 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2222 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2203 2223 

2204 - `name: string`2224 - `name: string`

2205 2225 


2321 2341 

2322 - `Custom object { name, type, allowed_callers, 4 more }`2342 - `Custom object { name, type, allowed_callers, 4 more }`

2323 2343 

2324 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2344 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2325 2345 

2326 - `name: string`2346 - `name: string`

2327 2347 


2391 2411 

2392 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`2412 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

2393 2413 

2394 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).2414 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).

2395 2415 

2396 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`2416 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

2397 2417 


2507 2527 

2508 - `Function object { name, parameters, strict, 6 more }`2528 - `Function object { name, parameters, strict, 6 more }`

2509 2529 

2510 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).2530 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

2511 2531 

2512 - `name: string`2532 - `name: string`

2513 2533 


2551 2571 

2552 - `FileSearch object { type, vector_store_ids, filters, 2 more }`2572 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

2553 2573 

2554 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).2574 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

2555 2575 

2556 - `type: "file_search"`2576 - `type: "file_search"`

2557 2577 


2609 2629 

2610 - `Computer object { type }`2630 - `Computer object { type }`

2611 2631 

2612 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).2632 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

2613 2633 

2614 - `type: "computer"`2634 - `type: "computer"`

2615 2635 


2619 2639 

2620 - `ComputerUsePreview object { display_height, display_width, environment, type }`2640 - `ComputerUsePreview object { display_height, display_width, environment, type }`

2621 2641 

2622 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).2642 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

2623 2643 

2624 - `display_height: number`2644 - `display_height: number`

2625 2645 


2652 - `WebSearch object { type, external_web_access, filters, 2 more }`2672 - `WebSearch object { type, external_web_access, filters, 2 more }`

2653 2673 

2654 Search the Internet for sources related to the prompt. Learn more about the2674 Search the Internet for sources related to the prompt. Learn more about the

2655 [web search tool](/docs/guides/tools-web-search).2675 [web search tool](/api/docs/guides/tools-web-search).

2656 2676 

2657 - `type: "web_search" or "web_search_2025_08_26"`2677 - `type: "web_search" or "web_search_2025_08_26"`

2658 2678 


2716 - `Mcp object { server_label, type, allowed_callers, 9 more }`2736 - `Mcp object { server_label, type, allowed_callers, 9 more }`

2717 2737 

2718 Give the model access to additional tools via remote Model Context Protocol2738 Give the model access to additional tools via remote Model Context Protocol

2719 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).2739 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

2720 2740 

2721 - `server_label: string`2741 - `server_label: string`

2722 2742 


2768 2788 

2769 Identifier for service connectors, like those available in ChatGPT. One of2789 Identifier for service connectors, like those available in ChatGPT. One of

2770 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more2790 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

2771 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).2791 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

2772 2792 

2773 Currently supported `connector_id` values are:2793 Currently supported `connector_id` values are:

2774 2794 


2960 2980 

2961 - `background: optional "transparent" or "opaque" or "auto"`2981 - `background: optional "transparent" or "opaque" or "auto"`

2962 2982 

2963 Set the background of the generated image. One of `transparent`,2983 Set the background of the generated image. One of `transparent`, `opaque`,

2964 `opaque`, or `auto`. Transparent backgrounds are available for2984 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

2965 supported GPT Image models. For `gpt-image-2` and2985 their `2026-09-08` snapshots, support `opaque` and `transparent`

2966 `gpt-image-2-2026-04-21`, this support is in preview. When using2986 backgrounds. Transparent backgrounds are available for supported GPT Image

2967 `transparent`, set the output format to `png` or `webp`. Default: `auto`.2987 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

2988 preview. When using `transparent`, set the output format to `png` or `webp`.

2989 Default: `auto`.

2968 2990 

2969 - `"transparent"`2991 - `"transparent"`

2970 2992 


2993 3015 

2994 Base64-encoded mask image.3016 Base64-encoded mask image.

2995 3017 

2996 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`3018 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2997 3019 

2998 The image generation model to use. One of `gpt-image-1`,3020 The image generation model to use. One of `gpt-image-1`,

2999 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,3021 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

3000 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:3022 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3023 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3024 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

3001 `gpt-image-1`.3025 `gpt-image-1`.

3002 3026 

3003 - `string`3027 - `string`

3004 3028 

3005 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`3029 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

3006 3030 

3007 The image generation model to use. One of `gpt-image-1`,3031 The image generation model to use. One of `gpt-image-1`,

3008 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,3032 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

3009 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:3033 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3034 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3035 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

3010 `gpt-image-1`.3036 `gpt-image-1`.

3011 3037 

3012 - `"gpt-image-1"`3038 - `"gpt-image-1"`


3019 3045 

3020 - `"gpt-image-2-2026-04-21"`3046 - `"gpt-image-2-2026-04-21"`

3021 3047 

3048 - `"gpt-image-2.5-sunburst"`

3049 

3050 - `"gpt-image-2.5-sunburst-2026-09-08"`

3051 

3052 - `"gpt-image-2.5-flare"`

3053 

3054 - `"gpt-image-2.5-flare-2026-09-08"`

3055 

3022 - `moderation: optional "auto" or "low"`3056 - `moderation: optional "auto" or "low"`

3023 3057 

3024 Moderation level for the generated image. Default: `auto`.3058 Moderation level for the generated image. Default: `auto`.


3046 3080 

3047 Number of partial images to generate in streaming mode, from 0 (default value) to 3.3081 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

3048 3082 

3049 - `quality: optional "low" or "medium" or "high" or "auto"`3083 - `quality: optional "low" or "medium" or "high" or 3 more`

3050 3084 

3051 The quality of the generated image. One of `low`, `medium`, `high`,3085 The quality of the generated image. The GPT image models support `low`,

3052 or `auto`. Default: `auto`.3086 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

3087 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

3088 Default: `auto`.

3053 3089 

3054 - `"low"`3090 - `"low"`

3055 3091 


3057 3093 

3058 - `"high"`3094 - `"high"`

3059 3095 

3096 - `"xhigh"`

3097 

3098 - `"max"`

3099 

3060 - `"auto"`3100 - `"auto"`

3061 3101 

3062 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`3102 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

3063 3103 

3064 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`.3104 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`.

3065 3105 

3066 - `string`3106 - `string`

3067 3107 

3068 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`3108 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

3069 3109 

3070 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`.3110 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`.

3071 3111 

3072 - `"1024x1024"`3112 - `"1024x1024"`

3073 3113 


3115 3155 

3116 - `Custom object { name, type, allowed_callers, 4 more }`3156 - `Custom object { name, type, allowed_callers, 4 more }`

3117 3157 

3118 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3158 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

3119 3159 

3120 - `name: string`3160 - `name: string`

3121 3161 


3205 3245 

3206 - `Custom object { name, type, allowed_callers, 4 more }`3246 - `Custom object { name, type, allowed_callers, 4 more }`

3207 3247 

3208 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3248 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

3209 3249 

3210 - `name: string`3250 - `name: string`

3211 3251 


3275 3315 

3276 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`3316 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

3277 3317 

3278 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).3318 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).

3279 3319 

3280 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`3320 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

3281 3321 


3399 A description of the chain of thought used by a reasoning model while generating3439 A description of the chain of thought used by a reasoning model while generating

3400 a response. Be sure to include these items in your `input` to the Responses API3440 a response. Be sure to include these items in your `input` to the Responses API

3401 for subsequent turns of a conversation if you are manually3441 for subsequent turns of a conversation if you are manually

3402 [managing context](/docs/guides/conversation-state).3442 [managing context](/api/docs/guides/conversation-state).

3403 3443 

3404 - `id: string`3444 - `id: string`

3405 3445 


3464 3504 

3465 - `Compaction object { encrypted_content, type, id }`3505 - `Compaction object { encrypted_content, type, id }`

3466 3506 

3467 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).3507 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).

3468 3508 

3469 - `encrypted_content: string`3509 - `encrypted_content: string`

3470 3510 


3480 3520 

3481 The ID of the compaction item.3521 The ID of the compaction item.

3482 3522 

3483 - `ImageGenerationCall object { id, result, status, type }`3523 - `ImageGenerationCall object { id, result, status, 3 more }`

3484 3524 

3485 An image generation request made by the model.3525 An image generation request made by the model.

3486 3526 


3510 3550 

3511 - `"image_generation_call"`3551 - `"image_generation_call"`

3512 3552 

3553 - `quality: optional "low" or "medium" or "high" or 3 more or null`

3554 

3555 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.

3556 

3557 - `"low"`

3558 

3559 - `"medium"`

3560 

3561 - `"high"`

3562 

3563 - `"xhigh"`

3564 

3565 - `"max"`

3566 

3567 - `"auto"`

3568 

3569 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`

3570 

3571 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

3572 

3573 - `string`

3574 

3575 - `"1024x1024" or "1024x1536" or "1536x1024"`

3576 

3577 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

3578 

3579 - `"1024x1024"`

3580 

3581 - `"1024x1536"`

3582 

3583 - `"1536x1024"`

3584 

3513 - `CodeInterpreterCall object { id, code, container_id, 3 more }`3585 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

3514 3586 

3515 A tool call to run code.3587 A tool call to run code.


4197 4269 

4198 - `ResponseInputImage object { detail, type, file_id, 2 more }`4270 - `ResponseInputImage object { detail, type, file_id, 2 more }`

4199 4271 

4200 An image input to the model. Learn about [image inputs](/docs/guides/vision).4272 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

4201 4273 

4202 - `ResponseInputFile object { type, detail, file_data, 4 more }`4274 - `ResponseInputFile object { type, detail, file_data, 4 more }`

4203 4275 


4384 4456 

4385 Model ID used to generate the response, like `gpt-6-astra`. OpenAI4457 Model ID used to generate the response, like `gpt-6-astra`. OpenAI

4386 offers a wide range of models with different capabilities, performance4458 offers a wide range of models with different capabilities, performance

4387 characteristics, and price points. Refer to the [model guide](/docs/models)4459 characteristics, and price points. Refer to the [model guide](/api/docs/models)

4388 to browse and compare available models.4460 to browse and compare available models.

4389 4461 

4390 - `string`4462 - `string`


4623 - `FileSearchCall object { id, queries, status, 2 more }`4695 - `FileSearchCall object { id, queries, status, 2 more }`

4624 4696 

4625 The results of a file search tool call. See the4697 The results of a file search tool call. See the

4626 [file search guide](/docs/guides/tools-file-search) for more information.4698 [file search guide](/api/docs/guides/tools-file-search) for more information.

4627 4699 

4628 - `id: string`4700 - `id: string`

4629 4701 


4691 - `FunctionCall object { arguments, call_id, name, 6 more }`4763 - `FunctionCall object { arguments, call_id, name, 6 more }`

4692 4764 

4693 A tool call to run a function. See the4765 A tool call to run a function. See the

4694 [function calling guide](/docs/guides/function-calling) for more information.4766 [function calling guide](/api/docs/guides/function-calling) for more information.

4695 4767 

4696 - `arguments: string`4768 - `arguments: string`

4697 4769 


4779 4851 

4780 - `ResponseInputImage object { detail, type, file_id, 2 more }`4852 - `ResponseInputImage object { detail, type, file_id, 2 more }`

4781 4853 

4782 An image input to the model. Learn about [image inputs](/docs/guides/vision).4854 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

4783 4855 

4784 - `ResponseInputFile object { type, detail, file_data, 4 more }`4856 - `ResponseInputFile object { type, detail, file_data, 4 more }`

4785 4857 


4845 - `WebSearchCall object { id, action, status, type }`4917 - `WebSearchCall object { id, action, status, type }`

4846 4918 

4847 The results of a web search tool call. See the4919 The results of a web search tool call. See the

4848 [web search guide](/docs/guides/tools-web-search) for more information.4920 [web search guide](/api/docs/guides/tools-web-search) for more information.

4849 4921 

4850 - `id: string`4922 - `id: string`

4851 4923 


4943 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`5015 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`

4944 5016 

4945 A tool call to a computer use tool. See the5017 A tool call to a computer use tool. See the

4946 [computer use guide](/docs/guides/tools-computer-use) for more information.5018 [computer use guide](/api/docs/guides/tools-computer-use) for more information.

4947 5019 

4948 - `id: string`5020 - `id: string`

4949 5021 


5054 A description of the chain of thought used by a reasoning model while generating5126 A description of the chain of thought used by a reasoning model while generating

5055 a response. Be sure to include these items in your `input` to the Responses API5127 a response. Be sure to include these items in your `input` to the Responses API

5056 for subsequent turns of a conversation if you are manually5128 for subsequent turns of a conversation if you are manually

5057 [managing context](/docs/guides/conversation-state).5129 [managing context](/api/docs/guides/conversation-state).

5058 5130 

5059 - `id: string`5131 - `id: string`

5060 5132 


5243 5315 

5244 - `Function object { name, parameters, strict, 6 more }`5316 - `Function object { name, parameters, strict, 6 more }`

5245 5317 

5246 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).5318 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

5247 5319 

5248 - `name: string`5320 - `name: string`

5249 5321 


5287 5359 

5288 - `FileSearch object { type, vector_store_ids, filters, 2 more }`5360 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

5289 5361 

5290 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).5362 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

5291 5363 

5292 - `type: "file_search"`5364 - `type: "file_search"`

5293 5365 


5345 5417 

5346 - `Computer object { type }`5418 - `Computer object { type }`

5347 5419 

5348 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).5420 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

5349 5421 

5350 - `type: "computer"`5422 - `type: "computer"`

5351 5423 


5355 5427 

5356 - `ComputerUsePreview object { display_height, display_width, environment, type }`5428 - `ComputerUsePreview object { display_height, display_width, environment, type }`

5357 5429 

5358 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).5430 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

5359 5431 

5360 - `display_height: number`5432 - `display_height: number`

5361 5433 


5388 - `WebSearch object { type, external_web_access, filters, 2 more }`5460 - `WebSearch object { type, external_web_access, filters, 2 more }`

5389 5461 

5390 Search the Internet for sources related to the prompt. Learn more about the5462 Search the Internet for sources related to the prompt. Learn more about the

5391 [web search tool](/docs/guides/tools-web-search).5463 [web search tool](/api/docs/guides/tools-web-search).

5392 5464 

5393 - `type: "web_search" or "web_search_2025_08_26"`5465 - `type: "web_search" or "web_search_2025_08_26"`

5394 5466 


5452 - `Mcp object { server_label, type, allowed_callers, 9 more }`5524 - `Mcp object { server_label, type, allowed_callers, 9 more }`

5453 5525 

5454 Give the model access to additional tools via remote Model Context Protocol5526 Give the model access to additional tools via remote Model Context Protocol

5455 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).5527 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

5456 5528 

5457 - `server_label: string`5529 - `server_label: string`

5458 5530 


5504 5576 

5505 Identifier for service connectors, like those available in ChatGPT. One of5577 Identifier for service connectors, like those available in ChatGPT. One of

5506 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more5578 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

5507 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).5579 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

5508 5580 

5509 Currently supported `connector_id` values are:5581 Currently supported `connector_id` values are:

5510 5582 


5696 5768 

5697 - `background: optional "transparent" or "opaque" or "auto"`5769 - `background: optional "transparent" or "opaque" or "auto"`

5698 5770 

5699 Set the background of the generated image. One of `transparent`,5771 Set the background of the generated image. One of `transparent`, `opaque`,

5700 `opaque`, or `auto`. Transparent backgrounds are available for5772 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

5701 supported GPT Image models. For `gpt-image-2` and5773 their `2026-09-08` snapshots, support `opaque` and `transparent`

5702 `gpt-image-2-2026-04-21`, this support is in preview. When using5774 backgrounds. Transparent backgrounds are available for supported GPT Image

5703 `transparent`, set the output format to `png` or `webp`. Default: `auto`.5775 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

5776 preview. When using `transparent`, set the output format to `png` or `webp`.

5777 Default: `auto`.

5704 5778 

5705 - `"transparent"`5779 - `"transparent"`

5706 5780 


5729 5803 

5730 Base64-encoded mask image.5804 Base64-encoded mask image.

5731 5805 

5732 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`5806 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

5733 5807 

5734 The image generation model to use. One of `gpt-image-1`,5808 The image generation model to use. One of `gpt-image-1`,

5735 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,5809 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

5736 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:5810 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

5811 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

5812 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

5737 `gpt-image-1`.5813 `gpt-image-1`.

5738 5814 

5739 - `string`5815 - `string`

5740 5816 

5741 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`5817 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

5742 5818 

5743 The image generation model to use. One of `gpt-image-1`,5819 The image generation model to use. One of `gpt-image-1`,

5744 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,5820 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

5745 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:5821 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

5822 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

5823 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

5746 `gpt-image-1`.5824 `gpt-image-1`.

5747 5825 

5748 - `"gpt-image-1"`5826 - `"gpt-image-1"`


5755 5833 

5756 - `"gpt-image-2-2026-04-21"`5834 - `"gpt-image-2-2026-04-21"`

5757 5835 

5836 - `"gpt-image-2.5-sunburst"`

5837 

5838 - `"gpt-image-2.5-sunburst-2026-09-08"`

5839 

5840 - `"gpt-image-2.5-flare"`

5841 

5842 - `"gpt-image-2.5-flare-2026-09-08"`

5843 

5758 - `moderation: optional "auto" or "low"`5844 - `moderation: optional "auto" or "low"`

5759 5845 

5760 Moderation level for the generated image. Default: `auto`.5846 Moderation level for the generated image. Default: `auto`.


5782 5868 

5783 Number of partial images to generate in streaming mode, from 0 (default value) to 3.5869 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

5784 5870 

5785 - `quality: optional "low" or "medium" or "high" or "auto"`5871 - `quality: optional "low" or "medium" or "high" or 3 more`

5786 5872 

5787 The quality of the generated image. One of `low`, `medium`, `high`,5873 The quality of the generated image. The GPT image models support `low`,

5788 or `auto`. Default: `auto`.5874 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

5875 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

5876 Default: `auto`.

5789 5877 

5790 - `"low"`5878 - `"low"`

5791 5879 


5793 5881 

5794 - `"high"`5882 - `"high"`

5795 5883 

5884 - `"xhigh"`

5885 

5886 - `"max"`

5887 

5796 - `"auto"`5888 - `"auto"`

5797 5889 

5798 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`5890 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

5799 5891 

5800 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`.5892 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`.

5801 5893 

5802 - `string`5894 - `string`

5803 5895 

5804 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`5896 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

5805 5897 

5806 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`.5898 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`.

5807 5899 

5808 - `"1024x1024"`5900 - `"1024x1024"`

5809 5901 


5851 5943 

5852 - `Custom object { name, type, allowed_callers, 4 more }`5944 - `Custom object { name, type, allowed_callers, 4 more }`

5853 5945 

5854 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)5946 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

5855 5947 

5856 - `name: string`5948 - `name: string`

5857 5949 


5941 6033 

5942 - `Custom object { name, type, allowed_callers, 4 more }`6034 - `Custom object { name, type, allowed_callers, 4 more }`

5943 6035 

5944 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)6036 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

5945 6037 

5946 - `name: string`6038 - `name: string`

5947 6039 


6011 6103 

6012 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`6104 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

6013 6105 

6014 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).6106 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).

6015 6107 

6016 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`6108 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

6017 6109 


6123 6215 

6124 - `Function object { name, parameters, strict, 6 more }`6216 - `Function object { name, parameters, strict, 6 more }`

6125 6217 

6126 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).6218 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

6127 6219 

6128 - `name: string`6220 - `name: string`

6129 6221 


6167 6259 

6168 - `FileSearch object { type, vector_store_ids, filters, 2 more }`6260 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

6169 6261 

6170 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).6262 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

6171 6263 

6172 - `type: "file_search"`6264 - `type: "file_search"`

6173 6265 


6225 6317 

6226 - `Computer object { type }`6318 - `Computer object { type }`

6227 6319 

6228 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).6320 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

6229 6321 

6230 - `type: "computer"`6322 - `type: "computer"`

6231 6323 


6235 6327 

6236 - `ComputerUsePreview object { display_height, display_width, environment, type }`6328 - `ComputerUsePreview object { display_height, display_width, environment, type }`

6237 6329 

6238 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).6330 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

6239 6331 

6240 - `display_height: number`6332 - `display_height: number`

6241 6333 


6268 - `WebSearch object { type, external_web_access, filters, 2 more }`6360 - `WebSearch object { type, external_web_access, filters, 2 more }`

6269 6361 

6270 Search the Internet for sources related to the prompt. Learn more about the6362 Search the Internet for sources related to the prompt. Learn more about the

6271 [web search tool](/docs/guides/tools-web-search).6363 [web search tool](/api/docs/guides/tools-web-search).

6272 6364 

6273 - `type: "web_search" or "web_search_2025_08_26"`6365 - `type: "web_search" or "web_search_2025_08_26"`

6274 6366 


6332 - `Mcp object { server_label, type, allowed_callers, 9 more }`6424 - `Mcp object { server_label, type, allowed_callers, 9 more }`

6333 6425 

6334 Give the model access to additional tools via remote Model Context Protocol6426 Give the model access to additional tools via remote Model Context Protocol

6335 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).6427 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

6336 6428 

6337 - `server_label: string`6429 - `server_label: string`

6338 6430 


6384 6476 

6385 Identifier for service connectors, like those available in ChatGPT. One of6477 Identifier for service connectors, like those available in ChatGPT. One of

6386 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more6478 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

6387 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).6479 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

6388 6480 

6389 Currently supported `connector_id` values are:6481 Currently supported `connector_id` values are:

6390 6482 


6576 6668 

6577 - `background: optional "transparent" or "opaque" or "auto"`6669 - `background: optional "transparent" or "opaque" or "auto"`

6578 6670 

6579 Set the background of the generated image. One of `transparent`,6671 Set the background of the generated image. One of `transparent`, `opaque`,

6580 `opaque`, or `auto`. Transparent backgrounds are available for6672 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

6581 supported GPT Image models. For `gpt-image-2` and6673 their `2026-09-08` snapshots, support `opaque` and `transparent`

6582 `gpt-image-2-2026-04-21`, this support is in preview. When using6674 backgrounds. Transparent backgrounds are available for supported GPT Image

6583 `transparent`, set the output format to `png` or `webp`. Default: `auto`.6675 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

6676 preview. When using `transparent`, set the output format to `png` or `webp`.

6677 Default: `auto`.

6584 6678 

6585 - `"transparent"`6679 - `"transparent"`

6586 6680 


6609 6703 

6610 Base64-encoded mask image.6704 Base64-encoded mask image.

6611 6705 

6612 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`6706 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

6613 6707 

6614 The image generation model to use. One of `gpt-image-1`,6708 The image generation model to use. One of `gpt-image-1`,

6615 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,6709 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

6616 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:6710 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6711 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6712 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

6617 `gpt-image-1`.6713 `gpt-image-1`.

6618 6714 

6619 - `string`6715 - `string`

6620 6716 

6621 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`6717 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

6622 6718 

6623 The image generation model to use. One of `gpt-image-1`,6719 The image generation model to use. One of `gpt-image-1`,

6624 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,6720 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

6625 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:6721 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6722 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6723 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

6626 `gpt-image-1`.6724 `gpt-image-1`.

6627 6725 

6628 - `"gpt-image-1"`6726 - `"gpt-image-1"`


6635 6733 

6636 - `"gpt-image-2-2026-04-21"`6734 - `"gpt-image-2-2026-04-21"`

6637 6735 

6736 - `"gpt-image-2.5-sunburst"`

6737 

6738 - `"gpt-image-2.5-sunburst-2026-09-08"`

6739 

6740 - `"gpt-image-2.5-flare"`

6741 

6742 - `"gpt-image-2.5-flare-2026-09-08"`

6743 

6638 - `moderation: optional "auto" or "low"`6744 - `moderation: optional "auto" or "low"`

6639 6745 

6640 Moderation level for the generated image. Default: `auto`.6746 Moderation level for the generated image. Default: `auto`.


6662 6768 

6663 Number of partial images to generate in streaming mode, from 0 (default value) to 3.6769 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

6664 6770 

6665 - `quality: optional "low" or "medium" or "high" or "auto"`6771 - `quality: optional "low" or "medium" or "high" or 3 more`

6666 6772 

6667 The quality of the generated image. One of `low`, `medium`, `high`,6773 The quality of the generated image. The GPT image models support `low`,

6668 or `auto`. Default: `auto`.6774 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

6775 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

6776 Default: `auto`.

6669 6777 

6670 - `"low"`6778 - `"low"`

6671 6779 


6673 6781 

6674 - `"high"`6782 - `"high"`

6675 6783 

6784 - `"xhigh"`

6785 

6786 - `"max"`

6787 

6676 - `"auto"`6788 - `"auto"`

6677 6789 

6678 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`6790 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

6679 6791 

6680 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`.6792 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`.

6681 6793 

6682 - `string`6794 - `string`

6683 6795 

6684 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`6796 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

6685 6797 

6686 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`.6798 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`.

6687 6799 

6688 - `"1024x1024"`6800 - `"1024x1024"`

6689 6801 


6731 6843 

6732 - `Custom object { name, type, allowed_callers, 4 more }`6844 - `Custom object { name, type, allowed_callers, 4 more }`

6733 6845 

6734 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)6846 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

6735 6847 

6736 - `name: string`6848 - `name: string`

6737 6849 


6821 6933 

6822 - `Custom object { name, type, allowed_callers, 4 more }`6934 - `Custom object { name, type, allowed_callers, 4 more }`

6823 6935 

6824 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)6936 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

6825 6937 

6826 - `name: string`6938 - `name: string`

6827 6939 


6891 7003 

6892 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`7004 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

6893 7005 

6894 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).7006 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).

6895 7007 

6896 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`7008 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

6897 7009 


6969 7081 

6970 - `Compaction object { id, encrypted_content, type, created_by }`7082 - `Compaction object { id, encrypted_content, type, created_by }`

6971 7083 

6972 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).7084 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).

6973 7085 

6974 - `id: string`7086 - `id: string`

6975 7087 


6989 7101 

6990 The identifier of the actor that created the item.7102 The identifier of the actor that created the item.

6991 7103 

6992 - `ImageGenerationCall object { id, result, status, type }`7104 - `ImageGenerationCall object { id, result, status, 3 more }`

6993 7105 

6994 An image generation request made by the model.7106 An image generation request made by the model.

6995 7107 


7019 7131 

7020 - `"image_generation_call"`7132 - `"image_generation_call"`

7021 7133 

7134 - `quality: optional "low" or "medium" or "high" or 3 more or null`

7135 

7136 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.

7137 

7138 - `"low"`

7139 

7140 - `"medium"`

7141 

7142 - `"high"`

7143 

7144 - `"xhigh"`

7145 

7146 - `"max"`

7147 

7148 - `"auto"`

7149 

7150 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`

7151 

7152 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

7153 

7154 - `string`

7155 

7156 - `"1024x1024" or "1024x1536" or "1536x1024"`

7157 

7158 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

7159 

7160 - `"1024x1024"`

7161 

7162 - `"1024x1536"`

7163 

7164 - `"1536x1024"`

7165 

7022 - `CodeInterpreterCall object { id, code, container_id, 3 more }`7166 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

7023 7167 

7024 A tool call to run code.7168 A tool call to run code.


7754 7898 

7755 - `ResponseInputImage object { detail, type, file_id, 2 more }`7899 - `ResponseInputImage object { detail, type, file_id, 2 more }`

7756 7900 

7757 An image input to the model. Learn about [image inputs](/docs/guides/vision).7901 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

7758 7902 

7759 - `ResponseInputFile object { type, detail, file_data, 4 more }`7903 - `ResponseInputFile object { type, detail, file_data, 4 more }`

7760 7904 


7877 - `ToolChoiceTypes object { type }`8021 - `ToolChoiceTypes object { type }`

7878 8022 

7879 Indicates that the model should use a built-in tool to generate a response.8023 Indicates that the model should use a built-in tool to generate a response.

7880 [Learn more about built-in tools](/docs/guides/tools).8024 [Learn more about built-in tools](/api/docs/guides/tools).

7881 8025 

7882 - `type: "file_search" or "web_search_preview" or "computer" or 5 more`8026 - `type: "file_search" or "web_search_preview" or "computer" or 5 more`

7883 8027 

7884 The type of hosted tool the model should to use. Learn more about8028 The type of hosted tool the model should to use. Learn more about

7885 [built-in tools](/docs/guides/tools).8029 [built-in tools](/api/docs/guides/tools).

7886 8030 

7887 Allowed values are:8031 Allowed values are:

7888 8032 


7992 We support the following categories of tools:8136 We support the following categories of tools:

7993 8137 

7994 - **Built-in tools**: Tools that are provided by OpenAI that extend the8138 - **Built-in tools**: Tools that are provided by OpenAI that extend the

7995 model's capabilities, like [web search](/docs/guides/tools-web-search)8139 model's capabilities, like [web search](/api/docs/guides/tools-web-search)

7996 or [file search](/docs/guides/tools-file-search). Learn more about8140 or [file search](/api/docs/guides/tools-file-search). Learn more about

7997 [built-in tools](/docs/guides/tools).8141 [built-in tools](/api/docs/guides/tools).

7998 - **MCP Tools**: Integrations with third-party systems via custom MCP servers8142 - **MCP Tools**: Integrations with third-party systems via custom MCP servers

7999 or predefined connectors such as Google Drive and SharePoint. Learn more about8143 or predefined connectors such as Google Drive and SharePoint. Learn more about

8000 [MCP Tools](/docs/guides/tools-connectors-mcp).8144 [MCP Tools](/api/docs/guides/tools-connectors-mcp).

8001 - **Function calls (custom tools)**: Functions that are defined by you,8145 - **Function calls (custom tools)**: Functions that are defined by you,

8002 enabling the model to call your own code with strongly typed arguments8146 enabling the model to call your own code with strongly typed arguments

8003 and outputs. Learn more about8147 and outputs. Learn more about

8004 [function calling](/docs/guides/function-calling). You can also use8148 [function calling](/api/docs/guides/function-calling). You can also use

8005 custom tools to call your own code.8149 custom tools to call your own code.

8006 8150 

8007 - `Function object { name, parameters, strict, 6 more }`8151 - `Function object { name, parameters, strict, 6 more }`

8008 8152 

8009 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).8153 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

8010 8154 

8011 - `name: string`8155 - `name: string`

8012 8156 


8050 8194 

8051 - `FileSearch object { type, vector_store_ids, filters, 2 more }`8195 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

8052 8196 

8053 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).8197 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

8054 8198 

8055 - `type: "file_search"`8199 - `type: "file_search"`

8056 8200 


8108 8252 

8109 - `Computer object { type }`8253 - `Computer object { type }`

8110 8254 

8111 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).8255 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

8112 8256 

8113 - `type: "computer"`8257 - `type: "computer"`

8114 8258 


8118 8262 

8119 - `ComputerUsePreview object { display_height, display_width, environment, type }`8263 - `ComputerUsePreview object { display_height, display_width, environment, type }`

8120 8264 

8121 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).8265 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

8122 8266 

8123 - `display_height: number`8267 - `display_height: number`

8124 8268 


8151 - `WebSearch object { type, external_web_access, filters, 2 more }`8295 - `WebSearch object { type, external_web_access, filters, 2 more }`

8152 8296 

8153 Search the Internet for sources related to the prompt. Learn more about the8297 Search the Internet for sources related to the prompt. Learn more about the

8154 [web search tool](/docs/guides/tools-web-search).8298 [web search tool](/api/docs/guides/tools-web-search).

8155 8299 

8156 - `type: "web_search" or "web_search_2025_08_26"`8300 - `type: "web_search" or "web_search_2025_08_26"`

8157 8301 


8215 - `Mcp object { server_label, type, allowed_callers, 9 more }`8359 - `Mcp object { server_label, type, allowed_callers, 9 more }`

8216 8360 

8217 Give the model access to additional tools via remote Model Context Protocol8361 Give the model access to additional tools via remote Model Context Protocol

8218 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).8362 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

8219 8363 

8220 - `server_label: string`8364 - `server_label: string`

8221 8365 


8267 8411 

8268 Identifier for service connectors, like those available in ChatGPT. One of8412 Identifier for service connectors, like those available in ChatGPT. One of

8269 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more8413 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

8270 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).8414 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

8271 8415 

8272 Currently supported `connector_id` values are:8416 Currently supported `connector_id` values are:

8273 8417 


8459 8603 

8460 - `background: optional "transparent" or "opaque" or "auto"`8604 - `background: optional "transparent" or "opaque" or "auto"`

8461 8605 

8462 Set the background of the generated image. One of `transparent`,8606 Set the background of the generated image. One of `transparent`, `opaque`,

8463 `opaque`, or `auto`. Transparent backgrounds are available for8607 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

8464 supported GPT Image models. For `gpt-image-2` and8608 their `2026-09-08` snapshots, support `opaque` and `transparent`

8465 `gpt-image-2-2026-04-21`, this support is in preview. When using8609 backgrounds. Transparent backgrounds are available for supported GPT Image

8466 `transparent`, set the output format to `png` or `webp`. Default: `auto`.8610 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

8611 preview. When using `transparent`, set the output format to `png` or `webp`.

8612 Default: `auto`.

8467 8613 

8468 - `"transparent"`8614 - `"transparent"`

8469 8615 


8492 8638 

8493 Base64-encoded mask image.8639 Base64-encoded mask image.

8494 8640 

8495 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`8641 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

8496 8642 

8497 The image generation model to use. One of `gpt-image-1`,8643 The image generation model to use. One of `gpt-image-1`,

8498 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,8644 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

8499 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:8645 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

8646 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

8647 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

8500 `gpt-image-1`.8648 `gpt-image-1`.

8501 8649 

8502 - `string`8650 - `string`

8503 8651 

8504 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`8652 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

8505 8653 

8506 The image generation model to use. One of `gpt-image-1`,8654 The image generation model to use. One of `gpt-image-1`,

8507 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,8655 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

8508 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:8656 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

8657 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

8658 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

8509 `gpt-image-1`.8659 `gpt-image-1`.

8510 8660 

8511 - `"gpt-image-1"`8661 - `"gpt-image-1"`


8518 8668 

8519 - `"gpt-image-2-2026-04-21"`8669 - `"gpt-image-2-2026-04-21"`

8520 8670 

8671 - `"gpt-image-2.5-sunburst"`

8672 

8673 - `"gpt-image-2.5-sunburst-2026-09-08"`

8674 

8675 - `"gpt-image-2.5-flare"`

8676 

8677 - `"gpt-image-2.5-flare-2026-09-08"`

8678 

8521 - `moderation: optional "auto" or "low"`8679 - `moderation: optional "auto" or "low"`

8522 8680 

8523 Moderation level for the generated image. Default: `auto`.8681 Moderation level for the generated image. Default: `auto`.


8545 8703 

8546 Number of partial images to generate in streaming mode, from 0 (default value) to 3.8704 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

8547 8705 

8548 - `quality: optional "low" or "medium" or "high" or "auto"`8706 - `quality: optional "low" or "medium" or "high" or 3 more`

8549 8707 

8550 The quality of the generated image. One of `low`, `medium`, `high`,8708 The quality of the generated image. The GPT image models support `low`,

8551 or `auto`. Default: `auto`.8709 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

8710 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

8711 Default: `auto`.

8552 8712 

8553 - `"low"`8713 - `"low"`

8554 8714 


8556 8716 

8557 - `"high"`8717 - `"high"`

8558 8718 

8719 - `"xhigh"`

8720 

8721 - `"max"`

8722 

8559 - `"auto"`8723 - `"auto"`

8560 8724 

8561 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`8725 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

8562 8726 

8563 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`.8727 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`.

8564 8728 

8565 - `string`8729 - `string`

8566 8730 

8567 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`8731 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

8568 8732 

8569 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`.8733 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`.

8570 8734 

8571 - `"1024x1024"`8735 - `"1024x1024"`

8572 8736 


8614 8778 

8615 - `Custom object { name, type, allowed_callers, 4 more }`8779 - `Custom object { name, type, allowed_callers, 4 more }`

8616 8780 

8617 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)8781 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

8618 8782 

8619 - `name: string`8783 - `name: string`

8620 8784 


8704 8868 

8705 - `Custom object { name, type, allowed_callers, 4 more }`8869 - `Custom object { name, type, allowed_callers, 4 more }`

8706 8870 

8707 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)8871 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

8708 8872 

8709 - `name: string`8873 - `name: string`

8710 8874 


8774 8938 

8775 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`8939 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

8776 8940 

8777 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).8941 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).

8778 8942 

8779 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`8943 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

8780 8944 


8856 - `background: optional boolean or null`9020 - `background: optional boolean or null`

8857 9021 

8858 Whether to run the model response in the background.9022 Whether to run the model response in the background.

8859 [Learn more](/docs/guides/background).9023 [Learn more](/api/docs/guides/background).

8860 9024 

8861 - `completed_at: optional number or null`9025 - `completed_at: optional number or null`

8862 9026 


8873 9037 

8874 - `max_output_tokens: optional number or null`9038 - `max_output_tokens: optional number or null`

8875 9039 

8876 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).9040 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).

8877 9041 

8878 - `max_tool_calls: optional number or null`9042 - `max_tool_calls: optional number or null`

8879 9043 


9005 9169 

9006 The unique ID of the previous response to the model. Use this to9170 The unique ID of the previous response to the model. Use this to

9007 create multi-turn conversations. Learn more about9171 create multi-turn conversations. Learn more about

9008 [conversation state](/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.9172 [conversation state](/api/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.

9009 9173 

9010 - `prompt: optional ResponsePrompt or null`9174 - `prompt: optional ResponsePrompt or null`

9011 9175 

9012 Reference to a prompt template and its variables.9176 Reference to a prompt template and its variables.

9013 [Learn more](/docs/guides/text?api-mode=responses#reusable-prompts).9177 [Learn more](/api/docs/guides/text?api-mode=responses#version-prompts-in-code).

9014 9178 

9015 - `id: string`9179 - `id: string`

9016 9180 


9030 9194 

9031 - `ResponseInputImage object { detail, type, file_id, 2 more }`9195 - `ResponseInputImage object { detail, type, file_id, 2 more }`

9032 9196 

9033 An image input to the model. Learn about [image inputs](/docs/guides/vision).9197 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

9034 9198 

9035 - `ResponseInputFile object { type, detail, file_data, 4 more }`9199 - `ResponseInputFile object { type, detail, file_data, 4 more }`

9036 9200 


9100 9264 

9101 - `prompt_cache_key: optional string or null`9265 - `prompt_cache_key: optional string or null`

9102 9266 

9103 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).9267 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).

9104 9268 

9105 - `prompt_cache_options: optional object { mode, ttl, comparison_response_id }`9269 - `prompt_cache_options: optional object { mode, ttl, comparison_response_id }`

9106 9270 


9128 9292 

9129 Deprecated. Use `prompt_cache_options.ttl` instead.9293 Deprecated. Use `prompt_cache_options.ttl` instead.

9130 9294 

9131 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).9295 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).

9132 This field expresses a maximum retention policy, while9296 This field expresses a maximum retention policy, while

9133 `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two9297 `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two

9134 fields are independent and do not interact.9298 fields are independent and do not interact.


9146 - `reasoning: optional Reasoning or null`9310 - `reasoning: optional Reasoning or null`

9147 9311 

9148 Configuration options for9312 Configuration options for

9149 [reasoning models](https://platform.openai.com/docs/guides/reasoning).9313 [reasoning models](/api/docs/guides/reasoning).

9150 9314 

9151 - `context: optional "auto" or "current_turn" or "all_turns" or null`9315 - `context: optional "auto" or "current_turn" or "all_turns" or null`

9152 9316 


9171 Reducing reasoning effort can result in faster responses and fewer tokens9335 Reducing reasoning effort can result in faster responses and fewer tokens

9172 used on reasoning in a response. Not all reasoning models support every9336 used on reasoning in a response. Not all reasoning models support every

9173 value. See the9337 value. See the

9174 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)9338 [reasoning guide](/api/docs/guides/reasoning)

9175 for model-specific support.9339 for model-specific support.

9176 9340 

9177 - `generate_summary: optional "auto" or "concise" or "detailed" or null`9341 - `generate_summary: optional "auto" or "concise" or "detailed" or null`


9223 - `safety_identifier: optional string or null`9387 - `safety_identifier: optional string or null`

9224 9388 

9225 A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.9389 A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.

9226 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).9390 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).

9227 9391 

9228 - `service_tier: optional ServiceTier or null`9392 - `service_tier: optional ServiceTier or null`

9229 9393 


9231 9395 

9232 - 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'.9396 - 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'.

9233 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.9397 - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.

9234 - If set to '[flex](/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.9398 - If set to '[flex](/api/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.

9235 - 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.9399 - 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.

9236 - 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`.9400 - 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`.

9237 - When not set, the default behavior is 'auto'.9401 - When not set, the default behavior is 'auto'.


9274 Configuration options for a text response from the model. Can be plain9438 Configuration options for a text response from the model. Can be plain

9275 text or structured JSON data. Learn more:9439 text or structured JSON data. Learn more:

9276 9440 

9277 - [Text inputs and outputs](/docs/guides/text)9441 - [Text inputs and outputs](/api/docs/guides/text)

9278 - [Structured Outputs](/docs/guides/structured-outputs)9442 - [Structured Outputs](/api/docs/guides/structured-outputs)

9279 9443 

9280 - `format: optional ResponseFormatTextConfig`9444 - `format: optional ResponseFormatTextConfig`

9281 9445 


9283 9447 

9284 Configuring `{ "type": "json_schema" }` enables Structured Outputs,9448 Configuring `{ "type": "json_schema" }` enables Structured Outputs,

9285 which ensures the model will match your supplied JSON schema. Learn more in the9449 which ensures the model will match your supplied JSON schema. Learn more in the

9286 [Structured Outputs guide](/docs/guides/structured-outputs).9450 [Structured Outputs guide](/api/docs/guides/structured-outputs).

9287 9451 

9288 The default format is `{ "type": "text" }` with no additional options.9452 The default format is `{ "type": "text" }` with no additional options.

9289 9453 


9306 - `ResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`9470 - `ResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`

9307 9471 

9308 JSON Schema response format. Used to generate structured JSON responses.9472 JSON Schema response format. Used to generate structured JSON responses.

9309 Learn more about [Structured Outputs](/docs/guides/structured-outputs).9473 Learn more about [Structured Outputs](/api/docs/guides/structured-outputs).

9310 9474 

9311 - `name: string`9475 - `name: string`

9312 9476 


9335 If set to true, the model will always follow the exact schema defined9499 If set to true, the model will always follow the exact schema defined

9336 in the `schema` field. Only a subset of JSON Schema is supported when9500 in the `schema` field. Only a subset of JSON Schema is supported when

9337 `strict` is `true`. To learn more, read the [Structured Outputs9501 `strict` is `true`. To learn more, read the [Structured Outputs

9338 guide](/docs/guides/structured-outputs).9502 guide](/api/docs/guides/structured-outputs).

9339 9503 

9340 - `ResponseFormatJSONObject object { type }`9504 - `ResponseFormatJSONObject object { type }`

9341 9505 


9404 - `cached_tokens: number`9568 - `cached_tokens: number`

9405 9569 

9406 The number of tokens that were retrieved from the cache.9570 The number of tokens that were retrieved from the cache.

9407 [More on prompt caching](/docs/guides/prompt-caching).9571 [More on prompt caching](/api/docs/guides/prompt-caching).

9408 9572 

9409 - `output_tokens: number`9573 - `output_tokens: number`

9410 9574 


9426 9590 

9427 This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.9591 This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.

9428 A stable identifier for your end-users.9592 A stable identifier for your end-users.

9429 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).9593 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).

9430 9594 

9431### Example9595### Example

9432 9596 

Details

98 98 

99 - `ResponseInputImage object { detail, type, file_id, 2 more }`99 - `ResponseInputImage object { detail, type, file_id, 2 more }`

100 100 

101 An image input to the model. Learn about [image inputs](/docs/guides/vision).101 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

102 102 

103 - `detail: ImageDetail`103 - `detail: ImageDetail`

104 104 


401 - `FileSearchCall object { id, queries, status, 2 more }`401 - `FileSearchCall object { id, queries, status, 2 more }`

402 402 

403 The results of a file search tool call. See the403 The results of a file search tool call. See the

404 [file search guide](/docs/guides/tools-file-search) for more information.404 [file search guide](/api/docs/guides/tools-file-search) for more information.

405 405 

406 - `id: string`406 - `id: string`

407 407 


469 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`469 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`

470 470 

471 A tool call to a computer use tool. See the471 A tool call to a computer use tool. See the

472 [computer use guide](/docs/guides/tools-computer-use) for more information.472 [computer use guide](/api/docs/guides/tools-computer-use) for more information.

473 473 

474 - `id: string`474 - `id: string`

475 475 


820 - `WebSearchCall object { id, action, status, type }`820 - `WebSearchCall object { id, action, status, type }`

821 821 

822 The results of a web search tool call. See the822 The results of a web search tool call. See the

823 [web search guide](/docs/guides/tools-web-search) for more information.823 [web search guide](/api/docs/guides/tools-web-search) for more information.

824 824 

825 - `id: string`825 - `id: string`

826 826 


1007 1007 

1008 - `ResponseInputImage object { detail, type, file_id, 2 more }`1008 - `ResponseInputImage object { detail, type, file_id, 2 more }`

1009 1009 

1010 An image input to the model. Learn about [image inputs](/docs/guides/vision).1010 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

1011 1011 

1012 - `ResponseInputFile object { type, detail, file_data, 4 more }`1012 - `ResponseInputFile object { type, detail, file_data, 4 more }`

1013 1013 


1146 1146 

1147 - `Function object { name, parameters, strict, 6 more }`1147 - `Function object { name, parameters, strict, 6 more }`

1148 1148 

1149 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).1149 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

1150 1150 

1151 - `name: string`1151 - `name: string`

1152 1152 


1190 1190 

1191 - `FileSearch object { type, vector_store_ids, filters, 2 more }`1191 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

1192 1192 

1193 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).1193 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

1194 1194 

1195 - `type: "file_search"`1195 - `type: "file_search"`

1196 1196 


1315 1315 

1316 - `Computer object { type }`1316 - `Computer object { type }`

1317 1317 

1318 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1318 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1319 1319 

1320 - `type: "computer"`1320 - `type: "computer"`

1321 1321 


1325 1325 

1326 - `ComputerUsePreview object { display_height, display_width, environment, type }`1326 - `ComputerUsePreview object { display_height, display_width, environment, type }`

1327 1327 

1328 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1328 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1329 1329 

1330 - `display_height: number`1330 - `display_height: number`

1331 1331 


1358 - `WebSearch object { type, external_web_access, filters, 2 more }`1358 - `WebSearch object { type, external_web_access, filters, 2 more }`

1359 1359 

1360 Search the Internet for sources related to the prompt. Learn more about the1360 Search the Internet for sources related to the prompt. Learn more about the

1361 [web search tool](/docs/guides/tools-web-search).1361 [web search tool](/api/docs/guides/tools-web-search).

1362 1362 

1363 - `type: "web_search" or "web_search_2025_08_26"`1363 - `type: "web_search" or "web_search_2025_08_26"`

1364 1364 


1422 - `Mcp object { server_label, type, allowed_callers, 9 more }`1422 - `Mcp object { server_label, type, allowed_callers, 9 more }`

1423 1423 

1424 Give the model access to additional tools via remote Model Context Protocol1424 Give the model access to additional tools via remote Model Context Protocol

1425 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).1425 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

1426 1426 

1427 - `server_label: string`1427 - `server_label: string`

1428 1428 


1474 1474 

1475 Identifier for service connectors, like those available in ChatGPT. One of1475 Identifier for service connectors, like those available in ChatGPT. One of

1476 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more1476 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

1477 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).1477 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

1478 1478 

1479 Currently supported `connector_id` values are:1479 Currently supported `connector_id` values are:

1480 1480 


1698 1698 

1699 - `background: optional "transparent" or "opaque" or "auto"`1699 - `background: optional "transparent" or "opaque" or "auto"`

1700 1700 

1701 Set the background of the generated image. One of `transparent`,1701 Set the background of the generated image. One of `transparent`, `opaque`,

1702 `opaque`, or `auto`. Transparent backgrounds are available for1702 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

1703 supported GPT Image models. For `gpt-image-2` and1703 their `2026-09-08` snapshots, support `opaque` and `transparent`

1704 `gpt-image-2-2026-04-21`, this support is in preview. When using1704 backgrounds. Transparent backgrounds are available for supported GPT Image

1705 `transparent`, set the output format to `png` or `webp`. Default: `auto`.1705 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

1706 preview. When using `transparent`, set the output format to `png` or `webp`.

1707 Default: `auto`.

1706 1708 

1707 - `"transparent"`1709 - `"transparent"`

1708 1710 


1731 1733 

1732 Base64-encoded mask image.1734 Base64-encoded mask image.

1733 1735 

1734 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1736 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1735 1737 

1736 The image generation model to use. One of `gpt-image-1`,1738 The image generation model to use. One of `gpt-image-1`,

1737 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1739 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1738 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1740 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1741 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1742 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1739 `gpt-image-1`.1743 `gpt-image-1`.

1740 1744 

1741 - `string`1745 - `string`

1742 1746 

1743 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1747 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1744 1748 

1745 The image generation model to use. One of `gpt-image-1`,1749 The image generation model to use. One of `gpt-image-1`,

1746 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1750 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1747 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1751 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1752 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1753 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1748 `gpt-image-1`.1754 `gpt-image-1`.

1749 1755 

1750 - `"gpt-image-1"`1756 - `"gpt-image-1"`


1757 1763 

1758 - `"gpt-image-2-2026-04-21"`1764 - `"gpt-image-2-2026-04-21"`

1759 1765 

1766 - `"gpt-image-2.5-sunburst"`

1767 

1768 - `"gpt-image-2.5-sunburst-2026-09-08"`

1769 

1770 - `"gpt-image-2.5-flare"`

1771 

1772 - `"gpt-image-2.5-flare-2026-09-08"`

1773 

1760 - `moderation: optional "auto" or "low"`1774 - `moderation: optional "auto" or "low"`

1761 1775 

1762 Moderation level for the generated image. Default: `auto`.1776 Moderation level for the generated image. Default: `auto`.


1784 1798 

1785 Number of partial images to generate in streaming mode, from 0 (default value) to 3.1799 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

1786 1800 

1787 - `quality: optional "low" or "medium" or "high" or "auto"`1801 - `quality: optional "low" or "medium" or "high" or 3 more`

1788 1802 

1789 The quality of the generated image. One of `low`, `medium`, `high`,1803 The quality of the generated image. The GPT image models support `low`,

1790 or `auto`. Default: `auto`.1804 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

1805 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

1806 Default: `auto`.

1791 1807 

1792 - `"low"`1808 - `"low"`

1793 1809 


1795 1811 

1796 - `"high"`1812 - `"high"`

1797 1813 

1814 - `"xhigh"`

1815 

1816 - `"max"`

1817 

1798 - `"auto"`1818 - `"auto"`

1799 1819 

1800 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`1820 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

1801 1821 

1802 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`.1822 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`.

1803 1823 

1804 - `string`1824 - `string`

1805 1825 

1806 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`1826 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

1807 1827 

1808 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`.1828 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`.

1809 1829 

1810 - `"1024x1024"`1830 - `"1024x1024"`

1811 1831 


1971 1991 

1972 - `Custom object { name, type, allowed_callers, 4 more }`1992 - `Custom object { name, type, allowed_callers, 4 more }`

1973 1993 

1974 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)1994 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

1975 1995 

1976 - `name: string`1996 - `name: string`

1977 1997 


2093 2113 

2094 - `Custom object { name, type, allowed_callers, 4 more }`2114 - `Custom object { name, type, allowed_callers, 4 more }`

2095 2115 

2096 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2116 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2097 2117 

2098 - `name: string`2118 - `name: string`

2099 2119 


2163 2183 

2164 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`2184 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

2165 2185 

2166 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).2186 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).

2167 2187 

2168 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`2188 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

2169 2189 


2275 2295 

2276 - `Function object { name, parameters, strict, 6 more }`2296 - `Function object { name, parameters, strict, 6 more }`

2277 2297 

2278 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).2298 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

2279 2299 

2280 - `name: string`2300 - `name: string`

2281 2301 


2319 2339 

2320 - `FileSearch object { type, vector_store_ids, filters, 2 more }`2340 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

2321 2341 

2322 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).2342 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

2323 2343 

2324 - `type: "file_search"`2344 - `type: "file_search"`

2325 2345 


2377 2397 

2378 - `Computer object { type }`2398 - `Computer object { type }`

2379 2399 

2380 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).2400 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

2381 2401 

2382 - `type: "computer"`2402 - `type: "computer"`

2383 2403 


2387 2407 

2388 - `ComputerUsePreview object { display_height, display_width, environment, type }`2408 - `ComputerUsePreview object { display_height, display_width, environment, type }`

2389 2409 

2390 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).2410 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

2391 2411 

2392 - `display_height: number`2412 - `display_height: number`

2393 2413 


2420 - `WebSearch object { type, external_web_access, filters, 2 more }`2440 - `WebSearch object { type, external_web_access, filters, 2 more }`

2421 2441 

2422 Search the Internet for sources related to the prompt. Learn more about the2442 Search the Internet for sources related to the prompt. Learn more about the

2423 [web search tool](/docs/guides/tools-web-search).2443 [web search tool](/api/docs/guides/tools-web-search).

2424 2444 

2425 - `type: "web_search" or "web_search_2025_08_26"`2445 - `type: "web_search" or "web_search_2025_08_26"`

2426 2446 


2484 - `Mcp object { server_label, type, allowed_callers, 9 more }`2504 - `Mcp object { server_label, type, allowed_callers, 9 more }`

2485 2505 

2486 Give the model access to additional tools via remote Model Context Protocol2506 Give the model access to additional tools via remote Model Context Protocol

2487 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).2507 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

2488 2508 

2489 - `server_label: string`2509 - `server_label: string`

2490 2510 


2536 2556 

2537 Identifier for service connectors, like those available in ChatGPT. One of2557 Identifier for service connectors, like those available in ChatGPT. One of

2538 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more2558 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

2539 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).2559 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

2540 2560 

2541 Currently supported `connector_id` values are:2561 Currently supported `connector_id` values are:

2542 2562 


2728 2748 

2729 - `background: optional "transparent" or "opaque" or "auto"`2749 - `background: optional "transparent" or "opaque" or "auto"`

2730 2750 

2731 Set the background of the generated image. One of `transparent`,2751 Set the background of the generated image. One of `transparent`, `opaque`,

2732 `opaque`, or `auto`. Transparent backgrounds are available for2752 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

2733 supported GPT Image models. For `gpt-image-2` and2753 their `2026-09-08` snapshots, support `opaque` and `transparent`

2734 `gpt-image-2-2026-04-21`, this support is in preview. When using2754 backgrounds. Transparent backgrounds are available for supported GPT Image

2735 `transparent`, set the output format to `png` or `webp`. Default: `auto`.2755 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

2756 preview. When using `transparent`, set the output format to `png` or `webp`.

2757 Default: `auto`.

2736 2758 

2737 - `"transparent"`2759 - `"transparent"`

2738 2760 


2761 2783 

2762 Base64-encoded mask image.2784 Base64-encoded mask image.

2763 2785 

2764 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2786 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2765 2787 

2766 The image generation model to use. One of `gpt-image-1`,2788 The image generation model to use. One of `gpt-image-1`,

2767 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2789 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2768 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2790 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2791 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2792 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2769 `gpt-image-1`.2793 `gpt-image-1`.

2770 2794 

2771 - `string`2795 - `string`

2772 2796 

2773 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2797 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2774 2798 

2775 The image generation model to use. One of `gpt-image-1`,2799 The image generation model to use. One of `gpt-image-1`,

2776 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2800 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2777 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2801 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2802 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2803 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2778 `gpt-image-1`.2804 `gpt-image-1`.

2779 2805 

2780 - `"gpt-image-1"`2806 - `"gpt-image-1"`


2787 2813 

2788 - `"gpt-image-2-2026-04-21"`2814 - `"gpt-image-2-2026-04-21"`

2789 2815 

2816 - `"gpt-image-2.5-sunburst"`

2817 

2818 - `"gpt-image-2.5-sunburst-2026-09-08"`

2819 

2820 - `"gpt-image-2.5-flare"`

2821 

2822 - `"gpt-image-2.5-flare-2026-09-08"`

2823 

2790 - `moderation: optional "auto" or "low"`2824 - `moderation: optional "auto" or "low"`

2791 2825 

2792 Moderation level for the generated image. Default: `auto`.2826 Moderation level for the generated image. Default: `auto`.


2814 2848 

2815 Number of partial images to generate in streaming mode, from 0 (default value) to 3.2849 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

2816 2850 

2817 - `quality: optional "low" or "medium" or "high" or "auto"`2851 - `quality: optional "low" or "medium" or "high" or 3 more`

2818 2852 

2819 The quality of the generated image. One of `low`, `medium`, `high`,2853 The quality of the generated image. The GPT image models support `low`,

2820 or `auto`. Default: `auto`.2854 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

2855 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

2856 Default: `auto`.

2821 2857 

2822 - `"low"`2858 - `"low"`

2823 2859 


2825 2861 

2826 - `"high"`2862 - `"high"`

2827 2863 

2864 - `"xhigh"`

2865 

2866 - `"max"`

2867 

2828 - `"auto"`2868 - `"auto"`

2829 2869 

2830 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`2870 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2831 2871 

2832 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`.2872 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`.

2833 2873 

2834 - `string`2874 - `string`

2835 2875 

2836 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`2876 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2837 2877 

2838 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`.2878 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`.

2839 2879 

2840 - `"1024x1024"`2880 - `"1024x1024"`

2841 2881 


2883 2923 

2884 - `Custom object { name, type, allowed_callers, 4 more }`2924 - `Custom object { name, type, allowed_callers, 4 more }`

2885 2925 

2886 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2926 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2887 2927 

2888 - `name: string`2928 - `name: string`

2889 2929 


2973 3013 

2974 - `Custom object { name, type, allowed_callers, 4 more }`3014 - `Custom object { name, type, allowed_callers, 4 more }`

2975 3015 

2976 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3016 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2977 3017 

2978 - `name: string`3018 - `name: string`

2979 3019 


3043 3083 

3044 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`3084 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

3045 3085 

3046 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).3086 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).

3047 3087 

3048 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`3088 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

3049 3089 


3162 A description of the chain of thought used by a reasoning model while generating3202 A description of the chain of thought used by a reasoning model while generating

3163 a response. Be sure to include these items in your `input` to the Responses API3203 a response. Be sure to include these items in your `input` to the Responses API

3164 for subsequent turns of a conversation if you are manually3204 for subsequent turns of a conversation if you are manually

3165 [managing context](/docs/guides/conversation-state).3205 [managing context](/api/docs/guides/conversation-state).

3166 3206 

3167 - `id: string`3207 - `id: string`

3168 3208 


3279 3319 

3280 - `Compaction object { id, encrypted_content, type, created_by }`3320 - `Compaction object { id, encrypted_content, type, created_by }`

3281 3321 

3282 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).3322 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).

3283 3323 

3284 - `id: string`3324 - `id: string`

3285 3325 


3299 3339 

3300 The identifier of the actor that created the item.3340 The identifier of the actor that created the item.

3301 3341 

3302 - `ImageGenerationCall object { id, result, status, type }`3342 - `ImageGenerationCall object { id, result, status, 3 more }`

3303 3343 

3304 An image generation request made by the model.3344 An image generation request made by the model.

3305 3345 


3329 3369 

3330 - `"image_generation_call"`3370 - `"image_generation_call"`

3331 3371 

3372 - `quality: optional "low" or "medium" or "high" or 3 more or null`

3373 

3374 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.

3375 

3376 - `"low"`

3377 

3378 - `"medium"`

3379 

3380 - `"high"`

3381 

3382 - `"xhigh"`

3383 

3384 - `"max"`

3385 

3386 - `"auto"`

3387 

3388 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`

3389 

3390 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

3391 

3392 - `string`

3393 

3394 - `"1024x1024" or "1024x1536" or "1536x1024"`

3395 

3396 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

3397 

3398 - `"1024x1024"`

3399 

3400 - `"1024x1536"`

3401 

3402 - `"1536x1024"`

3403 

3332 - `CodeInterpreterCall object { id, code, container_id, 3 more }`3404 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

3333 3405 

3334 A tool call to run code.3406 A tool call to run code.


4105 4177 

4106 - `ResponseInputImage object { detail, type, file_id, 2 more }`4178 - `ResponseInputImage object { detail, type, file_id, 2 more }`

4107 4179 

4108 An image input to the model. Learn about [image inputs](/docs/guides/vision).4180 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

4109 4181 

4110 - `ResponseInputFile object { type, detail, file_data, 4 more }`4182 - `ResponseInputFile object { type, detail, file_data, 4 more }`

4111 4183 

Details

85 85 

86 - `ResponseInputImage object { detail, type, file_id, 2 more }`86 - `ResponseInputImage object { detail, type, file_id, 2 more }`

87 87 

88 An image input to the model. Learn about [image inputs](/docs/guides/vision).88 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

89 89 

90 - `detail: ImageDetail`90 - `detail: ImageDetail`

91 91 


428 - `FileSearchCall object { id, queries, status, 2 more }`428 - `FileSearchCall object { id, queries, status, 2 more }`

429 429 

430 The results of a file search tool call. See the430 The results of a file search tool call. See the

431 [file search guide](/docs/guides/tools-file-search) for more information.431 [file search guide](/api/docs/guides/tools-file-search) for more information.

432 432 

433 - `id: string`433 - `id: string`

434 434 


496 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`496 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`

497 497 

498 A tool call to a computer use tool. See the498 A tool call to a computer use tool. See the

499 [computer use guide](/docs/guides/tools-computer-use) for more information.499 [computer use guide](/api/docs/guides/tools-computer-use) for more information.

500 500 

501 - `id: string`501 - `id: string`

502 502 


841 - `WebSearchCall object { id, action, status, type }`841 - `WebSearchCall object { id, action, status, type }`

842 842 

843 The results of a web search tool call. See the843 The results of a web search tool call. See the

844 [web search guide](/docs/guides/tools-web-search) for more information.844 [web search guide](/api/docs/guides/tools-web-search) for more information.

845 845 

846 - `id: string`846 - `id: string`

847 847 


939 - `FunctionCall object { arguments, call_id, name, 6 more }`939 - `FunctionCall object { arguments, call_id, name, 6 more }`

940 940 

941 A tool call to run a function. See the941 A tool call to run a function. See the

942 [function calling guide](/docs/guides/function-calling) for more information.942 [function calling guide](/api/docs/guides/function-calling) for more information.

943 943 

944 - `arguments: string`944 - `arguments: string`

945 945 


1044 1044 

1045 - `ResponseInputImageContent object { type, detail, file_id, 2 more }`1045 - `ResponseInputImageContent object { type, detail, file_id, 2 more }`

1046 1046 

1047 An image input to the model. Learn about [image inputs](/docs/guides/vision)1047 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision)

1048 1048 

1049 - `type: "input_image"`1049 - `type: "input_image"`

1050 1050 


1222 1222 

1223 - `Function object { name, parameters, strict, 6 more }`1223 - `Function object { name, parameters, strict, 6 more }`

1224 1224 

1225 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).1225 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

1226 1226 

1227 - `name: string`1227 - `name: string`

1228 1228 


1266 1266 

1267 - `FileSearch object { type, vector_store_ids, filters, 2 more }`1267 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

1268 1268 

1269 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).1269 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

1270 1270 

1271 - `type: "file_search"`1271 - `type: "file_search"`

1272 1272 


1391 1391 

1392 - `Computer object { type }`1392 - `Computer object { type }`

1393 1393 

1394 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1394 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1395 1395 

1396 - `type: "computer"`1396 - `type: "computer"`

1397 1397 


1401 1401 

1402 - `ComputerUsePreview object { display_height, display_width, environment, type }`1402 - `ComputerUsePreview object { display_height, display_width, environment, type }`

1403 1403 

1404 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).1404 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

1405 1405 

1406 - `display_height: number`1406 - `display_height: number`

1407 1407 


1434 - `WebSearch object { type, external_web_access, filters, 2 more }`1434 - `WebSearch object { type, external_web_access, filters, 2 more }`

1435 1435 

1436 Search the Internet for sources related to the prompt. Learn more about the1436 Search the Internet for sources related to the prompt. Learn more about the

1437 [web search tool](/docs/guides/tools-web-search).1437 [web search tool](/api/docs/guides/tools-web-search).

1438 1438 

1439 - `type: "web_search" or "web_search_2025_08_26"`1439 - `type: "web_search" or "web_search_2025_08_26"`

1440 1440 


1498 - `Mcp object { server_label, type, allowed_callers, 9 more }`1498 - `Mcp object { server_label, type, allowed_callers, 9 more }`

1499 1499 

1500 Give the model access to additional tools via remote Model Context Protocol1500 Give the model access to additional tools via remote Model Context Protocol

1501 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).1501 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

1502 1502 

1503 - `server_label: string`1503 - `server_label: string`

1504 1504 


1550 1550 

1551 Identifier for service connectors, like those available in ChatGPT. One of1551 Identifier for service connectors, like those available in ChatGPT. One of

1552 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more1552 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

1553 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).1553 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

1554 1554 

1555 Currently supported `connector_id` values are:1555 Currently supported `connector_id` values are:

1556 1556 


1774 1774 

1775 - `background: optional "transparent" or "opaque" or "auto"`1775 - `background: optional "transparent" or "opaque" or "auto"`

1776 1776 

1777 Set the background of the generated image. One of `transparent`,1777 Set the background of the generated image. One of `transparent`, `opaque`,

1778 `opaque`, or `auto`. Transparent backgrounds are available for1778 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

1779 supported GPT Image models. For `gpt-image-2` and1779 their `2026-09-08` snapshots, support `opaque` and `transparent`

1780 `gpt-image-2-2026-04-21`, this support is in preview. When using1780 backgrounds. Transparent backgrounds are available for supported GPT Image

1781 `transparent`, set the output format to `png` or `webp`. Default: `auto`.1781 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

1782 preview. When using `transparent`, set the output format to `png` or `webp`.

1783 Default: `auto`.

1782 1784 

1783 - `"transparent"`1785 - `"transparent"`

1784 1786 


1807 1809 

1808 Base64-encoded mask image.1810 Base64-encoded mask image.

1809 1811 

1810 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1812 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1811 1813 

1812 The image generation model to use. One of `gpt-image-1`,1814 The image generation model to use. One of `gpt-image-1`,

1813 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1815 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1814 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1816 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1817 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1818 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1815 `gpt-image-1`.1819 `gpt-image-1`.

1816 1820 

1817 - `string`1821 - `string`

1818 1822 

1819 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`1823 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

1820 1824 

1821 The image generation model to use. One of `gpt-image-1`,1825 The image generation model to use. One of `gpt-image-1`,

1822 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,1826 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

1823 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:1827 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1828 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1829 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

1824 `gpt-image-1`.1830 `gpt-image-1`.

1825 1831 

1826 - `"gpt-image-1"`1832 - `"gpt-image-1"`


1833 1839 

1834 - `"gpt-image-2-2026-04-21"`1840 - `"gpt-image-2-2026-04-21"`

1835 1841 

1842 - `"gpt-image-2.5-sunburst"`

1843 

1844 - `"gpt-image-2.5-sunburst-2026-09-08"`

1845 

1846 - `"gpt-image-2.5-flare"`

1847 

1848 - `"gpt-image-2.5-flare-2026-09-08"`

1849 

1836 - `moderation: optional "auto" or "low"`1850 - `moderation: optional "auto" or "low"`

1837 1851 

1838 Moderation level for the generated image. Default: `auto`.1852 Moderation level for the generated image. Default: `auto`.


1860 1874 

1861 Number of partial images to generate in streaming mode, from 0 (default value) to 3.1875 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

1862 1876 

1863 - `quality: optional "low" or "medium" or "high" or "auto"`1877 - `quality: optional "low" or "medium" or "high" or 3 more`

1864 1878 

1865 The quality of the generated image. One of `low`, `medium`, `high`,1879 The quality of the generated image. The GPT image models support `low`,

1866 or `auto`. Default: `auto`.1880 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

1881 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

1882 Default: `auto`.

1867 1883 

1868 - `"low"`1884 - `"low"`

1869 1885 


1871 1887 

1872 - `"high"`1888 - `"high"`

1873 1889 

1890 - `"xhigh"`

1891 

1892 - `"max"`

1893 

1874 - `"auto"`1894 - `"auto"`

1875 1895 

1876 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`1896 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

1877 1897 

1878 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`.1898 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`.

1879 1899 

1880 - `string`1900 - `string`

1881 1901 

1882 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`1902 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

1883 1903 

1884 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`.1904 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`.

1885 1905 

1886 - `"1024x1024"`1906 - `"1024x1024"`

1887 1907 


2047 2067 

2048 - `Custom object { name, type, allowed_callers, 4 more }`2068 - `Custom object { name, type, allowed_callers, 4 more }`

2049 2069 

2050 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2070 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2051 2071 

2052 - `name: string`2072 - `name: string`

2053 2073 


2169 2189 

2170 - `Custom object { name, type, allowed_callers, 4 more }`2190 - `Custom object { name, type, allowed_callers, 4 more }`

2171 2191 

2172 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)2192 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2173 2193 

2174 - `name: string`2194 - `name: string`

2175 2195 


2239 2259 

2240 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`2260 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

2241 2261 

2242 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).2262 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).

2243 2263 

2244 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`2264 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

2245 2265 


2355 2375 

2356 - `Function object { name, parameters, strict, 6 more }`2376 - `Function object { name, parameters, strict, 6 more }`

2357 2377 

2358 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).2378 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

2359 2379 

2360 - `name: string`2380 - `name: string`

2361 2381 


2399 2419 

2400 - `FileSearch object { type, vector_store_ids, filters, 2 more }`2420 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

2401 2421 

2402 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).2422 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

2403 2423 

2404 - `type: "file_search"`2424 - `type: "file_search"`

2405 2425 


2457 2477 

2458 - `Computer object { type }`2478 - `Computer object { type }`

2459 2479 

2460 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).2480 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

2461 2481 

2462 - `type: "computer"`2482 - `type: "computer"`

2463 2483 


2467 2487 

2468 - `ComputerUsePreview object { display_height, display_width, environment, type }`2488 - `ComputerUsePreview object { display_height, display_width, environment, type }`

2469 2489 

2470 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).2490 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

2471 2491 

2472 - `display_height: number`2492 - `display_height: number`

2473 2493 


2500 - `WebSearch object { type, external_web_access, filters, 2 more }`2520 - `WebSearch object { type, external_web_access, filters, 2 more }`

2501 2521 

2502 Search the Internet for sources related to the prompt. Learn more about the2522 Search the Internet for sources related to the prompt. Learn more about the

2503 [web search tool](/docs/guides/tools-web-search).2523 [web search tool](/api/docs/guides/tools-web-search).

2504 2524 

2505 - `type: "web_search" or "web_search_2025_08_26"`2525 - `type: "web_search" or "web_search_2025_08_26"`

2506 2526 


2564 - `Mcp object { server_label, type, allowed_callers, 9 more }`2584 - `Mcp object { server_label, type, allowed_callers, 9 more }`

2565 2585 

2566 Give the model access to additional tools via remote Model Context Protocol2586 Give the model access to additional tools via remote Model Context Protocol

2567 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).2587 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

2568 2588 

2569 - `server_label: string`2589 - `server_label: string`

2570 2590 


2616 2636 

2617 Identifier for service connectors, like those available in ChatGPT. One of2637 Identifier for service connectors, like those available in ChatGPT. One of

2618 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more2638 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

2619 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).2639 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

2620 2640 

2621 Currently supported `connector_id` values are:2641 Currently supported `connector_id` values are:

2622 2642 


2808 2828 

2809 - `background: optional "transparent" or "opaque" or "auto"`2829 - `background: optional "transparent" or "opaque" or "auto"`

2810 2830 

2811 Set the background of the generated image. One of `transparent`,2831 Set the background of the generated image. One of `transparent`, `opaque`,

2812 `opaque`, or `auto`. Transparent backgrounds are available for2832 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

2813 supported GPT Image models. For `gpt-image-2` and2833 their `2026-09-08` snapshots, support `opaque` and `transparent`

2814 `gpt-image-2-2026-04-21`, this support is in preview. When using2834 backgrounds. Transparent backgrounds are available for supported GPT Image

2815 `transparent`, set the output format to `png` or `webp`. Default: `auto`.2835 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

2836 preview. When using `transparent`, set the output format to `png` or `webp`.

2837 Default: `auto`.

2816 2838 

2817 - `"transparent"`2839 - `"transparent"`

2818 2840 


2841 2863 

2842 Base64-encoded mask image.2864 Base64-encoded mask image.

2843 2865 

2844 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2866 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2845 2867 

2846 The image generation model to use. One of `gpt-image-1`,2868 The image generation model to use. One of `gpt-image-1`,

2847 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2869 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2848 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2870 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2871 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2872 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2849 `gpt-image-1`.2873 `gpt-image-1`.

2850 2874 

2851 - `string`2875 - `string`

2852 2876 

2853 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`2877 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

2854 2878 

2855 The image generation model to use. One of `gpt-image-1`,2879 The image generation model to use. One of `gpt-image-1`,

2856 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,2880 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

2857 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:2881 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2882 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2883 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

2858 `gpt-image-1`.2884 `gpt-image-1`.

2859 2885 

2860 - `"gpt-image-1"`2886 - `"gpt-image-1"`


2867 2893 

2868 - `"gpt-image-2-2026-04-21"`2894 - `"gpt-image-2-2026-04-21"`

2869 2895 

2896 - `"gpt-image-2.5-sunburst"`

2897 

2898 - `"gpt-image-2.5-sunburst-2026-09-08"`

2899 

2900 - `"gpt-image-2.5-flare"`

2901 

2902 - `"gpt-image-2.5-flare-2026-09-08"`

2903 

2870 - `moderation: optional "auto" or "low"`2904 - `moderation: optional "auto" or "low"`

2871 2905 

2872 Moderation level for the generated image. Default: `auto`.2906 Moderation level for the generated image. Default: `auto`.


2894 2928 

2895 Number of partial images to generate in streaming mode, from 0 (default value) to 3.2929 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

2896 2930 

2897 - `quality: optional "low" or "medium" or "high" or "auto"`2931 - `quality: optional "low" or "medium" or "high" or 3 more`

2898 2932 

2899 The quality of the generated image. One of `low`, `medium`, `high`,2933 The quality of the generated image. The GPT image models support `low`,

2900 or `auto`. Default: `auto`.2934 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

2935 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

2936 Default: `auto`.

2901 2937 

2902 - `"low"`2938 - `"low"`

2903 2939 


2905 2941 

2906 - `"high"`2942 - `"high"`

2907 2943 

2944 - `"xhigh"`

2945 

2946 - `"max"`

2947 

2908 - `"auto"`2948 - `"auto"`

2909 2949 

2910 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`2950 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2911 2951 

2912 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`.2952 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`.

2913 2953 

2914 - `string`2954 - `string`

2915 2955 

2916 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`2956 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

2917 2957 

2918 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`.2958 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`.

2919 2959 

2920 - `"1024x1024"`2960 - `"1024x1024"`

2921 2961 


2963 3003 

2964 - `Custom object { name, type, allowed_callers, 4 more }`3004 - `Custom object { name, type, allowed_callers, 4 more }`

2965 3005 

2966 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3006 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

2967 3007 

2968 - `name: string`3008 - `name: string`

2969 3009 


3053 3093 

3054 - `Custom object { name, type, allowed_callers, 4 more }`3094 - `Custom object { name, type, allowed_callers, 4 more }`

3055 3095 

3056 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)3096 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

3057 3097 

3058 - `name: string`3098 - `name: string`

3059 3099 


3123 3163 

3124 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`3164 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

3125 3165 

3126 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).3166 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).

3127 3167 

3128 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`3168 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

3129 3169 


3247 A description of the chain of thought used by a reasoning model while generating3287 A description of the chain of thought used by a reasoning model while generating

3248 a response. Be sure to include these items in your `input` to the Responses API3288 a response. Be sure to include these items in your `input` to the Responses API

3249 for subsequent turns of a conversation if you are manually3289 for subsequent turns of a conversation if you are manually

3250 [managing context](/docs/guides/conversation-state).3290 [managing context](/api/docs/guides/conversation-state).

3251 3291 

3252 - `id: string`3292 - `id: string`

3253 3293 


3312 3352 

3313 - `Compaction object { encrypted_content, type, id }`3353 - `Compaction object { encrypted_content, type, id }`

3314 3354 

3315 A compaction item generated by the [`v1/responses/compact` API](/docs/api-reference/responses/compact).3355 A compaction item generated by the [`v1/responses/compact` API](/api/reference/resources/responses/methods/compact).

3316 3356 

3317 - `encrypted_content: string`3357 - `encrypted_content: string`

3318 3358 


3328 3368 

3329 The ID of the compaction item.3369 The ID of the compaction item.

3330 3370 

3331 - `ImageGenerationCall object { id, result, status, type }`3371 - `ImageGenerationCall object { id, result, status, 3 more }`

3332 3372 

3333 An image generation request made by the model.3373 An image generation request made by the model.

3334 3374 


3358 3398 

3359 - `"image_generation_call"`3399 - `"image_generation_call"`

3360 3400 

3401 - `quality: optional "low" or "medium" or "high" or 3 more or null`

3402 

3403 The quality of the image generated by the image generation tool call. One of `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.

3404 

3405 - `"low"`

3406 

3407 - `"medium"`

3408 

3409 - `"high"`

3410 

3411 - `"xhigh"`

3412 

3413 - `"max"`

3414 

3415 - `"auto"`

3416 

3417 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or null`

3418 

3419 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

3420 

3421 - `string`

3422 

3423 - `"1024x1024" or "1024x1536" or "1536x1024"`

3424 

3425 The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.

3426 

3427 - `"1024x1024"`

3428 

3429 - `"1024x1536"`

3430 

3431 - `"1536x1024"`

3432 

3361 - `CodeInterpreterCall object { id, code, container_id, 3 more }`3433 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

3362 3434 

3363 A tool call to run code.3435 A tool call to run code.


4045 4117 

4046 - `ResponseInputImage object { detail, type, file_id, 2 more }`4118 - `ResponseInputImage object { detail, type, file_id, 2 more }`

4047 4119 

4048 An image input to the model. Learn about [image inputs](/docs/guides/vision).4120 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).

4049 4121 

4050 - `ResponseInputFile object { type, detail, file_data, 4 more }`4122 - `ResponseInputFile object { type, detail, file_data, 4 more }`

4051 4123 


4226 4298 

4227- `model: optional string or null`4299- `model: optional string or null`

4228 4300 

4229 Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](/docs/models) to browse and compare available models.4301 Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](/api/docs/models) to browse and compare available models.

4230 4302 

4231- `parallel_tool_calls: optional boolean or null`4303- `parallel_tool_calls: optional boolean or null`

4232 4304 


4248 4320 

4249- `previous_response_id: optional string or null`4321- `previous_response_id: optional string or null`

4250 4322 

4251 The unique ID of the previous response to the model. Use this to create multi-turn conversations. Learn more about [conversation state](/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.4323 The unique ID of the previous response to the model. Use this to create multi-turn conversations. Learn more about [conversation state](/api/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.

4252 4324 

4253- `reasoning: optional Reasoning or null`4325- `reasoning: optional Reasoning or null`

4254 4326 

4255 **gpt-5 and o-series models only** Configuration options for [reasoning models](https://platform.openai.com/docs/guides/reasoning).4327 **gpt-5 and o-series models only** Configuration options for [reasoning models](/api/docs/guides/reasoning).

4256 4328 

4257 - `context: optional "auto" or "current_turn" or "all_turns" or null`4329 - `context: optional "auto" or "current_turn" or "all_turns" or null`

4258 4330 


4277 Reducing reasoning effort can result in faster responses and fewer tokens4349 Reducing reasoning effort can result in faster responses and fewer tokens

4278 used on reasoning in a response. Not all reasoning models support every4350 used on reasoning in a response. Not all reasoning models support every

4279 value. See the4351 value. See the

4280 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)4352 [reasoning guide](/api/docs/guides/reasoning)

4281 for model-specific support.4353 for model-specific support.

4282 4354 

4283 - `generate_summary: optional "auto" or "concise" or "detailed" or null`4355 - `generate_summary: optional "auto" or "concise" or "detailed" or null`


4331 Configuration options for a text response from the model. Can be plain4403 Configuration options for a text response from the model. Can be plain

4332 text or structured JSON data. Learn more:4404 text or structured JSON data. Learn more:

4333 4405 

4334 - [Text inputs and outputs](/docs/guides/text)4406 - [Text inputs and outputs](/api/docs/guides/text)

4335 - [Structured Outputs](/docs/guides/structured-outputs)4407 - [Structured Outputs](/api/docs/guides/structured-outputs)

4336 4408 

4337 - `format: optional ResponseFormatTextConfig`4409 - `format: optional ResponseFormatTextConfig`

4338 4410 


4340 4412 

4341 Configuring `{ "type": "json_schema" }` enables Structured Outputs,4413 Configuring `{ "type": "json_schema" }` enables Structured Outputs,

4342 which ensures the model will match your supplied JSON schema. Learn more in the4414 which ensures the model will match your supplied JSON schema. Learn more in the

4343 [Structured Outputs guide](/docs/guides/structured-outputs).4415 [Structured Outputs guide](/api/docs/guides/structured-outputs).

4344 4416 

4345 The default format is `{ "type": "text" }` with no additional options.4417 The default format is `{ "type": "text" }` with no additional options.

4346 4418 


4363 - `ResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`4435 - `ResponseFormatTextJSONSchemaConfig object { name, schema, type, 2 more }`

4364 4436 

4365 JSON Schema response format. Used to generate structured JSON responses.4437 JSON Schema response format. Used to generate structured JSON responses.

4366 Learn more about [Structured Outputs](/docs/guides/structured-outputs).4438 Learn more about [Structured Outputs](/api/docs/guides/structured-outputs).

4367 4439 

4368 - `name: string`4440 - `name: string`

4369 4441 


4392 If set to true, the model will always follow the exact schema defined4464 If set to true, the model will always follow the exact schema defined

4393 in the `schema` field. Only a subset of JSON Schema is supported when4465 in the `schema` field. Only a subset of JSON Schema is supported when

4394 `strict` is `true`. To learn more, read the [Structured Outputs4466 `strict` is `true`. To learn more, read the [Structured Outputs

4395 guide](/docs/guides/structured-outputs).4467 guide](/api/docs/guides/structured-outputs).

4396 4468 

4397 - `ResponseFormatJSONObject object { type }`4469 - `ResponseFormatJSONObject object { type }`

4398 4470 


4481 - `ToolChoiceTypes object { type }`4553 - `ToolChoiceTypes object { type }`

4482 4554 

4483 Indicates that the model should use a built-in tool to generate a response.4555 Indicates that the model should use a built-in tool to generate a response.

4484 [Learn more about built-in tools](/docs/guides/tools).4556 [Learn more about built-in tools](/api/docs/guides/tools).

4485 4557 

4486 - `type: "file_search" or "web_search_preview" or "computer" or 5 more`4558 - `type: "file_search" or "web_search_preview" or "computer" or 5 more`

4487 4559 

4488 The type of hosted tool the model should to use. Learn more about4560 The type of hosted tool the model should to use. Learn more about

4489 [built-in tools](/docs/guides/tools).4561 [built-in tools](/api/docs/guides/tools).

4490 4562 

4491 Allowed values are:4563 Allowed values are:

4492 4564 


4594 4666 

4595 - `Function object { name, parameters, strict, 6 more }`4667 - `Function object { name, parameters, strict, 6 more }`

4596 4668 

4597 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).4669 Defines a function in your own code the model can choose to call. Learn more about [function calling](/api/docs/guides/function-calling).

4598 4670 

4599 - `name: string`4671 - `name: string`

4600 4672 


4638 4710 

4639 - `FileSearch object { type, vector_store_ids, filters, 2 more }`4711 - `FileSearch object { type, vector_store_ids, filters, 2 more }`

4640 4712 

4641 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).4713 A tool that searches for relevant content from uploaded files. Learn more about the [file search tool](/api/docs/guides/tools-file-search).

4642 4714 

4643 - `type: "file_search"`4715 - `type: "file_search"`

4644 4716 


4696 4768 

4697 - `Computer object { type }`4769 - `Computer object { type }`

4698 4770 

4699 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).4771 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

4700 4772 

4701 - `type: "computer"`4773 - `type: "computer"`

4702 4774 


4706 4778 

4707 - `ComputerUsePreview object { display_height, display_width, environment, type }`4779 - `ComputerUsePreview object { display_height, display_width, environment, type }`

4708 4780 

4709 A tool that controls a virtual computer. Learn more about the [computer tool](https://platform.openai.com/docs/guides/tools-computer-use).4781 A tool that controls a virtual computer. Learn more about the [computer tool](/api/docs/guides/tools-computer-use).

4710 4782 

4711 - `display_height: number`4783 - `display_height: number`

4712 4784 


4739 - `WebSearch object { type, external_web_access, filters, 2 more }`4811 - `WebSearch object { type, external_web_access, filters, 2 more }`

4740 4812 

4741 Search the Internet for sources related to the prompt. Learn more about the4813 Search the Internet for sources related to the prompt. Learn more about the

4742 [web search tool](/docs/guides/tools-web-search).4814 [web search tool](/api/docs/guides/tools-web-search).

4743 4815 

4744 - `type: "web_search" or "web_search_2025_08_26"`4816 - `type: "web_search" or "web_search_2025_08_26"`

4745 4817 


4803 - `Mcp object { server_label, type, allowed_callers, 9 more }`4875 - `Mcp object { server_label, type, allowed_callers, 9 more }`

4804 4876 

4805 Give the model access to additional tools via remote Model Context Protocol4877 Give the model access to additional tools via remote Model Context Protocol

4806 (MCP) servers. [Learn more about MCP](/docs/guides/tools-remote-mcp).4878 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).

4807 4879 

4808 - `server_label: string`4880 - `server_label: string`

4809 4881 


4855 4927 

4856 Identifier for service connectors, like those available in ChatGPT. One of4928 Identifier for service connectors, like those available in ChatGPT. One of

4857 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more4929 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more

4858 about service connectors [here](/docs/guides/tools-remote-mcp#connectors).4930 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).

4859 4931 

4860 Currently supported `connector_id` values are:4932 Currently supported `connector_id` values are:

4861 4933 


5047 5119 

5048 - `background: optional "transparent" or "opaque" or "auto"`5120 - `background: optional "transparent" or "opaque" or "auto"`

5049 5121 

5050 Set the background of the generated image. One of `transparent`,5122 Set the background of the generated image. One of `transparent`, `opaque`,

5051 `opaque`, or `auto`. Transparent backgrounds are available for5123 or `auto`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including

5052 supported GPT Image models. For `gpt-image-2` and5124 their `2026-09-08` snapshots, support `opaque` and `transparent`

5053 `gpt-image-2-2026-04-21`, this support is in preview. When using5125 backgrounds. Transparent backgrounds are available for supported GPT Image

5054 `transparent`, set the output format to `png` or `webp`. Default: `auto`.5126 models. For `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in

5127 preview. When using `transparent`, set the output format to `png` or `webp`.

5128 Default: `auto`.

5055 5129 

5056 - `"transparent"`5130 - `"transparent"`

5057 5131 


5080 5154 

5081 Base64-encoded mask image.5155 Base64-encoded mask image.

5082 5156 

5083 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`5157 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

5084 5158 

5085 The image generation model to use. One of `gpt-image-1`,5159 The image generation model to use. One of `gpt-image-1`,

5086 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,5160 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

5087 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:5161 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

5162 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

5163 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

5088 `gpt-image-1`.5164 `gpt-image-1`.

5089 5165 

5090 - `string`5166 - `string`

5091 5167 

5092 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 2 more`5168 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`

5093 5169 

5094 The image generation model to use. One of `gpt-image-1`,5170 The image generation model to use. One of `gpt-image-1`,

5095 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,5171 `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

5096 `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`. Default:5172 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

5173 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

5174 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:

5097 `gpt-image-1`.5175 `gpt-image-1`.

5098 5176 

5099 - `"gpt-image-1"`5177 - `"gpt-image-1"`


5106 5184 

5107 - `"gpt-image-2-2026-04-21"`5185 - `"gpt-image-2-2026-04-21"`

5108 5186 

5187 - `"gpt-image-2.5-sunburst"`

5188 

5189 - `"gpt-image-2.5-sunburst-2026-09-08"`

5190 

5191 - `"gpt-image-2.5-flare"`

5192 

5193 - `"gpt-image-2.5-flare-2026-09-08"`

5194 

5109 - `moderation: optional "auto" or "low"`5195 - `moderation: optional "auto" or "low"`

5110 5196 

5111 Moderation level for the generated image. Default: `auto`.5197 Moderation level for the generated image. Default: `auto`.


5133 5219 

5134 Number of partial images to generate in streaming mode, from 0 (default value) to 3.5220 Number of partial images to generate in streaming mode, from 0 (default value) to 3.

5135 5221 

5136 - `quality: optional "low" or "medium" or "high" or "auto"`5222 - `quality: optional "low" or "medium" or "high" or 3 more`

5137 5223 

5138 The quality of the generated image. One of `low`, `medium`, `high`,5224 The quality of the generated image. The GPT image models support `low`,

5139 or `auto`. Default: `auto`.5225 `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,

5226 including their `2026-09-08` snapshots, also support `xhigh` and `max`.

5227 Default: `auto`.

5140 5228 

5141 - `"low"`5229 - `"low"`

5142 5230 


5144 5232 

5145 - `"high"`5233 - `"high"`

5146 5234 

5235 - `"xhigh"`

5236 

5237 - `"max"`

5238 

5147 - `"auto"`5239 - `"auto"`

5148 5240 

5149 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`5241 - `size: optional string or "1024x1024" or "1024x1536" or "1536x1024" or "auto"`

5150 5242 

5151 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`.5243 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`.

5152 5244 

5153 - `string`5245 - `string`

5154 5246 

5155 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`5247 - `"1024x1024" or "1024x1536" or "1536x1024" or "auto"`

5156 5248 

5157 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`.5249 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`.

5158 5250 

5159 - `"1024x1024"`5251 - `"1024x1024"`

5160 5252 


5202 5294 

5203 - `Custom object { name, type, allowed_callers, 4 more }`5295 - `Custom object { name, type, allowed_callers, 4 more }`

5204 5296 

5205 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)5297 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

5206 5298 

5207 - `name: string`5299 - `name: string`

5208 5300 


5292 5384 

5293 - `Custom object { name, type, allowed_callers, 4 more }`5385 - `Custom object { name, type, allowed_callers, 4 more }`

5294 5386 

5295 A custom tool that processes input using a specified format. Learn more about [custom tools](/docs/guides/function-calling#custom-tools)5387 A custom tool that processes input using a specified format. Learn more about [custom tools](/api/docs/guides/function-calling#custom-tools)

5296 5388 

5297 - `name: string`5389 - `name: string`

5298 5390 


5362 5454 

5363 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`5455 - `WebSearchPreview object { type, search_content_types, search_context_size, user_location }`

5364 5456 

5365 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).5457 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).

5366 5458 

5367 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`5459 - `type: "web_search_preview" or "web_search_preview_2025_03_11"`

5368 5460 

Details

38 38 

39 - `purpose: string`39 - `purpose: string`

40 40 

41 The intended purpose of the file. [Please refer here](/docs/api-reference/files/object#files/object-purpose) for acceptable values.41 The intended purpose of the file. [Please refer here](/api/reference/resources/files#%28resource%29%20files%20%3E%20%28model%29%20file_object%20%3E%20%28schema%29%20%3E%20%28property%29%20purpose) for acceptable values.

42 42 

43 - `status: "pending" or "completed" or "cancelled" or "expired"`43 - `status: "pending" or "completed" or "cancelled" or "expired"`

44 44 

Details

2 2 

3**post** `/uploads/{upload_id}/complete`3**post** `/uploads/{upload_id}/complete`

4 4 

5Completes the [Upload](/docs/api-reference/uploads/object).5Completes the [Upload](/api/reference/resources/uploads).

6 6 

7Within the returned Upload object, there is a nested [File](/docs/api-reference/files/object) object that is ready to use in the rest of the platform.7Within the returned Upload object, there is a nested [File](/api/reference/resources/files) object that is ready to use in the rest of the platform.

8 8 

9You can specify the order of the Parts by passing in an ordered list of the Part IDs.9You can specify the order of the Parts by passing in an ordered list of the Part IDs.

10 10 


53 53 

54 - `purpose: string`54 - `purpose: string`

55 55 

56 The intended purpose of the file. [Please refer here](/docs/api-reference/files/object#files/object-purpose) for acceptable values.56 The intended purpose of the file. [Please refer here](/api/reference/resources/files#%28resource%29%20files%20%3E%20%28model%29%20file_object%20%3E%20%28schema%29%20%3E%20%28property%29%20purpose) for acceptable values.

57 57 

58 - `status: "pending" or "completed" or "cancelled" or "expired"`58 - `status: "pending" or "completed" or "cancelled" or "expired"`

59 59 

Details

2 2 

3**post** `/uploads`3**post** `/uploads`

4 4 

5Creates an intermediate [Upload](/docs/api-reference/uploads/object) object5Creates an intermediate [Upload](/api/reference/resources/uploads) object

6that you can add [Parts](/docs/api-reference/uploads/part-object) to.6that you can add [Parts](/api/reference/resources/uploads/subresources/parts) to.

7Currently, an Upload can accept at most 8 GB in total and expires after an7Currently, an Upload can accept at most 8 GB in total and expires after an

8hour after you create it.8hour after you create it.

9 9 

10Once you complete the Upload, we will create a10Once you complete the Upload, we will create a

11[File](/docs/api-reference/files/object) object that contains all the parts11[File](/api/reference/resources/files) object that contains all the parts

12you uploaded. This File is usable in the rest of our platform as a regular12you uploaded. This File is usable in the rest of our platform as a regular

13File object.13File object.

14 14 

15For certain `purpose` values, the correct `mime_type` must be specified.15For certain `purpose` values, the correct `mime_type` must be specified.

16Please refer to documentation for the16Please refer to documentation for the

17[supported MIME types for your use case](/docs/assistants/tools/file-search#supported-files).17[supported MIME types for your use case](/api/docs/guides/tools-file-search#supported-files).

18 18 

19For guidance on the proper filename extensions for each purpose, please19For guidance on the proper filename extensions for each purpose, please

20follow the documentation on [creating a20follow the documentation on [creating a

21File](/docs/api-reference/files/create).21File](/api/reference/resources/files/methods/create).

22 22 

23Returns the Upload object with status `pending`.23Returns the Upload object with status `pending`.

24 24 


44 The intended purpose of the uploaded file.44 The intended purpose of the uploaded file.

45 45 

46 See the [documentation on File46 See the [documentation on File

47 purposes](/docs/api-reference/files/create#files-create-purpose).47 purposes](/api/reference/resources/files/methods/create#%28resource%29%20files%20%3E%20%28method%29%20create%20%3E%20%28params%29%200%20%3E%20%28param%29%20purpose%20%3E%20%28schema%29).

48 48 

49 - `"assistants"`49 - `"assistants"`

50 50 


96 96 

97 - `purpose: string`97 - `purpose: string`

98 98 

99 The intended purpose of the file. [Please refer here](/docs/api-reference/files/object#files/object-purpose) for acceptable values.99 The intended purpose of the file. [Please refer here](/api/reference/resources/files#%28resource%29%20files%20%3E%20%28model%29%20file_object%20%3E%20%28schema%29%20%3E%20%28property%29%20purpose) for acceptable values.

100 100 

101 - `status: "pending" or "completed" or "cancelled" or "expired"`101 - `status: "pending" or "completed" or "cancelled" or "expired"`

102 102 

Details

2 2 

3**post** `/uploads/{upload_id}/parts`3**post** `/uploads/{upload_id}/parts`

4 4 

5Adds a [Part](/docs/api-reference/uploads/part-object) to an [Upload](/docs/api-reference/uploads/object) object. A Part represents a chunk of bytes from the file you are trying to upload.5Adds a [Part](/api/reference/resources/uploads/subresources/parts) to an [Upload](/api/reference/resources/uploads) object. A Part represents a chunk of bytes from the file you are trying to upload.

6 6 

7Each Part can be at most 64 MB, and you can add Parts until you hit the Upload maximum of 8 GB.7Each Part can be at most 64 MB, and you can add Parts until you hit the Upload maximum of 8 GB.

8 8 

9It is possible to add multiple Parts in parallel. You can decide the intended order of the Parts when you [complete the Upload](/docs/api-reference/uploads/complete).9It is possible to add multiple Parts in parallel. You can decide the intended order of the Parts when you [complete the Upload](/api/reference/resources/uploads/methods/complete).

10 10 

11### Path Parameters11### Path Parameters

12 12 

Details

62 62 

63- `file_ids: optional array of string`63- `file_ids: optional array of string`

64 64 

65 A list of [File](/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files.65 A list of [File](/api/reference/resources/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files.

66 66 

67- `metadata: optional Metadata or null`67- `metadata: optional Metadata or null`

68 68 

Details

66 66 

67 - `vector_store_id: string`67 - `vector_store_id: string`

68 68 

69 The ID of the [vector store](/docs/api-reference/vector-stores/object) that the [File](/docs/api-reference/files) is attached to.69 The ID of the [vector store](/api/reference/resources/vector_stores) that the [File](/api/reference/resources/files) is attached to.

70 70 

71### Example71### Example

72 72 

Details

62 62 

63- `file_ids: optional array of string`63- `file_ids: optional array of string`

64 64 

65 A list of [File](/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files. If `attributes` or `chunking_strategy` are provided, they will be applied to all files in the batch. The maximum batch size is 2000 files. This endpoint is recommended for multi-file ingestion and helps reduce per-vector-store write request pressure. Mutually exclusive with `files`.65 A list of [File](/api/reference/resources/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files. If `attributes` or `chunking_strategy` are provided, they will be applied to all files in the batch. The maximum batch size is 2000 files. This endpoint is recommended for multi-file ingestion and helps reduce per-vector-store write request pressure. Mutually exclusive with `files`.

66 66 

67- `files: optional array of object { file_id, attributes, chunking_strategy }`67- `files: optional array of object { file_id, attributes, chunking_strategy }`

68 68 


70 70 

71 - `file_id: string`71 - `file_id: string`

72 72 

73 A [File](/docs/api-reference/files) ID that the vector store should use. Useful for tools like `file_search` that can access files. For multi-file ingestion, we recommend [`file_batches`](/docs/api-reference/vector-stores-file-batches/createBatch) to minimize per-vector-store write requests.73 A [File](/api/reference/resources/files) ID that the vector store should use. Useful for tools like `file_search` that can access files. For multi-file ingestion, we recommend [`file_batches`](/api/reference/resources/vector_stores/subresources/file_batches/methods/create) to minimize per-vector-store write requests.

74 74 

75 - `attributes: optional map[string or number or boolean] or null`75 - `attributes: optional map[string or number or boolean] or null`

76 76 


146 146 

147 - `vector_store_id: string`147 - `vector_store_id: string`

148 148 

149 The ID of the [vector store](/docs/api-reference/vector-stores/object) that the [File](/docs/api-reference/files) is attached to.149 The ID of the [vector store](/api/reference/resources/vector_stores) that the [File](/api/reference/resources/files) is attached to.

150 150 

151### Example151### Example

152 152 

Details

98 98 

99 - `vector_store_id: string`99 - `vector_store_id: string`

100 100 

101 The ID of the [vector store](/docs/api-reference/vector-stores/object) that the [File](/docs/api-reference/files) is attached to.101 The ID of the [vector store](/api/reference/resources/vector_stores) that the [File](/api/reference/resources/files) is attached to.

102 102 

103 - `attributes: optional map[string or number or boolean] or null`103 - `attributes: optional map[string or number or boolean] or null`

104 104 

Details

66 66 

67 - `vector_store_id: string`67 - `vector_store_id: string`

68 68 

69 The ID of the [vector store](/docs/api-reference/vector-stores/object) that the [File](/docs/api-reference/files) is attached to.69 The ID of the [vector store](/api/reference/resources/vector_stores) that the [File](/api/reference/resources/files) is attached to.

70 70 

71### Example71### Example

72 72 

Details

2 2 

3**post** `/vector_stores/{vector_store_id}/files`3**post** `/vector_stores/{vector_store_id}/files`

4 4 

5Create a vector store file by attaching a [File](/docs/api-reference/files) to a [vector store](/docs/api-reference/vector-stores/object).5Create a vector store file by attaching a [File](/api/reference/resources/files) to a [vector store](/api/reference/resources/vector_stores).

6 6 

7### Path Parameters7### Path Parameters

8 8 


12 12 

13- `file_id: string`13- `file_id: string`

14 14 

15 A [File](/docs/api-reference/files) ID that the vector store should use. Useful for tools like `file_search` that can access files. For multi-file ingestion, we recommend [`file_batches`](/docs/api-reference/vector-stores-file-batches/createBatch) to minimize per-vector-store write requests.15 A [File](/api/reference/resources/files) ID that the vector store should use. Useful for tools like `file_search` that can access files. For multi-file ingestion, we recommend [`file_batches`](/api/reference/resources/vector_stores/subresources/file_batches/methods/create) to minimize per-vector-store write requests.

16 16 

17- `attributes: optional map[string or number or boolean] or null`17- `attributes: optional map[string or number or boolean] or null`

18 18 


120 120 

121 - `vector_store_id: string`121 - `vector_store_id: string`

122 122 

123 The ID of the [vector store](/docs/api-reference/vector-stores/object) that the [File](/docs/api-reference/files) is attached to.123 The ID of the [vector store](/api/reference/resources/vector_stores) that the [File](/api/reference/resources/files) is attached to.

124 124 

125 - `attributes: optional map[string or number or boolean] or null`125 - `attributes: optional map[string or number or boolean] or null`

126 126 

Details

2 2 

3**delete** `/vector_stores/{vector_store_id}/files/{file_id}`3**delete** `/vector_stores/{vector_store_id}/files/{file_id}`

4 4 

5Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. To delete the file, use the [delete file](/docs/api-reference/files/delete) endpoint.5Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. To delete the file, use the [delete file](/api/reference/resources/files/methods/delete) endpoint.

6 6 

7### Path Parameters7### Path Parameters

8 8 

Details

96 96 

97 - `vector_store_id: string`97 - `vector_store_id: string`

98 98 

99 The ID of the [vector store](/docs/api-reference/vector-stores/object) that the [File](/docs/api-reference/files) is attached to.99 The ID of the [vector store](/api/reference/resources/vector_stores) that the [File](/api/reference/resources/files) is attached to.

100 100 

101 - `attributes: optional map[string or number or boolean] or null`101 - `attributes: optional map[string or number or boolean] or null`

102 102 

Details

66 66 

67 - `vector_store_id: string`67 - `vector_store_id: string`

68 68 

69 The ID of the [vector store](/docs/api-reference/vector-stores/object) that the [File](/docs/api-reference/files) is attached to.69 The ID of the [vector store](/api/reference/resources/vector_stores) that the [File](/api/reference/resources/files) is attached to.

70 70 

71 - `attributes: optional map[string or number or boolean] or null`71 - `attributes: optional map[string or number or boolean] or null`

72 72 

Details

82 82 

83 - `vector_store_id: string`83 - `vector_store_id: string`

84 84 

85 The ID of the [vector store](/docs/api-reference/vector-stores/object) that the [File](/docs/api-reference/files) is attached to.85 The ID of the [vector store](/api/reference/resources/vector_stores) that the [File](/api/reference/resources/files) is attached to.

86 86 

87 - `attributes: optional map[string or number or boolean] or null`87 - `attributes: optional map[string or number or boolean] or null`

88 88