SpyBara
Go Premium

Reference 2026-11-04 22:58 UTC to 2026-11-05 23:00 UTC

28 files changed +7,303 −852. View all changes and history on the product overview
2026
Wed 25 23:57 Tue 24 23:00 Sat 21 23:57 Fri 20 23:59 Thu 19 22:59 Wed 18 22:59 Tue 17 22:57 Mon 16 23:00 Fri 13 23:58 Thu 12 22:57 Wed 11 23:57 Tue 10 23:02 Mon 9 23:02 Sat 7 22:59 Fri 6 23:00 Thu 5 23:00 Wed 4 22:58 Tue 3 22:58
Details

6 6 

7### All Models7### All Models

8 8 

9- `AllModels = string or "gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 87 more or "o1-pro" or "o1-pro-2025-03-19" or "o3-pro" or 18 more`9- `AllModels = string or "gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 87 more or "o1-pro" or "o1-pro-2025-03-19" or "o3-pro" or 19 more`

10 10 

11 - `string`11 - `string`

12 12 


192 192 

193 - `"gpt-3.5-turbo-16k-0613"`193 - `"gpt-3.5-turbo-16k-0613"`

194 194 

195 - `ResponsesOnlyModel = "o1-pro" or "o1-pro-2025-03-19" or "o3-pro" or 18 more`195 - `ResponsesOnlyModel = "o1-pro" or "o1-pro-2025-03-19" or "o3-pro" or 19 more`

196 196 

197 - `"o1-pro"`197 - `"o1-pro"`

198 198 


232 232 

233 - `"gpt-5.6-cyber"`233 - `"gpt-5.6-cyber"`

234 234 

235 - `"gpt-6-cyber"`

236 

235 - `"gpt-rosalind-research"`237 - `"gpt-rosalind-research"`

236 238 

237 - `"gpt-6-rosalind"`239 - `"gpt-6-rosalind"`


829 831 

830### Responses Model832### Responses Model

831 833 

832- `ResponsesModel = string or "gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 87 more or "o1-pro" or "o1-pro-2025-03-19" or "o3-pro" or 18 more`834- `ResponsesModel = string or "gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 87 more or "o1-pro" or "o1-pro-2025-03-19" or "o3-pro" or 19 more`

833 835 

834 - `string`836 - `string`

835 837 


1015 1017 

1016 - `"gpt-3.5-turbo-16k-0613"`1018 - `"gpt-3.5-turbo-16k-0613"`

1017 1019 

1018 - `ResponsesOnlyModel = "o1-pro" or "o1-pro-2025-03-19" or "o3-pro" or 18 more`1020 - `ResponsesOnlyModel = "o1-pro" or "o1-pro-2025-03-19" or "o3-pro" or 19 more`

1019 1021 

1020 - `"o1-pro"`1022 - `"o1-pro"`

1021 1023 


1055 1057 

1056 - `"gpt-5.6-cyber"`1058 - `"gpt-5.6-cyber"`

1057 1059 

1060 - `"gpt-6-cyber"`

1061 

1058 - `"gpt-rosalind-research"`1062 - `"gpt-rosalind-research"`

1059 1063 

1060 - `"gpt-6-rosalind"`1064 - `"gpt-6-rosalind"`

Details

2316 2316 

2317 - `"programmatic_tool_calling"`2317 - `"programmatic_tool_calling"`

2318 2318 

2319 - `ImageGeneration object { type, action, background, 9 more }`2319 - `ImageGeneration object { type, action, background, 13 more }`

2320 2320 

2321 A tool that generates images using the GPT image models.2321 A tool that generates images using the GPT image models.

2322 2322 


2352 2352 

2353 - `"auto"`2353 - `"auto"`

2354 2354 

2355 - `complexity: optional "low" or "medium" or "high"`

2356 

2357 Computation spent planning the image, independently of rendering quality.

2358 Overrides the outer response's `reasoning.effort` for image generation.

2359 When omitted, inherits a supported outer reasoning effort or uses the

2360 image model's configured default.

2361 For SVG output, controls the reference image, not the SVG author's

2362 reasoning.

2363 

2364 - `"low"`

2365 

2366 - `"medium"`

2367 

2368 - `"high"`

2369 

2370 - `frame_count: optional integer (default: 9)`

2371 

2372 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

2373 

2374 `minimum: 2`, `maximum: 16`

2375 

2376 - `frame_duration_ms: optional integer (default: 200)`

2377 

2378 Duration of each GIF frame in milliseconds, rounded to 10 ms.

2379 Requires `output_format` to be `gif`. Default: 200.

2380 

2381 `minimum: 20`, `maximum: 2000`

2382 

2355 - `input_fidelity: optional "high" or "low" or null`2383 - `input_fidelity: optional "high" or "low" or null`

2356 2384 

2357 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.2385 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


2373 2401 

2374 Base64-encoded mask image.2402 Base64-encoded mask image.

2375 2403 

2376 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2404 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

2377 2405 

2378 The image generation model to use. One of `gpt-image-1-mini`,2406 The image generation model to use. One of `gpt-image-1-mini`,

2379 `gpt-image-1.5`, `gpt-image-2`,2407 `gpt-image-1.5`, `gpt-image-2`,

2380 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2408 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2381 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2409 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2382 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2410 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

2411 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

2383 `gpt-image-2`.2412 `gpt-image-2`.

2384 2413 

2385 `gpt-image-1` was shut down on October 23, 2026. Use2414 `gpt-image-1` was shut down on October 23, 2026. Use


2387 2416 

2388 - `string`2417 - `string`

2389 2418 

2390 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2419 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

2391 2420 

2392 The image generation model to use. One of `gpt-image-1-mini`,2421 The image generation model to use. One of `gpt-image-1-mini`,

2393 `gpt-image-1.5`, `gpt-image-2`,2422 `gpt-image-1.5`, `gpt-image-2`,

2394 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2423 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2395 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2424 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2396 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2425 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

2426 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

2397 `gpt-image-2`.2427 `gpt-image-2`.

2398 2428 

2399 `gpt-image-1` was shut down on October 23, 2026. Use2429 `gpt-image-1` was shut down on October 23, 2026. Use


2403 2433 

2404 - `"gpt-image-1-mini"`2434 - `"gpt-image-1-mini"`

2405 2435 

2406 - `"gpt-image-1.5"`

2407 

2408 - `"gpt-image-2"`2436 - `"gpt-image-2"`

2409 2437 

2410 - `"gpt-image-2-2026-04-21"`2438 - `"gpt-image-2-2026-04-21"`


2417 2445 

2418 - `"gpt-image-2.5-flare-2026-09-08"`2446 - `"gpt-image-2.5-flare-2026-09-08"`

2419 2447 

2448 - `"gpt-image-2.6-sunburst"`

2449 

2450 - `"gpt-image-2.6-flare"`

2451 

2452 - `"gpt-image-1.5"`

2453 

2454 - `"chatgpt-image-latest"`

2455 

2420 - `moderation: optional "auto" or "low" (default: "auto")`2456 - `moderation: optional "auto" or "low" (default: "auto")`

2421 2457 

2422 Moderation level for the generated image. Default: `auto`.2458 Moderation level for the generated image. Default: `auto`.


2431 2467 

2432 `minimum: 0`, `maximum: 100`2468 `minimum: 0`, `maximum: 100`

2433 2469 

2434 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`2470 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

2435 2471 

2436 The output format of the generated image. One of `png`, `webp`, or2472 The output format of the generated image. One of `png`, `webp`, `jpeg`,

2437 `jpeg`. Default: `png`.2473 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

2474 that supports the selected format. GIF output does not support

2475 partial image streaming (`partial_images` greater than `0`),

2476 `input_image_mask`, or custom `output_compression`.

2477 Responses lifecycle events can still be streamed for GIF output.

2438 2478 

2439 - `"png"`2479 - `"png"`

2440 2480 


2442 2482 

2443 - `"jpeg"`2483 - `"jpeg"`

2444 2484 

2485 - `"gif"`

2486 

2487 - `"svg"`

2488 

2445 - `partial_images: optional integer (default: 0)`2489 - `partial_images: optional integer (default: 0)`

2446 2490 

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


2485 2529 

2486 - `"auto"`2530 - `"auto"`

2487 2531 

2532 - `svg: optional object { model, reasoning }`

2533 

2534 SVG author model settings. Requires `output_format` to be `svg`.

2535 When SVG model selection is enabled, omitting this object uses the

2536 outer response model. Otherwise, the default SVG author is used and

2537 explicit model overrides are unavailable.

2538 

2539 - `model: optional string`

2540 

2541 `minLength: 1`

2542 

2543 - `reasoning: optional object { effort } or null`

2544 

2545 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

2546 

2547 - `effort: optional "none" or "minimal" or "low" or 4 more`

2548 

2549 Controls how much effort the model should spend on reasoning for this request.

2550 

2551 - `"none"`

2552 

2553 - `"minimal"`

2554 

2555 - `"low"`

2556 

2557 - `"medium"`

2558 

2559 - `"high"`

2560 

2561 - `"xhigh"`

2562 

2563 - `"max"`

2564 

2488 - `LocalShell object { type }`2565 - `LocalShell object { type }`

2489 2566 

2490 A tool that allows the model to execute shell commands in a local environment.2567 A tool that allows the model to execute shell commands in a local environment.


3515 3592 

3516 - `"programmatic_tool_calling"`3593 - `"programmatic_tool_calling"`

3517 3594 

3518 - `ImageGeneration object { type, action, background, 9 more }`3595 - `ImageGeneration object { type, action, background, 13 more }`

3519 3596 

3520 A tool that generates images using the GPT image models.3597 A tool that generates images using the GPT image models.

3521 3598 


3551 3628 

3552 - `"auto"`3629 - `"auto"`

3553 3630 

3631 - `complexity: optional "low" or "medium" or "high"`

3632 

3633 Computation spent planning the image, independently of rendering quality.

3634 Overrides the outer response's `reasoning.effort` for image generation.

3635 When omitted, inherits a supported outer reasoning effort or uses the

3636 image model's configured default.

3637 For SVG output, controls the reference image, not the SVG author's

3638 reasoning.

3639 

3640 - `"low"`

3641 

3642 - `"medium"`

3643 

3644 - `"high"`

3645 

3646 - `frame_count: optional integer (default: 9)`

3647 

3648 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

3649 

3650 `minimum: 2`, `maximum: 16`

3651 

3652 - `frame_duration_ms: optional integer (default: 200)`

3653 

3654 Duration of each GIF frame in milliseconds, rounded to 10 ms.

3655 Requires `output_format` to be `gif`. Default: 200.

3656 

3657 `minimum: 20`, `maximum: 2000`

3658 

3554 - `input_fidelity: optional "high" or "low" or null`3659 - `input_fidelity: optional "high" or "low" or null`

3555 3660 

3556 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.3661 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


3572 3677 

3573 Base64-encoded mask image.3678 Base64-encoded mask image.

3574 3679 

3575 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3680 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3576 3681 

3577 The image generation model to use. One of `gpt-image-1-mini`,3682 The image generation model to use. One of `gpt-image-1-mini`,

3578 `gpt-image-1.5`, `gpt-image-2`,3683 `gpt-image-1.5`, `gpt-image-2`,

3579 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3684 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3580 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3685 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3581 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3686 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3687 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3582 `gpt-image-2`.3688 `gpt-image-2`.

3583 3689 

3584 `gpt-image-1` was shut down on October 23, 2026. Use3690 `gpt-image-1` was shut down on October 23, 2026. Use


3586 3692 

3587 - `string`3693 - `string`

3588 3694 

3589 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3695 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3590 3696 

3591 The image generation model to use. One of `gpt-image-1-mini`,3697 The image generation model to use. One of `gpt-image-1-mini`,

3592 `gpt-image-1.5`, `gpt-image-2`,3698 `gpt-image-1.5`, `gpt-image-2`,

3593 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3699 `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`,3700 `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:3701 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3702 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3596 `gpt-image-2`.3703 `gpt-image-2`.

3597 3704 

3598 `gpt-image-1` was shut down on October 23, 2026. Use3705 `gpt-image-1` was shut down on October 23, 2026. Use


3602 3709 

3603 - `"gpt-image-1-mini"`3710 - `"gpt-image-1-mini"`

3604 3711 

3605 - `"gpt-image-1.5"`

3606 

3607 - `"gpt-image-2"`3712 - `"gpt-image-2"`

3608 3713 

3609 - `"gpt-image-2-2026-04-21"`3714 - `"gpt-image-2-2026-04-21"`


3616 3721 

3617 - `"gpt-image-2.5-flare-2026-09-08"`3722 - `"gpt-image-2.5-flare-2026-09-08"`

3618 3723 

3724 - `"gpt-image-2.6-sunburst"`

3725 

3726 - `"gpt-image-2.6-flare"`

3727 

3728 - `"gpt-image-1.5"`

3729 

3730 - `"chatgpt-image-latest"`

3731 

3619 - `moderation: optional "auto" or "low" (default: "auto")`3732 - `moderation: optional "auto" or "low" (default: "auto")`

3620 3733 

3621 Moderation level for the generated image. Default: `auto`.3734 Moderation level for the generated image. Default: `auto`.


3630 3743 

3631 `minimum: 0`, `maximum: 100`3744 `minimum: 0`, `maximum: 100`

3632 3745 

3633 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`3746 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

3634 3747 

3635 The output format of the generated image. One of `png`, `webp`, or3748 The output format of the generated image. One of `png`, `webp`, `jpeg`,

3636 `jpeg`. Default: `png`.3749 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

3750 that supports the selected format. GIF output does not support

3751 partial image streaming (`partial_images` greater than `0`),

3752 `input_image_mask`, or custom `output_compression`.

3753 Responses lifecycle events can still be streamed for GIF output.

3637 3754 

3638 - `"png"`3755 - `"png"`

3639 3756 


3641 3758 

3642 - `"jpeg"`3759 - `"jpeg"`

3643 3760 

3761 - `"gif"`

3762 

3763 - `"svg"`

3764 

3644 - `partial_images: optional integer (default: 0)`3765 - `partial_images: optional integer (default: 0)`

3645 3766 

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


3684 3805 

3685 - `"auto"`3806 - `"auto"`

3686 3807 

3808 - `svg: optional object { model, reasoning }`

3809 

3810 SVG author model settings. Requires `output_format` to be `svg`.

3811 When SVG model selection is enabled, omitting this object uses the

3812 outer response model. Otherwise, the default SVG author is used and

3813 explicit model overrides are unavailable.

3814 

3815 - `model: optional string`

3816 

3817 `minLength: 1`

3818 

3819 - `reasoning: optional object { effort } or null`

3820 

3821 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

3822 

3823 - `effort: optional "none" or "minimal" or "low" or 4 more`

3824 

3825 Controls how much effort the model should spend on reasoning for this request.

3826 

3827 - `"none"`

3828 

3829 - `"minimal"`

3830 

3831 - `"low"`

3832 

3833 - `"medium"`

3834 

3835 - `"high"`

3836 

3837 - `"xhigh"`

3838 

3839 - `"max"`

3840 

3687 - `LocalShell object { type }`3841 - `LocalShell object { type }`

3688 3842 

3689 A tool that allows the model to execute shell commands in a local environment.3843 A tool that allows the model to execute shell commands in a local environment.


4252 4406 

4253 The canonical name of the agent that produced this item.4407 The canonical name of the agent that produced this item.

4254 4408 

4255 - `ImageGenerationCall object { id, result, status, 9 more }`4409 - `ImageGenerationCall object { id, result, status, 10 more }`

4256 4410 

4257 An image generation request made by the model.4411 An image generation request made by the model.

4258 4412 


4348 4502 

4349 - `"unknown"`4503 - `"unknown"`

4350 4504 

4351 - `output_format: optional "png" or "webp" or "jpeg" or null`4505 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

4352 4506 

4353 The output format used for generation.4507 The output format used for generation.

4354 4508 


4358 4512 

4359 - `"jpeg"`4513 - `"jpeg"`

4360 4514 

4515 - `"gif"`

4516 

4517 - `"svg"`

4518 

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

4362 4520 

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


4394 4552 

4395 - `"1536x1024"`4553 - `"1536x1024"`

4396 4554 

4555 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

4556 

4557 - `input_tokens: integer`

4558 

4559 - `model: string`

4560 

4561 - `output_tokens: integer`

4562 

4563 - `reasoning_tokens: integer`

4564 

4565 - `total_tokens: integer`

4566 

4397 - `CodeInterpreterCall object { id, code, container_id, 4 more }`4567 - `CodeInterpreterCall object { id, code, container_id, 4 more }`

4398 4568 

4399 A tool call to run code.4569 A tool call to run code.


5446 Keys are strings with a maximum length of 64 characters. Values are strings5616 Keys are strings with a maximum length of 64 characters. Values are strings

5447 with a maximum length of 512 characters.5617 with a maximum length of 512 characters.

5448 5618 

5449 - `model: "gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 108 more or string`5619 - `model: "gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 109 more or string`

5450 5620 

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

5452 offers a wide range of models with different capabilities, performance5622 offers a wide range of models with different capabilities, performance

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

5454 to browse and compare available models.5624 to browse and compare available models.

5455 5625 

5456 - `"gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 108 more`5626 - `"gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 109 more`

5457 5627 

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

5459 offers a wide range of models with different capabilities, performance5629 offers a wide range of models with different capabilities, performance


5678 5848 

5679 - `"gpt-5.6-cyber"`5849 - `"gpt-5.6-cyber"`

5680 5850 

5851 - `"gpt-6-cyber"`

5852 

5681 - `"gpt-rosalind-research"`5853 - `"gpt-rosalind-research"`

5682 5854 

5683 - `"gpt-6-rosalind"`5855 - `"gpt-6-rosalind"`


7166 7338 

7167 - `"programmatic_tool_calling"`7339 - `"programmatic_tool_calling"`

7168 7340 

7169 - `ImageGeneration object { type, action, background, 9 more }`7341 - `ImageGeneration object { type, action, background, 13 more }`

7170 7342 

7171 A tool that generates images using the GPT image models.7343 A tool that generates images using the GPT image models.

7172 7344 


7202 7374 

7203 - `"auto"`7375 - `"auto"`

7204 7376 

7377 - `complexity: optional "low" or "medium" or "high"`

7378 

7379 Computation spent planning the image, independently of rendering quality.

7380 Overrides the outer response's `reasoning.effort` for image generation.

7381 When omitted, inherits a supported outer reasoning effort or uses the

7382 image model's configured default.

7383 For SVG output, controls the reference image, not the SVG author's

7384 reasoning.

7385 

7386 - `"low"`

7387 

7388 - `"medium"`

7389 

7390 - `"high"`

7391 

7392 - `frame_count: optional integer (default: 9)`

7393 

7394 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

7395 

7396 `minimum: 2`, `maximum: 16`

7397 

7398 - `frame_duration_ms: optional integer (default: 200)`

7399 

7400 Duration of each GIF frame in milliseconds, rounded to 10 ms.

7401 Requires `output_format` to be `gif`. Default: 200.

7402 

7403 `minimum: 20`, `maximum: 2000`

7404 

7205 - `input_fidelity: optional "high" or "low" or null`7405 - `input_fidelity: optional "high" or "low" or null`

7206 7406 

7207 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.7407 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


7223 7423 

7224 Base64-encoded mask image.7424 Base64-encoded mask image.

7225 7425 

7226 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`7426 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

7227 7427 

7228 The image generation model to use. One of `gpt-image-1-mini`,7428 The image generation model to use. One of `gpt-image-1-mini`,

7229 `gpt-image-1.5`, `gpt-image-2`,7429 `gpt-image-1.5`, `gpt-image-2`,

7230 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,7430 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

7231 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,7431 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

7232 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:7432 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

7433 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

7233 `gpt-image-2`.7434 `gpt-image-2`.

7234 7435 

7235 `gpt-image-1` was shut down on October 23, 2026. Use7436 `gpt-image-1` was shut down on October 23, 2026. Use


7237 7438 

7238 - `string`7439 - `string`

7239 7440 

7240 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`7441 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

7241 7442 

7242 The image generation model to use. One of `gpt-image-1-mini`,7443 The image generation model to use. One of `gpt-image-1-mini`,

7243 `gpt-image-1.5`, `gpt-image-2`,7444 `gpt-image-1.5`, `gpt-image-2`,

7244 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,7445 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

7245 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,7446 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

7246 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:7447 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

7448 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

7247 `gpt-image-2`.7449 `gpt-image-2`.

7248 7450 

7249 `gpt-image-1` was shut down on October 23, 2026. Use7451 `gpt-image-1` was shut down on October 23, 2026. Use


7253 7455 

7254 - `"gpt-image-1-mini"`7456 - `"gpt-image-1-mini"`

7255 7457 

7256 - `"gpt-image-1.5"`

7257 

7258 - `"gpt-image-2"`7458 - `"gpt-image-2"`

7259 7459 

7260 - `"gpt-image-2-2026-04-21"`7460 - `"gpt-image-2-2026-04-21"`


7267 7467 

7268 - `"gpt-image-2.5-flare-2026-09-08"`7468 - `"gpt-image-2.5-flare-2026-09-08"`

7269 7469 

7470 - `"gpt-image-2.6-sunburst"`

7471 

7472 - `"gpt-image-2.6-flare"`

7473 

7474 - `"gpt-image-1.5"`

7475 

7476 - `"chatgpt-image-latest"`

7477 

7270 - `moderation: optional "auto" or "low" (default: "auto")`7478 - `moderation: optional "auto" or "low" (default: "auto")`

7271 7479 

7272 Moderation level for the generated image. Default: `auto`.7480 Moderation level for the generated image. Default: `auto`.


7281 7489 

7282 `minimum: 0`, `maximum: 100`7490 `minimum: 0`, `maximum: 100`

7283 7491 

7284 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`7492 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

7285 7493 

7286 The output format of the generated image. One of `png`, `webp`, or7494 The output format of the generated image. One of `png`, `webp`, `jpeg`,

7287 `jpeg`. Default: `png`.7495 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

7496 that supports the selected format. GIF output does not support

7497 partial image streaming (`partial_images` greater than `0`),

7498 `input_image_mask`, or custom `output_compression`.

7499 Responses lifecycle events can still be streamed for GIF output.

7288 7500 

7289 - `"png"`7501 - `"png"`

7290 7502 


7292 7504 

7293 - `"jpeg"`7505 - `"jpeg"`

7294 7506 

7507 - `"gif"`

7508 

7509 - `"svg"`

7510 

7295 - `partial_images: optional integer (default: 0)`7511 - `partial_images: optional integer (default: 0)`

7296 7512 

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


7335 7551 

7336 - `"auto"`7552 - `"auto"`

7337 7553 

7554 - `svg: optional object { model, reasoning }`

7555 

7556 SVG author model settings. Requires `output_format` to be `svg`.

7557 When SVG model selection is enabled, omitting this object uses the

7558 outer response model. Otherwise, the default SVG author is used and

7559 explicit model overrides are unavailable.

7560 

7561 - `model: optional string`

7562 

7563 `minLength: 1`

7564 

7565 - `reasoning: optional object { effort } or null`

7566 

7567 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

7568 

7569 - `effort: optional "none" or "minimal" or "low" or 4 more`

7570 

7571 Controls how much effort the model should spend on reasoning for this request.

7572 

7573 - `"none"`

7574 

7575 - `"minimal"`

7576 

7577 - `"low"`

7578 

7579 - `"medium"`

7580 

7581 - `"high"`

7582 

7583 - `"xhigh"`

7584 

7585 - `"max"`

7586 

7338 - `LocalShell object { type }`7587 - `LocalShell object { type }`

7339 7588 

7340 A tool that allows the model to execute shell commands in a local environment.7589 A tool that allows the model to execute shell commands in a local environment.


8229 8478 

8230 - `"programmatic_tool_calling"`8479 - `"programmatic_tool_calling"`

8231 8480 

8232 - `ImageGeneration object { type, action, background, 9 more }`8481 - `ImageGeneration object { type, action, background, 13 more }`

8233 8482 

8234 A tool that generates images using the GPT image models.8483 A tool that generates images using the GPT image models.

8235 8484 


8265 8514 

8266 - `"auto"`8515 - `"auto"`

8267 8516 

8517 - `complexity: optional "low" or "medium" or "high"`

8518 

8519 Computation spent planning the image, independently of rendering quality.

8520 Overrides the outer response's `reasoning.effort` for image generation.

8521 When omitted, inherits a supported outer reasoning effort or uses the

8522 image model's configured default.

8523 For SVG output, controls the reference image, not the SVG author's

8524 reasoning.

8525 

8526 - `"low"`

8527 

8528 - `"medium"`

8529 

8530 - `"high"`

8531 

8532 - `frame_count: optional integer (default: 9)`

8533 

8534 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

8535 

8536 `minimum: 2`, `maximum: 16`

8537 

8538 - `frame_duration_ms: optional integer (default: 200)`

8539 

8540 Duration of each GIF frame in milliseconds, rounded to 10 ms.

8541 Requires `output_format` to be `gif`. Default: 200.

8542 

8543 `minimum: 20`, `maximum: 2000`

8544 

8268 - `input_fidelity: optional "high" or "low" or null`8545 - `input_fidelity: optional "high" or "low" or null`

8269 8546 

8270 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.8547 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


8286 8563 

8287 Base64-encoded mask image.8564 Base64-encoded mask image.

8288 8565 

8289 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`8566 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

8290 8567 

8291 The image generation model to use. One of `gpt-image-1-mini`,8568 The image generation model to use. One of `gpt-image-1-mini`,

8292 `gpt-image-1.5`, `gpt-image-2`,8569 `gpt-image-1.5`, `gpt-image-2`,

8293 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,8570 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

8294 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,8571 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

8295 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:8572 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

8573 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

8296 `gpt-image-2`.8574 `gpt-image-2`.

8297 8575 

8298 `gpt-image-1` was shut down on October 23, 2026. Use8576 `gpt-image-1` was shut down on October 23, 2026. Use


8300 8578 

8301 - `string`8579 - `string`

8302 8580 

8303 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`8581 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

8304 8582 

8305 The image generation model to use. One of `gpt-image-1-mini`,8583 The image generation model to use. One of `gpt-image-1-mini`,

8306 `gpt-image-1.5`, `gpt-image-2`,8584 `gpt-image-1.5`, `gpt-image-2`,

8307 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,8585 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

8308 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,8586 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

8309 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:8587 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

8588 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

8310 `gpt-image-2`.8589 `gpt-image-2`.

8311 8590 

8312 `gpt-image-1` was shut down on October 23, 2026. Use8591 `gpt-image-1` was shut down on October 23, 2026. Use


8316 8595 

8317 - `"gpt-image-1-mini"`8596 - `"gpt-image-1-mini"`

8318 8597 

8319 - `"gpt-image-1.5"`

8320 

8321 - `"gpt-image-2"`8598 - `"gpt-image-2"`

8322 8599 

8323 - `"gpt-image-2-2026-04-21"`8600 - `"gpt-image-2-2026-04-21"`


8330 8607 

8331 - `"gpt-image-2.5-flare-2026-09-08"`8608 - `"gpt-image-2.5-flare-2026-09-08"`

8332 8609 

8610 - `"gpt-image-2.6-sunburst"`

8611 

8612 - `"gpt-image-2.6-flare"`

8613 

8614 - `"gpt-image-1.5"`

8615 

8616 - `"chatgpt-image-latest"`

8617 

8333 - `moderation: optional "auto" or "low" (default: "auto")`8618 - `moderation: optional "auto" or "low" (default: "auto")`

8334 8619 

8335 Moderation level for the generated image. Default: `auto`.8620 Moderation level for the generated image. Default: `auto`.


8344 8629 

8345 `minimum: 0`, `maximum: 100`8630 `minimum: 0`, `maximum: 100`

8346 8631 

8347 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`8632 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

8348 8633 

8349 The output format of the generated image. One of `png`, `webp`, or8634 The output format of the generated image. One of `png`, `webp`, `jpeg`,

8350 `jpeg`. Default: `png`.8635 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

8636 that supports the selected format. GIF output does not support

8637 partial image streaming (`partial_images` greater than `0`),

8638 `input_image_mask`, or custom `output_compression`.

8639 Responses lifecycle events can still be streamed for GIF output.

8351 8640 

8352 - `"png"`8641 - `"png"`

8353 8642 


8355 8644 

8356 - `"jpeg"`8645 - `"jpeg"`

8357 8646 

8647 - `"gif"`

8648 

8649 - `"svg"`

8650 

8358 - `partial_images: optional integer (default: 0)`8651 - `partial_images: optional integer (default: 0)`

8359 8652 

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


8398 8691 

8399 - `"auto"`8692 - `"auto"`

8400 8693 

8694 - `svg: optional object { model, reasoning }`

8695 

8696 SVG author model settings. Requires `output_format` to be `svg`.

8697 When SVG model selection is enabled, omitting this object uses the

8698 outer response model. Otherwise, the default SVG author is used and

8699 explicit model overrides are unavailable.

8700 

8701 - `model: optional string`

8702 

8703 `minLength: 1`

8704 

8705 - `reasoning: optional object { effort } or null`

8706 

8707 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

8708 

8709 - `effort: optional "none" or "minimal" or "low" or 4 more`

8710 

8711 Controls how much effort the model should spend on reasoning for this request.

8712 

8713 - `"none"`

8714 

8715 - `"minimal"`

8716 

8717 - `"low"`

8718 

8719 - `"medium"`

8720 

8721 - `"high"`

8722 

8723 - `"xhigh"`

8724 

8725 - `"max"`

8726 

8401 - `LocalShell object { type }`8727 - `LocalShell object { type }`

8402 8728 

8403 A tool that allows the model to execute shell commands in a local environment.8729 A tool that allows the model to execute shell commands in a local environment.


8790 9116 

8791 The identifier of the actor that created the item.9117 The identifier of the actor that created the item.

8792 9118 

8793 - `ImageGenerationCall object { id, result, status, 9 more }`9119 - `ImageGenerationCall object { id, result, status, 10 more }`

8794 9120 

8795 An image generation request made by the model.9121 An image generation request made by the model.

8796 9122 


8886 9212 

8887 - `"unknown"`9213 - `"unknown"`

8888 9214 

8889 - `output_format: optional "png" or "webp" or "jpeg" or null`9215 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

8890 9216 

8891 The output format used for generation.9217 The output format used for generation.

8892 9218 


8896 9222 

8897 - `"jpeg"`9223 - `"jpeg"`

8898 9224 

9225 - `"gif"`

9226 

9227 - `"svg"`

9228 

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

8900 9230 

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


8932 9262 

8933 - `"1536x1024"`9263 - `"1536x1024"`

8934 9264 

9265 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

9266 

9267 - `input_tokens: integer`

9268 

9269 - `model: string`

9270 

9271 - `output_tokens: integer`

9272 

9273 - `reasoning_tokens: integer`

9274 

9275 - `total_tokens: integer`

9276 

8935 - `CodeInterpreterCall object { id, code, container_id, 4 more }`9277 - `CodeInterpreterCall object { id, code, container_id, 4 more }`

8936 9278 

8937 A tool call to run code.9279 A tool call to run code.


10525 10867 

10526 - `"programmatic_tool_calling"`10868 - `"programmatic_tool_calling"`

10527 10869 

10528 - `ImageGeneration object { type, action, background, 9 more }`10870 - `ImageGeneration object { type, action, background, 13 more }`

10529 10871 

10530 A tool that generates images using the GPT image models.10872 A tool that generates images using the GPT image models.

10531 10873 


10561 10903 

10562 - `"auto"`10904 - `"auto"`

10563 10905 

10906 - `complexity: optional "low" or "medium" or "high"`

10907 

10908 Computation spent planning the image, independently of rendering quality.

10909 Overrides the outer response's `reasoning.effort` for image generation.

10910 When omitted, inherits a supported outer reasoning effort or uses the

10911 image model's configured default.

10912 For SVG output, controls the reference image, not the SVG author's

10913 reasoning.

10914 

10915 - `"low"`

10916 

10917 - `"medium"`

10918 

10919 - `"high"`

10920 

10921 - `frame_count: optional integer (default: 9)`

10922 

10923 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

10924 

10925 `minimum: 2`, `maximum: 16`

10926 

10927 - `frame_duration_ms: optional integer (default: 200)`

10928 

10929 Duration of each GIF frame in milliseconds, rounded to 10 ms.

10930 Requires `output_format` to be `gif`. Default: 200.

10931 

10932 `minimum: 20`, `maximum: 2000`

10933 

10564 - `input_fidelity: optional "high" or "low" or null`10934 - `input_fidelity: optional "high" or "low" or null`

10565 10935 

10566 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.10936 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


10582 10952 

10583 Base64-encoded mask image.10953 Base64-encoded mask image.

10584 10954 

10585 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`10955 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

10586 10956 

10587 The image generation model to use. One of `gpt-image-1-mini`,10957 The image generation model to use. One of `gpt-image-1-mini`,

10588 `gpt-image-1.5`, `gpt-image-2`,10958 `gpt-image-1.5`, `gpt-image-2`,

10589 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,10959 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

10590 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,10960 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

10591 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:10961 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

10962 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

10592 `gpt-image-2`.10963 `gpt-image-2`.

10593 10964 

10594 `gpt-image-1` was shut down on October 23, 2026. Use10965 `gpt-image-1` was shut down on October 23, 2026. Use


10596 10967 

10597 - `string`10968 - `string`

10598 10969 

10599 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`10970 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

10600 10971 

10601 The image generation model to use. One of `gpt-image-1-mini`,10972 The image generation model to use. One of `gpt-image-1-mini`,

10602 `gpt-image-1.5`, `gpt-image-2`,10973 `gpt-image-1.5`, `gpt-image-2`,

10603 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,10974 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

10604 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,10975 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

10605 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:10976 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

10977 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

10606 `gpt-image-2`.10978 `gpt-image-2`.

10607 10979 

10608 `gpt-image-1` was shut down on October 23, 2026. Use10980 `gpt-image-1` was shut down on October 23, 2026. Use


10612 10984 

10613 - `"gpt-image-1-mini"`10985 - `"gpt-image-1-mini"`

10614 10986 

10615 - `"gpt-image-1.5"`

10616 

10617 - `"gpt-image-2"`10987 - `"gpt-image-2"`

10618 10988 

10619 - `"gpt-image-2-2026-04-21"`10989 - `"gpt-image-2-2026-04-21"`


10626 10996 

10627 - `"gpt-image-2.5-flare-2026-09-08"`10997 - `"gpt-image-2.5-flare-2026-09-08"`

10628 10998 

10999 - `"gpt-image-2.6-sunburst"`

11000 

11001 - `"gpt-image-2.6-flare"`

11002 

11003 - `"gpt-image-1.5"`

11004 

11005 - `"chatgpt-image-latest"`

11006 

10629 - `moderation: optional "auto" or "low" (default: "auto")`11007 - `moderation: optional "auto" or "low" (default: "auto")`

10630 11008 

10631 Moderation level for the generated image. Default: `auto`.11009 Moderation level for the generated image. Default: `auto`.


10640 11018 

10641 `minimum: 0`, `maximum: 100`11019 `minimum: 0`, `maximum: 100`

10642 11020 

10643 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`11021 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

10644 11022 

10645 The output format of the generated image. One of `png`, `webp`, or11023 The output format of the generated image. One of `png`, `webp`, `jpeg`,

10646 `jpeg`. Default: `png`.11024 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

11025 that supports the selected format. GIF output does not support

11026 partial image streaming (`partial_images` greater than `0`),

11027 `input_image_mask`, or custom `output_compression`.

11028 Responses lifecycle events can still be streamed for GIF output.

10647 11029 

10648 - `"png"`11030 - `"png"`

10649 11031 


10651 11033 

10652 - `"jpeg"`11034 - `"jpeg"`

10653 11035 

11036 - `"gif"`

11037 

11038 - `"svg"`

11039 

10654 - `partial_images: optional integer (default: 0)`11040 - `partial_images: optional integer (default: 0)`

10655 11041 

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


10694 11080 

10695 - `"auto"`11081 - `"auto"`

10696 11082 

11083 - `svg: optional object { model, reasoning }`

11084 

11085 SVG author model settings. Requires `output_format` to be `svg`.

11086 When SVG model selection is enabled, omitting this object uses the

11087 outer response model. Otherwise, the default SVG author is used and

11088 explicit model overrides are unavailable.

11089 

11090 - `model: optional string`

11091 

11092 `minLength: 1`

11093 

11094 - `reasoning: optional object { effort } or null`

11095 

11096 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

11097 

11098 - `effort: optional "none" or "minimal" or "low" or 4 more`

11099 

11100 Controls how much effort the model should spend on reasoning for this request.

11101 

11102 - `"none"`

11103 

11104 - `"minimal"`

11105 

11106 - `"low"`

11107 

11108 - `"medium"`

11109 

11110 - `"high"`

11111 

11112 - `"xhigh"`

11113 

11114 - `"max"`

11115 

10697 - `LocalShell object { type }`11116 - `LocalShell object { type }`

10698 11117 

10699 A tool that allows the model to execute shell commands in a local environment.11118 A tool that allows the model to execute shell commands in a local environment.

Details

18 18 

19Content type: `application/json`19Content type: `application/json`

20 20 

21- `model: "gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 108 more or string or null`21- `model: "gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 109 more or string or null`

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](/api/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" or "gpt-6.1-sol" or "gpt-6.1-terra" or 108 more`25 - `"gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 109 more`

26 26 

27 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.27 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.

28 28 


244 244 

245 - `"gpt-5.6-cyber"`245 - `"gpt-5.6-cyber"`

246 246 

247 - `"gpt-6-cyber"`

248 

247 - `"gpt-rosalind-research"`249 - `"gpt-rosalind-research"`

248 250 

249 - `"gpt-6-rosalind"`251 - `"gpt-6-rosalind"`


2413 2415 

2414 - `"programmatic_tool_calling"`2416 - `"programmatic_tool_calling"`

2415 2417 

2416 - `ImageGeneration object { type, action, background, 9 more }`2418 - `ImageGeneration object { type, action, background, 13 more }`

2417 2419 

2418 A tool that generates images using the GPT image models.2420 A tool that generates images using the GPT image models.

2419 2421 


2449 2451 

2450 - `"auto"`2452 - `"auto"`

2451 2453 

2454 - `complexity: optional "low" or "medium" or "high"`

2455 

2456 Computation spent planning the image, independently of rendering quality.

2457 Overrides the outer response's `reasoning.effort` for image generation.

2458 When omitted, inherits a supported outer reasoning effort or uses the

2459 image model's configured default.

2460 For SVG output, controls the reference image, not the SVG author's

2461 reasoning.

2462 

2463 - `"low"`

2464 

2465 - `"medium"`

2466 

2467 - `"high"`

2468 

2469 - `frame_count: optional integer (default: 9)`

2470 

2471 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

2472 

2473 `minimum: 2`, `maximum: 16`

2474 

2475 - `frame_duration_ms: optional integer (default: 200)`

2476 

2477 Duration of each GIF frame in milliseconds, rounded to 10 ms.

2478 Requires `output_format` to be `gif`. Default: 200.

2479 

2480 `minimum: 20`, `maximum: 2000`

2481 

2452 - `input_fidelity: optional "high" or "low" or null`2482 - `input_fidelity: optional "high" or "low" or null`

2453 2483 

2454 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.2484 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


2470 2500 

2471 Base64-encoded mask image.2501 Base64-encoded mask image.

2472 2502 

2473 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2503 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

2474 2504 

2475 The image generation model to use. One of `gpt-image-1-mini`,2505 The image generation model to use. One of `gpt-image-1-mini`,

2476 `gpt-image-1.5`, `gpt-image-2`,2506 `gpt-image-1.5`, `gpt-image-2`,

2477 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2507 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2478 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2508 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2479 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2509 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

2510 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

2480 `gpt-image-2`.2511 `gpt-image-2`.

2481 2512 

2482 `gpt-image-1` was shut down on October 23, 2026. Use2513 `gpt-image-1` was shut down on October 23, 2026. Use


2484 2515 

2485 - `string`2516 - `string`

2486 2517 

2487 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2518 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

2488 2519 

2489 The image generation model to use. One of `gpt-image-1-mini`,2520 The image generation model to use. One of `gpt-image-1-mini`,

2490 `gpt-image-1.5`, `gpt-image-2`,2521 `gpt-image-1.5`, `gpt-image-2`,

2491 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2522 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2492 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2523 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2493 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2524 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

2525 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

2494 `gpt-image-2`.2526 `gpt-image-2`.

2495 2527 

2496 `gpt-image-1` was shut down on October 23, 2026. Use2528 `gpt-image-1` was shut down on October 23, 2026. Use


2500 2532 

2501 - `"gpt-image-1-mini"`2533 - `"gpt-image-1-mini"`

2502 2534 

2503 - `"gpt-image-1.5"`

2504 

2505 - `"gpt-image-2"`2535 - `"gpt-image-2"`

2506 2536 

2507 - `"gpt-image-2-2026-04-21"`2537 - `"gpt-image-2-2026-04-21"`


2514 2544 

2515 - `"gpt-image-2.5-flare-2026-09-08"`2545 - `"gpt-image-2.5-flare-2026-09-08"`

2516 2546 

2547 - `"gpt-image-2.6-sunburst"`

2548 

2549 - `"gpt-image-2.6-flare"`

2550 

2551 - `"gpt-image-1.5"`

2552 

2553 - `"chatgpt-image-latest"`

2554 

2517 - `moderation: optional "auto" or "low" (default: "auto")`2555 - `moderation: optional "auto" or "low" (default: "auto")`

2518 2556 

2519 Moderation level for the generated image. Default: `auto`.2557 Moderation level for the generated image. Default: `auto`.


2528 2566 

2529 `minimum: 0`, `maximum: 100`2567 `minimum: 0`, `maximum: 100`

2530 2568 

2531 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`2569 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

2532 2570 

2533 The output format of the generated image. One of `png`, `webp`, or2571 The output format of the generated image. One of `png`, `webp`, `jpeg`,

2534 `jpeg`. Default: `png`.2572 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

2573 that supports the selected format. GIF output does not support

2574 partial image streaming (`partial_images` greater than `0`),

2575 `input_image_mask`, or custom `output_compression`.

2576 Responses lifecycle events can still be streamed for GIF output.

2535 2577 

2536 - `"png"`2578 - `"png"`

2537 2579 


2539 2581 

2540 - `"jpeg"`2582 - `"jpeg"`

2541 2583 

2584 - `"gif"`

2585 

2586 - `"svg"`

2587 

2542 - `partial_images: optional integer (default: 0)`2588 - `partial_images: optional integer (default: 0)`

2543 2589 

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


2582 2628 

2583 - `"auto"`2629 - `"auto"`

2584 2630 

2631 - `svg: optional object { model, reasoning }`

2632 

2633 SVG author model settings. Requires `output_format` to be `svg`.

2634 When SVG model selection is enabled, omitting this object uses the

2635 outer response model. Otherwise, the default SVG author is used and

2636 explicit model overrides are unavailable.

2637 

2638 - `model: optional string`

2639 

2640 `minLength: 1`

2641 

2642 - `reasoning: optional object { effort } or null`

2643 

2644 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

2645 

2646 - `effort: optional "none" or "minimal" or "low" or 4 more`

2647 

2648 Controls how much effort the model should spend on reasoning for this request.

2649 

2650 - `"none"`

2651 

2652 - `"minimal"`

2653 

2654 - `"low"`

2655 

2656 - `"medium"`

2657 

2658 - `"high"`

2659 

2660 - `"xhigh"`

2661 

2662 - `"max"`

2663 

2585 - `LocalShell object { type }`2664 - `LocalShell object { type }`

2586 2665 

2587 A tool that allows the model to execute shell commands in a local environment.2666 A tool that allows the model to execute shell commands in a local environment.


3612 3691 

3613 - `"programmatic_tool_calling"`3692 - `"programmatic_tool_calling"`

3614 3693 

3615 - `ImageGeneration object { type, action, background, 9 more }`3694 - `ImageGeneration object { type, action, background, 13 more }`

3616 3695 

3617 A tool that generates images using the GPT image models.3696 A tool that generates images using the GPT image models.

3618 3697 


3648 3727 

3649 - `"auto"`3728 - `"auto"`

3650 3729 

3730 - `complexity: optional "low" or "medium" or "high"`

3731 

3732 Computation spent planning the image, independently of rendering quality.

3733 Overrides the outer response's `reasoning.effort` for image generation.

3734 When omitted, inherits a supported outer reasoning effort or uses the

3735 image model's configured default.

3736 For SVG output, controls the reference image, not the SVG author's

3737 reasoning.

3738 

3739 - `"low"`

3740 

3741 - `"medium"`

3742 

3743 - `"high"`

3744 

3745 - `frame_count: optional integer (default: 9)`

3746 

3747 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

3748 

3749 `minimum: 2`, `maximum: 16`

3750 

3751 - `frame_duration_ms: optional integer (default: 200)`

3752 

3753 Duration of each GIF frame in milliseconds, rounded to 10 ms.

3754 Requires `output_format` to be `gif`. Default: 200.

3755 

3756 `minimum: 20`, `maximum: 2000`

3757 

3651 - `input_fidelity: optional "high" or "low" or null`3758 - `input_fidelity: optional "high" or "low" or null`

3652 3759 

3653 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.3760 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


3669 3776 

3670 Base64-encoded mask image.3777 Base64-encoded mask image.

3671 3778 

3672 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3779 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3673 3780 

3674 The image generation model to use. One of `gpt-image-1-mini`,3781 The image generation model to use. One of `gpt-image-1-mini`,

3675 `gpt-image-1.5`, `gpt-image-2`,3782 `gpt-image-1.5`, `gpt-image-2`,

3676 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3783 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3677 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3784 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3678 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3785 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3786 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3679 `gpt-image-2`.3787 `gpt-image-2`.

3680 3788 

3681 `gpt-image-1` was shut down on October 23, 2026. Use3789 `gpt-image-1` was shut down on October 23, 2026. Use


3683 3791 

3684 - `string`3792 - `string`

3685 3793 

3686 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3794 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3687 3795 

3688 The image generation model to use. One of `gpt-image-1-mini`,3796 The image generation model to use. One of `gpt-image-1-mini`,

3689 `gpt-image-1.5`, `gpt-image-2`,3797 `gpt-image-1.5`, `gpt-image-2`,

3690 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3798 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3691 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3799 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3692 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3800 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3801 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3693 `gpt-image-2`.3802 `gpt-image-2`.

3694 3803 

3695 `gpt-image-1` was shut down on October 23, 2026. Use3804 `gpt-image-1` was shut down on October 23, 2026. Use


3699 3808 

3700 - `"gpt-image-1-mini"`3809 - `"gpt-image-1-mini"`

3701 3810 

3702 - `"gpt-image-1.5"`

3703 

3704 - `"gpt-image-2"`3811 - `"gpt-image-2"`

3705 3812 

3706 - `"gpt-image-2-2026-04-21"`3813 - `"gpt-image-2-2026-04-21"`


3713 3820 

3714 - `"gpt-image-2.5-flare-2026-09-08"`3821 - `"gpt-image-2.5-flare-2026-09-08"`

3715 3822 

3823 - `"gpt-image-2.6-sunburst"`

3824 

3825 - `"gpt-image-2.6-flare"`

3826 

3827 - `"gpt-image-1.5"`

3828 

3829 - `"chatgpt-image-latest"`

3830 

3716 - `moderation: optional "auto" or "low" (default: "auto")`3831 - `moderation: optional "auto" or "low" (default: "auto")`

3717 3832 

3718 Moderation level for the generated image. Default: `auto`.3833 Moderation level for the generated image. Default: `auto`.


3727 3842 

3728 `minimum: 0`, `maximum: 100`3843 `minimum: 0`, `maximum: 100`

3729 3844 

3730 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`3845 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

3731 3846 

3732 The output format of the generated image. One of `png`, `webp`, or3847 The output format of the generated image. One of `png`, `webp`, `jpeg`,

3733 `jpeg`. Default: `png`.3848 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

3849 that supports the selected format. GIF output does not support

3850 partial image streaming (`partial_images` greater than `0`),

3851 `input_image_mask`, or custom `output_compression`.

3852 Responses lifecycle events can still be streamed for GIF output.

3734 3853 

3735 - `"png"`3854 - `"png"`

3736 3855 


3738 3857 

3739 - `"jpeg"`3858 - `"jpeg"`

3740 3859 

3860 - `"gif"`

3861 

3862 - `"svg"`

3863 

3741 - `partial_images: optional integer (default: 0)`3864 - `partial_images: optional integer (default: 0)`

3742 3865 

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


3781 3904 

3782 - `"auto"`3905 - `"auto"`

3783 3906 

3907 - `svg: optional object { model, reasoning }`

3908 

3909 SVG author model settings. Requires `output_format` to be `svg`.

3910 When SVG model selection is enabled, omitting this object uses the

3911 outer response model. Otherwise, the default SVG author is used and

3912 explicit model overrides are unavailable.

3913 

3914 - `model: optional string`

3915 

3916 `minLength: 1`

3917 

3918 - `reasoning: optional object { effort } or null`

3919 

3920 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

3921 

3922 - `effort: optional "none" or "minimal" or "low" or 4 more`

3923 

3924 Controls how much effort the model should spend on reasoning for this request.

3925 

3926 - `"none"`

3927 

3928 - `"minimal"`

3929 

3930 - `"low"`

3931 

3932 - `"medium"`

3933 

3934 - `"high"`

3935 

3936 - `"xhigh"`

3937 

3938 - `"max"`

3939 

3784 - `LocalShell object { type }`3940 - `LocalShell object { type }`

3785 3941 

3786 A tool that allows the model to execute shell commands in a local environment.3942 A tool that allows the model to execute shell commands in a local environment.


4349 4505 

4350 The canonical name of the agent that produced this item.4506 The canonical name of the agent that produced this item.

4351 4507 

4352 - `ImageGenerationCall object { id, result, status, 9 more }`4508 - `ImageGenerationCall object { id, result, status, 10 more }`

4353 4509 

4354 An image generation request made by the model.4510 An image generation request made by the model.

4355 4511 


4445 4601 

4446 - `"unknown"`4602 - `"unknown"`

4447 4603 

4448 - `output_format: optional "png" or "webp" or "jpeg" or null`4604 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

4449 4605 

4450 The output format used for generation.4606 The output format used for generation.

4451 4607 


4455 4611 

4456 - `"jpeg"`4612 - `"jpeg"`

4457 4613 

4614 - `"gif"`

4615 

4616 - `"svg"`

4617 

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

4459 4619 

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


4491 4651 

4492 - `"1536x1024"`4652 - `"1536x1024"`

4493 4653 

4654 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

4655 

4656 - `input_tokens: integer`

4657 

4658 - `model: string`

4659 

4660 - `output_tokens: integer`

4661 

4662 - `reasoning_tokens: integer`

4663 

4664 - `total_tokens: integer`

4665 

4494 - `CodeInterpreterCall object { id, code, container_id, 4 more }`4666 - `CodeInterpreterCall object { id, code, container_id, 4 more }`

4495 4667 

4496 A tool call to run code.4668 A tool call to run code.


6922 7094 

6923 - `"programmatic_tool_calling"`7095 - `"programmatic_tool_calling"`

6924 7096 

6925 - `ImageGeneration object { type, action, background, 9 more }`7097 - `ImageGeneration object { type, action, background, 13 more }`

6926 7098 

6927 A tool that generates images using the GPT image models.7099 A tool that generates images using the GPT image models.

6928 7100 


6958 7130 

6959 - `"auto"`7131 - `"auto"`

6960 7132 

7133 - `complexity: optional "low" or "medium" or "high"`

7134 

7135 Computation spent planning the image, independently of rendering quality.

7136 Overrides the outer response's `reasoning.effort` for image generation.

7137 When omitted, inherits a supported outer reasoning effort or uses the

7138 image model's configured default.

7139 For SVG output, controls the reference image, not the SVG author's

7140 reasoning.

7141 

7142 - `"low"`

7143 

7144 - `"medium"`

7145 

7146 - `"high"`

7147 

7148 - `frame_count: optional integer (default: 9)`

7149 

7150 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

7151 

7152 `minimum: 2`, `maximum: 16`

7153 

7154 - `frame_duration_ms: optional integer (default: 200)`

7155 

7156 Duration of each GIF frame in milliseconds, rounded to 10 ms.

7157 Requires `output_format` to be `gif`. Default: 200.

7158 

7159 `minimum: 20`, `maximum: 2000`

7160 

6961 - `input_fidelity: optional "high" or "low" or null`7161 - `input_fidelity: optional "high" or "low" or null`

6962 7162 

6963 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.7163 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


6979 7179 

6980 Base64-encoded mask image.7180 Base64-encoded mask image.

6981 7181 

6982 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`7182 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

6983 7183 

6984 The image generation model to use. One of `gpt-image-1-mini`,7184 The image generation model to use. One of `gpt-image-1-mini`,

6985 `gpt-image-1.5`, `gpt-image-2`,7185 `gpt-image-1.5`, `gpt-image-2`,

6986 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,7186 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6987 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,7187 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6988 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:7188 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

7189 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

6989 `gpt-image-2`.7190 `gpt-image-2`.

6990 7191 

6991 `gpt-image-1` was shut down on October 23, 2026. Use7192 `gpt-image-1` was shut down on October 23, 2026. Use


6993 7194 

6994 - `string`7195 - `string`

6995 7196 

6996 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`7197 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

6997 7198 

6998 The image generation model to use. One of `gpt-image-1-mini`,7199 The image generation model to use. One of `gpt-image-1-mini`,

6999 `gpt-image-1.5`, `gpt-image-2`,7200 `gpt-image-1.5`, `gpt-image-2`,

7000 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,7201 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

7001 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,7202 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

7002 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:7203 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

7204 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

7003 `gpt-image-2`.7205 `gpt-image-2`.

7004 7206 

7005 `gpt-image-1` was shut down on October 23, 2026. Use7207 `gpt-image-1` was shut down on October 23, 2026. Use


7009 7211 

7010 - `"gpt-image-1-mini"`7212 - `"gpt-image-1-mini"`

7011 7213 

7012 - `"gpt-image-1.5"`

7013 

7014 - `"gpt-image-2"`7214 - `"gpt-image-2"`

7015 7215 

7016 - `"gpt-image-2-2026-04-21"`7216 - `"gpt-image-2-2026-04-21"`


7023 7223 

7024 - `"gpt-image-2.5-flare-2026-09-08"`7224 - `"gpt-image-2.5-flare-2026-09-08"`

7025 7225 

7226 - `"gpt-image-2.6-sunburst"`

7227 

7228 - `"gpt-image-2.6-flare"`

7229 

7230 - `"gpt-image-1.5"`

7231 

7232 - `"chatgpt-image-latest"`

7233 

7026 - `moderation: optional "auto" or "low" (default: "auto")`7234 - `moderation: optional "auto" or "low" (default: "auto")`

7027 7235 

7028 Moderation level for the generated image. Default: `auto`.7236 Moderation level for the generated image. Default: `auto`.


7037 7245 

7038 `minimum: 0`, `maximum: 100`7246 `minimum: 0`, `maximum: 100`

7039 7247 

7040 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`7248 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

7041 7249 

7042 The output format of the generated image. One of `png`, `webp`, or7250 The output format of the generated image. One of `png`, `webp`, `jpeg`,

7043 `jpeg`. Default: `png`.7251 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

7252 that supports the selected format. GIF output does not support

7253 partial image streaming (`partial_images` greater than `0`),

7254 `input_image_mask`, or custom `output_compression`.

7255 Responses lifecycle events can still be streamed for GIF output.

7044 7256 

7045 - `"png"`7257 - `"png"`

7046 7258 


7048 7260 

7049 - `"jpeg"`7261 - `"jpeg"`

7050 7262 

7263 - `"gif"`

7264 

7265 - `"svg"`

7266 

7051 - `partial_images: optional integer (default: 0)`7267 - `partial_images: optional integer (default: 0)`

7052 7268 

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


7091 7307 

7092 - `"auto"`7308 - `"auto"`

7093 7309 

7310 - `svg: optional object { model, reasoning }`

7311 

7312 SVG author model settings. Requires `output_format` to be `svg`.

7313 When SVG model selection is enabled, omitting this object uses the

7314 outer response model. Otherwise, the default SVG author is used and

7315 explicit model overrides are unavailable.

7316 

7317 - `model: optional string`

7318 

7319 `minLength: 1`

7320 

7321 - `reasoning: optional object { effort } or null`

7322 

7323 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

7324 

7325 - `effort: optional "none" or "minimal" or "low" or 4 more`

7326 

7327 Controls how much effort the model should spend on reasoning for this request.

7328 

7329 - `"none"`

7330 

7331 - `"minimal"`

7332 

7333 - `"low"`

7334 

7335 - `"medium"`

7336 

7337 - `"high"`

7338 

7339 - `"xhigh"`

7340 

7341 - `"max"`

7342 

7094 - `LocalShell object { type }`7343 - `LocalShell object { type }`

7095 7344 

7096 A tool that allows the model to execute shell commands in a local environment.7345 A tool that allows the model to execute shell commands in a local environment.


8113 8362 

8114 - `"programmatic_tool_calling"`8363 - `"programmatic_tool_calling"`

8115 8364 

8116 - `ImageGeneration object { type, action, background, 9 more }`8365 - `ImageGeneration object { type, action, background, 13 more }`

8117 8366 

8118 A tool that generates images using the GPT image models.8367 A tool that generates images using the GPT image models.

8119 8368 


8149 8398 

8150 - `"auto"`8399 - `"auto"`

8151 8400 

8401 - `complexity: optional "low" or "medium" or "high"`

8402 

8403 Computation spent planning the image, independently of rendering quality.

8404 Overrides the outer response's `reasoning.effort` for image generation.

8405 When omitted, inherits a supported outer reasoning effort or uses the

8406 image model's configured default.

8407 For SVG output, controls the reference image, not the SVG author's

8408 reasoning.

8409 

8410 - `"low"`

8411 

8412 - `"medium"`

8413 

8414 - `"high"`

8415 

8416 - `frame_count: optional integer (default: 9)`

8417 

8418 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

8419 

8420 `minimum: 2`, `maximum: 16`

8421 

8422 - `frame_duration_ms: optional integer (default: 200)`

8423 

8424 Duration of each GIF frame in milliseconds, rounded to 10 ms.

8425 Requires `output_format` to be `gif`. Default: 200.

8426 

8427 `minimum: 20`, `maximum: 2000`

8428 

8152 - `input_fidelity: optional "high" or "low" or null`8429 - `input_fidelity: optional "high" or "low" or null`

8153 8430 

8154 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.8431 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


8170 8447 

8171 Base64-encoded mask image.8448 Base64-encoded mask image.

8172 8449 

8173 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`8450 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

8174 8451 

8175 The image generation model to use. One of `gpt-image-1-mini`,8452 The image generation model to use. One of `gpt-image-1-mini`,

8176 `gpt-image-1.5`, `gpt-image-2`,8453 `gpt-image-1.5`, `gpt-image-2`,

8177 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,8454 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

8178 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,8455 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

8179 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:8456 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

8457 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

8180 `gpt-image-2`.8458 `gpt-image-2`.

8181 8459 

8182 `gpt-image-1` was shut down on October 23, 2026. Use8460 `gpt-image-1` was shut down on October 23, 2026. Use


8184 8462 

8185 - `string`8463 - `string`

8186 8464 

8187 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`8465 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

8188 8466 

8189 The image generation model to use. One of `gpt-image-1-mini`,8467 The image generation model to use. One of `gpt-image-1-mini`,

8190 `gpt-image-1.5`, `gpt-image-2`,8468 `gpt-image-1.5`, `gpt-image-2`,

8191 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,8469 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

8192 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,8470 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

8193 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:8471 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

8472 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

8194 `gpt-image-2`.8473 `gpt-image-2`.

8195 8474 

8196 `gpt-image-1` was shut down on October 23, 2026. Use8475 `gpt-image-1` was shut down on October 23, 2026. Use


8200 8479 

8201 - `"gpt-image-1-mini"`8480 - `"gpt-image-1-mini"`

8202 8481 

8203 - `"gpt-image-1.5"`

8204 

8205 - `"gpt-image-2"`8482 - `"gpt-image-2"`

8206 8483 

8207 - `"gpt-image-2-2026-04-21"`8484 - `"gpt-image-2-2026-04-21"`


8214 8491 

8215 - `"gpt-image-2.5-flare-2026-09-08"`8492 - `"gpt-image-2.5-flare-2026-09-08"`

8216 8493 

8494 - `"gpt-image-2.6-sunburst"`

8495 

8496 - `"gpt-image-2.6-flare"`

8497 

8498 - `"gpt-image-1.5"`

8499 

8500 - `"chatgpt-image-latest"`

8501 

8217 - `moderation: optional "auto" or "low" (default: "auto")`8502 - `moderation: optional "auto" or "low" (default: "auto")`

8218 8503 

8219 Moderation level for the generated image. Default: `auto`.8504 Moderation level for the generated image. Default: `auto`.


8228 8513 

8229 `minimum: 0`, `maximum: 100`8514 `minimum: 0`, `maximum: 100`

8230 8515 

8231 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`8516 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

8232 8517 

8233 The output format of the generated image. One of `png`, `webp`, or8518 The output format of the generated image. One of `png`, `webp`, `jpeg`,

8234 `jpeg`. Default: `png`.8519 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

8520 that supports the selected format. GIF output does not support

8521 partial image streaming (`partial_images` greater than `0`),

8522 `input_image_mask`, or custom `output_compression`.

8523 Responses lifecycle events can still be streamed for GIF output.

8235 8524 

8236 - `"png"`8525 - `"png"`

8237 8526 


8239 8528 

8240 - `"jpeg"`8529 - `"jpeg"`

8241 8530 

8531 - `"gif"`

8532 

8533 - `"svg"`

8534 

8242 - `partial_images: optional integer (default: 0)`8535 - `partial_images: optional integer (default: 0)`

8243 8536 

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


8282 8575 

8283 - `"auto"`8576 - `"auto"`

8284 8577 

8578 - `svg: optional object { model, reasoning }`

8579 

8580 SVG author model settings. Requires `output_format` to be `svg`.

8581 When SVG model selection is enabled, omitting this object uses the

8582 outer response model. Otherwise, the default SVG author is used and

8583 explicit model overrides are unavailable.

8584 

8585 - `model: optional string`

8586 

8587 `minLength: 1`

8588 

8589 - `reasoning: optional object { effort } or null`

8590 

8591 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

8592 

8593 - `effort: optional "none" or "minimal" or "low" or 4 more`

8594 

8595 Controls how much effort the model should spend on reasoning for this request.

8596 

8597 - `"none"`

8598 

8599 - `"minimal"`

8600 

8601 - `"low"`

8602 

8603 - `"medium"`

8604 

8605 - `"high"`

8606 

8607 - `"xhigh"`

8608 

8609 - `"max"`

8610 

8285 - `LocalShell object { type }`8611 - `LocalShell object { type }`

8286 8612 

8287 A tool that allows the model to execute shell commands in a local environment.8613 A tool that allows the model to execute shell commands in a local environment.


9079 9405 

9080 The canonical name of the agent that produced this item.9406 The canonical name of the agent that produced this item.

9081 9407 

9082 - `ImageGenerationCall object { id, result, status, 9 more }`9408 - `ImageGenerationCall object { id, result, status, 10 more }`

9083 9409 

9084 An image generation request made by the model.9410 An image generation request made by the model.

9085 9411 


9175 9501 

9176 - `"unknown"`9502 - `"unknown"`

9177 9503 

9178 - `output_format: optional "png" or "webp" or "jpeg" or null`9504 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

9179 9505 

9180 The output format used for generation.9506 The output format used for generation.

9181 9507 


9185 9511 

9186 - `"jpeg"`9512 - `"jpeg"`

9187 9513 

9514 - `"gif"`

9515 

9516 - `"svg"`

9517 

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

9189 9519 

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


9221 9551 

9222 - `"1536x1024"`9552 - `"1536x1024"`

9223 9553 

9554 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

9555 

9556 - `input_tokens: integer`

9557 

9558 - `model: string`

9559 

9560 - `output_tokens: integer`

9561 

9562 - `reasoning_tokens: integer`

9563 

9564 - `total_tokens: integer`

9565 

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

9225 9567 

9226 A tool call to a computer use tool. See the9568 A tool call to a computer use tool. See the

Details

2271 2271 

2272 - `"programmatic_tool_calling"`2272 - `"programmatic_tool_calling"`

2273 2273 

2274 - `ImageGeneration object { type, action, background, 9 more }`2274 - `ImageGeneration object { type, action, background, 13 more }`

2275 2275 

2276 A tool that generates images using the GPT image models.2276 A tool that generates images using the GPT image models.

2277 2277 


2307 2307 

2308 - `"auto"`2308 - `"auto"`

2309 2309 

2310 - `complexity: optional "low" or "medium" or "high"`

2311 

2312 Computation spent planning the image, independently of rendering quality.

2313 Overrides the outer response's `reasoning.effort` for image generation.

2314 When omitted, inherits a supported outer reasoning effort or uses the

2315 image model's configured default.

2316 For SVG output, controls the reference image, not the SVG author's

2317 reasoning.

2318 

2319 - `"low"`

2320 

2321 - `"medium"`

2322 

2323 - `"high"`

2324 

2325 - `frame_count: optional integer (default: 9)`

2326 

2327 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

2328 

2329 `minimum: 2`, `maximum: 16`

2330 

2331 - `frame_duration_ms: optional integer (default: 200)`

2332 

2333 Duration of each GIF frame in milliseconds, rounded to 10 ms.

2334 Requires `output_format` to be `gif`. Default: 200.

2335 

2336 `minimum: 20`, `maximum: 2000`

2337 

2310 - `input_fidelity: optional "high" or "low" or null`2338 - `input_fidelity: optional "high" or "low" or null`

2311 2339 

2312 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.2340 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


2328 2356 

2329 Base64-encoded mask image.2357 Base64-encoded mask image.

2330 2358 

2331 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2359 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

2332 2360 

2333 The image generation model to use. One of `gpt-image-1-mini`,2361 The image generation model to use. One of `gpt-image-1-mini`,

2334 `gpt-image-1.5`, `gpt-image-2`,2362 `gpt-image-1.5`, `gpt-image-2`,

2335 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2363 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2336 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2364 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2337 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2365 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

2366 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

2338 `gpt-image-2`.2367 `gpt-image-2`.

2339 2368 

2340 `gpt-image-1` was shut down on October 23, 2026. Use2369 `gpt-image-1` was shut down on October 23, 2026. Use


2342 2371 

2343 - `string`2372 - `string`

2344 2373 

2345 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2374 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

2346 2375 

2347 The image generation model to use. One of `gpt-image-1-mini`,2376 The image generation model to use. One of `gpt-image-1-mini`,

2348 `gpt-image-1.5`, `gpt-image-2`,2377 `gpt-image-1.5`, `gpt-image-2`,

2349 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2378 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2350 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2379 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2351 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2380 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

2381 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

2352 `gpt-image-2`.2382 `gpt-image-2`.

2353 2383 

2354 `gpt-image-1` was shut down on October 23, 2026. Use2384 `gpt-image-1` was shut down on October 23, 2026. Use


2358 2388 

2359 - `"gpt-image-1-mini"`2389 - `"gpt-image-1-mini"`

2360 2390 

2361 - `"gpt-image-1.5"`

2362 

2363 - `"gpt-image-2"`2391 - `"gpt-image-2"`

2364 2392 

2365 - `"gpt-image-2-2026-04-21"`2393 - `"gpt-image-2-2026-04-21"`


2372 2400 

2373 - `"gpt-image-2.5-flare-2026-09-08"`2401 - `"gpt-image-2.5-flare-2026-09-08"`

2374 2402 

2403 - `"gpt-image-2.6-sunburst"`

2404 

2405 - `"gpt-image-2.6-flare"`

2406 

2407 - `"gpt-image-1.5"`

2408 

2409 - `"chatgpt-image-latest"`

2410 

2375 - `moderation: optional "auto" or "low" (default: "auto")`2411 - `moderation: optional "auto" or "low" (default: "auto")`

2376 2412 

2377 Moderation level for the generated image. Default: `auto`.2413 Moderation level for the generated image. Default: `auto`.


2386 2422 

2387 `minimum: 0`, `maximum: 100`2423 `minimum: 0`, `maximum: 100`

2388 2424 

2389 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`2425 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

2390 2426 

2391 The output format of the generated image. One of `png`, `webp`, or2427 The output format of the generated image. One of `png`, `webp`, `jpeg`,

2392 `jpeg`. Default: `png`.2428 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

2429 that supports the selected format. GIF output does not support

2430 partial image streaming (`partial_images` greater than `0`),

2431 `input_image_mask`, or custom `output_compression`.

2432 Responses lifecycle events can still be streamed for GIF output.

2393 2433 

2394 - `"png"`2434 - `"png"`

2395 2435 


2397 2437 

2398 - `"jpeg"`2438 - `"jpeg"`

2399 2439 

2440 - `"gif"`

2441 

2442 - `"svg"`

2443 

2400 - `partial_images: optional integer (default: 0)`2444 - `partial_images: optional integer (default: 0)`

2401 2445 

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


2440 2484 

2441 - `"auto"`2485 - `"auto"`

2442 2486 

2487 - `svg: optional object { model, reasoning }`

2488 

2489 SVG author model settings. Requires `output_format` to be `svg`.

2490 When SVG model selection is enabled, omitting this object uses the

2491 outer response model. Otherwise, the default SVG author is used and

2492 explicit model overrides are unavailable.

2493 

2494 - `model: optional string`

2495 

2496 `minLength: 1`

2497 

2498 - `reasoning: optional object { effort } or null`

2499 

2500 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

2501 

2502 - `effort: optional "none" or "minimal" or "low" or 4 more`

2503 

2504 Controls how much effort the model should spend on reasoning for this request.

2505 

2506 - `"none"`

2507 

2508 - `"minimal"`

2509 

2510 - `"low"`

2511 

2512 - `"medium"`

2513 

2514 - `"high"`

2515 

2516 - `"xhigh"`

2517 

2518 - `"max"`

2519 

2443 - `LocalShell object { type }`2520 - `LocalShell object { type }`

2444 2521 

2445 A tool that allows the model to execute shell commands in a local environment.2522 A tool that allows the model to execute shell commands in a local environment.


3470 3547 

3471 - `"programmatic_tool_calling"`3548 - `"programmatic_tool_calling"`

3472 3549 

3473 - `ImageGeneration object { type, action, background, 9 more }`3550 - `ImageGeneration object { type, action, background, 13 more }`

3474 3551 

3475 A tool that generates images using the GPT image models.3552 A tool that generates images using the GPT image models.

3476 3553 


3506 3583 

3507 - `"auto"`3584 - `"auto"`

3508 3585 

3586 - `complexity: optional "low" or "medium" or "high"`

3587 

3588 Computation spent planning the image, independently of rendering quality.

3589 Overrides the outer response's `reasoning.effort` for image generation.

3590 When omitted, inherits a supported outer reasoning effort or uses the

3591 image model's configured default.

3592 For SVG output, controls the reference image, not the SVG author's

3593 reasoning.

3594 

3595 - `"low"`

3596 

3597 - `"medium"`

3598 

3599 - `"high"`

3600 

3601 - `frame_count: optional integer (default: 9)`

3602 

3603 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

3604 

3605 `minimum: 2`, `maximum: 16`

3606 

3607 - `frame_duration_ms: optional integer (default: 200)`

3608 

3609 Duration of each GIF frame in milliseconds, rounded to 10 ms.

3610 Requires `output_format` to be `gif`. Default: 200.

3611 

3612 `minimum: 20`, `maximum: 2000`

3613 

3509 - `input_fidelity: optional "high" or "low" or null`3614 - `input_fidelity: optional "high" or "low" or null`

3510 3615 

3511 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.3616 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


3527 3632 

3528 Base64-encoded mask image.3633 Base64-encoded mask image.

3529 3634 

3530 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3635 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3531 3636 

3532 The image generation model to use. One of `gpt-image-1-mini`,3637 The image generation model to use. One of `gpt-image-1-mini`,

3533 `gpt-image-1.5`, `gpt-image-2`,3638 `gpt-image-1.5`, `gpt-image-2`,

3534 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3639 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3535 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3640 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3536 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3641 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3642 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3537 `gpt-image-2`.3643 `gpt-image-2`.

3538 3644 

3539 `gpt-image-1` was shut down on October 23, 2026. Use3645 `gpt-image-1` was shut down on October 23, 2026. Use


3541 3647 

3542 - `string`3648 - `string`

3543 3649 

3544 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3650 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3545 3651 

3546 The image generation model to use. One of `gpt-image-1-mini`,3652 The image generation model to use. One of `gpt-image-1-mini`,

3547 `gpt-image-1.5`, `gpt-image-2`,3653 `gpt-image-1.5`, `gpt-image-2`,

3548 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3654 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3549 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3655 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3550 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3656 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3657 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3551 `gpt-image-2`.3658 `gpt-image-2`.

3552 3659 

3553 `gpt-image-1` was shut down on October 23, 2026. Use3660 `gpt-image-1` was shut down on October 23, 2026. Use


3557 3664 

3558 - `"gpt-image-1-mini"`3665 - `"gpt-image-1-mini"`

3559 3666 

3560 - `"gpt-image-1.5"`

3561 

3562 - `"gpt-image-2"`3667 - `"gpt-image-2"`

3563 3668 

3564 - `"gpt-image-2-2026-04-21"`3669 - `"gpt-image-2-2026-04-21"`


3571 3676 

3572 - `"gpt-image-2.5-flare-2026-09-08"`3677 - `"gpt-image-2.5-flare-2026-09-08"`

3573 3678 

3679 - `"gpt-image-2.6-sunburst"`

3680 

3681 - `"gpt-image-2.6-flare"`

3682 

3683 - `"gpt-image-1.5"`

3684 

3685 - `"chatgpt-image-latest"`

3686 

3574 - `moderation: optional "auto" or "low" (default: "auto")`3687 - `moderation: optional "auto" or "low" (default: "auto")`

3575 3688 

3576 Moderation level for the generated image. Default: `auto`.3689 Moderation level for the generated image. Default: `auto`.


3585 3698 

3586 `minimum: 0`, `maximum: 100`3699 `minimum: 0`, `maximum: 100`

3587 3700 

3588 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`3701 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

3589 3702 

3590 The output format of the generated image. One of `png`, `webp`, or3703 The output format of the generated image. One of `png`, `webp`, `jpeg`,

3591 `jpeg`. Default: `png`.3704 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

3705 that supports the selected format. GIF output does not support

3706 partial image streaming (`partial_images` greater than `0`),

3707 `input_image_mask`, or custom `output_compression`.

3708 Responses lifecycle events can still be streamed for GIF output.

3592 3709 

3593 - `"png"`3710 - `"png"`

3594 3711 


3596 3713 

3597 - `"jpeg"`3714 - `"jpeg"`

3598 3715 

3716 - `"gif"`

3717 

3718 - `"svg"`

3719 

3599 - `partial_images: optional integer (default: 0)`3720 - `partial_images: optional integer (default: 0)`

3600 3721 

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


3639 3760 

3640 - `"auto"`3761 - `"auto"`

3641 3762 

3763 - `svg: optional object { model, reasoning }`

3764 

3765 SVG author model settings. Requires `output_format` to be `svg`.

3766 When SVG model selection is enabled, omitting this object uses the

3767 outer response model. Otherwise, the default SVG author is used and

3768 explicit model overrides are unavailable.

3769 

3770 - `model: optional string`

3771 

3772 `minLength: 1`

3773 

3774 - `reasoning: optional object { effort } or null`

3775 

3776 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

3777 

3778 - `effort: optional "none" or "minimal" or "low" or 4 more`

3779 

3780 Controls how much effort the model should spend on reasoning for this request.

3781 

3782 - `"none"`

3783 

3784 - `"minimal"`

3785 

3786 - `"low"`

3787 

3788 - `"medium"`

3789 

3790 - `"high"`

3791 

3792 - `"xhigh"`

3793 

3794 - `"max"`

3795 

3642 - `LocalShell object { type }`3796 - `LocalShell object { type }`

3643 3797 

3644 A tool that allows the model to execute shell commands in a local environment.3798 A tool that allows the model to execute shell commands in a local environment.


4207 4361 

4208 The canonical name of the agent that produced this item.4362 The canonical name of the agent that produced this item.

4209 4363 

4210 - `ImageGenerationCall object { id, result, status, 9 more }`4364 - `ImageGenerationCall object { id, result, status, 10 more }`

4211 4365 

4212 An image generation request made by the model.4366 An image generation request made by the model.

4213 4367 


4303 4457 

4304 - `"unknown"`4458 - `"unknown"`

4305 4459 

4306 - `output_format: optional "png" or "webp" or "jpeg" or null`4460 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

4307 4461 

4308 The output format used for generation.4462 The output format used for generation.

4309 4463 


4313 4467 

4314 - `"jpeg"`4468 - `"jpeg"`

4315 4469 

4470 - `"gif"`

4471 

4472 - `"svg"`

4473 

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

4317 4475 

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


4349 4507 

4350 - `"1536x1024"`4508 - `"1536x1024"`

4351 4509 

4510 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

4511 

4512 - `input_tokens: integer`

4513 

4514 - `model: string`

4515 

4516 - `output_tokens: integer`

4517 

4518 - `reasoning_tokens: integer`

4519 

4520 - `total_tokens: integer`

4521 

4352 - `CodeInterpreterCall object { id, code, container_id, 4 more }`4522 - `CodeInterpreterCall object { id, code, container_id, 4 more }`

4353 4523 

4354 A tool call to run code.4524 A tool call to run code.


5419 Keys are strings with a maximum length of 64 characters. Values are strings5589 Keys are strings with a maximum length of 64 characters. Values are strings

5420 with a maximum length of 512 characters.5590 with a maximum length of 512 characters.

5421 5591 

5422- `model: optional "gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 108 more or string`5592- `model: optional "gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 109 more or string`

5423 5593 

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

5425 offers a wide range of models with different capabilities, performance5595 offers a wide range of models with different capabilities, performance

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

5427 to browse and compare available models.5597 to browse and compare available models.

5428 5598 

5429 - `"gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 108 more`5599 - `"gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 109 more`

5430 5600 

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

5432 offers a wide range of models with different capabilities, performance5602 offers a wide range of models with different capabilities, performance


5651 5821 

5652 - `"gpt-5.6-cyber"`5822 - `"gpt-5.6-cyber"`

5653 5823 

5824 - `"gpt-6-cyber"`

5825 

5654 - `"gpt-rosalind-research"`5826 - `"gpt-rosalind-research"`

5655 5827 

5656 - `"gpt-6-rosalind"`5828 - `"gpt-6-rosalind"`


6711 6883 

6712 - `"programmatic_tool_calling"`6884 - `"programmatic_tool_calling"`

6713 6885 

6714 - `ImageGeneration object { type, action, background, 9 more }`6886 - `ImageGeneration object { type, action, background, 13 more }`

6715 6887 

6716 A tool that generates images using the GPT image models.6888 A tool that generates images using the GPT image models.

6717 6889 


6747 6919 

6748 - `"auto"`6920 - `"auto"`

6749 6921 

6922 - `complexity: optional "low" or "medium" or "high"`

6923 

6924 Computation spent planning the image, independently of rendering quality.

6925 Overrides the outer response's `reasoning.effort` for image generation.

6926 When omitted, inherits a supported outer reasoning effort or uses the

6927 image model's configured default.

6928 For SVG output, controls the reference image, not the SVG author's

6929 reasoning.

6930 

6931 - `"low"`

6932 

6933 - `"medium"`

6934 

6935 - `"high"`

6936 

6937 - `frame_count: optional integer (default: 9)`

6938 

6939 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

6940 

6941 `minimum: 2`, `maximum: 16`

6942 

6943 - `frame_duration_ms: optional integer (default: 200)`

6944 

6945 Duration of each GIF frame in milliseconds, rounded to 10 ms.

6946 Requires `output_format` to be `gif`. Default: 200.

6947 

6948 `minimum: 20`, `maximum: 2000`

6949 

6750 - `input_fidelity: optional "high" or "low" or null`6950 - `input_fidelity: optional "high" or "low" or null`

6751 6951 

6752 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.6952 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


6768 6968 

6769 Base64-encoded mask image.6969 Base64-encoded mask image.

6770 6970 

6771 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`6971 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

6772 6972 

6773 The image generation model to use. One of `gpt-image-1-mini`,6973 The image generation model to use. One of `gpt-image-1-mini`,

6774 `gpt-image-1.5`, `gpt-image-2`,6974 `gpt-image-1.5`, `gpt-image-2`,

6775 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,6975 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6776 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,6976 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6777 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:6977 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

6978 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

6778 `gpt-image-2`.6979 `gpt-image-2`.

6779 6980 

6780 `gpt-image-1` was shut down on October 23, 2026. Use6981 `gpt-image-1` was shut down on October 23, 2026. Use


6782 6983 

6783 - `string`6984 - `string`

6784 6985 

6785 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`6986 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

6786 6987 

6787 The image generation model to use. One of `gpt-image-1-mini`,6988 The image generation model to use. One of `gpt-image-1-mini`,

6788 `gpt-image-1.5`, `gpt-image-2`,6989 `gpt-image-1.5`, `gpt-image-2`,

6789 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,6990 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6790 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,6991 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6791 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:6992 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

6993 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

6792 `gpt-image-2`.6994 `gpt-image-2`.

6793 6995 

6794 `gpt-image-1` was shut down on October 23, 2026. Use6996 `gpt-image-1` was shut down on October 23, 2026. Use


6798 7000 

6799 - `"gpt-image-1-mini"`7001 - `"gpt-image-1-mini"`

6800 7002 

6801 - `"gpt-image-1.5"`

6802 

6803 - `"gpt-image-2"`7003 - `"gpt-image-2"`

6804 7004 

6805 - `"gpt-image-2-2026-04-21"`7005 - `"gpt-image-2-2026-04-21"`


6812 7012 

6813 - `"gpt-image-2.5-flare-2026-09-08"`7013 - `"gpt-image-2.5-flare-2026-09-08"`

6814 7014 

7015 - `"gpt-image-2.6-sunburst"`

7016 

7017 - `"gpt-image-2.6-flare"`

7018 

7019 - `"gpt-image-1.5"`

7020 

7021 - `"chatgpt-image-latest"`

7022 

6815 - `moderation: optional "auto" or "low" (default: "auto")`7023 - `moderation: optional "auto" or "low" (default: "auto")`

6816 7024 

6817 Moderation level for the generated image. Default: `auto`.7025 Moderation level for the generated image. Default: `auto`.


6826 7034 

6827 `minimum: 0`, `maximum: 100`7035 `minimum: 0`, `maximum: 100`

6828 7036 

6829 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`7037 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

6830 7038 

6831 The output format of the generated image. One of `png`, `webp`, or7039 The output format of the generated image. One of `png`, `webp`, `jpeg`,

6832 `jpeg`. Default: `png`.7040 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

7041 that supports the selected format. GIF output does not support

7042 partial image streaming (`partial_images` greater than `0`),

7043 `input_image_mask`, or custom `output_compression`.

7044 Responses lifecycle events can still be streamed for GIF output.

6833 7045 

6834 - `"png"`7046 - `"png"`

6835 7047 


6837 7049 

6838 - `"jpeg"`7050 - `"jpeg"`

6839 7051 

7052 - `"gif"`

7053 

7054 - `"svg"`

7055 

6840 - `partial_images: optional integer (default: 0)`7056 - `partial_images: optional integer (default: 0)`

6841 7057 

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


6880 7096 

6881 - `"auto"`7097 - `"auto"`

6882 7098 

7099 - `svg: optional object { model, reasoning }`

7100 

7101 SVG author model settings. Requires `output_format` to be `svg`.

7102 When SVG model selection is enabled, omitting this object uses the

7103 outer response model. Otherwise, the default SVG author is used and

7104 explicit model overrides are unavailable.

7105 

7106 - `model: optional string`

7107 

7108 `minLength: 1`

7109 

7110 - `reasoning: optional object { effort } or null`

7111 

7112 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

7113 

7114 - `effort: optional "none" or "minimal" or "low" or 4 more`

7115 

7116 Controls how much effort the model should spend on reasoning for this request.

7117 

7118 - `"none"`

7119 

7120 - `"minimal"`

7121 

7122 - `"low"`

7123 

7124 - `"medium"`

7125 

7126 - `"high"`

7127 

7128 - `"xhigh"`

7129 

7130 - `"max"`

7131 

6883 - `LocalShell object { type }`7132 - `LocalShell object { type }`

6884 7133 

6885 A tool that allows the model to execute shell commands in a local environment.7134 A tool that allows the model to execute shell commands in a local environment.


9564 9813 

9565 - `"programmatic_tool_calling"`9814 - `"programmatic_tool_calling"`

9566 9815 

9567 - `ImageGeneration object { type, action, background, 9 more }`9816 - `ImageGeneration object { type, action, background, 13 more }`

9568 9817 

9569 A tool that generates images using the GPT image models.9818 A tool that generates images using the GPT image models.

9570 9819 


9600 9849 

9601 - `"auto"`9850 - `"auto"`

9602 9851 

9852 - `complexity: optional "low" or "medium" or "high"`

9853 

9854 Computation spent planning the image, independently of rendering quality.

9855 Overrides the outer response's `reasoning.effort` for image generation.

9856 When omitted, inherits a supported outer reasoning effort or uses the

9857 image model's configured default.

9858 For SVG output, controls the reference image, not the SVG author's

9859 reasoning.

9860 

9861 - `"low"`

9862 

9863 - `"medium"`

9864 

9865 - `"high"`

9866 

9867 - `frame_count: optional integer (default: 9)`

9868 

9869 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

9870 

9871 `minimum: 2`, `maximum: 16`

9872 

9873 - `frame_duration_ms: optional integer (default: 200)`

9874 

9875 Duration of each GIF frame in milliseconds, rounded to 10 ms.

9876 Requires `output_format` to be `gif`. Default: 200.

9877 

9878 `minimum: 20`, `maximum: 2000`

9879 

9603 - `input_fidelity: optional "high" or "low" or null`9880 - `input_fidelity: optional "high" or "low" or null`

9604 9881 

9605 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.9882 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


9621 9898 

9622 Base64-encoded mask image.9899 Base64-encoded mask image.

9623 9900 

9624 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`9901 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

9625 9902 

9626 The image generation model to use. One of `gpt-image-1-mini`,9903 The image generation model to use. One of `gpt-image-1-mini`,

9627 `gpt-image-1.5`, `gpt-image-2`,9904 `gpt-image-1.5`, `gpt-image-2`,

9628 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,9905 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

9629 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,9906 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

9630 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:9907 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

9908 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

9631 `gpt-image-2`.9909 `gpt-image-2`.

9632 9910 

9633 `gpt-image-1` was shut down on October 23, 2026. Use9911 `gpt-image-1` was shut down on October 23, 2026. Use


9635 9913 

9636 - `string`9914 - `string`

9637 9915 

9638 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`9916 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

9639 9917 

9640 The image generation model to use. One of `gpt-image-1-mini`,9918 The image generation model to use. One of `gpt-image-1-mini`,

9641 `gpt-image-1.5`, `gpt-image-2`,9919 `gpt-image-1.5`, `gpt-image-2`,

9642 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,9920 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

9643 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,9921 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

9644 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:9922 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

9923 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

9645 `gpt-image-2`.9924 `gpt-image-2`.

9646 9925 

9647 `gpt-image-1` was shut down on October 23, 2026. Use9926 `gpt-image-1` was shut down on October 23, 2026. Use


9651 9930 

9652 - `"gpt-image-1-mini"`9931 - `"gpt-image-1-mini"`

9653 9932 

9654 - `"gpt-image-1.5"`

9655 

9656 - `"gpt-image-2"`9933 - `"gpt-image-2"`

9657 9934 

9658 - `"gpt-image-2-2026-04-21"`9935 - `"gpt-image-2-2026-04-21"`


9665 9942 

9666 - `"gpt-image-2.5-flare-2026-09-08"`9943 - `"gpt-image-2.5-flare-2026-09-08"`

9667 9944 

9945 - `"gpt-image-2.6-sunburst"`

9946 

9947 - `"gpt-image-2.6-flare"`

9948 

9949 - `"gpt-image-1.5"`

9950 

9951 - `"chatgpt-image-latest"`

9952 

9668 - `moderation: optional "auto" or "low" (default: "auto")`9953 - `moderation: optional "auto" or "low" (default: "auto")`

9669 9954 

9670 Moderation level for the generated image. Default: `auto`.9955 Moderation level for the generated image. Default: `auto`.


9679 9964 

9680 `minimum: 0`, `maximum: 100`9965 `minimum: 0`, `maximum: 100`

9681 9966 

9682 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`9967 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

9683 9968 

9684 The output format of the generated image. One of `png`, `webp`, or9969 The output format of the generated image. One of `png`, `webp`, `jpeg`,

9685 `jpeg`. Default: `png`.9970 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

9971 that supports the selected format. GIF output does not support

9972 partial image streaming (`partial_images` greater than `0`),

9973 `input_image_mask`, or custom `output_compression`.

9974 Responses lifecycle events can still be streamed for GIF output.

9686 9975 

9687 - `"png"`9976 - `"png"`

9688 9977 


9690 9979 

9691 - `"jpeg"`9980 - `"jpeg"`

9692 9981 

9982 - `"gif"`

9983 

9984 - `"svg"`

9985 

9693 - `partial_images: optional integer (default: 0)`9986 - `partial_images: optional integer (default: 0)`

9694 9987 

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


9733 10026 

9734 - `"auto"`10027 - `"auto"`

9735 10028 

10029 - `svg: optional object { model, reasoning }`

10030 

10031 SVG author model settings. Requires `output_format` to be `svg`.

10032 When SVG model selection is enabled, omitting this object uses the

10033 outer response model. Otherwise, the default SVG author is used and

10034 explicit model overrides are unavailable.

10035 

10036 - `model: optional string`

10037 

10038 `minLength: 1`

10039 

10040 - `reasoning: optional object { effort } or null`

10041 

10042 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

10043 

10044 - `effort: optional "none" or "minimal" or "low" or 4 more`

10045 

10046 Controls how much effort the model should spend on reasoning for this request.

10047 

10048 - `"none"`

10049 

10050 - `"minimal"`

10051 

10052 - `"low"`

10053 

10054 - `"medium"`

10055 

10056 - `"high"`

10057 

10058 - `"xhigh"`

10059 

10060 - `"max"`

10061 

9736 - `LocalShell object { type }`10062 - `LocalShell object { type }`

9737 10063 

9738 A tool that allows the model to execute shell commands in a local environment.10064 A tool that allows the model to execute shell commands in a local environment.


10763 11089 

10764 - `"programmatic_tool_calling"`11090 - `"programmatic_tool_calling"`

10765 11091 

10766 - `ImageGeneration object { type, action, background, 9 more }`11092 - `ImageGeneration object { type, action, background, 13 more }`

10767 11093 

10768 A tool that generates images using the GPT image models.11094 A tool that generates images using the GPT image models.

10769 11095 


10799 11125 

10800 - `"auto"`11126 - `"auto"`

10801 11127 

11128 - `complexity: optional "low" or "medium" or "high"`

11129 

11130 Computation spent planning the image, independently of rendering quality.

11131 Overrides the outer response's `reasoning.effort` for image generation.

11132 When omitted, inherits a supported outer reasoning effort or uses the

11133 image model's configured default.

11134 For SVG output, controls the reference image, not the SVG author's

11135 reasoning.

11136 

11137 - `"low"`

11138 

11139 - `"medium"`

11140 

11141 - `"high"`

11142 

11143 - `frame_count: optional integer (default: 9)`

11144 

11145 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

11146 

11147 `minimum: 2`, `maximum: 16`

11148 

11149 - `frame_duration_ms: optional integer (default: 200)`

11150 

11151 Duration of each GIF frame in milliseconds, rounded to 10 ms.

11152 Requires `output_format` to be `gif`. Default: 200.

11153 

11154 `minimum: 20`, `maximum: 2000`

11155 

10802 - `input_fidelity: optional "high" or "low" or null`11156 - `input_fidelity: optional "high" or "low" or null`

10803 11157 

10804 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.11158 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


10820 11174 

10821 Base64-encoded mask image.11175 Base64-encoded mask image.

10822 11176 

10823 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`11177 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

10824 11178 

10825 The image generation model to use. One of `gpt-image-1-mini`,11179 The image generation model to use. One of `gpt-image-1-mini`,

10826 `gpt-image-1.5`, `gpt-image-2`,11180 `gpt-image-1.5`, `gpt-image-2`,

10827 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,11181 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

10828 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,11182 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

10829 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:11183 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

11184 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

10830 `gpt-image-2`.11185 `gpt-image-2`.

10831 11186 

10832 `gpt-image-1` was shut down on October 23, 2026. Use11187 `gpt-image-1` was shut down on October 23, 2026. Use


10834 11189 

10835 - `string`11190 - `string`

10836 11191 

10837 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`11192 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

10838 11193 

10839 The image generation model to use. One of `gpt-image-1-mini`,11194 The image generation model to use. One of `gpt-image-1-mini`,

10840 `gpt-image-1.5`, `gpt-image-2`,11195 `gpt-image-1.5`, `gpt-image-2`,

10841 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,11196 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

10842 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,11197 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

10843 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:11198 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

11199 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

10844 `gpt-image-2`.11200 `gpt-image-2`.

10845 11201 

10846 `gpt-image-1` was shut down on October 23, 2026. Use11202 `gpt-image-1` was shut down on October 23, 2026. Use


10850 11206 

10851 - `"gpt-image-1-mini"`11207 - `"gpt-image-1-mini"`

10852 11208 

10853 - `"gpt-image-1.5"`

10854 

10855 - `"gpt-image-2"`11209 - `"gpt-image-2"`

10856 11210 

10857 - `"gpt-image-2-2026-04-21"`11211 - `"gpt-image-2-2026-04-21"`


10864 11218 

10865 - `"gpt-image-2.5-flare-2026-09-08"`11219 - `"gpt-image-2.5-flare-2026-09-08"`

10866 11220 

11221 - `"gpt-image-2.6-sunburst"`

11222 

11223 - `"gpt-image-2.6-flare"`

11224 

11225 - `"gpt-image-1.5"`

11226 

11227 - `"chatgpt-image-latest"`

11228 

10867 - `moderation: optional "auto" or "low" (default: "auto")`11229 - `moderation: optional "auto" or "low" (default: "auto")`

10868 11230 

10869 Moderation level for the generated image. Default: `auto`.11231 Moderation level for the generated image. Default: `auto`.


10878 11240 

10879 `minimum: 0`, `maximum: 100`11241 `minimum: 0`, `maximum: 100`

10880 11242 

10881 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`11243 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

10882 11244 

10883 The output format of the generated image. One of `png`, `webp`, or11245 The output format of the generated image. One of `png`, `webp`, `jpeg`,

10884 `jpeg`. Default: `png`.11246 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

11247 that supports the selected format. GIF output does not support

11248 partial image streaming (`partial_images` greater than `0`),

11249 `input_image_mask`, or custom `output_compression`.

11250 Responses lifecycle events can still be streamed for GIF output.

10885 11251 

10886 - `"png"`11252 - `"png"`

10887 11253 


10889 11255 

10890 - `"jpeg"`11256 - `"jpeg"`

10891 11257 

11258 - `"gif"`

11259 

11260 - `"svg"`

11261 

10892 - `partial_images: optional integer (default: 0)`11262 - `partial_images: optional integer (default: 0)`

10893 11263 

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


10932 11302 

10933 - `"auto"`11303 - `"auto"`

10934 11304 

11305 - `svg: optional object { model, reasoning }`

11306 

11307 SVG author model settings. Requires `output_format` to be `svg`.

11308 When SVG model selection is enabled, omitting this object uses the

11309 outer response model. Otherwise, the default SVG author is used and

11310 explicit model overrides are unavailable.

11311 

11312 - `model: optional string`

11313 

11314 `minLength: 1`

11315 

11316 - `reasoning: optional object { effort } or null`

11317 

11318 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

11319 

11320 - `effort: optional "none" or "minimal" or "low" or 4 more`

11321 

11322 Controls how much effort the model should spend on reasoning for this request.

11323 

11324 - `"none"`

11325 

11326 - `"minimal"`

11327 

11328 - `"low"`

11329 

11330 - `"medium"`

11331 

11332 - `"high"`

11333 

11334 - `"xhigh"`

11335 

11336 - `"max"`

11337 

10935 - `LocalShell object { type }`11338 - `LocalShell object { type }`

10936 11339 

10937 A tool that allows the model to execute shell commands in a local environment.11340 A tool that allows the model to execute shell commands in a local environment.


11500 11903 

11501 The canonical name of the agent that produced this item.11904 The canonical name of the agent that produced this item.

11502 11905 

11503 - `ImageGenerationCall object { id, result, status, 9 more }`11906 - `ImageGenerationCall object { id, result, status, 10 more }`

11504 11907 

11505 An image generation request made by the model.11908 An image generation request made by the model.

11506 11909 


11596 11999 

11597 - `"unknown"`12000 - `"unknown"`

11598 12001 

11599 - `output_format: optional "png" or "webp" or "jpeg" or null`12002 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

11600 12003 

11601 The output format used for generation.12004 The output format used for generation.

11602 12005 


11606 12009 

11607 - `"jpeg"`12010 - `"jpeg"`

11608 12011 

12012 - `"gif"`

12013 

12014 - `"svg"`

12015 

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

11610 12017 

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


11642 12049 

11643 - `"1536x1024"`12050 - `"1536x1024"`

11644 12051 

12052 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

12053 

12054 - `input_tokens: integer`

12055 

12056 - `model: string`

12057 

12058 - `output_tokens: integer`

12059 

12060 - `reasoning_tokens: integer`

12061 

12062 - `total_tokens: integer`

12063 

11645 - `CodeInterpreterCall object { id, code, container_id, 4 more }`12064 - `CodeInterpreterCall object { id, code, container_id, 4 more }`

11646 12065 

11647 A tool call to run code.12066 A tool call to run code.


12694 Keys are strings with a maximum length of 64 characters. Values are strings13113 Keys are strings with a maximum length of 64 characters. Values are strings

12695 with a maximum length of 512 characters.13114 with a maximum length of 512 characters.

12696 13115 

12697 - `model: "gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 108 more or string`13116 - `model: "gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 109 more or string`

12698 13117 

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

12700 offers a wide range of models with different capabilities, performance13119 offers a wide range of models with different capabilities, performance

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

12702 to browse and compare available models.13121 to browse and compare available models.

12703 13122 

12704 - `"gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 108 more`13123 - `"gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 109 more`

12705 13124 

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

12707 offers a wide range of models with different capabilities, performance13126 offers a wide range of models with different capabilities, performance


12926 13345 

12927 - `"gpt-5.6-cyber"`13346 - `"gpt-5.6-cyber"`

12928 13347 

13348 - `"gpt-6-cyber"`

13349 

12929 - `"gpt-rosalind-research"`13350 - `"gpt-rosalind-research"`

12930 13351 

12931 - `"gpt-6-rosalind"`13352 - `"gpt-6-rosalind"`


14414 14835 

14415 - `"programmatic_tool_calling"`14836 - `"programmatic_tool_calling"`

14416 14837 

14417 - `ImageGeneration object { type, action, background, 9 more }`14838 - `ImageGeneration object { type, action, background, 13 more }`

14418 14839 

14419 A tool that generates images using the GPT image models.14840 A tool that generates images using the GPT image models.

14420 14841 


14450 14871 

14451 - `"auto"`14872 - `"auto"`

14452 14873 

14874 - `complexity: optional "low" or "medium" or "high"`

14875 

14876 Computation spent planning the image, independently of rendering quality.

14877 Overrides the outer response's `reasoning.effort` for image generation.

14878 When omitted, inherits a supported outer reasoning effort or uses the

14879 image model's configured default.

14880 For SVG output, controls the reference image, not the SVG author's

14881 reasoning.

14882 

14883 - `"low"`

14884 

14885 - `"medium"`

14886 

14887 - `"high"`

14888 

14889 - `frame_count: optional integer (default: 9)`

14890 

14891 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

14892 

14893 `minimum: 2`, `maximum: 16`

14894 

14895 - `frame_duration_ms: optional integer (default: 200)`

14896 

14897 Duration of each GIF frame in milliseconds, rounded to 10 ms.

14898 Requires `output_format` to be `gif`. Default: 200.

14899 

14900 `minimum: 20`, `maximum: 2000`

14901 

14453 - `input_fidelity: optional "high" or "low" or null`14902 - `input_fidelity: optional "high" or "low" or null`

14454 14903 

14455 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.14904 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


14471 14920 

14472 Base64-encoded mask image.14921 Base64-encoded mask image.

14473 14922 

14474 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`14923 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

14475 14924 

14476 The image generation model to use. One of `gpt-image-1-mini`,14925 The image generation model to use. One of `gpt-image-1-mini`,

14477 `gpt-image-1.5`, `gpt-image-2`,14926 `gpt-image-1.5`, `gpt-image-2`,

14478 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,14927 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

14479 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,14928 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

14480 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:14929 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

14930 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

14481 `gpt-image-2`.14931 `gpt-image-2`.

14482 14932 

14483 `gpt-image-1` was shut down on October 23, 2026. Use14933 `gpt-image-1` was shut down on October 23, 2026. Use


14485 14935 

14486 - `string`14936 - `string`

14487 14937 

14488 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`14938 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

14489 14939 

14490 The image generation model to use. One of `gpt-image-1-mini`,14940 The image generation model to use. One of `gpt-image-1-mini`,

14491 `gpt-image-1.5`, `gpt-image-2`,14941 `gpt-image-1.5`, `gpt-image-2`,

14492 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,14942 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

14493 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,14943 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

14494 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:14944 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

14945 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

14495 `gpt-image-2`.14946 `gpt-image-2`.

14496 14947 

14497 `gpt-image-1` was shut down on October 23, 2026. Use14948 `gpt-image-1` was shut down on October 23, 2026. Use


14501 14952 

14502 - `"gpt-image-1-mini"`14953 - `"gpt-image-1-mini"`

14503 14954 

14504 - `"gpt-image-1.5"`

14505 

14506 - `"gpt-image-2"`14955 - `"gpt-image-2"`

14507 14956 

14508 - `"gpt-image-2-2026-04-21"`14957 - `"gpt-image-2-2026-04-21"`


14515 14964 

14516 - `"gpt-image-2.5-flare-2026-09-08"`14965 - `"gpt-image-2.5-flare-2026-09-08"`

14517 14966 

14967 - `"gpt-image-2.6-sunburst"`

14968 

14969 - `"gpt-image-2.6-flare"`

14970 

14971 - `"gpt-image-1.5"`

14972 

14973 - `"chatgpt-image-latest"`

14974 

14518 - `moderation: optional "auto" or "low" (default: "auto")`14975 - `moderation: optional "auto" or "low" (default: "auto")`

14519 14976 

14520 Moderation level for the generated image. Default: `auto`.14977 Moderation level for the generated image. Default: `auto`.


14529 14986 

14530 `minimum: 0`, `maximum: 100`14987 `minimum: 0`, `maximum: 100`

14531 14988 

14532 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`14989 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

14533 14990 

14534 The output format of the generated image. One of `png`, `webp`, or14991 The output format of the generated image. One of `png`, `webp`, `jpeg`,

14535 `jpeg`. Default: `png`.14992 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

14993 that supports the selected format. GIF output does not support

14994 partial image streaming (`partial_images` greater than `0`),

14995 `input_image_mask`, or custom `output_compression`.

14996 Responses lifecycle events can still be streamed for GIF output.

14536 14997 

14537 - `"png"`14998 - `"png"`

14538 14999 


14540 15001 

14541 - `"jpeg"`15002 - `"jpeg"`

14542 15003 

15004 - `"gif"`

15005 

15006 - `"svg"`

15007 

14543 - `partial_images: optional integer (default: 0)`15008 - `partial_images: optional integer (default: 0)`

14544 15009 

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


14583 15048 

14584 - `"auto"`15049 - `"auto"`

14585 15050 

15051 - `svg: optional object { model, reasoning }`

15052 

15053 SVG author model settings. Requires `output_format` to be `svg`.

15054 When SVG model selection is enabled, omitting this object uses the

15055 outer response model. Otherwise, the default SVG author is used and

15056 explicit model overrides are unavailable.

15057 

15058 - `model: optional string`

15059 

15060 `minLength: 1`

15061 

15062 - `reasoning: optional object { effort } or null`

15063 

15064 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

15065 

15066 - `effort: optional "none" or "minimal" or "low" or 4 more`

15067 

15068 Controls how much effort the model should spend on reasoning for this request.

15069 

15070 - `"none"`

15071 

15072 - `"minimal"`

15073 

15074 - `"low"`

15075 

15076 - `"medium"`

15077 

15078 - `"high"`

15079 

15080 - `"xhigh"`

15081 

15082 - `"max"`

15083 

14586 - `LocalShell object { type }`15084 - `LocalShell object { type }`

14587 15085 

14588 A tool that allows the model to execute shell commands in a local environment.15086 A tool that allows the model to execute shell commands in a local environment.


15477 15975 

15478 - `"programmatic_tool_calling"`15976 - `"programmatic_tool_calling"`

15479 15977 

15480 - `ImageGeneration object { type, action, background, 9 more }`15978 - `ImageGeneration object { type, action, background, 13 more }`

15481 15979 

15482 A tool that generates images using the GPT image models.15980 A tool that generates images using the GPT image models.

15483 15981 


15513 16011 

15514 - `"auto"`16012 - `"auto"`

15515 16013 

16014 - `complexity: optional "low" or "medium" or "high"`

16015 

16016 Computation spent planning the image, independently of rendering quality.

16017 Overrides the outer response's `reasoning.effort` for image generation.

16018 When omitted, inherits a supported outer reasoning effort or uses the

16019 image model's configured default.

16020 For SVG output, controls the reference image, not the SVG author's

16021 reasoning.

16022 

16023 - `"low"`

16024 

16025 - `"medium"`

16026 

16027 - `"high"`

16028 

16029 - `frame_count: optional integer (default: 9)`

16030 

16031 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

16032 

16033 `minimum: 2`, `maximum: 16`

16034 

16035 - `frame_duration_ms: optional integer (default: 200)`

16036 

16037 Duration of each GIF frame in milliseconds, rounded to 10 ms.

16038 Requires `output_format` to be `gif`. Default: 200.

16039 

16040 `minimum: 20`, `maximum: 2000`

16041 

15516 - `input_fidelity: optional "high" or "low" or null`16042 - `input_fidelity: optional "high" or "low" or null`

15517 16043 

15518 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.16044 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


15534 16060 

15535 Base64-encoded mask image.16061 Base64-encoded mask image.

15536 16062 

15537 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`16063 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

15538 16064 

15539 The image generation model to use. One of `gpt-image-1-mini`,16065 The image generation model to use. One of `gpt-image-1-mini`,

15540 `gpt-image-1.5`, `gpt-image-2`,16066 `gpt-image-1.5`, `gpt-image-2`,

15541 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,16067 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

15542 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,16068 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

15543 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:16069 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

16070 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

15544 `gpt-image-2`.16071 `gpt-image-2`.

15545 16072 

15546 `gpt-image-1` was shut down on October 23, 2026. Use16073 `gpt-image-1` was shut down on October 23, 2026. Use


15548 16075 

15549 - `string`16076 - `string`

15550 16077 

15551 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`16078 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

15552 16079 

15553 The image generation model to use. One of `gpt-image-1-mini`,16080 The image generation model to use. One of `gpt-image-1-mini`,

15554 `gpt-image-1.5`, `gpt-image-2`,16081 `gpt-image-1.5`, `gpt-image-2`,

15555 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,16082 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

15556 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,16083 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

15557 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:16084 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

16085 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

15558 `gpt-image-2`.16086 `gpt-image-2`.

15559 16087 

15560 `gpt-image-1` was shut down on October 23, 2026. Use16088 `gpt-image-1` was shut down on October 23, 2026. Use


15564 16092 

15565 - `"gpt-image-1-mini"`16093 - `"gpt-image-1-mini"`

15566 16094 

15567 - `"gpt-image-1.5"`

15568 

15569 - `"gpt-image-2"`16095 - `"gpt-image-2"`

15570 16096 

15571 - `"gpt-image-2-2026-04-21"`16097 - `"gpt-image-2-2026-04-21"`


15578 16104 

15579 - `"gpt-image-2.5-flare-2026-09-08"`16105 - `"gpt-image-2.5-flare-2026-09-08"`

15580 16106 

16107 - `"gpt-image-2.6-sunburst"`

16108 

16109 - `"gpt-image-2.6-flare"`

16110 

16111 - `"gpt-image-1.5"`

16112 

16113 - `"chatgpt-image-latest"`

16114 

15581 - `moderation: optional "auto" or "low" (default: "auto")`16115 - `moderation: optional "auto" or "low" (default: "auto")`

15582 16116 

15583 Moderation level for the generated image. Default: `auto`.16117 Moderation level for the generated image. Default: `auto`.


15592 16126 

15593 `minimum: 0`, `maximum: 100`16127 `minimum: 0`, `maximum: 100`

15594 16128 

15595 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`16129 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

15596 16130 

15597 The output format of the generated image. One of `png`, `webp`, or16131 The output format of the generated image. One of `png`, `webp`, `jpeg`,

15598 `jpeg`. Default: `png`.16132 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

16133 that supports the selected format. GIF output does not support

16134 partial image streaming (`partial_images` greater than `0`),

16135 `input_image_mask`, or custom `output_compression`.

16136 Responses lifecycle events can still be streamed for GIF output.

15599 16137 

15600 - `"png"`16138 - `"png"`

15601 16139 


15603 16141 

15604 - `"jpeg"`16142 - `"jpeg"`

15605 16143 

16144 - `"gif"`

16145 

16146 - `"svg"`

16147 

15606 - `partial_images: optional integer (default: 0)`16148 - `partial_images: optional integer (default: 0)`

15607 16149 

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


15646 16188 

15647 - `"auto"`16189 - `"auto"`

15648 16190 

16191 - `svg: optional object { model, reasoning }`

16192 

16193 SVG author model settings. Requires `output_format` to be `svg`.

16194 When SVG model selection is enabled, omitting this object uses the

16195 outer response model. Otherwise, the default SVG author is used and

16196 explicit model overrides are unavailable.

16197 

16198 - `model: optional string`

16199 

16200 `minLength: 1`

16201 

16202 - `reasoning: optional object { effort } or null`

16203 

16204 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

16205 

16206 - `effort: optional "none" or "minimal" or "low" or 4 more`

16207 

16208 Controls how much effort the model should spend on reasoning for this request.

16209 

16210 - `"none"`

16211 

16212 - `"minimal"`

16213 

16214 - `"low"`

16215 

16216 - `"medium"`

16217 

16218 - `"high"`

16219 

16220 - `"xhigh"`

16221 

16222 - `"max"`

16223 

15649 - `LocalShell object { type }`16224 - `LocalShell object { type }`

15650 16225 

15651 A tool that allows the model to execute shell commands in a local environment.16226 A tool that allows the model to execute shell commands in a local environment.


16038 16613 

16039 The identifier of the actor that created the item.16614 The identifier of the actor that created the item.

16040 16615 

16041 - `ImageGenerationCall object { id, result, status, 9 more }`16616 - `ImageGenerationCall object { id, result, status, 10 more }`

16042 16617 

16043 An image generation request made by the model.16618 An image generation request made by the model.

16044 16619 


16134 16709 

16135 - `"unknown"`16710 - `"unknown"`

16136 16711 

16137 - `output_format: optional "png" or "webp" or "jpeg" or null`16712 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

16138 16713 

16139 The output format used for generation.16714 The output format used for generation.

16140 16715 


16144 16719 

16145 - `"jpeg"`16720 - `"jpeg"`

16146 16721 

16722 - `"gif"`

16723 

16724 - `"svg"`

16725 

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

16148 16727 

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


16180 16759 

16181 - `"1536x1024"`16760 - `"1536x1024"`

16182 16761 

16762 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

16763 

16764 - `input_tokens: integer`

16765 

16766 - `model: string`

16767 

16768 - `output_tokens: integer`

16769 

16770 - `reasoning_tokens: integer`

16771 

16772 - `total_tokens: integer`

16773 

16183 - `CodeInterpreterCall object { id, code, container_id, 4 more }`16774 - `CodeInterpreterCall object { id, code, container_id, 4 more }`

16184 16775 

16185 A tool call to run code.16776 A tool call to run code.


17773 18364 

17774 - `"programmatic_tool_calling"`18365 - `"programmatic_tool_calling"`

17775 18366 

17776 - `ImageGeneration object { type, action, background, 9 more }`18367 - `ImageGeneration object { type, action, background, 13 more }`

17777 18368 

17778 A tool that generates images using the GPT image models.18369 A tool that generates images using the GPT image models.

17779 18370 


17809 18400 

17810 - `"auto"`18401 - `"auto"`

17811 18402 

18403 - `complexity: optional "low" or "medium" or "high"`

18404 

18405 Computation spent planning the image, independently of rendering quality.

18406 Overrides the outer response's `reasoning.effort` for image generation.

18407 When omitted, inherits a supported outer reasoning effort or uses the

18408 image model's configured default.

18409 For SVG output, controls the reference image, not the SVG author's

18410 reasoning.

18411 

18412 - `"low"`

18413 

18414 - `"medium"`

18415 

18416 - `"high"`

18417 

18418 - `frame_count: optional integer (default: 9)`

18419 

18420 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

18421 

18422 `minimum: 2`, `maximum: 16`

18423 

18424 - `frame_duration_ms: optional integer (default: 200)`

18425 

18426 Duration of each GIF frame in milliseconds, rounded to 10 ms.

18427 Requires `output_format` to be `gif`. Default: 200.

18428 

18429 `minimum: 20`, `maximum: 2000`

18430 

17812 - `input_fidelity: optional "high" or "low" or null`18431 - `input_fidelity: optional "high" or "low" or null`

17813 18432 

17814 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.18433 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


17830 18449 

17831 Base64-encoded mask image.18450 Base64-encoded mask image.

17832 18451 

17833 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`18452 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

17834 18453 

17835 The image generation model to use. One of `gpt-image-1-mini`,18454 The image generation model to use. One of `gpt-image-1-mini`,

17836 `gpt-image-1.5`, `gpt-image-2`,18455 `gpt-image-1.5`, `gpt-image-2`,

17837 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,18456 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

17838 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,18457 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

17839 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:18458 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

18459 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

17840 `gpt-image-2`.18460 `gpt-image-2`.

17841 18461 

17842 `gpt-image-1` was shut down on October 23, 2026. Use18462 `gpt-image-1` was shut down on October 23, 2026. Use


17844 18464 

17845 - `string`18465 - `string`

17846 18466 

17847 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`18467 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

17848 18468 

17849 The image generation model to use. One of `gpt-image-1-mini`,18469 The image generation model to use. One of `gpt-image-1-mini`,

17850 `gpt-image-1.5`, `gpt-image-2`,18470 `gpt-image-1.5`, `gpt-image-2`,

17851 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,18471 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

17852 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,18472 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

17853 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:18473 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

18474 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

17854 `gpt-image-2`.18475 `gpt-image-2`.

17855 18476 

17856 `gpt-image-1` was shut down on October 23, 2026. Use18477 `gpt-image-1` was shut down on October 23, 2026. Use


17860 18481 

17861 - `"gpt-image-1-mini"`18482 - `"gpt-image-1-mini"`

17862 18483 

17863 - `"gpt-image-1.5"`

17864 

17865 - `"gpt-image-2"`18484 - `"gpt-image-2"`

17866 18485 

17867 - `"gpt-image-2-2026-04-21"`18486 - `"gpt-image-2-2026-04-21"`


17874 18493 

17875 - `"gpt-image-2.5-flare-2026-09-08"`18494 - `"gpt-image-2.5-flare-2026-09-08"`

17876 18495 

18496 - `"gpt-image-2.6-sunburst"`

18497 

18498 - `"gpt-image-2.6-flare"`

18499 

18500 - `"gpt-image-1.5"`

18501 

18502 - `"chatgpt-image-latest"`

18503 

17877 - `moderation: optional "auto" or "low" (default: "auto")`18504 - `moderation: optional "auto" or "low" (default: "auto")`

17878 18505 

17879 Moderation level for the generated image. Default: `auto`.18506 Moderation level for the generated image. Default: `auto`.


17888 18515 

17889 `minimum: 0`, `maximum: 100`18516 `minimum: 0`, `maximum: 100`

17890 18517 

17891 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`18518 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

17892 18519 

17893 The output format of the generated image. One of `png`, `webp`, or18520 The output format of the generated image. One of `png`, `webp`, `jpeg`,

17894 `jpeg`. Default: `png`.18521 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

18522 that supports the selected format. GIF output does not support

18523 partial image streaming (`partial_images` greater than `0`),

18524 `input_image_mask`, or custom `output_compression`.

18525 Responses lifecycle events can still be streamed for GIF output.

17895 18526 

17896 - `"png"`18527 - `"png"`

17897 18528 


17899 18530 

17900 - `"jpeg"`18531 - `"jpeg"`

17901 18532 

18533 - `"gif"`

18534 

18535 - `"svg"`

18536 

17902 - `partial_images: optional integer (default: 0)`18537 - `partial_images: optional integer (default: 0)`

17903 18538 

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


17942 18577 

17943 - `"auto"`18578 - `"auto"`

17944 18579 

18580 - `svg: optional object { model, reasoning }`

18581 

18582 SVG author model settings. Requires `output_format` to be `svg`.

18583 When SVG model selection is enabled, omitting this object uses the

18584 outer response model. Otherwise, the default SVG author is used and

18585 explicit model overrides are unavailable.

18586 

18587 - `model: optional string`

18588 

18589 `minLength: 1`

18590 

18591 - `reasoning: optional object { effort } or null`

18592 

18593 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

18594 

18595 - `effort: optional "none" or "minimal" or "low" or 4 more`

18596 

18597 Controls how much effort the model should spend on reasoning for this request.

18598 

18599 - `"none"`

18600 

18601 - `"minimal"`

18602 

18603 - `"low"`

18604 

18605 - `"medium"`

18606 

18607 - `"high"`

18608 

18609 - `"xhigh"`

18610 

18611 - `"max"`

18612 

17945 - `LocalShell object { type }`18613 - `LocalShell object { type }`

17946 18614 

17947 A tool that allows the model to execute shell commands in a local environment.18615 A tool that allows the model to execute shell commands in a local environment.

Details

2360 2360 

2361 - `"programmatic_tool_calling"`2361 - `"programmatic_tool_calling"`

2362 2362 

2363 - `ImageGeneration object { type, action, background, 9 more }`2363 - `ImageGeneration object { type, action, background, 13 more }`

2364 2364 

2365 A tool that generates images using the GPT image models.2365 A tool that generates images using the GPT image models.

2366 2366 


2396 2396 

2397 - `"auto"`2397 - `"auto"`

2398 2398 

2399 - `complexity: optional "low" or "medium" or "high"`

2400 

2401 Computation spent planning the image, independently of rendering quality.

2402 Overrides the outer response's `reasoning.effort` for image generation.

2403 When omitted, inherits a supported outer reasoning effort or uses the

2404 image model's configured default.

2405 For SVG output, controls the reference image, not the SVG author's

2406 reasoning.

2407 

2408 - `"low"`

2409 

2410 - `"medium"`

2411 

2412 - `"high"`

2413 

2414 - `frame_count: optional integer (default: 9)`

2415 

2416 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

2417 

2418 `minimum: 2`, `maximum: 16`

2419 

2420 - `frame_duration_ms: optional integer (default: 200)`

2421 

2422 Duration of each GIF frame in milliseconds, rounded to 10 ms.

2423 Requires `output_format` to be `gif`. Default: 200.

2424 

2425 `minimum: 20`, `maximum: 2000`

2426 

2399 - `input_fidelity: optional "high" or "low" or null`2427 - `input_fidelity: optional "high" or "low" or null`

2400 2428 

2401 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.2429 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


2417 2445 

2418 Base64-encoded mask image.2446 Base64-encoded mask image.

2419 2447 

2420 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2448 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

2421 2449 

2422 The image generation model to use. One of `gpt-image-1-mini`,2450 The image generation model to use. One of `gpt-image-1-mini`,

2423 `gpt-image-1.5`, `gpt-image-2`,2451 `gpt-image-1.5`, `gpt-image-2`,

2424 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2452 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2425 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2453 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2426 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2454 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

2455 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

2427 `gpt-image-2`.2456 `gpt-image-2`.

2428 2457 

2429 `gpt-image-1` was shut down on October 23, 2026. Use2458 `gpt-image-1` was shut down on October 23, 2026. Use


2431 2460 

2432 - `string`2461 - `string`

2433 2462 

2434 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2463 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

2435 2464 

2436 The image generation model to use. One of `gpt-image-1-mini`,2465 The image generation model to use. One of `gpt-image-1-mini`,

2437 `gpt-image-1.5`, `gpt-image-2`,2466 `gpt-image-1.5`, `gpt-image-2`,

2438 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2467 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2439 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2468 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2440 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2469 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

2470 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

2441 `gpt-image-2`.2471 `gpt-image-2`.

2442 2472 

2443 `gpt-image-1` was shut down on October 23, 2026. Use2473 `gpt-image-1` was shut down on October 23, 2026. Use


2447 2477 

2448 - `"gpt-image-1-mini"`2478 - `"gpt-image-1-mini"`

2449 2479 

2450 - `"gpt-image-1.5"`

2451 

2452 - `"gpt-image-2"`2480 - `"gpt-image-2"`

2453 2481 

2454 - `"gpt-image-2-2026-04-21"`2482 - `"gpt-image-2-2026-04-21"`


2461 2489 

2462 - `"gpt-image-2.5-flare-2026-09-08"`2490 - `"gpt-image-2.5-flare-2026-09-08"`

2463 2491 

2492 - `"gpt-image-2.6-sunburst"`

2493 

2494 - `"gpt-image-2.6-flare"`

2495 

2496 - `"gpt-image-1.5"`

2497 

2498 - `"chatgpt-image-latest"`

2499 

2464 - `moderation: optional "auto" or "low" (default: "auto")`2500 - `moderation: optional "auto" or "low" (default: "auto")`

2465 2501 

2466 Moderation level for the generated image. Default: `auto`.2502 Moderation level for the generated image. Default: `auto`.


2475 2511 

2476 `minimum: 0`, `maximum: 100`2512 `minimum: 0`, `maximum: 100`

2477 2513 

2478 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`2514 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

2479 2515 

2480 The output format of the generated image. One of `png`, `webp`, or2516 The output format of the generated image. One of `png`, `webp`, `jpeg`,

2481 `jpeg`. Default: `png`.2517 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

2518 that supports the selected format. GIF output does not support

2519 partial image streaming (`partial_images` greater than `0`),

2520 `input_image_mask`, or custom `output_compression`.

2521 Responses lifecycle events can still be streamed for GIF output.

2482 2522 

2483 - `"png"`2523 - `"png"`

2484 2524 


2486 2526 

2487 - `"jpeg"`2527 - `"jpeg"`

2488 2528 

2529 - `"gif"`

2530 

2531 - `"svg"`

2532 

2489 - `partial_images: optional integer (default: 0)`2533 - `partial_images: optional integer (default: 0)`

2490 2534 

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


2529 2573 

2530 - `"auto"`2574 - `"auto"`

2531 2575 

2576 - `svg: optional object { model, reasoning }`

2577 

2578 SVG author model settings. Requires `output_format` to be `svg`.

2579 When SVG model selection is enabled, omitting this object uses the

2580 outer response model. Otherwise, the default SVG author is used and

2581 explicit model overrides are unavailable.

2582 

2583 - `model: optional string`

2584 

2585 `minLength: 1`

2586 

2587 - `reasoning: optional object { effort } or null`

2588 

2589 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

2590 

2591 - `effort: optional "none" or "minimal" or "low" or 4 more`

2592 

2593 Controls how much effort the model should spend on reasoning for this request.

2594 

2595 - `"none"`

2596 

2597 - `"minimal"`

2598 

2599 - `"low"`

2600 

2601 - `"medium"`

2602 

2603 - `"high"`

2604 

2605 - `"xhigh"`

2606 

2607 - `"max"`

2608 

2532 - `LocalShell object { type }`2609 - `LocalShell object { type }`

2533 2610 

2534 A tool that allows the model to execute shell commands in a local environment.2611 A tool that allows the model to execute shell commands in a local environment.


3559 3636 

3560 - `"programmatic_tool_calling"`3637 - `"programmatic_tool_calling"`

3561 3638 

3562 - `ImageGeneration object { type, action, background, 9 more }`3639 - `ImageGeneration object { type, action, background, 13 more }`

3563 3640 

3564 A tool that generates images using the GPT image models.3641 A tool that generates images using the GPT image models.

3565 3642 


3595 3672 

3596 - `"auto"`3673 - `"auto"`

3597 3674 

3675 - `complexity: optional "low" or "medium" or "high"`

3676 

3677 Computation spent planning the image, independently of rendering quality.

3678 Overrides the outer response's `reasoning.effort` for image generation.

3679 When omitted, inherits a supported outer reasoning effort or uses the

3680 image model's configured default.

3681 For SVG output, controls the reference image, not the SVG author's

3682 reasoning.

3683 

3684 - `"low"`

3685 

3686 - `"medium"`

3687 

3688 - `"high"`

3689 

3690 - `frame_count: optional integer (default: 9)`

3691 

3692 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

3693 

3694 `minimum: 2`, `maximum: 16`

3695 

3696 - `frame_duration_ms: optional integer (default: 200)`

3697 

3698 Duration of each GIF frame in milliseconds, rounded to 10 ms.

3699 Requires `output_format` to be `gif`. Default: 200.

3700 

3701 `minimum: 20`, `maximum: 2000`

3702 

3598 - `input_fidelity: optional "high" or "low" or null`3703 - `input_fidelity: optional "high" or "low" or null`

3599 3704 

3600 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.3705 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


3616 3721 

3617 Base64-encoded mask image.3722 Base64-encoded mask image.

3618 3723 

3619 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3724 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3620 3725 

3621 The image generation model to use. One of `gpt-image-1-mini`,3726 The image generation model to use. One of `gpt-image-1-mini`,

3622 `gpt-image-1.5`, `gpt-image-2`,3727 `gpt-image-1.5`, `gpt-image-2`,

3623 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3728 `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`,3729 `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:3730 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3731 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3626 `gpt-image-2`.3732 `gpt-image-2`.

3627 3733 

3628 `gpt-image-1` was shut down on October 23, 2026. Use3734 `gpt-image-1` was shut down on October 23, 2026. Use


3630 3736 

3631 - `string`3737 - `string`

3632 3738 

3633 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3739 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3634 3740 

3635 The image generation model to use. One of `gpt-image-1-mini`,3741 The image generation model to use. One of `gpt-image-1-mini`,

3636 `gpt-image-1.5`, `gpt-image-2`,3742 `gpt-image-1.5`, `gpt-image-2`,

3637 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3743 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3638 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3744 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3639 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3745 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3746 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3640 `gpt-image-2`.3747 `gpt-image-2`.

3641 3748 

3642 `gpt-image-1` was shut down on October 23, 2026. Use3749 `gpt-image-1` was shut down on October 23, 2026. Use


3646 3753 

3647 - `"gpt-image-1-mini"`3754 - `"gpt-image-1-mini"`

3648 3755 

3649 - `"gpt-image-1.5"`

3650 

3651 - `"gpt-image-2"`3756 - `"gpt-image-2"`

3652 3757 

3653 - `"gpt-image-2-2026-04-21"`3758 - `"gpt-image-2-2026-04-21"`


3660 3765 

3661 - `"gpt-image-2.5-flare-2026-09-08"`3766 - `"gpt-image-2.5-flare-2026-09-08"`

3662 3767 

3768 - `"gpt-image-2.6-sunburst"`

3769 

3770 - `"gpt-image-2.6-flare"`

3771 

3772 - `"gpt-image-1.5"`

3773 

3774 - `"chatgpt-image-latest"`

3775 

3663 - `moderation: optional "auto" or "low" (default: "auto")`3776 - `moderation: optional "auto" or "low" (default: "auto")`

3664 3777 

3665 Moderation level for the generated image. Default: `auto`.3778 Moderation level for the generated image. Default: `auto`.


3674 3787 

3675 `minimum: 0`, `maximum: 100`3788 `minimum: 0`, `maximum: 100`

3676 3789 

3677 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`3790 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

3678 3791 

3679 The output format of the generated image. One of `png`, `webp`, or3792 The output format of the generated image. One of `png`, `webp`, `jpeg`,

3680 `jpeg`. Default: `png`.3793 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

3794 that supports the selected format. GIF output does not support

3795 partial image streaming (`partial_images` greater than `0`),

3796 `input_image_mask`, or custom `output_compression`.

3797 Responses lifecycle events can still be streamed for GIF output.

3681 3798 

3682 - `"png"`3799 - `"png"`

3683 3800 


3685 3802 

3686 - `"jpeg"`3803 - `"jpeg"`

3687 3804 

3805 - `"gif"`

3806 

3807 - `"svg"`

3808 

3688 - `partial_images: optional integer (default: 0)`3809 - `partial_images: optional integer (default: 0)`

3689 3810 

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


3728 3849 

3729 - `"auto"`3850 - `"auto"`

3730 3851 

3852 - `svg: optional object { model, reasoning }`

3853 

3854 SVG author model settings. Requires `output_format` to be `svg`.

3855 When SVG model selection is enabled, omitting this object uses the

3856 outer response model. Otherwise, the default SVG author is used and

3857 explicit model overrides are unavailable.

3858 

3859 - `model: optional string`

3860 

3861 `minLength: 1`

3862 

3863 - `reasoning: optional object { effort } or null`

3864 

3865 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

3866 

3867 - `effort: optional "none" or "minimal" or "low" or 4 more`

3868 

3869 Controls how much effort the model should spend on reasoning for this request.

3870 

3871 - `"none"`

3872 

3873 - `"minimal"`

3874 

3875 - `"low"`

3876 

3877 - `"medium"`

3878 

3879 - `"high"`

3880 

3881 - `"xhigh"`

3882 

3883 - `"max"`

3884 

3731 - `LocalShell object { type }`3885 - `LocalShell object { type }`

3732 3886 

3733 A tool that allows the model to execute shell commands in a local environment.3887 A tool that allows the model to execute shell commands in a local environment.


4296 4450 

4297 The canonical name of the agent that produced this item.4451 The canonical name of the agent that produced this item.

4298 4452 

4299 - `ImageGenerationCall object { id, result, status, 9 more }`4453 - `ImageGenerationCall object { id, result, status, 10 more }`

4300 4454 

4301 An image generation request made by the model.4455 An image generation request made by the model.

4302 4456 


4392 4546 

4393 - `"unknown"`4547 - `"unknown"`

4394 4548 

4395 - `output_format: optional "png" or "webp" or "jpeg" or null`4549 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

4396 4550 

4397 The output format used for generation.4551 The output format used for generation.

4398 4552 


4402 4556 

4403 - `"jpeg"`4557 - `"jpeg"`

4404 4558 

4559 - `"gif"`

4560 

4561 - `"svg"`

4562 

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

4406 4564 

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


4438 4596 

4439 - `"1536x1024"`4597 - `"1536x1024"`

4440 4598 

4599 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

4600 

4601 - `input_tokens: integer`

4602 

4603 - `model: string`

4604 

4605 - `output_tokens: integer`

4606 

4607 - `reasoning_tokens: integer`

4608 

4609 - `total_tokens: integer`

4610 

4441 - `CodeInterpreterCall object { id, code, container_id, 4 more }`4611 - `CodeInterpreterCall object { id, code, container_id, 4 more }`

4442 4612 

4443 A tool call to run code.4613 A tool call to run code.


5490 Keys are strings with a maximum length of 64 characters. Values are strings5660 Keys are strings with a maximum length of 64 characters. Values are strings

5491 with a maximum length of 512 characters.5661 with a maximum length of 512 characters.

5492 5662 

5493 - `model: "gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 108 more or string`5663 - `model: "gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 109 more or string`

5494 5664 

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

5496 offers a wide range of models with different capabilities, performance5666 offers a wide range of models with different capabilities, performance

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

5498 to browse and compare available models.5668 to browse and compare available models.

5499 5669 

5500 - `"gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 108 more`5670 - `"gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 109 more`

5501 5671 

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

5503 offers a wide range of models with different capabilities, performance5673 offers a wide range of models with different capabilities, performance


5722 5892 

5723 - `"gpt-5.6-cyber"`5893 - `"gpt-5.6-cyber"`

5724 5894 

5895 - `"gpt-6-cyber"`

5896 

5725 - `"gpt-rosalind-research"`5897 - `"gpt-rosalind-research"`

5726 5898 

5727 - `"gpt-6-rosalind"`5899 - `"gpt-6-rosalind"`


7210 7382 

7211 - `"programmatic_tool_calling"`7383 - `"programmatic_tool_calling"`

7212 7384 

7213 - `ImageGeneration object { type, action, background, 9 more }`7385 - `ImageGeneration object { type, action, background, 13 more }`

7214 7386 

7215 A tool that generates images using the GPT image models.7387 A tool that generates images using the GPT image models.

7216 7388 


7246 7418 

7247 - `"auto"`7419 - `"auto"`

7248 7420 

7421 - `complexity: optional "low" or "medium" or "high"`

7422 

7423 Computation spent planning the image, independently of rendering quality.

7424 Overrides the outer response's `reasoning.effort` for image generation.

7425 When omitted, inherits a supported outer reasoning effort or uses the

7426 image model's configured default.

7427 For SVG output, controls the reference image, not the SVG author's

7428 reasoning.

7429 

7430 - `"low"`

7431 

7432 - `"medium"`

7433 

7434 - `"high"`

7435 

7436 - `frame_count: optional integer (default: 9)`

7437 

7438 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

7439 

7440 `minimum: 2`, `maximum: 16`

7441 

7442 - `frame_duration_ms: optional integer (default: 200)`

7443 

7444 Duration of each GIF frame in milliseconds, rounded to 10 ms.

7445 Requires `output_format` to be `gif`. Default: 200.

7446 

7447 `minimum: 20`, `maximum: 2000`

7448 

7249 - `input_fidelity: optional "high" or "low" or null`7449 - `input_fidelity: optional "high" or "low" or null`

7250 7450 

7251 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.7451 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


7267 7467 

7268 Base64-encoded mask image.7468 Base64-encoded mask image.

7269 7469 

7270 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`7470 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

7271 7471 

7272 The image generation model to use. One of `gpt-image-1-mini`,7472 The image generation model to use. One of `gpt-image-1-mini`,

7273 `gpt-image-1.5`, `gpt-image-2`,7473 `gpt-image-1.5`, `gpt-image-2`,

7274 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,7474 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

7275 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,7475 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

7276 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:7476 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

7477 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

7277 `gpt-image-2`.7478 `gpt-image-2`.

7278 7479 

7279 `gpt-image-1` was shut down on October 23, 2026. Use7480 `gpt-image-1` was shut down on October 23, 2026. Use


7281 7482 

7282 - `string`7483 - `string`

7283 7484 

7284 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`7485 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

7285 7486 

7286 The image generation model to use. One of `gpt-image-1-mini`,7487 The image generation model to use. One of `gpt-image-1-mini`,

7287 `gpt-image-1.5`, `gpt-image-2`,7488 `gpt-image-1.5`, `gpt-image-2`,

7288 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,7489 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

7289 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,7490 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

7290 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:7491 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

7492 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

7291 `gpt-image-2`.7493 `gpt-image-2`.

7292 7494 

7293 `gpt-image-1` was shut down on October 23, 2026. Use7495 `gpt-image-1` was shut down on October 23, 2026. Use


7297 7499 

7298 - `"gpt-image-1-mini"`7500 - `"gpt-image-1-mini"`

7299 7501 

7300 - `"gpt-image-1.5"`

7301 

7302 - `"gpt-image-2"`7502 - `"gpt-image-2"`

7303 7503 

7304 - `"gpt-image-2-2026-04-21"`7504 - `"gpt-image-2-2026-04-21"`


7311 7511 

7312 - `"gpt-image-2.5-flare-2026-09-08"`7512 - `"gpt-image-2.5-flare-2026-09-08"`

7313 7513 

7514 - `"gpt-image-2.6-sunburst"`

7515 

7516 - `"gpt-image-2.6-flare"`

7517 

7518 - `"gpt-image-1.5"`

7519 

7520 - `"chatgpt-image-latest"`

7521 

7314 - `moderation: optional "auto" or "low" (default: "auto")`7522 - `moderation: optional "auto" or "low" (default: "auto")`

7315 7523 

7316 Moderation level for the generated image. Default: `auto`.7524 Moderation level for the generated image. Default: `auto`.


7325 7533 

7326 `minimum: 0`, `maximum: 100`7534 `minimum: 0`, `maximum: 100`

7327 7535 

7328 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`7536 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

7329 7537 

7330 The output format of the generated image. One of `png`, `webp`, or7538 The output format of the generated image. One of `png`, `webp`, `jpeg`,

7331 `jpeg`. Default: `png`.7539 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

7540 that supports the selected format. GIF output does not support

7541 partial image streaming (`partial_images` greater than `0`),

7542 `input_image_mask`, or custom `output_compression`.

7543 Responses lifecycle events can still be streamed for GIF output.

7332 7544 

7333 - `"png"`7545 - `"png"`

7334 7546 


7336 7548 

7337 - `"jpeg"`7549 - `"jpeg"`

7338 7550 

7551 - `"gif"`

7552 

7553 - `"svg"`

7554 

7339 - `partial_images: optional integer (default: 0)`7555 - `partial_images: optional integer (default: 0)`

7340 7556 

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


7379 7595 

7380 - `"auto"`7596 - `"auto"`

7381 7597 

7598 - `svg: optional object { model, reasoning }`

7599 

7600 SVG author model settings. Requires `output_format` to be `svg`.

7601 When SVG model selection is enabled, omitting this object uses the

7602 outer response model. Otherwise, the default SVG author is used and

7603 explicit model overrides are unavailable.

7604 

7605 - `model: optional string`

7606 

7607 `minLength: 1`

7608 

7609 - `reasoning: optional object { effort } or null`

7610 

7611 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

7612 

7613 - `effort: optional "none" or "minimal" or "low" or 4 more`

7614 

7615 Controls how much effort the model should spend on reasoning for this request.

7616 

7617 - `"none"`

7618 

7619 - `"minimal"`

7620 

7621 - `"low"`

7622 

7623 - `"medium"`

7624 

7625 - `"high"`

7626 

7627 - `"xhigh"`

7628 

7629 - `"max"`

7630 

7382 - `LocalShell object { type }`7631 - `LocalShell object { type }`

7383 7632 

7384 A tool that allows the model to execute shell commands in a local environment.7633 A tool that allows the model to execute shell commands in a local environment.


8273 8522 

8274 - `"programmatic_tool_calling"`8523 - `"programmatic_tool_calling"`

8275 8524 

8276 - `ImageGeneration object { type, action, background, 9 more }`8525 - `ImageGeneration object { type, action, background, 13 more }`

8277 8526 

8278 A tool that generates images using the GPT image models.8527 A tool that generates images using the GPT image models.

8279 8528 


8309 8558 

8310 - `"auto"`8559 - `"auto"`

8311 8560 

8561 - `complexity: optional "low" or "medium" or "high"`

8562 

8563 Computation spent planning the image, independently of rendering quality.

8564 Overrides the outer response's `reasoning.effort` for image generation.

8565 When omitted, inherits a supported outer reasoning effort or uses the

8566 image model's configured default.

8567 For SVG output, controls the reference image, not the SVG author's

8568 reasoning.

8569 

8570 - `"low"`

8571 

8572 - `"medium"`

8573 

8574 - `"high"`

8575 

8576 - `frame_count: optional integer (default: 9)`

8577 

8578 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

8579 

8580 `minimum: 2`, `maximum: 16`

8581 

8582 - `frame_duration_ms: optional integer (default: 200)`

8583 

8584 Duration of each GIF frame in milliseconds, rounded to 10 ms.

8585 Requires `output_format` to be `gif`. Default: 200.

8586 

8587 `minimum: 20`, `maximum: 2000`

8588 

8312 - `input_fidelity: optional "high" or "low" or null`8589 - `input_fidelity: optional "high" or "low" or null`

8313 8590 

8314 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.8591 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


8330 8607 

8331 Base64-encoded mask image.8608 Base64-encoded mask image.

8332 8609 

8333 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`8610 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

8334 8611 

8335 The image generation model to use. One of `gpt-image-1-mini`,8612 The image generation model to use. One of `gpt-image-1-mini`,

8336 `gpt-image-1.5`, `gpt-image-2`,8613 `gpt-image-1.5`, `gpt-image-2`,

8337 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,8614 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

8338 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,8615 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

8339 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:8616 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

8617 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

8340 `gpt-image-2`.8618 `gpt-image-2`.

8341 8619 

8342 `gpt-image-1` was shut down on October 23, 2026. Use8620 `gpt-image-1` was shut down on October 23, 2026. Use


8344 8622 

8345 - `string`8623 - `string`

8346 8624 

8347 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`8625 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

8348 8626 

8349 The image generation model to use. One of `gpt-image-1-mini`,8627 The image generation model to use. One of `gpt-image-1-mini`,

8350 `gpt-image-1.5`, `gpt-image-2`,8628 `gpt-image-1.5`, `gpt-image-2`,

8351 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,8629 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

8352 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,8630 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

8353 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:8631 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

8632 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

8354 `gpt-image-2`.8633 `gpt-image-2`.

8355 8634 

8356 `gpt-image-1` was shut down on October 23, 2026. Use8635 `gpt-image-1` was shut down on October 23, 2026. Use


8360 8639 

8361 - `"gpt-image-1-mini"`8640 - `"gpt-image-1-mini"`

8362 8641 

8363 - `"gpt-image-1.5"`

8364 

8365 - `"gpt-image-2"`8642 - `"gpt-image-2"`

8366 8643 

8367 - `"gpt-image-2-2026-04-21"`8644 - `"gpt-image-2-2026-04-21"`


8374 8651 

8375 - `"gpt-image-2.5-flare-2026-09-08"`8652 - `"gpt-image-2.5-flare-2026-09-08"`

8376 8653 

8654 - `"gpt-image-2.6-sunburst"`

8655 

8656 - `"gpt-image-2.6-flare"`

8657 

8658 - `"gpt-image-1.5"`

8659 

8660 - `"chatgpt-image-latest"`

8661 

8377 - `moderation: optional "auto" or "low" (default: "auto")`8662 - `moderation: optional "auto" or "low" (default: "auto")`

8378 8663 

8379 Moderation level for the generated image. Default: `auto`.8664 Moderation level for the generated image. Default: `auto`.


8388 8673 

8389 `minimum: 0`, `maximum: 100`8674 `minimum: 0`, `maximum: 100`

8390 8675 

8391 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`8676 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

8392 8677 

8393 The output format of the generated image. One of `png`, `webp`, or8678 The output format of the generated image. One of `png`, `webp`, `jpeg`,

8394 `jpeg`. Default: `png`.8679 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

8680 that supports the selected format. GIF output does not support

8681 partial image streaming (`partial_images` greater than `0`),

8682 `input_image_mask`, or custom `output_compression`.

8683 Responses lifecycle events can still be streamed for GIF output.

8395 8684 

8396 - `"png"`8685 - `"png"`

8397 8686 


8399 8688 

8400 - `"jpeg"`8689 - `"jpeg"`

8401 8690 

8691 - `"gif"`

8692 

8693 - `"svg"`

8694 

8402 - `partial_images: optional integer (default: 0)`8695 - `partial_images: optional integer (default: 0)`

8403 8696 

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


8442 8735 

8443 - `"auto"`8736 - `"auto"`

8444 8737 

8738 - `svg: optional object { model, reasoning }`

8739 

8740 SVG author model settings. Requires `output_format` to be `svg`.

8741 When SVG model selection is enabled, omitting this object uses the

8742 outer response model. Otherwise, the default SVG author is used and

8743 explicit model overrides are unavailable.

8744 

8745 - `model: optional string`

8746 

8747 `minLength: 1`

8748 

8749 - `reasoning: optional object { effort } or null`

8750 

8751 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

8752 

8753 - `effort: optional "none" or "minimal" or "low" or 4 more`

8754 

8755 Controls how much effort the model should spend on reasoning for this request.

8756 

8757 - `"none"`

8758 

8759 - `"minimal"`

8760 

8761 - `"low"`

8762 

8763 - `"medium"`

8764 

8765 - `"high"`

8766 

8767 - `"xhigh"`

8768 

8769 - `"max"`

8770 

8445 - `LocalShell object { type }`8771 - `LocalShell object { type }`

8446 8772 

8447 A tool that allows the model to execute shell commands in a local environment.8773 A tool that allows the model to execute shell commands in a local environment.


8834 9160 

8835 The identifier of the actor that created the item.9161 The identifier of the actor that created the item.

8836 9162 

8837 - `ImageGenerationCall object { id, result, status, 9 more }`9163 - `ImageGenerationCall object { id, result, status, 10 more }`

8838 9164 

8839 An image generation request made by the model.9165 An image generation request made by the model.

8840 9166 


8930 9256 

8931 - `"unknown"`9257 - `"unknown"`

8932 9258 

8933 - `output_format: optional "png" or "webp" or "jpeg" or null`9259 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

8934 9260 

8935 The output format used for generation.9261 The output format used for generation.

8936 9262 


8940 9266 

8941 - `"jpeg"`9267 - `"jpeg"`

8942 9268 

9269 - `"gif"`

9270 

9271 - `"svg"`

9272 

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

8944 9274 

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


8976 9306 

8977 - `"1536x1024"`9307 - `"1536x1024"`

8978 9308 

9309 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

9310 

9311 - `input_tokens: integer`

9312 

9313 - `model: string`

9314 

9315 - `output_tokens: integer`

9316 

9317 - `reasoning_tokens: integer`

9318 

9319 - `total_tokens: integer`

9320 

8979 - `CodeInterpreterCall object { id, code, container_id, 4 more }`9321 - `CodeInterpreterCall object { id, code, container_id, 4 more }`

8980 9322 

8981 A tool call to run code.9323 A tool call to run code.


10569 10911 

10570 - `"programmatic_tool_calling"`10912 - `"programmatic_tool_calling"`

10571 10913 

10572 - `ImageGeneration object { type, action, background, 9 more }`10914 - `ImageGeneration object { type, action, background, 13 more }`

10573 10915 

10574 A tool that generates images using the GPT image models.10916 A tool that generates images using the GPT image models.

10575 10917 


10605 10947 

10606 - `"auto"`10948 - `"auto"`

10607 10949 

10950 - `complexity: optional "low" or "medium" or "high"`

10951 

10952 Computation spent planning the image, independently of rendering quality.

10953 Overrides the outer response's `reasoning.effort` for image generation.

10954 When omitted, inherits a supported outer reasoning effort or uses the

10955 image model's configured default.

10956 For SVG output, controls the reference image, not the SVG author's

10957 reasoning.

10958 

10959 - `"low"`

10960 

10961 - `"medium"`

10962 

10963 - `"high"`

10964 

10965 - `frame_count: optional integer (default: 9)`

10966 

10967 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

10968 

10969 `minimum: 2`, `maximum: 16`

10970 

10971 - `frame_duration_ms: optional integer (default: 200)`

10972 

10973 Duration of each GIF frame in milliseconds, rounded to 10 ms.

10974 Requires `output_format` to be `gif`. Default: 200.

10975 

10976 `minimum: 20`, `maximum: 2000`

10977 

10608 - `input_fidelity: optional "high" or "low" or null`10978 - `input_fidelity: optional "high" or "low" or null`

10609 10979 

10610 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.10980 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


10626 10996 

10627 Base64-encoded mask image.10997 Base64-encoded mask image.

10628 10998 

10629 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`10999 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

10630 11000 

10631 The image generation model to use. One of `gpt-image-1-mini`,11001 The image generation model to use. One of `gpt-image-1-mini`,

10632 `gpt-image-1.5`, `gpt-image-2`,11002 `gpt-image-1.5`, `gpt-image-2`,

10633 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,11003 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

10634 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,11004 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

10635 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:11005 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

11006 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

10636 `gpt-image-2`.11007 `gpt-image-2`.

10637 11008 

10638 `gpt-image-1` was shut down on October 23, 2026. Use11009 `gpt-image-1` was shut down on October 23, 2026. Use


10640 11011 

10641 - `string`11012 - `string`

10642 11013 

10643 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`11014 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

10644 11015 

10645 The image generation model to use. One of `gpt-image-1-mini`,11016 The image generation model to use. One of `gpt-image-1-mini`,

10646 `gpt-image-1.5`, `gpt-image-2`,11017 `gpt-image-1.5`, `gpt-image-2`,

10647 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,11018 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

10648 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,11019 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

10649 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:11020 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

11021 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

10650 `gpt-image-2`.11022 `gpt-image-2`.

10651 11023 

10652 `gpt-image-1` was shut down on October 23, 2026. Use11024 `gpt-image-1` was shut down on October 23, 2026. Use


10656 11028 

10657 - `"gpt-image-1-mini"`11029 - `"gpt-image-1-mini"`

10658 11030 

10659 - `"gpt-image-1.5"`

10660 

10661 - `"gpt-image-2"`11031 - `"gpt-image-2"`

10662 11032 

10663 - `"gpt-image-2-2026-04-21"`11033 - `"gpt-image-2-2026-04-21"`


10670 11040 

10671 - `"gpt-image-2.5-flare-2026-09-08"`11041 - `"gpt-image-2.5-flare-2026-09-08"`

10672 11042 

11043 - `"gpt-image-2.6-sunburst"`

11044 

11045 - `"gpt-image-2.6-flare"`

11046 

11047 - `"gpt-image-1.5"`

11048 

11049 - `"chatgpt-image-latest"`

11050 

10673 - `moderation: optional "auto" or "low" (default: "auto")`11051 - `moderation: optional "auto" or "low" (default: "auto")`

10674 11052 

10675 Moderation level for the generated image. Default: `auto`.11053 Moderation level for the generated image. Default: `auto`.


10684 11062 

10685 `minimum: 0`, `maximum: 100`11063 `minimum: 0`, `maximum: 100`

10686 11064 

10687 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`11065 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

10688 11066 

10689 The output format of the generated image. One of `png`, `webp`, or11067 The output format of the generated image. One of `png`, `webp`, `jpeg`,

10690 `jpeg`. Default: `png`.11068 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

11069 that supports the selected format. GIF output does not support

11070 partial image streaming (`partial_images` greater than `0`),

11071 `input_image_mask`, or custom `output_compression`.

11072 Responses lifecycle events can still be streamed for GIF output.

10691 11073 

10692 - `"png"`11074 - `"png"`

10693 11075 


10695 11077 

10696 - `"jpeg"`11078 - `"jpeg"`

10697 11079 

11080 - `"gif"`

11081 

11082 - `"svg"`

11083 

10698 - `partial_images: optional integer (default: 0)`11084 - `partial_images: optional integer (default: 0)`

10699 11085 

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


10738 11124 

10739 - `"auto"`11125 - `"auto"`

10740 11126 

11127 - `svg: optional object { model, reasoning }`

11128 

11129 SVG author model settings. Requires `output_format` to be `svg`.

11130 When SVG model selection is enabled, omitting this object uses the

11131 outer response model. Otherwise, the default SVG author is used and

11132 explicit model overrides are unavailable.

11133 

11134 - `model: optional string`

11135 

11136 `minLength: 1`

11137 

11138 - `reasoning: optional object { effort } or null`

11139 

11140 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

11141 

11142 - `effort: optional "none" or "minimal" or "low" or 4 more`

11143 

11144 Controls how much effort the model should spend on reasoning for this request.

11145 

11146 - `"none"`

11147 

11148 - `"minimal"`

11149 

11150 - `"low"`

11151 

11152 - `"medium"`

11153 

11154 - `"high"`

11155 

11156 - `"xhigh"`

11157 

11158 - `"max"`

11159 

10741 - `LocalShell object { type }`11160 - `LocalShell object { type }`

10742 11161 

10743 A tool that allows the model to execute shell commands in a local environment.11162 A tool that allows the model to execute shell commands in a local environment.

Details

2058 2058 

2059 - `"programmatic_tool_calling"`2059 - `"programmatic_tool_calling"`

2060 2060 

2061 - `ImageGeneration object { type, action, background, 9 more }`2061 - `ImageGeneration object { type, action, background, 13 more }`

2062 2062 

2063 A tool that generates images using the GPT image models.2063 A tool that generates images using the GPT image models.

2064 2064 


2094 2094 

2095 - `"auto"`2095 - `"auto"`

2096 2096 

2097 - `complexity: optional "low" or "medium" or "high"`

2098 

2099 Computation spent planning the image, independently of rendering quality.

2100 Overrides the outer response's `reasoning.effort` for image generation.

2101 When omitted, inherits a supported outer reasoning effort or uses the

2102 image model's configured default.

2103 For SVG output, controls the reference image, not the SVG author's

2104 reasoning.

2105 

2106 - `"low"`

2107 

2108 - `"medium"`

2109 

2110 - `"high"`

2111 

2112 - `frame_count: optional integer (default: 9)`

2113 

2114 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

2115 

2116 `minimum: 2`, `maximum: 16`

2117 

2118 - `frame_duration_ms: optional integer (default: 200)`

2119 

2120 Duration of each GIF frame in milliseconds, rounded to 10 ms.

2121 Requires `output_format` to be `gif`. Default: 200.

2122 

2123 `minimum: 20`, `maximum: 2000`

2124 

2097 - `input_fidelity: optional "high" or "low" or null`2125 - `input_fidelity: optional "high" or "low" or null`

2098 2126 

2099 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.2127 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


2115 2143 

2116 Base64-encoded mask image.2144 Base64-encoded mask image.

2117 2145 

2118 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2146 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

2119 2147 

2120 The image generation model to use. One of `gpt-image-1-mini`,2148 The image generation model to use. One of `gpt-image-1-mini`,

2121 `gpt-image-1.5`, `gpt-image-2`,2149 `gpt-image-1.5`, `gpt-image-2`,

2122 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2150 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2123 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2151 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2124 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2152 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

2153 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

2125 `gpt-image-2`.2154 `gpt-image-2`.

2126 2155 

2127 `gpt-image-1` was shut down on October 23, 2026. Use2156 `gpt-image-1` was shut down on October 23, 2026. Use


2129 2158 

2130 - `string`2159 - `string`

2131 2160 

2132 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2161 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

2133 2162 

2134 The image generation model to use. One of `gpt-image-1-mini`,2163 The image generation model to use. One of `gpt-image-1-mini`,

2135 `gpt-image-1.5`, `gpt-image-2`,2164 `gpt-image-1.5`, `gpt-image-2`,

2136 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2165 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2137 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2166 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2138 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2167 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

2168 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

2139 `gpt-image-2`.2169 `gpt-image-2`.

2140 2170 

2141 `gpt-image-1` was shut down on October 23, 2026. Use2171 `gpt-image-1` was shut down on October 23, 2026. Use


2145 2175 

2146 - `"gpt-image-1-mini"`2176 - `"gpt-image-1-mini"`

2147 2177 

2148 - `"gpt-image-1.5"`

2149 

2150 - `"gpt-image-2"`2178 - `"gpt-image-2"`

2151 2179 

2152 - `"gpt-image-2-2026-04-21"`2180 - `"gpt-image-2-2026-04-21"`


2159 2187 

2160 - `"gpt-image-2.5-flare-2026-09-08"`2188 - `"gpt-image-2.5-flare-2026-09-08"`

2161 2189 

2190 - `"gpt-image-2.6-sunburst"`

2191 

2192 - `"gpt-image-2.6-flare"`

2193 

2194 - `"gpt-image-1.5"`

2195 

2196 - `"chatgpt-image-latest"`

2197 

2162 - `moderation: optional "auto" or "low" (default: "auto")`2198 - `moderation: optional "auto" or "low" (default: "auto")`

2163 2199 

2164 Moderation level for the generated image. Default: `auto`.2200 Moderation level for the generated image. Default: `auto`.


2173 2209 

2174 `minimum: 0`, `maximum: 100`2210 `minimum: 0`, `maximum: 100`

2175 2211 

2176 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`2212 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

2177 2213 

2178 The output format of the generated image. One of `png`, `webp`, or2214 The output format of the generated image. One of `png`, `webp`, `jpeg`,

2179 `jpeg`. Default: `png`.2215 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

2216 that supports the selected format. GIF output does not support

2217 partial image streaming (`partial_images` greater than `0`),

2218 `input_image_mask`, or custom `output_compression`.

2219 Responses lifecycle events can still be streamed for GIF output.

2180 2220 

2181 - `"png"`2221 - `"png"`

2182 2222 


2184 2224 

2185 - `"jpeg"`2225 - `"jpeg"`

2186 2226 

2227 - `"gif"`

2228 

2229 - `"svg"`

2230 

2187 - `partial_images: optional integer (default: 0)`2231 - `partial_images: optional integer (default: 0)`

2188 2232 

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


2227 2271 

2228 - `"auto"`2272 - `"auto"`

2229 2273 

2274 - `svg: optional object { model, reasoning }`

2275 

2276 SVG author model settings. Requires `output_format` to be `svg`.

2277 When SVG model selection is enabled, omitting this object uses the

2278 outer response model. Otherwise, the default SVG author is used and

2279 explicit model overrides are unavailable.

2280 

2281 - `model: optional string`

2282 

2283 `minLength: 1`

2284 

2285 - `reasoning: optional object { effort } or null`

2286 

2287 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

2288 

2289 - `effort: optional "none" or "minimal" or "low" or 4 more`

2290 

2291 Controls how much effort the model should spend on reasoning for this request.

2292 

2293 - `"none"`

2294 

2295 - `"minimal"`

2296 

2297 - `"low"`

2298 

2299 - `"medium"`

2300 

2301 - `"high"`

2302 

2303 - `"xhigh"`

2304 

2305 - `"max"`

2306 

2230 - `LocalShell object { type }`2307 - `LocalShell object { type }`

2231 2308 

2232 A tool that allows the model to execute shell commands in a local environment.2309 A tool that allows the model to execute shell commands in a local environment.


3249 3326 

3250 - `"programmatic_tool_calling"`3327 - `"programmatic_tool_calling"`

3251 3328 

3252 - `ImageGeneration object { type, action, background, 9 more }`3329 - `ImageGeneration object { type, action, background, 13 more }`

3253 3330 

3254 A tool that generates images using the GPT image models.3331 A tool that generates images using the GPT image models.

3255 3332 


3285 3362 

3286 - `"auto"`3363 - `"auto"`

3287 3364 

3365 - `complexity: optional "low" or "medium" or "high"`

3366 

3367 Computation spent planning the image, independently of rendering quality.

3368 Overrides the outer response's `reasoning.effort` for image generation.

3369 When omitted, inherits a supported outer reasoning effort or uses the

3370 image model's configured default.

3371 For SVG output, controls the reference image, not the SVG author's

3372 reasoning.

3373 

3374 - `"low"`

3375 

3376 - `"medium"`

3377 

3378 - `"high"`

3379 

3380 - `frame_count: optional integer (default: 9)`

3381 

3382 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

3383 

3384 `minimum: 2`, `maximum: 16`

3385 

3386 - `frame_duration_ms: optional integer (default: 200)`

3387 

3388 Duration of each GIF frame in milliseconds, rounded to 10 ms.

3389 Requires `output_format` to be `gif`. Default: 200.

3390 

3391 `minimum: 20`, `maximum: 2000`

3392 

3288 - `input_fidelity: optional "high" or "low" or null`3393 - `input_fidelity: optional "high" or "low" or null`

3289 3394 

3290 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.3395 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


3306 3411 

3307 Base64-encoded mask image.3412 Base64-encoded mask image.

3308 3413 

3309 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3414 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3310 3415 

3311 The image generation model to use. One of `gpt-image-1-mini`,3416 The image generation model to use. One of `gpt-image-1-mini`,

3312 `gpt-image-1.5`, `gpt-image-2`,3417 `gpt-image-1.5`, `gpt-image-2`,

3313 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3418 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3314 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3419 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3315 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3420 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3421 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3316 `gpt-image-2`.3422 `gpt-image-2`.

3317 3423 

3318 `gpt-image-1` was shut down on October 23, 2026. Use3424 `gpt-image-1` was shut down on October 23, 2026. Use


3320 3426 

3321 - `string`3427 - `string`

3322 3428 

3323 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3429 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3324 3430 

3325 The image generation model to use. One of `gpt-image-1-mini`,3431 The image generation model to use. One of `gpt-image-1-mini`,

3326 `gpt-image-1.5`, `gpt-image-2`,3432 `gpt-image-1.5`, `gpt-image-2`,

3327 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3433 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3328 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3434 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3329 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3435 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3436 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3330 `gpt-image-2`.3437 `gpt-image-2`.

3331 3438 

3332 `gpt-image-1` was shut down on October 23, 2026. Use3439 `gpt-image-1` was shut down on October 23, 2026. Use


3336 3443 

3337 - `"gpt-image-1-mini"`3444 - `"gpt-image-1-mini"`

3338 3445 

3339 - `"gpt-image-1.5"`

3340 

3341 - `"gpt-image-2"`3446 - `"gpt-image-2"`

3342 3447 

3343 - `"gpt-image-2-2026-04-21"`3448 - `"gpt-image-2-2026-04-21"`


3350 3455 

3351 - `"gpt-image-2.5-flare-2026-09-08"`3456 - `"gpt-image-2.5-flare-2026-09-08"`

3352 3457 

3458 - `"gpt-image-2.6-sunburst"`

3459 

3460 - `"gpt-image-2.6-flare"`

3461 

3462 - `"gpt-image-1.5"`

3463 

3464 - `"chatgpt-image-latest"`

3465 

3353 - `moderation: optional "auto" or "low" (default: "auto")`3466 - `moderation: optional "auto" or "low" (default: "auto")`

3354 3467 

3355 Moderation level for the generated image. Default: `auto`.3468 Moderation level for the generated image. Default: `auto`.


3364 3477 

3365 `minimum: 0`, `maximum: 100`3478 `minimum: 0`, `maximum: 100`

3366 3479 

3367 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`3480 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

3368 3481 

3369 The output format of the generated image. One of `png`, `webp`, or3482 The output format of the generated image. One of `png`, `webp`, `jpeg`,

3370 `jpeg`. Default: `png`.3483 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

3484 that supports the selected format. GIF output does not support

3485 partial image streaming (`partial_images` greater than `0`),

3486 `input_image_mask`, or custom `output_compression`.

3487 Responses lifecycle events can still be streamed for GIF output.

3371 3488 

3372 - `"png"`3489 - `"png"`

3373 3490 


3375 3492 

3376 - `"jpeg"`3493 - `"jpeg"`

3377 3494 

3495 - `"gif"`

3496 

3497 - `"svg"`

3498 

3378 - `partial_images: optional integer (default: 0)`3499 - `partial_images: optional integer (default: 0)`

3379 3500 

3380 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.


3418 3539 

3419 - `"auto"`3540 - `"auto"`

3420 3541 

3542 - `svg: optional object { model, reasoning }`

3543 

3544 SVG author model settings. Requires `output_format` to be `svg`.

3545 When SVG model selection is enabled, omitting this object uses the

3546 outer response model. Otherwise, the default SVG author is used and

3547 explicit model overrides are unavailable.

3548 

3549 - `model: optional string`

3550 

3551 `minLength: 1`

3552 

3553 - `reasoning: optional object { effort } or null`

3554 

3555 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

3556 

3557 - `effort: optional "none" or "minimal" or "low" or 4 more`

3558 

3559 Controls how much effort the model should spend on reasoning for this request.

3560 

3561 - `"none"`

3562 

3563 - `"minimal"`

3564 

3565 - `"low"`

3566 

3567 - `"medium"`

3568 

3569 - `"high"`

3570 

3571 - `"xhigh"`

3572 

3573 - `"max"`

3574 

3421 - `LocalShell object { type }`3575 - `LocalShell object { type }`

3422 3576 

3423 A tool that allows the model to execute shell commands in a local environment.3577 A tool that allows the model to execute shell commands in a local environment.


4052 4206 

4053 The identifier of the actor that created the item.4207 The identifier of the actor that created the item.

4054 4208 

4055 - `ImageGenerationCall object { id, result, status, 9 more }`4209 - `ImageGenerationCall object { id, result, status, 10 more }`

4056 4210 

4057 An image generation request made by the model.4211 An image generation request made by the model.

4058 4212 


4148 4302 

4149 - `"unknown"`4303 - `"unknown"`

4150 4304 

4151 - `output_format: optional "png" or "webp" or "jpeg" or null`4305 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

4152 4306 

4153 The output format used for generation.4307 The output format used for generation.

4154 4308 


4158 4312 

4159 - `"jpeg"`4313 - `"jpeg"`

4160 4314 

4315 - `"gif"`

4316 

4317 - `"svg"`

4318 

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

4162 4320 

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


4194 4352 

4195 - `"1536x1024"`4353 - `"1536x1024"`

4196 4354 

4355 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

4356 

4357 - `input_tokens: integer`

4358 

4359 - `model: string`

4360 

4361 - `output_tokens: integer`

4362 

4363 - `reasoning_tokens: integer`

4364 

4365 - `total_tokens: integer`

4366 

4197 - `CodeInterpreterCall object { id, code, container_id, 4 more }`4367 - `CodeInterpreterCall object { id, code, container_id, 4 more }`

4198 4368 

4199 A tool call to run code.4369 A tool call to run code.

Details

2184 2184 

2185 - `"programmatic_tool_calling"`2185 - `"programmatic_tool_calling"`

2186 2186 

2187 - `ImageGeneration object { type, action, background, 9 more }`2187 - `ImageGeneration object { type, action, background, 13 more }`

2188 2188 

2189 A tool that generates images using the GPT image models.2189 A tool that generates images using the GPT image models.

2190 2190 


2220 2220 

2221 - `"auto"`2221 - `"auto"`

2222 2222 

2223 - `complexity: optional "low" or "medium" or "high"`

2224 

2225 Computation spent planning the image, independently of rendering quality.

2226 Overrides the outer response's `reasoning.effort` for image generation.

2227 When omitted, inherits a supported outer reasoning effort or uses the

2228 image model's configured default.

2229 For SVG output, controls the reference image, not the SVG author's

2230 reasoning.

2231 

2232 - `"low"`

2233 

2234 - `"medium"`

2235 

2236 - `"high"`

2237 

2238 - `frame_count: optional integer (default: 9)`

2239 

2240 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

2241 

2242 `minimum: 2`, `maximum: 16`

2243 

2244 - `frame_duration_ms: optional integer (default: 200)`

2245 

2246 Duration of each GIF frame in milliseconds, rounded to 10 ms.

2247 Requires `output_format` to be `gif`. Default: 200.

2248 

2249 `minimum: 20`, `maximum: 2000`

2250 

2223 - `input_fidelity: optional "high" or "low" or null`2251 - `input_fidelity: optional "high" or "low" or null`

2224 2252 

2225 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.2253 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


2241 2269 

2242 Base64-encoded mask image.2270 Base64-encoded mask image.

2243 2271 

2244 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2272 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

2245 2273 

2246 The image generation model to use. One of `gpt-image-1-mini`,2274 The image generation model to use. One of `gpt-image-1-mini`,

2247 `gpt-image-1.5`, `gpt-image-2`,2275 `gpt-image-1.5`, `gpt-image-2`,

2248 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2276 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2249 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2277 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2250 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2278 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

2279 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

2251 `gpt-image-2`.2280 `gpt-image-2`.

2252 2281 

2253 `gpt-image-1` was shut down on October 23, 2026. Use2282 `gpt-image-1` was shut down on October 23, 2026. Use


2255 2284 

2256 - `string`2285 - `string`

2257 2286 

2258 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2287 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

2259 2288 

2260 The image generation model to use. One of `gpt-image-1-mini`,2289 The image generation model to use. One of `gpt-image-1-mini`,

2261 `gpt-image-1.5`, `gpt-image-2`,2290 `gpt-image-1.5`, `gpt-image-2`,

2262 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2291 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2263 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2292 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2264 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2293 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

2294 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

2265 `gpt-image-2`.2295 `gpt-image-2`.

2266 2296 

2267 `gpt-image-1` was shut down on October 23, 2026. Use2297 `gpt-image-1` was shut down on October 23, 2026. Use


2271 2301 

2272 - `"gpt-image-1-mini"`2302 - `"gpt-image-1-mini"`

2273 2303 

2274 - `"gpt-image-1.5"`

2275 

2276 - `"gpt-image-2"`2304 - `"gpt-image-2"`

2277 2305 

2278 - `"gpt-image-2-2026-04-21"`2306 - `"gpt-image-2-2026-04-21"`


2285 2313 

2286 - `"gpt-image-2.5-flare-2026-09-08"`2314 - `"gpt-image-2.5-flare-2026-09-08"`

2287 2315 

2316 - `"gpt-image-2.6-sunburst"`

2317 

2318 - `"gpt-image-2.6-flare"`

2319 

2320 - `"gpt-image-1.5"`

2321 

2322 - `"chatgpt-image-latest"`

2323 

2288 - `moderation: optional "auto" or "low" (default: "auto")`2324 - `moderation: optional "auto" or "low" (default: "auto")`

2289 2325 

2290 Moderation level for the generated image. Default: `auto`.2326 Moderation level for the generated image. Default: `auto`.


2299 2335 

2300 `minimum: 0`, `maximum: 100`2336 `minimum: 0`, `maximum: 100`

2301 2337 

2302 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`2338 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

2303 2339 

2304 The output format of the generated image. One of `png`, `webp`, or2340 The output format of the generated image. One of `png`, `webp`, `jpeg`,

2305 `jpeg`. Default: `png`.2341 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

2342 that supports the selected format. GIF output does not support

2343 partial image streaming (`partial_images` greater than `0`),

2344 `input_image_mask`, or custom `output_compression`.

2345 Responses lifecycle events can still be streamed for GIF output.

2306 2346 

2307 - `"png"`2347 - `"png"`

2308 2348 


2310 2350 

2311 - `"jpeg"`2351 - `"jpeg"`

2312 2352 

2353 - `"gif"`

2354 

2355 - `"svg"`

2356 

2313 - `partial_images: optional integer (default: 0)`2357 - `partial_images: optional integer (default: 0)`

2314 2358 

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


2353 2397 

2354 - `"auto"`2398 - `"auto"`

2355 2399 

2400 - `svg: optional object { model, reasoning }`

2401 

2402 SVG author model settings. Requires `output_format` to be `svg`.

2403 When SVG model selection is enabled, omitting this object uses the

2404 outer response model. Otherwise, the default SVG author is used and

2405 explicit model overrides are unavailable.

2406 

2407 - `model: optional string`

2408 

2409 `minLength: 1`

2410 

2411 - `reasoning: optional object { effort } or null`

2412 

2413 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

2414 

2415 - `effort: optional "none" or "minimal" or "low" or 4 more`

2416 

2417 Controls how much effort the model should spend on reasoning for this request.

2418 

2419 - `"none"`

2420 

2421 - `"minimal"`

2422 

2423 - `"low"`

2424 

2425 - `"medium"`

2426 

2427 - `"high"`

2428 

2429 - `"xhigh"`

2430 

2431 - `"max"`

2432 

2356 - `LocalShell object { type }`2433 - `LocalShell object { type }`

2357 2434 

2358 A tool that allows the model to execute shell commands in a local environment.2435 A tool that allows the model to execute shell commands in a local environment.


3383 3460 

3384 - `"programmatic_tool_calling"`3461 - `"programmatic_tool_calling"`

3385 3462 

3386 - `ImageGeneration object { type, action, background, 9 more }`3463 - `ImageGeneration object { type, action, background, 13 more }`

3387 3464 

3388 A tool that generates images using the GPT image models.3465 A tool that generates images using the GPT image models.

3389 3466 


3419 3496 

3420 - `"auto"`3497 - `"auto"`

3421 3498 

3499 - `complexity: optional "low" or "medium" or "high"`

3500 

3501 Computation spent planning the image, independently of rendering quality.

3502 Overrides the outer response's `reasoning.effort` for image generation.

3503 When omitted, inherits a supported outer reasoning effort or uses the

3504 image model's configured default.

3505 For SVG output, controls the reference image, not the SVG author's

3506 reasoning.

3507 

3508 - `"low"`

3509 

3510 - `"medium"`

3511 

3512 - `"high"`

3513 

3514 - `frame_count: optional integer (default: 9)`

3515 

3516 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

3517 

3518 `minimum: 2`, `maximum: 16`

3519 

3520 - `frame_duration_ms: optional integer (default: 200)`

3521 

3522 Duration of each GIF frame in milliseconds, rounded to 10 ms.

3523 Requires `output_format` to be `gif`. Default: 200.

3524 

3525 `minimum: 20`, `maximum: 2000`

3526 

3422 - `input_fidelity: optional "high" or "low" or null`3527 - `input_fidelity: optional "high" or "low" or null`

3423 3528 

3424 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.3529 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


3440 3545 

3441 Base64-encoded mask image.3546 Base64-encoded mask image.

3442 3547 

3443 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3548 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3444 3549 

3445 The image generation model to use. One of `gpt-image-1-mini`,3550 The image generation model to use. One of `gpt-image-1-mini`,

3446 `gpt-image-1.5`, `gpt-image-2`,3551 `gpt-image-1.5`, `gpt-image-2`,

3447 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3552 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3448 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3553 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3449 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3554 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3555 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3450 `gpt-image-2`.3556 `gpt-image-2`.

3451 3557 

3452 `gpt-image-1` was shut down on October 23, 2026. Use3558 `gpt-image-1` was shut down on October 23, 2026. Use


3454 3560 

3455 - `string`3561 - `string`

3456 3562 

3457 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3563 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3458 3564 

3459 The image generation model to use. One of `gpt-image-1-mini`,3565 The image generation model to use. One of `gpt-image-1-mini`,

3460 `gpt-image-1.5`, `gpt-image-2`,3566 `gpt-image-1.5`, `gpt-image-2`,

3461 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3567 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3462 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3568 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3463 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3569 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3570 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3464 `gpt-image-2`.3571 `gpt-image-2`.

3465 3572 

3466 `gpt-image-1` was shut down on October 23, 2026. Use3573 `gpt-image-1` was shut down on October 23, 2026. Use


3470 3577 

3471 - `"gpt-image-1-mini"`3578 - `"gpt-image-1-mini"`

3472 3579 

3473 - `"gpt-image-1.5"`

3474 

3475 - `"gpt-image-2"`3580 - `"gpt-image-2"`

3476 3581 

3477 - `"gpt-image-2-2026-04-21"`3582 - `"gpt-image-2-2026-04-21"`


3484 3589 

3485 - `"gpt-image-2.5-flare-2026-09-08"`3590 - `"gpt-image-2.5-flare-2026-09-08"`

3486 3591 

3592 - `"gpt-image-2.6-sunburst"`

3593 

3594 - `"gpt-image-2.6-flare"`

3595 

3596 - `"gpt-image-1.5"`

3597 

3598 - `"chatgpt-image-latest"`

3599 

3487 - `moderation: optional "auto" or "low" (default: "auto")`3600 - `moderation: optional "auto" or "low" (default: "auto")`

3488 3601 

3489 Moderation level for the generated image. Default: `auto`.3602 Moderation level for the generated image. Default: `auto`.


3498 3611 

3499 `minimum: 0`, `maximum: 100`3612 `minimum: 0`, `maximum: 100`

3500 3613 

3501 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`3614 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

3502 3615 

3503 The output format of the generated image. One of `png`, `webp`, or3616 The output format of the generated image. One of `png`, `webp`, `jpeg`,

3504 `jpeg`. Default: `png`.3617 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

3618 that supports the selected format. GIF output does not support

3619 partial image streaming (`partial_images` greater than `0`),

3620 `input_image_mask`, or custom `output_compression`.

3621 Responses lifecycle events can still be streamed for GIF output.

3505 3622 

3506 - `"png"`3623 - `"png"`

3507 3624 


3509 3626 

3510 - `"jpeg"`3627 - `"jpeg"`

3511 3628 

3629 - `"gif"`

3630 

3631 - `"svg"`

3632 

3512 - `partial_images: optional integer (default: 0)`3633 - `partial_images: optional integer (default: 0)`

3513 3634 

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


3552 3673 

3553 - `"auto"`3674 - `"auto"`

3554 3675 

3676 - `svg: optional object { model, reasoning }`

3677 

3678 SVG author model settings. Requires `output_format` to be `svg`.

3679 When SVG model selection is enabled, omitting this object uses the

3680 outer response model. Otherwise, the default SVG author is used and

3681 explicit model overrides are unavailable.

3682 

3683 - `model: optional string`

3684 

3685 `minLength: 1`

3686 

3687 - `reasoning: optional object { effort } or null`

3688 

3689 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

3690 

3691 - `effort: optional "none" or "minimal" or "low" or 4 more`

3692 

3693 Controls how much effort the model should spend on reasoning for this request.

3694 

3695 - `"none"`

3696 

3697 - `"minimal"`

3698 

3699 - `"low"`

3700 

3701 - `"medium"`

3702 

3703 - `"high"`

3704 

3705 - `"xhigh"`

3706 

3707 - `"max"`

3708 

3555 - `LocalShell object { type }`3709 - `LocalShell object { type }`

3556 3710 

3557 A tool that allows the model to execute shell commands in a local environment.3711 A tool that allows the model to execute shell commands in a local environment.


4120 4274 

4121 The canonical name of the agent that produced this item.4275 The canonical name of the agent that produced this item.

4122 4276 

4123 - `ImageGenerationCall object { id, result, status, 9 more }`4277 - `ImageGenerationCall object { id, result, status, 10 more }`

4124 4278 

4125 An image generation request made by the model.4279 An image generation request made by the model.

4126 4280 


4216 4370 

4217 - `"unknown"`4371 - `"unknown"`

4218 4372 

4219 - `output_format: optional "png" or "webp" or "jpeg" or null`4373 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

4220 4374 

4221 The output format used for generation.4375 The output format used for generation.

4222 4376 


4226 4380 

4227 - `"jpeg"`4381 - `"jpeg"`

4228 4382 

4383 - `"gif"`

4384 

4385 - `"svg"`

4386 

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

4230 4388 

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


4262 4420 

4263 - `"1536x1024"`4421 - `"1536x1024"`

4264 4422 

4423 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

4424 

4425 - `input_tokens: integer`

4426 

4427 - `model: string`

4428 

4429 - `output_tokens: integer`

4430 

4431 - `reasoning_tokens: integer`

4432 

4433 - `total_tokens: integer`

4434 

4265 - `CodeInterpreterCall object { id, code, container_id, 4 more }`4435 - `CodeInterpreterCall object { id, code, container_id, 4 more }`

4266 4436 

4267 A tool call to run code.4437 A tool call to run code.


6161 6331 

6162 - `"programmatic_tool_calling"`6332 - `"programmatic_tool_calling"`

6163 6333 

6164 - `ImageGeneration object { type, action, background, 9 more }`6334 - `ImageGeneration object { type, action, background, 13 more }`

6165 6335 

6166 A tool that generates images using the GPT image models.6336 A tool that generates images using the GPT image models.

6167 6337 


6197 6367 

6198 - `"auto"`6368 - `"auto"`

6199 6369 

6370 - `complexity: optional "low" or "medium" or "high"`

6371 

6372 Computation spent planning the image, independently of rendering quality.

6373 Overrides the outer response's `reasoning.effort` for image generation.

6374 When omitted, inherits a supported outer reasoning effort or uses the

6375 image model's configured default.

6376 For SVG output, controls the reference image, not the SVG author's

6377 reasoning.

6378 

6379 - `"low"`

6380 

6381 - `"medium"`

6382 

6383 - `"high"`

6384 

6385 - `frame_count: optional integer (default: 9)`

6386 

6387 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

6388 

6389 `minimum: 2`, `maximum: 16`

6390 

6391 - `frame_duration_ms: optional integer (default: 200)`

6392 

6393 Duration of each GIF frame in milliseconds, rounded to 10 ms.

6394 Requires `output_format` to be `gif`. Default: 200.

6395 

6396 `minimum: 20`, `maximum: 2000`

6397 

6200 - `input_fidelity: optional "high" or "low" or null`6398 - `input_fidelity: optional "high" or "low" or null`

6201 6399 

6202 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.6400 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


6218 6416 

6219 Base64-encoded mask image.6417 Base64-encoded mask image.

6220 6418 

6221 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`6419 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

6222 6420 

6223 The image generation model to use. One of `gpt-image-1-mini`,6421 The image generation model to use. One of `gpt-image-1-mini`,

6224 `gpt-image-1.5`, `gpt-image-2`,6422 `gpt-image-1.5`, `gpt-image-2`,

6225 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,6423 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6226 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,6424 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6227 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:6425 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

6426 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

6228 `gpt-image-2`.6427 `gpt-image-2`.

6229 6428 

6230 `gpt-image-1` was shut down on October 23, 2026. Use6429 `gpt-image-1` was shut down on October 23, 2026. Use


6232 6431 

6233 - `string`6432 - `string`

6234 6433 

6235 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`6434 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

6236 6435 

6237 The image generation model to use. One of `gpt-image-1-mini`,6436 The image generation model to use. One of `gpt-image-1-mini`,

6238 `gpt-image-1.5`, `gpt-image-2`,6437 `gpt-image-1.5`, `gpt-image-2`,

6239 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,6438 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6240 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,6439 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6241 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:6440 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

6441 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

6242 `gpt-image-2`.6442 `gpt-image-2`.

6243 6443 

6244 `gpt-image-1` was shut down on October 23, 2026. Use6444 `gpt-image-1` was shut down on October 23, 2026. Use


6248 6448 

6249 - `"gpt-image-1-mini"`6449 - `"gpt-image-1-mini"`

6250 6450 

6251 - `"gpt-image-1.5"`

6252 

6253 - `"gpt-image-2"`6451 - `"gpt-image-2"`

6254 6452 

6255 - `"gpt-image-2-2026-04-21"`6453 - `"gpt-image-2-2026-04-21"`


6262 6460 

6263 - `"gpt-image-2.5-flare-2026-09-08"`6461 - `"gpt-image-2.5-flare-2026-09-08"`

6264 6462 

6463 - `"gpt-image-2.6-sunburst"`

6464 

6465 - `"gpt-image-2.6-flare"`

6466 

6467 - `"gpt-image-1.5"`

6468 

6469 - `"chatgpt-image-latest"`

6470 

6265 - `moderation: optional "auto" or "low" (default: "auto")`6471 - `moderation: optional "auto" or "low" (default: "auto")`

6266 6472 

6267 Moderation level for the generated image. Default: `auto`.6473 Moderation level for the generated image. Default: `auto`.


6276 6482 

6277 `minimum: 0`, `maximum: 100`6483 `minimum: 0`, `maximum: 100`

6278 6484 

6279 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`6485 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

6280 6486 

6281 The output format of the generated image. One of `png`, `webp`, or6487 The output format of the generated image. One of `png`, `webp`, `jpeg`,

6282 `jpeg`. Default: `png`.6488 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

6489 that supports the selected format. GIF output does not support

6490 partial image streaming (`partial_images` greater than `0`),

6491 `input_image_mask`, or custom `output_compression`.

6492 Responses lifecycle events can still be streamed for GIF output.

6283 6493 

6284 - `"png"`6494 - `"png"`

6285 6495 


6287 6497 

6288 - `"jpeg"`6498 - `"jpeg"`

6289 6499 

6500 - `"gif"`

6501 

6502 - `"svg"`

6503 

6290 - `partial_images: optional integer (default: 0)`6504 - `partial_images: optional integer (default: 0)`

6291 6505 

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


6330 6544 

6331 - `"auto"`6545 - `"auto"`

6332 6546 

6547 - `svg: optional object { model, reasoning }`

6548 

6549 SVG author model settings. Requires `output_format` to be `svg`.

6550 When SVG model selection is enabled, omitting this object uses the

6551 outer response model. Otherwise, the default SVG author is used and

6552 explicit model overrides are unavailable.

6553 

6554 - `model: optional string`

6555 

6556 `minLength: 1`

6557 

6558 - `reasoning: optional object { effort } or null`

6559 

6560 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

6561 

6562 - `effort: optional "none" or "minimal" or "low" or 4 more`

6563 

6564 Controls how much effort the model should spend on reasoning for this request.

6565 

6566 - `"none"`

6567 

6568 - `"minimal"`

6569 

6570 - `"low"`

6571 

6572 - `"medium"`

6573 

6574 - `"high"`

6575 

6576 - `"xhigh"`

6577 

6578 - `"max"`

6579 

6333 - `LocalShell object { type }`6580 - `LocalShell object { type }`

6334 6581 

6335 A tool that allows the model to execute shell commands in a local environment.6582 A tool that allows the model to execute shell commands in a local environment.

Details

14 14 

15- `file: string`15- `file: string`

16 16 

17 The image or audio file to check for supported OpenAI provenance signals.17 The image or audio file to check for supported OpenAI provenance signals. Supported image formats are PNG, JPEG, WebP, and GIF (including animated GIFs).

18 18 

19### Returns19### Returns

20 20 

Details

1847 1847 

1848 - `"programmatic_tool_calling"`1848 - `"programmatic_tool_calling"`

1849 1849 

1850 - `ImageGeneration object { type, action, background, 9 more }`1850 - `ImageGeneration object { type, action, background, 13 more }`

1851 1851 

1852 A tool that generates images using the GPT image models.1852 A tool that generates images using the GPT image models.

1853 1853 


1883 1883 

1884 - `"auto"`1884 - `"auto"`

1885 1885 

1886 - `complexity: optional "low" or "medium" or "high"`

1887 

1888 Computation spent planning the image, independently of rendering quality.

1889 Overrides the outer response's `reasoning.effort` for image generation.

1890 When omitted, inherits a supported outer reasoning effort or uses the

1891 image model's configured default.

1892 For SVG output, controls the reference image, not the SVG author's

1893 reasoning.

1894 

1895 - `"low"`

1896 

1897 - `"medium"`

1898 

1899 - `"high"`

1900 

1901 - `frame_count: optional integer (default: 9)`

1902 

1903 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

1904 

1905 `minimum: 2`, `maximum: 16`

1906 

1907 - `frame_duration_ms: optional integer (default: 200)`

1908 

1909 Duration of each GIF frame in milliseconds, rounded to 10 ms.

1910 Requires `output_format` to be `gif`. Default: 200.

1911 

1912 `minimum: 20`, `maximum: 2000`

1913 

1886 - `input_fidelity: optional "high" or "low" or null`1914 - `input_fidelity: optional "high" or "low" or null`

1887 1915 

1888 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.1916 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


1904 1932 

1905 Base64-encoded mask image.1933 Base64-encoded mask image.

1906 1934 

1907 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`1935 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

1908 1936 

1909 The image generation model to use. One of `gpt-image-1-mini`,1937 The image generation model to use. One of `gpt-image-1-mini`,

1910 `gpt-image-1.5`, `gpt-image-2`,1938 `gpt-image-1.5`, `gpt-image-2`,

1911 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,1939 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1912 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,1940 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1913 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:1941 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

1942 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

1914 `gpt-image-2`.1943 `gpt-image-2`.

1915 1944 

1916 `gpt-image-1` was shut down on October 23, 2026. Use1945 `gpt-image-1` was shut down on October 23, 2026. Use


1918 1947 

1919 - `string`1948 - `string`

1920 1949 

1921 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`1950 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

1922 1951 

1923 The image generation model to use. One of `gpt-image-1-mini`,1952 The image generation model to use. One of `gpt-image-1-mini`,

1924 `gpt-image-1.5`, `gpt-image-2`,1953 `gpt-image-1.5`, `gpt-image-2`,

1925 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,1954 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1926 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,1955 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1927 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:1956 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

1957 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

1928 `gpt-image-2`.1958 `gpt-image-2`.

1929 1959 

1930 `gpt-image-1` was shut down on October 23, 2026. Use1960 `gpt-image-1` was shut down on October 23, 2026. Use


1934 1964 

1935 - `"gpt-image-1-mini"`1965 - `"gpt-image-1-mini"`

1936 1966 

1937 - `"gpt-image-1.5"`

1938 

1939 - `"gpt-image-2"`1967 - `"gpt-image-2"`

1940 1968 

1941 - `"gpt-image-2-2026-04-21"`1969 - `"gpt-image-2-2026-04-21"`


1948 1976 

1949 - `"gpt-image-2.5-flare-2026-09-08"`1977 - `"gpt-image-2.5-flare-2026-09-08"`

1950 1978 

1979 - `"gpt-image-2.6-sunburst"`

1980 

1981 - `"gpt-image-2.6-flare"`

1982 

1983 - `"gpt-image-1.5"`

1984 

1985 - `"chatgpt-image-latest"`

1986 

1951 - `moderation: optional "auto" or "low" (default: "auto")`1987 - `moderation: optional "auto" or "low" (default: "auto")`

1952 1988 

1953 Moderation level for the generated image. Default: `auto`.1989 Moderation level for the generated image. Default: `auto`.


1962 1998 

1963 `minimum: 0`, `maximum: 100`1999 `minimum: 0`, `maximum: 100`

1964 2000 

1965 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`2001 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

1966 2002 

1967 The output format of the generated image. One of `png`, `webp`, or2003 The output format of the generated image. One of `png`, `webp`, `jpeg`,

1968 `jpeg`. Default: `png`.2004 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

2005 that supports the selected format. GIF output does not support

2006 partial image streaming (`partial_images` greater than `0`),

2007 `input_image_mask`, or custom `output_compression`.

2008 Responses lifecycle events can still be streamed for GIF output.

1969 2009 

1970 - `"png"`2010 - `"png"`

1971 2011 


1973 2013 

1974 - `"jpeg"`2014 - `"jpeg"`

1975 2015 

2016 - `"gif"`

2017 

2018 - `"svg"`

2019 

1976 - `partial_images: optional integer (default: 0)`2020 - `partial_images: optional integer (default: 0)`

1977 2021 

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


2016 2060 

2017 - `"auto"`2061 - `"auto"`

2018 2062 

2063 - `svg: optional object { model, reasoning }`

2064 

2065 SVG author model settings. Requires `output_format` to be `svg`.

2066 When SVG model selection is enabled, omitting this object uses the

2067 outer response model. Otherwise, the default SVG author is used and

2068 explicit model overrides are unavailable.

2069 

2070 - `model: optional string`

2071 

2072 `minLength: 1`

2073 

2074 - `reasoning: optional object { effort } or null`

2075 

2076 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

2077 

2078 - `effort: optional "none" or "minimal" or "low" or 4 more`

2079 

2080 Controls how much effort the model should spend on reasoning for this request.

2081 

2082 - `"none"`

2083 

2084 - `"minimal"`

2085 

2086 - `"low"`

2087 

2088 - `"medium"`

2089 

2090 - `"high"`

2091 

2092 - `"xhigh"`

2093 

2094 - `"max"`

2095 

2019 - `LocalShell object { type }`2096 - `LocalShell object { type }`

2020 2097 

2021 A tool that allows the model to execute shell commands in a local environment.2098 A tool that allows the model to execute shell commands in a local environment.


2957 3034 

2958 - `"programmatic_tool_calling"`3035 - `"programmatic_tool_calling"`

2959 3036 

2960 - `ImageGeneration object { type, action, background, 9 more }`3037 - `ImageGeneration object { type, action, background, 13 more }`

2961 3038 

2962 A tool that generates images using the GPT image models.3039 A tool that generates images using the GPT image models.

2963 3040 


2993 3070 

2994 - `"auto"`3071 - `"auto"`

2995 3072 

3073 - `complexity: optional "low" or "medium" or "high"`

3074 

3075 Computation spent planning the image, independently of rendering quality.

3076 Overrides the outer response's `reasoning.effort` for image generation.

3077 When omitted, inherits a supported outer reasoning effort or uses the

3078 image model's configured default.

3079 For SVG output, controls the reference image, not the SVG author's

3080 reasoning.

3081 

3082 - `"low"`

3083 

3084 - `"medium"`

3085 

3086 - `"high"`

3087 

3088 - `frame_count: optional integer (default: 9)`

3089 

3090 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

3091 

3092 `minimum: 2`, `maximum: 16`

3093 

3094 - `frame_duration_ms: optional integer (default: 200)`

3095 

3096 Duration of each GIF frame in milliseconds, rounded to 10 ms.

3097 Requires `output_format` to be `gif`. Default: 200.

3098 

3099 `minimum: 20`, `maximum: 2000`

3100 

2996 - `input_fidelity: optional "high" or "low" or null`3101 - `input_fidelity: optional "high" or "low" or null`

2997 3102 

2998 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.3103 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


3014 3119 

3015 Base64-encoded mask image.3120 Base64-encoded mask image.

3016 3121 

3017 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3122 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3018 3123 

3019 The image generation model to use. One of `gpt-image-1-mini`,3124 The image generation model to use. One of `gpt-image-1-mini`,

3020 `gpt-image-1.5`, `gpt-image-2`,3125 `gpt-image-1.5`, `gpt-image-2`,

3021 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3126 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3022 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3127 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3023 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3128 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3129 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3024 `gpt-image-2`.3130 `gpt-image-2`.

3025 3131 

3026 `gpt-image-1` was shut down on October 23, 2026. Use3132 `gpt-image-1` was shut down on October 23, 2026. Use


3028 3134 

3029 - `string`3135 - `string`

3030 3136 

3031 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3137 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3032 3138 

3033 The image generation model to use. One of `gpt-image-1-mini`,3139 The image generation model to use. One of `gpt-image-1-mini`,

3034 `gpt-image-1.5`, `gpt-image-2`,3140 `gpt-image-1.5`, `gpt-image-2`,

3035 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3141 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3036 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3142 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3037 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3143 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3144 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3038 `gpt-image-2`.3145 `gpt-image-2`.

3039 3146 

3040 `gpt-image-1` was shut down on October 23, 2026. Use3147 `gpt-image-1` was shut down on October 23, 2026. Use


3044 3151 

3045 - `"gpt-image-1-mini"`3152 - `"gpt-image-1-mini"`

3046 3153 

3047 - `"gpt-image-1.5"`

3048 

3049 - `"gpt-image-2"`3154 - `"gpt-image-2"`

3050 3155 

3051 - `"gpt-image-2-2026-04-21"`3156 - `"gpt-image-2-2026-04-21"`


3058 3163 

3059 - `"gpt-image-2.5-flare-2026-09-08"`3164 - `"gpt-image-2.5-flare-2026-09-08"`

3060 3165 

3166 - `"gpt-image-2.6-sunburst"`

3167 

3168 - `"gpt-image-2.6-flare"`

3169 

3170 - `"gpt-image-1.5"`

3171 

3172 - `"chatgpt-image-latest"`

3173 

3061 - `moderation: optional "auto" or "low" (default: "auto")`3174 - `moderation: optional "auto" or "low" (default: "auto")`

3062 3175 

3063 Moderation level for the generated image. Default: `auto`.3176 Moderation level for the generated image. Default: `auto`.


3072 3185 

3073 `minimum: 0`, `maximum: 100`3186 `minimum: 0`, `maximum: 100`

3074 3187 

3075 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`3188 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

3076 3189 

3077 The output format of the generated image. One of `png`, `webp`, or3190 The output format of the generated image. One of `png`, `webp`, `jpeg`,

3078 `jpeg`. Default: `png`.3191 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

3192 that supports the selected format. GIF output does not support

3193 partial image streaming (`partial_images` greater than `0`),

3194 `input_image_mask`, or custom `output_compression`.

3195 Responses lifecycle events can still be streamed for GIF output.

3079 3196 

3080 - `"png"`3197 - `"png"`

3081 3198 


3083 3200 

3084 - `"jpeg"`3201 - `"jpeg"`

3085 3202 

3203 - `"gif"`

3204 

3205 - `"svg"`

3206 

3086 - `partial_images: optional integer (default: 0)`3207 - `partial_images: optional integer (default: 0)`

3087 3208 

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


3126 3247 

3127 - `"auto"`3248 - `"auto"`

3128 3249 

3250 - `svg: optional object { model, reasoning }`

3251 

3252 SVG author model settings. Requires `output_format` to be `svg`.

3253 When SVG model selection is enabled, omitting this object uses the

3254 outer response model. Otherwise, the default SVG author is used and

3255 explicit model overrides are unavailable.

3256 

3257 - `model: optional string`

3258 

3259 `minLength: 1`

3260 

3261 - `reasoning: optional object { effort } or null`

3262 

3263 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

3264 

3265 - `effort: optional "none" or "minimal" or "low" or 4 more`

3266 

3267 Controls how much effort the model should spend on reasoning for this request.

3268 

3269 - `"none"`

3270 

3271 - `"minimal"`

3272 

3273 - `"low"`

3274 

3275 - `"medium"`

3276 

3277 - `"high"`

3278 

3279 - `"xhigh"`

3280 

3281 - `"max"`

3282 

3129 - `LocalShell object { type }`3283 - `LocalShell object { type }`

3130 3284 

3131 A tool that allows the model to execute shell commands in a local environment.3285 A tool that allows the model to execute shell commands in a local environment.


3598 3752 

3599 The ID of the compaction item.3753 The ID of the compaction item.

3600 3754 

3601 - `ImageGenerationCall object { id, result, status, 8 more }`3755 - `ImageGenerationCall object { id, result, status, 9 more }`

3602 3756 

3603 An image generation request made by the model.3757 An image generation request made by the model.

3604 3758 


3686 3840 

3687 - `"unknown"`3841 - `"unknown"`

3688 3842 

3689 - `output_format: optional "png" or "webp" or "jpeg" or null`3843 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

3690 3844 

3691 The output format used for generation.3845 The output format used for generation.

3692 3846 


3696 3850 

3697 - `"jpeg"`3851 - `"jpeg"`

3698 3852 

3853 - `"gif"`

3854 

3855 - `"svg"`

3856 

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

3700 3858 

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


3732 3890 

3733 - `"1536x1024"`3891 - `"1536x1024"`

3734 3892 

3893 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

3894 

3895 - `input_tokens: integer`

3896 

3897 - `model: string`

3898 

3899 - `output_tokens: integer`

3900 

3901 - `reasoning_tokens: integer`

3902 

3903 - `total_tokens: integer`

3904 

3735 - `CodeInterpreterCall object { id, code, container_id, 3 more }`3905 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

3736 3906 

3737 A tool call to run code.3907 A tool call to run code.

Details

1876 1876 

1877 - `"programmatic_tool_calling"`1877 - `"programmatic_tool_calling"`

1878 1878 

1879 - `ImageGeneration object { type, action, background, 9 more }`1879 - `ImageGeneration object { type, action, background, 13 more }`

1880 1880 

1881 A tool that generates images using the GPT image models.1881 A tool that generates images using the GPT image models.

1882 1882 


1912 1912 

1913 - `"auto"`1913 - `"auto"`

1914 1914 

1915 - `complexity: optional "low" or "medium" or "high"`

1916 

1917 Computation spent planning the image, independently of rendering quality.

1918 Overrides the outer response's `reasoning.effort` for image generation.

1919 When omitted, inherits a supported outer reasoning effort or uses the

1920 image model's configured default.

1921 For SVG output, controls the reference image, not the SVG author's

1922 reasoning.

1923 

1924 - `"low"`

1925 

1926 - `"medium"`

1927 

1928 - `"high"`

1929 

1930 - `frame_count: optional integer (default: 9)`

1931 

1932 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

1933 

1934 `minimum: 2`, `maximum: 16`

1935 

1936 - `frame_duration_ms: optional integer (default: 200)`

1937 

1938 Duration of each GIF frame in milliseconds, rounded to 10 ms.

1939 Requires `output_format` to be `gif`. Default: 200.

1940 

1941 `minimum: 20`, `maximum: 2000`

1942 

1915 - `input_fidelity: optional "high" or "low" or null`1943 - `input_fidelity: optional "high" or "low" or null`

1916 1944 

1917 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.1945 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


1933 1961 

1934 Base64-encoded mask image.1962 Base64-encoded mask image.

1935 1963 

1936 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`1964 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

1937 1965 

1938 The image generation model to use. One of `gpt-image-1-mini`,1966 The image generation model to use. One of `gpt-image-1-mini`,

1939 `gpt-image-1.5`, `gpt-image-2`,1967 `gpt-image-1.5`, `gpt-image-2`,

1940 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,1968 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1941 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,1969 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1942 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:1970 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

1971 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

1943 `gpt-image-2`.1972 `gpt-image-2`.

1944 1973 

1945 `gpt-image-1` was shut down on October 23, 2026. Use1974 `gpt-image-1` was shut down on October 23, 2026. Use


1947 1976 

1948 - `string`1977 - `string`

1949 1978 

1950 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`1979 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

1951 1980 

1952 The image generation model to use. One of `gpt-image-1-mini`,1981 The image generation model to use. One of `gpt-image-1-mini`,

1953 `gpt-image-1.5`, `gpt-image-2`,1982 `gpt-image-1.5`, `gpt-image-2`,

1954 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,1983 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1955 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,1984 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1956 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:1985 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

1986 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

1957 `gpt-image-2`.1987 `gpt-image-2`.

1958 1988 

1959 `gpt-image-1` was shut down on October 23, 2026. Use1989 `gpt-image-1` was shut down on October 23, 2026. Use


1963 1993 

1964 - `"gpt-image-1-mini"`1994 - `"gpt-image-1-mini"`

1965 1995 

1966 - `"gpt-image-1.5"`

1967 

1968 - `"gpt-image-2"`1996 - `"gpt-image-2"`

1969 1997 

1970 - `"gpt-image-2-2026-04-21"`1998 - `"gpt-image-2-2026-04-21"`


1977 2005 

1978 - `"gpt-image-2.5-flare-2026-09-08"`2006 - `"gpt-image-2.5-flare-2026-09-08"`

1979 2007 

2008 - `"gpt-image-2.6-sunburst"`

2009 

2010 - `"gpt-image-2.6-flare"`

2011 

2012 - `"gpt-image-1.5"`

2013 

2014 - `"chatgpt-image-latest"`

2015 

1980 - `moderation: optional "auto" or "low" (default: "auto")`2016 - `moderation: optional "auto" or "low" (default: "auto")`

1981 2017 

1982 Moderation level for the generated image. Default: `auto`.2018 Moderation level for the generated image. Default: `auto`.


1991 2027 

1992 `minimum: 0`, `maximum: 100`2028 `minimum: 0`, `maximum: 100`

1993 2029 

1994 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`2030 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

1995 2031 

1996 The output format of the generated image. One of `png`, `webp`, or2032 The output format of the generated image. One of `png`, `webp`, `jpeg`,

1997 `jpeg`. Default: `png`.2033 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

2034 that supports the selected format. GIF output does not support

2035 partial image streaming (`partial_images` greater than `0`),

2036 `input_image_mask`, or custom `output_compression`.

2037 Responses lifecycle events can still be streamed for GIF output.

1998 2038 

1999 - `"png"`2039 - `"png"`

2000 2040 


2002 2042 

2003 - `"jpeg"`2043 - `"jpeg"`

2004 2044 

2045 - `"gif"`

2046 

2047 - `"svg"`

2048 

2005 - `partial_images: optional integer (default: 0)`2049 - `partial_images: optional integer (default: 0)`

2006 2050 

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


2045 2089 

2046 - `"auto"`2090 - `"auto"`

2047 2091 

2092 - `svg: optional object { model, reasoning }`

2093 

2094 SVG author model settings. Requires `output_format` to be `svg`.

2095 When SVG model selection is enabled, omitting this object uses the

2096 outer response model. Otherwise, the default SVG author is used and

2097 explicit model overrides are unavailable.

2098 

2099 - `model: optional string`

2100 

2101 `minLength: 1`

2102 

2103 - `reasoning: optional object { effort } or null`

2104 

2105 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

2106 

2107 - `effort: optional "none" or "minimal" or "low" or 4 more`

2108 

2109 Controls how much effort the model should spend on reasoning for this request.

2110 

2111 - `"none"`

2112 

2113 - `"minimal"`

2114 

2115 - `"low"`

2116 

2117 - `"medium"`

2118 

2119 - `"high"`

2120 

2121 - `"xhigh"`

2122 

2123 - `"max"`

2124 

2048 - `LocalShell object { type }`2125 - `LocalShell object { type }`

2049 2126 

2050 A tool that allows the model to execute shell commands in a local environment.2127 A tool that allows the model to execute shell commands in a local environment.


2986 3063 

2987 - `"programmatic_tool_calling"`3064 - `"programmatic_tool_calling"`

2988 3065 

2989 - `ImageGeneration object { type, action, background, 9 more }`3066 - `ImageGeneration object { type, action, background, 13 more }`

2990 3067 

2991 A tool that generates images using the GPT image models.3068 A tool that generates images using the GPT image models.

2992 3069 


3022 3099 

3023 - `"auto"`3100 - `"auto"`

3024 3101 

3102 - `complexity: optional "low" or "medium" or "high"`

3103 

3104 Computation spent planning the image, independently of rendering quality.

3105 Overrides the outer response's `reasoning.effort` for image generation.

3106 When omitted, inherits a supported outer reasoning effort or uses the

3107 image model's configured default.

3108 For SVG output, controls the reference image, not the SVG author's

3109 reasoning.

3110 

3111 - `"low"`

3112 

3113 - `"medium"`

3114 

3115 - `"high"`

3116 

3117 - `frame_count: optional integer (default: 9)`

3118 

3119 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

3120 

3121 `minimum: 2`, `maximum: 16`

3122 

3123 - `frame_duration_ms: optional integer (default: 200)`

3124 

3125 Duration of each GIF frame in milliseconds, rounded to 10 ms.

3126 Requires `output_format` to be `gif`. Default: 200.

3127 

3128 `minimum: 20`, `maximum: 2000`

3129 

3025 - `input_fidelity: optional "high" or "low" or null`3130 - `input_fidelity: optional "high" or "low" or null`

3026 3131 

3027 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.3132 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


3043 3148 

3044 Base64-encoded mask image.3149 Base64-encoded mask image.

3045 3150 

3046 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3151 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3047 3152 

3048 The image generation model to use. One of `gpt-image-1-mini`,3153 The image generation model to use. One of `gpt-image-1-mini`,

3049 `gpt-image-1.5`, `gpt-image-2`,3154 `gpt-image-1.5`, `gpt-image-2`,

3050 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3155 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3051 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3156 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3052 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3157 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3158 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3053 `gpt-image-2`.3159 `gpt-image-2`.

3054 3160 

3055 `gpt-image-1` was shut down on October 23, 2026. Use3161 `gpt-image-1` was shut down on October 23, 2026. Use


3057 3163 

3058 - `string`3164 - `string`

3059 3165 

3060 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3166 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3061 3167 

3062 The image generation model to use. One of `gpt-image-1-mini`,3168 The image generation model to use. One of `gpt-image-1-mini`,

3063 `gpt-image-1.5`, `gpt-image-2`,3169 `gpt-image-1.5`, `gpt-image-2`,

3064 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3170 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3065 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3171 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3066 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3172 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3173 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3067 `gpt-image-2`.3174 `gpt-image-2`.

3068 3175 

3069 `gpt-image-1` was shut down on October 23, 2026. Use3176 `gpt-image-1` was shut down on October 23, 2026. Use


3073 3180 

3074 - `"gpt-image-1-mini"`3181 - `"gpt-image-1-mini"`

3075 3182 

3076 - `"gpt-image-1.5"`

3077 

3078 - `"gpt-image-2"`3183 - `"gpt-image-2"`

3079 3184 

3080 - `"gpt-image-2-2026-04-21"`3185 - `"gpt-image-2-2026-04-21"`


3087 3192 

3088 - `"gpt-image-2.5-flare-2026-09-08"`3193 - `"gpt-image-2.5-flare-2026-09-08"`

3089 3194 

3195 - `"gpt-image-2.6-sunburst"`

3196 

3197 - `"gpt-image-2.6-flare"`

3198 

3199 - `"gpt-image-1.5"`

3200 

3201 - `"chatgpt-image-latest"`

3202 

3090 - `moderation: optional "auto" or "low" (default: "auto")`3203 - `moderation: optional "auto" or "low" (default: "auto")`

3091 3204 

3092 Moderation level for the generated image. Default: `auto`.3205 Moderation level for the generated image. Default: `auto`.


3101 3214 

3102 `minimum: 0`, `maximum: 100`3215 `minimum: 0`, `maximum: 100`

3103 3216 

3104 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`3217 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

3105 3218 

3106 The output format of the generated image. One of `png`, `webp`, or3219 The output format of the generated image. One of `png`, `webp`, `jpeg`,

3107 `jpeg`. Default: `png`.3220 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

3221 that supports the selected format. GIF output does not support

3222 partial image streaming (`partial_images` greater than `0`),

3223 `input_image_mask`, or custom `output_compression`.

3224 Responses lifecycle events can still be streamed for GIF output.

3108 3225 

3109 - `"png"`3226 - `"png"`

3110 3227 


3112 3229 

3113 - `"jpeg"`3230 - `"jpeg"`

3114 3231 

3232 - `"gif"`

3233 

3234 - `"svg"`

3235 

3115 - `partial_images: optional integer (default: 0)`3236 - `partial_images: optional integer (default: 0)`

3116 3237 

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


3155 3276 

3156 - `"auto"`3277 - `"auto"`

3157 3278 

3279 - `svg: optional object { model, reasoning }`

3280 

3281 SVG author model settings. Requires `output_format` to be `svg`.

3282 When SVG model selection is enabled, omitting this object uses the

3283 outer response model. Otherwise, the default SVG author is used and

3284 explicit model overrides are unavailable.

3285 

3286 - `model: optional string`

3287 

3288 `minLength: 1`

3289 

3290 - `reasoning: optional object { effort } or null`

3291 

3292 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

3293 

3294 - `effort: optional "none" or "minimal" or "low" or 4 more`

3295 

3296 Controls how much effort the model should spend on reasoning for this request.

3297 

3298 - `"none"`

3299 

3300 - `"minimal"`

3301 

3302 - `"low"`

3303 

3304 - `"medium"`

3305 

3306 - `"high"`

3307 

3308 - `"xhigh"`

3309 

3310 - `"max"`

3311 

3158 - `LocalShell object { type }`3312 - `LocalShell object { type }`

3159 3313 

3160 A tool that allows the model to execute shell commands in a local environment.3314 A tool that allows the model to execute shell commands in a local environment.


3627 3781 

3628 The ID of the compaction item.3782 The ID of the compaction item.

3629 3783 

3630 - `ImageGenerationCall object { id, result, status, 8 more }`3784 - `ImageGenerationCall object { id, result, status, 9 more }`

3631 3785 

3632 An image generation request made by the model.3786 An image generation request made by the model.

3633 3787 


3715 3869 

3716 - `"unknown"`3870 - `"unknown"`

3717 3871 

3718 - `output_format: optional "png" or "webp" or "jpeg" or null`3872 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

3719 3873 

3720 The output format used for generation.3874 The output format used for generation.

3721 3875 


3725 3879 

3726 - `"jpeg"`3880 - `"jpeg"`

3727 3881 

3882 - `"gif"`

3883 

3884 - `"svg"`

3885 

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

3729 3887 

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


3761 3919 

3762 - `"1536x1024"`3920 - `"1536x1024"`

3763 3921 

3922 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

3923 

3924 - `input_tokens: integer`

3925 

3926 - `model: string`

3927 

3928 - `output_tokens: integer`

3929 

3930 - `reasoning_tokens: integer`

3931 

3932 - `total_tokens: integer`

3933 

3764 - `CodeInterpreterCall object { id, code, container_id, 3 more }`3934 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

3765 3935 

3766 A tool call to run code.3936 A tool call to run code.


5431 5601 

5432 `format: uri`5602 `format: uri`

5433 5603 

5434 - `ImageGenerationCall object { id, result, status, 8 more }`5604 - `ImageGenerationCall object { id, result, status, 9 more }`

5435 5605 

5436 An image generation request made by the model.5606 An image generation request made by the model.

5437 5607 


5519 5689 

5520 - `"unknown"`5690 - `"unknown"`

5521 5691 

5522 - `output_format: optional "png" or "webp" or "jpeg" or null`5692 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

5523 5693 

5524 The output format used for generation.5694 The output format used for generation.

5525 5695 


5529 5699 

5530 - `"jpeg"`5700 - `"jpeg"`

5531 5701 

5702 - `"gif"`

5703 

5704 - `"svg"`

5705 

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

5533 5707 

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


5565 5739 

5566 - `"1536x1024"`5740 - `"1536x1024"`

5567 5741 

5742 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

5743 

5744 - `input_tokens: integer`

5745 

5746 - `model: string`

5747 

5748 - `output_tokens: integer`

5749 

5750 - `reasoning_tokens: integer`

5751 

5752 - `total_tokens: integer`

5753 

5568 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`5754 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`

5569 5755 

5570 A tool call to a computer use tool. See the5756 A tool call to a computer use tool. See the


6552 6738 

6553 - `"programmatic_tool_calling"`6739 - `"programmatic_tool_calling"`

6554 6740 

6555 - `ImageGeneration object { type, action, background, 9 more }`6741 - `ImageGeneration object { type, action, background, 13 more }`

6556 6742 

6557 A tool that generates images using the GPT image models.6743 A tool that generates images using the GPT image models.

6558 6744 


6588 6774 

6589 - `"auto"`6775 - `"auto"`

6590 6776 

6777 - `complexity: optional "low" or "medium" or "high"`

6778 

6779 Computation spent planning the image, independently of rendering quality.

6780 Overrides the outer response's `reasoning.effort` for image generation.

6781 When omitted, inherits a supported outer reasoning effort or uses the

6782 image model's configured default.

6783 For SVG output, controls the reference image, not the SVG author's

6784 reasoning.

6785 

6786 - `"low"`

6787 

6788 - `"medium"`

6789 

6790 - `"high"`

6791 

6792 - `frame_count: optional integer (default: 9)`

6793 

6794 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

6795 

6796 `minimum: 2`, `maximum: 16`

6797 

6798 - `frame_duration_ms: optional integer (default: 200)`

6799 

6800 Duration of each GIF frame in milliseconds, rounded to 10 ms.

6801 Requires `output_format` to be `gif`. Default: 200.

6802 

6803 `minimum: 20`, `maximum: 2000`

6804 

6591 - `input_fidelity: optional "high" or "low" or null`6805 - `input_fidelity: optional "high" or "low" or null`

6592 6806 

6593 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.6807 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


6609 6823 

6610 Base64-encoded mask image.6824 Base64-encoded mask image.

6611 6825 

6612 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`6826 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

6613 6827 

6614 The image generation model to use. One of `gpt-image-1-mini`,6828 The image generation model to use. One of `gpt-image-1-mini`,

6615 `gpt-image-1.5`, `gpt-image-2`,6829 `gpt-image-1.5`, `gpt-image-2`,

6616 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,6830 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6617 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,6831 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6618 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:6832 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

6833 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

6619 `gpt-image-2`.6834 `gpt-image-2`.

6620 6835 

6621 `gpt-image-1` was shut down on October 23, 2026. Use6836 `gpt-image-1` was shut down on October 23, 2026. Use


6623 6838 

6624 - `string`6839 - `string`

6625 6840 

6626 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`6841 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

6627 6842 

6628 The image generation model to use. One of `gpt-image-1-mini`,6843 The image generation model to use. One of `gpt-image-1-mini`,

6629 `gpt-image-1.5`, `gpt-image-2`,6844 `gpt-image-1.5`, `gpt-image-2`,

6630 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,6845 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6631 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,6846 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6632 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:6847 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

6848 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

6633 `gpt-image-2`.6849 `gpt-image-2`.

6634 6850 

6635 `gpt-image-1` was shut down on October 23, 2026. Use6851 `gpt-image-1` was shut down on October 23, 2026. Use


6639 6855 

6640 - `"gpt-image-1-mini"`6856 - `"gpt-image-1-mini"`

6641 6857 

6642 - `"gpt-image-1.5"`

6643 

6644 - `"gpt-image-2"`6858 - `"gpt-image-2"`

6645 6859 

6646 - `"gpt-image-2-2026-04-21"`6860 - `"gpt-image-2-2026-04-21"`


6653 6867 

6654 - `"gpt-image-2.5-flare-2026-09-08"`6868 - `"gpt-image-2.5-flare-2026-09-08"`

6655 6869 

6870 - `"gpt-image-2.6-sunburst"`

6871 

6872 - `"gpt-image-2.6-flare"`

6873 

6874 - `"gpt-image-1.5"`

6875 

6876 - `"chatgpt-image-latest"`

6877 

6656 - `moderation: optional "auto" or "low" (default: "auto")`6878 - `moderation: optional "auto" or "low" (default: "auto")`

6657 6879 

6658 Moderation level for the generated image. Default: `auto`.6880 Moderation level for the generated image. Default: `auto`.


6667 6889 

6668 `minimum: 0`, `maximum: 100`6890 `minimum: 0`, `maximum: 100`

6669 6891 

6670 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`6892 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

6671 6893 

6672 The output format of the generated image. One of `png`, `webp`, or6894 The output format of the generated image. One of `png`, `webp`, `jpeg`,

6673 `jpeg`. Default: `png`.6895 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

6896 that supports the selected format. GIF output does not support

6897 partial image streaming (`partial_images` greater than `0`),

6898 `input_image_mask`, or custom `output_compression`.

6899 Responses lifecycle events can still be streamed for GIF output.

6674 6900 

6675 - `"png"`6901 - `"png"`

6676 6902 


6678 6904 

6679 - `"jpeg"`6905 - `"jpeg"`

6680 6906 

6907 - `"gif"`

6908 

6909 - `"svg"`

6910 

6681 - `partial_images: optional integer (default: 0)`6911 - `partial_images: optional integer (default: 0)`

6682 6912 

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


6721 6951 

6722 - `"auto"`6952 - `"auto"`

6723 6953 

6954 - `svg: optional object { model, reasoning }`

6955 

6956 SVG author model settings. Requires `output_format` to be `svg`.

6957 When SVG model selection is enabled, omitting this object uses the

6958 outer response model. Otherwise, the default SVG author is used and

6959 explicit model overrides are unavailable.

6960 

6961 - `model: optional string`

6962 

6963 `minLength: 1`

6964 

6965 - `reasoning: optional object { effort } or null`

6966 

6967 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

6968 

6969 - `effort: optional "none" or "minimal" or "low" or 4 more`

6970 

6971 Controls how much effort the model should spend on reasoning for this request.

6972 

6973 - `"none"`

6974 

6975 - `"minimal"`

6976 

6977 - `"low"`

6978 

6979 - `"medium"`

6980 

6981 - `"high"`

6982 

6983 - `"xhigh"`

6984 

6985 - `"max"`

6986 

6724 - `LocalShell object { type }`6987 - `LocalShell object { type }`

6725 6988 

6726 A tool that allows the model to execute shell commands in a local environment.6989 A tool that allows the model to execute shell commands in a local environment.


7654 7917 

7655 - `"programmatic_tool_calling"`7918 - `"programmatic_tool_calling"`

7656 7919 

7657 - `ImageGeneration object { type, action, background, 9 more }`7920 - `ImageGeneration object { type, action, background, 13 more }`

7658 7921 

7659 A tool that generates images using the GPT image models.7922 A tool that generates images using the GPT image models.

7660 7923 


7690 7953 

7691 - `"auto"`7954 - `"auto"`

7692 7955 

7956 - `complexity: optional "low" or "medium" or "high"`

7957 

7958 Computation spent planning the image, independently of rendering quality.

7959 Overrides the outer response's `reasoning.effort` for image generation.

7960 When omitted, inherits a supported outer reasoning effort or uses the

7961 image model's configured default.

7962 For SVG output, controls the reference image, not the SVG author's

7963 reasoning.

7964 

7965 - `"low"`

7966 

7967 - `"medium"`

7968 

7969 - `"high"`

7970 

7971 - `frame_count: optional integer (default: 9)`

7972 

7973 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

7974 

7975 `minimum: 2`, `maximum: 16`

7976 

7977 - `frame_duration_ms: optional integer (default: 200)`

7978 

7979 Duration of each GIF frame in milliseconds, rounded to 10 ms.

7980 Requires `output_format` to be `gif`. Default: 200.

7981 

7982 `minimum: 20`, `maximum: 2000`

7983 

7693 - `input_fidelity: optional "high" or "low" or null`7984 - `input_fidelity: optional "high" or "low" or null`

7694 7985 

7695 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.7986 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


7711 8002 

7712 Base64-encoded mask image.8003 Base64-encoded mask image.

7713 8004 

7714 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`8005 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

7715 8006 

7716 The image generation model to use. One of `gpt-image-1-mini`,8007 The image generation model to use. One of `gpt-image-1-mini`,

7717 `gpt-image-1.5`, `gpt-image-2`,8008 `gpt-image-1.5`, `gpt-image-2`,

7718 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,8009 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

7719 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,8010 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

7720 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:8011 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

8012 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

7721 `gpt-image-2`.8013 `gpt-image-2`.

7722 8014 

7723 `gpt-image-1` was shut down on October 23, 2026. Use8015 `gpt-image-1` was shut down on October 23, 2026. Use


7725 8017 

7726 - `string`8018 - `string`

7727 8019 

7728 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`8020 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

7729 8021 

7730 The image generation model to use. One of `gpt-image-1-mini`,8022 The image generation model to use. One of `gpt-image-1-mini`,

7731 `gpt-image-1.5`, `gpt-image-2`,8023 `gpt-image-1.5`, `gpt-image-2`,

7732 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,8024 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

7733 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,8025 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

7734 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:8026 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

8027 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

7735 `gpt-image-2`.8028 `gpt-image-2`.

7736 8029 

7737 `gpt-image-1` was shut down on October 23, 2026. Use8030 `gpt-image-1` was shut down on October 23, 2026. Use


7741 8034 

7742 - `"gpt-image-1-mini"`8035 - `"gpt-image-1-mini"`

7743 8036 

7744 - `"gpt-image-1.5"`

7745 

7746 - `"gpt-image-2"`8037 - `"gpt-image-2"`

7747 8038 

7748 - `"gpt-image-2-2026-04-21"`8039 - `"gpt-image-2-2026-04-21"`


7755 8046 

7756 - `"gpt-image-2.5-flare-2026-09-08"`8047 - `"gpt-image-2.5-flare-2026-09-08"`

7757 8048 

8049 - `"gpt-image-2.6-sunburst"`

8050 

8051 - `"gpt-image-2.6-flare"`

8052 

8053 - `"gpt-image-1.5"`

8054 

8055 - `"chatgpt-image-latest"`

8056 

7758 - `moderation: optional "auto" or "low" (default: "auto")`8057 - `moderation: optional "auto" or "low" (default: "auto")`

7759 8058 

7760 Moderation level for the generated image. Default: `auto`.8059 Moderation level for the generated image. Default: `auto`.


7769 8068 

7770 `minimum: 0`, `maximum: 100`8069 `minimum: 0`, `maximum: 100`

7771 8070 

7772 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`8071 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

7773 8072 

7774 The output format of the generated image. One of `png`, `webp`, or8073 The output format of the generated image. One of `png`, `webp`, `jpeg`,

7775 `jpeg`. Default: `png`.8074 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

8075 that supports the selected format. GIF output does not support

8076 partial image streaming (`partial_images` greater than `0`),

8077 `input_image_mask`, or custom `output_compression`.

8078 Responses lifecycle events can still be streamed for GIF output.

7776 8079 

7777 - `"png"`8080 - `"png"`

7778 8081 


7780 8083 

7781 - `"jpeg"`8084 - `"jpeg"`

7782 8085 

8086 - `"gif"`

8087 

8088 - `"svg"`

8089 

7783 - `partial_images: optional integer (default: 0)`8090 - `partial_images: optional integer (default: 0)`

7784 8091 

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


7823 8130 

7824 - `"auto"`8131 - `"auto"`

7825 8132 

8133 - `svg: optional object { model, reasoning }`

8134 

8135 SVG author model settings. Requires `output_format` to be `svg`.

8136 When SVG model selection is enabled, omitting this object uses the

8137 outer response model. Otherwise, the default SVG author is used and

8138 explicit model overrides are unavailable.

8139 

8140 - `model: optional string`

8141 

8142 `minLength: 1`

8143 

8144 - `reasoning: optional object { effort } or null`

8145 

8146 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

8147 

8148 - `effort: optional "none" or "minimal" or "low" or 4 more`

8149 

8150 Controls how much effort the model should spend on reasoning for this request.

8151 

8152 - `"none"`

8153 

8154 - `"minimal"`

8155 

8156 - `"low"`

8157 

8158 - `"medium"`

8159 

8160 - `"high"`

8161 

8162 - `"xhigh"`

8163 

8164 - `"max"`

8165 

7826 - `LocalShell object { type }`8166 - `LocalShell object { type }`

7827 8167 

7828 A tool that allows the model to execute shell commands in a local environment.8168 A tool that allows the model to execute shell commands in a local environment.

Details

825 825 

826 `format: uri`826 `format: uri`

827 827 

828 - `ImageGenerationCall object { id, result, status, 8 more }`828 - `ImageGenerationCall object { id, result, status, 9 more }`

829 829 

830 An image generation request made by the model.830 An image generation request made by the model.

831 831 


913 913 

914 - `"unknown"`914 - `"unknown"`

915 915 

916 - `output_format: optional "png" or "webp" or "jpeg" or null`916 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

917 917 

918 The output format used for generation.918 The output format used for generation.

919 919 


923 923 

924 - `"jpeg"`924 - `"jpeg"`

925 925 

926 - `"gif"`

927 

928 - `"svg"`

929 

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

927 931 

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


959 963 

960 - `"1536x1024"`964 - `"1536x1024"`

961 965 

966 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

967 

968 - `input_tokens: integer`

969 

970 - `model: string`

971 

972 - `output_tokens: integer`

973 

974 - `reasoning_tokens: integer`

975 

976 - `total_tokens: integer`

977 

962 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`978 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`

963 979 

964 A tool call to a computer use tool. See the980 A tool call to a computer use tool. See the


1946 1962 

1947 - `"programmatic_tool_calling"`1963 - `"programmatic_tool_calling"`

1948 1964 

1949 - `ImageGeneration object { type, action, background, 9 more }`1965 - `ImageGeneration object { type, action, background, 13 more }`

1950 1966 

1951 A tool that generates images using the GPT image models.1967 A tool that generates images using the GPT image models.

1952 1968 


1982 1998 

1983 - `"auto"`1999 - `"auto"`

1984 2000 

2001 - `complexity: optional "low" or "medium" or "high"`

2002 

2003 Computation spent planning the image, independently of rendering quality.

2004 Overrides the outer response's `reasoning.effort` for image generation.

2005 When omitted, inherits a supported outer reasoning effort or uses the

2006 image model's configured default.

2007 For SVG output, controls the reference image, not the SVG author's

2008 reasoning.

2009 

2010 - `"low"`

2011 

2012 - `"medium"`

2013 

2014 - `"high"`

2015 

2016 - `frame_count: optional integer (default: 9)`

2017 

2018 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

2019 

2020 `minimum: 2`, `maximum: 16`

2021 

2022 - `frame_duration_ms: optional integer (default: 200)`

2023 

2024 Duration of each GIF frame in milliseconds, rounded to 10 ms.

2025 Requires `output_format` to be `gif`. Default: 200.

2026 

2027 `minimum: 20`, `maximum: 2000`

2028 

1985 - `input_fidelity: optional "high" or "low" or null`2029 - `input_fidelity: optional "high" or "low" or null`

1986 2030 

1987 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.2031 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


2003 2047 

2004 Base64-encoded mask image.2048 Base64-encoded mask image.

2005 2049 

2006 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2050 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

2007 2051 

2008 The image generation model to use. One of `gpt-image-1-mini`,2052 The image generation model to use. One of `gpt-image-1-mini`,

2009 `gpt-image-1.5`, `gpt-image-2`,2053 `gpt-image-1.5`, `gpt-image-2`,

2010 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2054 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2011 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2055 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2012 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2056 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

2057 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

2013 `gpt-image-2`.2058 `gpt-image-2`.

2014 2059 

2015 `gpt-image-1` was shut down on October 23, 2026. Use2060 `gpt-image-1` was shut down on October 23, 2026. Use


2017 2062 

2018 - `string`2063 - `string`

2019 2064 

2020 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2065 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

2021 2066 

2022 The image generation model to use. One of `gpt-image-1-mini`,2067 The image generation model to use. One of `gpt-image-1-mini`,

2023 `gpt-image-1.5`, `gpt-image-2`,2068 `gpt-image-1.5`, `gpt-image-2`,

2024 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2069 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2025 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2070 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

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

2072 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

2027 `gpt-image-2`.2073 `gpt-image-2`.

2028 2074 

2029 `gpt-image-1` was shut down on October 23, 2026. Use2075 `gpt-image-1` was shut down on October 23, 2026. Use


2033 2079 

2034 - `"gpt-image-1-mini"`2080 - `"gpt-image-1-mini"`

2035 2081 

2036 - `"gpt-image-1.5"`

2037 

2038 - `"gpt-image-2"`2082 - `"gpt-image-2"`

2039 2083 

2040 - `"gpt-image-2-2026-04-21"`2084 - `"gpt-image-2-2026-04-21"`


2047 2091 

2048 - `"gpt-image-2.5-flare-2026-09-08"`2092 - `"gpt-image-2.5-flare-2026-09-08"`

2049 2093 

2094 - `"gpt-image-2.6-sunburst"`

2095 

2096 - `"gpt-image-2.6-flare"`

2097 

2098 - `"gpt-image-1.5"`

2099 

2100 - `"chatgpt-image-latest"`

2101 

2050 - `moderation: optional "auto" or "low" (default: "auto")`2102 - `moderation: optional "auto" or "low" (default: "auto")`

2051 2103 

2052 Moderation level for the generated image. Default: `auto`.2104 Moderation level for the generated image. Default: `auto`.


2061 2113 

2062 `minimum: 0`, `maximum: 100`2114 `minimum: 0`, `maximum: 100`

2063 2115 

2064 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`2116 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

2065 2117 

2066 The output format of the generated image. One of `png`, `webp`, or2118 The output format of the generated image. One of `png`, `webp`, `jpeg`,

2067 `jpeg`. Default: `png`.2119 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

2120 that supports the selected format. GIF output does not support

2121 partial image streaming (`partial_images` greater than `0`),

2122 `input_image_mask`, or custom `output_compression`.

2123 Responses lifecycle events can still be streamed for GIF output.

2068 2124 

2069 - `"png"`2125 - `"png"`

2070 2126 


2072 2128 

2073 - `"jpeg"`2129 - `"jpeg"`

2074 2130 

2131 - `"gif"`

2132 

2133 - `"svg"`

2134 

2075 - `partial_images: optional integer (default: 0)`2135 - `partial_images: optional integer (default: 0)`

2076 2136 

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


2115 2175 

2116 - `"auto"`2176 - `"auto"`

2117 2177 

2178 - `svg: optional object { model, reasoning }`

2179 

2180 SVG author model settings. Requires `output_format` to be `svg`.

2181 When SVG model selection is enabled, omitting this object uses the

2182 outer response model. Otherwise, the default SVG author is used and

2183 explicit model overrides are unavailable.

2184 

2185 - `model: optional string`

2186 

2187 `minLength: 1`

2188 

2189 - `reasoning: optional object { effort } or null`

2190 

2191 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

2192 

2193 - `effort: optional "none" or "minimal" or "low" or 4 more`

2194 

2195 Controls how much effort the model should spend on reasoning for this request.

2196 

2197 - `"none"`

2198 

2199 - `"minimal"`

2200 

2201 - `"low"`

2202 

2203 - `"medium"`

2204 

2205 - `"high"`

2206 

2207 - `"xhigh"`

2208 

2209 - `"max"`

2210 

2118 - `LocalShell object { type }`2211 - `LocalShell object { type }`

2119 2212 

2120 A tool that allows the model to execute shell commands in a local environment.2213 A tool that allows the model to execute shell commands in a local environment.


3048 3141 

3049 - `"programmatic_tool_calling"`3142 - `"programmatic_tool_calling"`

3050 3143 

3051 - `ImageGeneration object { type, action, background, 9 more }`3144 - `ImageGeneration object { type, action, background, 13 more }`

3052 3145 

3053 A tool that generates images using the GPT image models.3146 A tool that generates images using the GPT image models.

3054 3147 


3084 3177 

3085 - `"auto"`3178 - `"auto"`

3086 3179 

3180 - `complexity: optional "low" or "medium" or "high"`

3181 

3182 Computation spent planning the image, independently of rendering quality.

3183 Overrides the outer response's `reasoning.effort` for image generation.

3184 When omitted, inherits a supported outer reasoning effort or uses the

3185 image model's configured default.

3186 For SVG output, controls the reference image, not the SVG author's

3187 reasoning.

3188 

3189 - `"low"`

3190 

3191 - `"medium"`

3192 

3193 - `"high"`

3194 

3195 - `frame_count: optional integer (default: 9)`

3196 

3197 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

3198 

3199 `minimum: 2`, `maximum: 16`

3200 

3201 - `frame_duration_ms: optional integer (default: 200)`

3202 

3203 Duration of each GIF frame in milliseconds, rounded to 10 ms.

3204 Requires `output_format` to be `gif`. Default: 200.

3205 

3206 `minimum: 20`, `maximum: 2000`

3207 

3087 - `input_fidelity: optional "high" or "low" or null`3208 - `input_fidelity: optional "high" or "low" or null`

3088 3209 

3089 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.3210 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


3105 3226 

3106 Base64-encoded mask image.3227 Base64-encoded mask image.

3107 3228 

3108 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3229 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3109 3230 

3110 The image generation model to use. One of `gpt-image-1-mini`,3231 The image generation model to use. One of `gpt-image-1-mini`,

3111 `gpt-image-1.5`, `gpt-image-2`,3232 `gpt-image-1.5`, `gpt-image-2`,

3112 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3233 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3113 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3234 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3114 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3235 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3236 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3115 `gpt-image-2`.3237 `gpt-image-2`.

3116 3238 

3117 `gpt-image-1` was shut down on October 23, 2026. Use3239 `gpt-image-1` was shut down on October 23, 2026. Use


3119 3241 

3120 - `string`3242 - `string`

3121 3243 

3122 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3244 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3123 3245 

3124 The image generation model to use. One of `gpt-image-1-mini`,3246 The image generation model to use. One of `gpt-image-1-mini`,

3125 `gpt-image-1.5`, `gpt-image-2`,3247 `gpt-image-1.5`, `gpt-image-2`,

3126 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3248 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3127 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3249 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3128 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3250 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3251 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3129 `gpt-image-2`.3252 `gpt-image-2`.

3130 3253 

3131 `gpt-image-1` was shut down on October 23, 2026. Use3254 `gpt-image-1` was shut down on October 23, 2026. Use


3135 3258 

3136 - `"gpt-image-1-mini"`3259 - `"gpt-image-1-mini"`

3137 3260 

3138 - `"gpt-image-1.5"`

3139 

3140 - `"gpt-image-2"`3261 - `"gpt-image-2"`

3141 3262 

3142 - `"gpt-image-2-2026-04-21"`3263 - `"gpt-image-2-2026-04-21"`


3149 3270 

3150 - `"gpt-image-2.5-flare-2026-09-08"`3271 - `"gpt-image-2.5-flare-2026-09-08"`

3151 3272 

3273 - `"gpt-image-2.6-sunburst"`

3274 

3275 - `"gpt-image-2.6-flare"`

3276 

3277 - `"gpt-image-1.5"`

3278 

3279 - `"chatgpt-image-latest"`

3280 

3152 - `moderation: optional "auto" or "low" (default: "auto")`3281 - `moderation: optional "auto" or "low" (default: "auto")`

3153 3282 

3154 Moderation level for the generated image. Default: `auto`.3283 Moderation level for the generated image. Default: `auto`.


3163 3292 

3164 `minimum: 0`, `maximum: 100`3293 `minimum: 0`, `maximum: 100`

3165 3294 

3166 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`3295 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

3167 3296 

3168 The output format of the generated image. One of `png`, `webp`, or3297 The output format of the generated image. One of `png`, `webp`, `jpeg`,

3169 `jpeg`. Default: `png`.3298 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

3299 that supports the selected format. GIF output does not support

3300 partial image streaming (`partial_images` greater than `0`),

3301 `input_image_mask`, or custom `output_compression`.

3302 Responses lifecycle events can still be streamed for GIF output.

3170 3303 

3171 - `"png"`3304 - `"png"`

3172 3305 


3174 3307 

3175 - `"jpeg"`3308 - `"jpeg"`

3176 3309 

3310 - `"gif"`

3311 

3312 - `"svg"`

3313 

3177 - `partial_images: optional integer (default: 0)`3314 - `partial_images: optional integer (default: 0)`

3178 3315 

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


3217 3354 

3218 - `"auto"`3355 - `"auto"`

3219 3356 

3357 - `svg: optional object { model, reasoning }`

3358 

3359 SVG author model settings. Requires `output_format` to be `svg`.

3360 When SVG model selection is enabled, omitting this object uses the

3361 outer response model. Otherwise, the default SVG author is used and

3362 explicit model overrides are unavailable.

3363 

3364 - `model: optional string`

3365 

3366 `minLength: 1`

3367 

3368 - `reasoning: optional object { effort } or null`

3369 

3370 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

3371 

3372 - `effort: optional "none" or "minimal" or "low" or 4 more`

3373 

3374 Controls how much effort the model should spend on reasoning for this request.

3375 

3376 - `"none"`

3377 

3378 - `"minimal"`

3379 

3380 - `"low"`

3381 

3382 - `"medium"`

3383 

3384 - `"high"`

3385 

3386 - `"xhigh"`

3387 

3388 - `"max"`

3389 

3220 - `LocalShell object { type }`3390 - `LocalShell object { type }`

3221 3391 

3222 A tool that allows the model to execute shell commands in a local environment.3392 A tool that allows the model to execute shell commands in a local environment.

Details

798 798 

799 `format: uri`799 `format: uri`

800 800 

801 - `ImageGenerationCall object { id, result, status, 8 more }`801 - `ImageGenerationCall object { id, result, status, 9 more }`

802 802 

803 An image generation request made by the model.803 An image generation request made by the model.

804 804 


886 886 

887 - `"unknown"`887 - `"unknown"`

888 888 

889 - `output_format: optional "png" or "webp" or "jpeg" or null`889 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

890 890 

891 The output format used for generation.891 The output format used for generation.

892 892 


896 896 

897 - `"jpeg"`897 - `"jpeg"`

898 898 

899 - `"gif"`

900 

901 - `"svg"`

902 

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

900 904 

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


932 936 

933 - `"1536x1024"`937 - `"1536x1024"`

934 938 

939 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

940 

941 - `input_tokens: integer`

942 

943 - `model: string`

944 

945 - `output_tokens: integer`

946 

947 - `reasoning_tokens: integer`

948 

949 - `total_tokens: integer`

950 

935 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`951 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`

936 952 

937 A tool call to a computer use tool. See the953 A tool call to a computer use tool. See the


1919 1935 

1920 - `"programmatic_tool_calling"`1936 - `"programmatic_tool_calling"`

1921 1937 

1922 - `ImageGeneration object { type, action, background, 9 more }`1938 - `ImageGeneration object { type, action, background, 13 more }`

1923 1939 

1924 A tool that generates images using the GPT image models.1940 A tool that generates images using the GPT image models.

1925 1941 


1955 1971 

1956 - `"auto"`1972 - `"auto"`

1957 1973 

1974 - `complexity: optional "low" or "medium" or "high"`

1975 

1976 Computation spent planning the image, independently of rendering quality.

1977 Overrides the outer response's `reasoning.effort` for image generation.

1978 When omitted, inherits a supported outer reasoning effort or uses the

1979 image model's configured default.

1980 For SVG output, controls the reference image, not the SVG author's

1981 reasoning.

1982 

1983 - `"low"`

1984 

1985 - `"medium"`

1986 

1987 - `"high"`

1988 

1989 - `frame_count: optional integer (default: 9)`

1990 

1991 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

1992 

1993 `minimum: 2`, `maximum: 16`

1994 

1995 - `frame_duration_ms: optional integer (default: 200)`

1996 

1997 Duration of each GIF frame in milliseconds, rounded to 10 ms.

1998 Requires `output_format` to be `gif`. Default: 200.

1999 

2000 `minimum: 20`, `maximum: 2000`

2001 

1958 - `input_fidelity: optional "high" or "low" or null`2002 - `input_fidelity: optional "high" or "low" or null`

1959 2003 

1960 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.2004 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


1976 2020 

1977 Base64-encoded mask image.2021 Base64-encoded mask image.

1978 2022 

1979 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2023 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

1980 2024 

1981 The image generation model to use. One of `gpt-image-1-mini`,2025 The image generation model to use. One of `gpt-image-1-mini`,

1982 `gpt-image-1.5`, `gpt-image-2`,2026 `gpt-image-1.5`, `gpt-image-2`,

1983 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2027 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1984 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2028 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1985 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2029 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

2030 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

1986 `gpt-image-2`.2031 `gpt-image-2`.

1987 2032 

1988 `gpt-image-1` was shut down on October 23, 2026. Use2033 `gpt-image-1` was shut down on October 23, 2026. Use


1990 2035 

1991 - `string`2036 - `string`

1992 2037 

1993 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2038 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

1994 2039 

1995 The image generation model to use. One of `gpt-image-1-mini`,2040 The image generation model to use. One of `gpt-image-1-mini`,

1996 `gpt-image-1.5`, `gpt-image-2`,2041 `gpt-image-1.5`, `gpt-image-2`,

1997 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2042 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1998 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2043 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1999 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2044 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

2045 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

2000 `gpt-image-2`.2046 `gpt-image-2`.

2001 2047 

2002 `gpt-image-1` was shut down on October 23, 2026. Use2048 `gpt-image-1` was shut down on October 23, 2026. Use


2006 2052 

2007 - `"gpt-image-1-mini"`2053 - `"gpt-image-1-mini"`

2008 2054 

2009 - `"gpt-image-1.5"`

2010 

2011 - `"gpt-image-2"`2055 - `"gpt-image-2"`

2012 2056 

2013 - `"gpt-image-2-2026-04-21"`2057 - `"gpt-image-2-2026-04-21"`


2020 2064 

2021 - `"gpt-image-2.5-flare-2026-09-08"`2065 - `"gpt-image-2.5-flare-2026-09-08"`

2022 2066 

2067 - `"gpt-image-2.6-sunburst"`

2068 

2069 - `"gpt-image-2.6-flare"`

2070 

2071 - `"gpt-image-1.5"`

2072 

2073 - `"chatgpt-image-latest"`

2074 

2023 - `moderation: optional "auto" or "low" (default: "auto")`2075 - `moderation: optional "auto" or "low" (default: "auto")`

2024 2076 

2025 Moderation level for the generated image. Default: `auto`.2077 Moderation level for the generated image. Default: `auto`.


2034 2086 

2035 `minimum: 0`, `maximum: 100`2087 `minimum: 0`, `maximum: 100`

2036 2088 

2037 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`2089 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

2038 2090 

2039 The output format of the generated image. One of `png`, `webp`, or2091 The output format of the generated image. One of `png`, `webp`, `jpeg`,

2040 `jpeg`. Default: `png`.2092 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

2093 that supports the selected format. GIF output does not support

2094 partial image streaming (`partial_images` greater than `0`),

2095 `input_image_mask`, or custom `output_compression`.

2096 Responses lifecycle events can still be streamed for GIF output.

2041 2097 

2042 - `"png"`2098 - `"png"`

2043 2099 


2045 2101 

2046 - `"jpeg"`2102 - `"jpeg"`

2047 2103 

2104 - `"gif"`

2105 

2106 - `"svg"`

2107 

2048 - `partial_images: optional integer (default: 0)`2108 - `partial_images: optional integer (default: 0)`

2049 2109 

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


2088 2148 

2089 - `"auto"`2149 - `"auto"`

2090 2150 

2151 - `svg: optional object { model, reasoning }`

2152 

2153 SVG author model settings. Requires `output_format` to be `svg`.

2154 When SVG model selection is enabled, omitting this object uses the

2155 outer response model. Otherwise, the default SVG author is used and

2156 explicit model overrides are unavailable.

2157 

2158 - `model: optional string`

2159 

2160 `minLength: 1`

2161 

2162 - `reasoning: optional object { effort } or null`

2163 

2164 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

2165 

2166 - `effort: optional "none" or "minimal" or "low" or 4 more`

2167 

2168 Controls how much effort the model should spend on reasoning for this request.

2169 

2170 - `"none"`

2171 

2172 - `"minimal"`

2173 

2174 - `"low"`

2175 

2176 - `"medium"`

2177 

2178 - `"high"`

2179 

2180 - `"xhigh"`

2181 

2182 - `"max"`

2183 

2091 - `LocalShell object { type }`2184 - `LocalShell object { type }`

2092 2185 

2093 A tool that allows the model to execute shell commands in a local environment.2186 A tool that allows the model to execute shell commands in a local environment.


3021 3114 

3022 - `"programmatic_tool_calling"`3115 - `"programmatic_tool_calling"`

3023 3116 

3024 - `ImageGeneration object { type, action, background, 9 more }`3117 - `ImageGeneration object { type, action, background, 13 more }`

3025 3118 

3026 A tool that generates images using the GPT image models.3119 A tool that generates images using the GPT image models.

3027 3120 


3057 3150 

3058 - `"auto"`3151 - `"auto"`

3059 3152 

3153 - `complexity: optional "low" or "medium" or "high"`

3154 

3155 Computation spent planning the image, independently of rendering quality.

3156 Overrides the outer response's `reasoning.effort` for image generation.

3157 When omitted, inherits a supported outer reasoning effort or uses the

3158 image model's configured default.

3159 For SVG output, controls the reference image, not the SVG author's

3160 reasoning.

3161 

3162 - `"low"`

3163 

3164 - `"medium"`

3165 

3166 - `"high"`

3167 

3168 - `frame_count: optional integer (default: 9)`

3169 

3170 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

3171 

3172 `minimum: 2`, `maximum: 16`

3173 

3174 - `frame_duration_ms: optional integer (default: 200)`

3175 

3176 Duration of each GIF frame in milliseconds, rounded to 10 ms.

3177 Requires `output_format` to be `gif`. Default: 200.

3178 

3179 `minimum: 20`, `maximum: 2000`

3180 

3060 - `input_fidelity: optional "high" or "low" or null`3181 - `input_fidelity: optional "high" or "low" or null`

3061 3182 

3062 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.3183 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


3078 3199 

3079 Base64-encoded mask image.3200 Base64-encoded mask image.

3080 3201 

3081 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3202 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3082 3203 

3083 The image generation model to use. One of `gpt-image-1-mini`,3204 The image generation model to use. One of `gpt-image-1-mini`,

3084 `gpt-image-1.5`, `gpt-image-2`,3205 `gpt-image-1.5`, `gpt-image-2`,

3085 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3206 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3086 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3207 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3087 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3208 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3209 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3088 `gpt-image-2`.3210 `gpt-image-2`.

3089 3211 

3090 `gpt-image-1` was shut down on October 23, 2026. Use3212 `gpt-image-1` was shut down on October 23, 2026. Use


3092 3214 

3093 - `string`3215 - `string`

3094 3216 

3095 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3217 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3096 3218 

3097 The image generation model to use. One of `gpt-image-1-mini`,3219 The image generation model to use. One of `gpt-image-1-mini`,

3098 `gpt-image-1.5`, `gpt-image-2`,3220 `gpt-image-1.5`, `gpt-image-2`,

3099 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3221 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3100 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3222 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3101 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3223 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3224 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3102 `gpt-image-2`.3225 `gpt-image-2`.

3103 3226 

3104 `gpt-image-1` was shut down on October 23, 2026. Use3227 `gpt-image-1` was shut down on October 23, 2026. Use


3108 3231 

3109 - `"gpt-image-1-mini"`3232 - `"gpt-image-1-mini"`

3110 3233 

3111 - `"gpt-image-1.5"`

3112 

3113 - `"gpt-image-2"`3234 - `"gpt-image-2"`

3114 3235 

3115 - `"gpt-image-2-2026-04-21"`3236 - `"gpt-image-2-2026-04-21"`


3122 3243 

3123 - `"gpt-image-2.5-flare-2026-09-08"`3244 - `"gpt-image-2.5-flare-2026-09-08"`

3124 3245 

3246 - `"gpt-image-2.6-sunburst"`

3247 

3248 - `"gpt-image-2.6-flare"`

3249 

3250 - `"gpt-image-1.5"`

3251 

3252 - `"chatgpt-image-latest"`

3253 

3125 - `moderation: optional "auto" or "low" (default: "auto")`3254 - `moderation: optional "auto" or "low" (default: "auto")`

3126 3255 

3127 Moderation level for the generated image. Default: `auto`.3256 Moderation level for the generated image. Default: `auto`.


3136 3265 

3137 `minimum: 0`, `maximum: 100`3266 `minimum: 0`, `maximum: 100`

3138 3267 

3139 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`3268 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

3140 3269 

3141 The output format of the generated image. One of `png`, `webp`, or3270 The output format of the generated image. One of `png`, `webp`, `jpeg`,

3142 `jpeg`. Default: `png`.3271 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

3272 that supports the selected format. GIF output does not support

3273 partial image streaming (`partial_images` greater than `0`),

3274 `input_image_mask`, or custom `output_compression`.

3275 Responses lifecycle events can still be streamed for GIF output.

3143 3276 

3144 - `"png"`3277 - `"png"`

3145 3278 


3147 3280 

3148 - `"jpeg"`3281 - `"jpeg"`

3149 3282 

3283 - `"gif"`

3284 

3285 - `"svg"`

3286 

3150 - `partial_images: optional integer (default: 0)`3287 - `partial_images: optional integer (default: 0)`

3151 3288 

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


3190 3327 

3191 - `"auto"`3328 - `"auto"`

3192 3329 

3330 - `svg: optional object { model, reasoning }`

3331 

3332 SVG author model settings. Requires `output_format` to be `svg`.

3333 When SVG model selection is enabled, omitting this object uses the

3334 outer response model. Otherwise, the default SVG author is used and

3335 explicit model overrides are unavailable.

3336 

3337 - `model: optional string`

3338 

3339 `minLength: 1`

3340 

3341 - `reasoning: optional object { effort } or null`

3342 

3343 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

3344 

3345 - `effort: optional "none" or "minimal" or "low" or 4 more`

3346 

3347 Controls how much effort the model should spend on reasoning for this request.

3348 

3349 - `"none"`

3350 

3351 - `"minimal"`

3352 

3353 - `"low"`

3354 

3355 - `"medium"`

3356 

3357 - `"high"`

3358 

3359 - `"xhigh"`

3360 

3361 - `"max"`

3362 

3193 - `LocalShell object { type }`3363 - `LocalShell object { type }`

3194 3364 

3195 A tool that allows the model to execute shell commands in a local environment.3365 A tool that allows the model to execute shell commands in a local environment.

Details

1561 1561 

1562 - `"programmatic_tool_calling"`1562 - `"programmatic_tool_calling"`

1563 1563 

1564 - `ImageGeneration object { type, action, background, 9 more }`1564 - `ImageGeneration object { type, action, background, 13 more }`

1565 1565 

1566 A tool that generates images using the GPT image models.1566 A tool that generates images using the GPT image models.

1567 1567 


1597 1597 

1598 - `"auto"`1598 - `"auto"`

1599 1599 

1600 - `complexity: optional "low" or "medium" or "high"`

1601 

1602 Computation spent planning the image, independently of rendering quality.

1603 Overrides the outer response's `reasoning.effort` for image generation.

1604 When omitted, inherits a supported outer reasoning effort or uses the

1605 image model's configured default.

1606 For SVG output, controls the reference image, not the SVG author's

1607 reasoning.

1608 

1609 - `"low"`

1610 

1611 - `"medium"`

1612 

1613 - `"high"`

1614 

1615 - `frame_count: optional integer (default: 9)`

1616 

1617 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

1618 

1619 `minimum: 2`, `maximum: 16`

1620 

1621 - `frame_duration_ms: optional integer (default: 200)`

1622 

1623 Duration of each GIF frame in milliseconds, rounded to 10 ms.

1624 Requires `output_format` to be `gif`. Default: 200.

1625 

1626 `minimum: 20`, `maximum: 2000`

1627 

1600 - `input_fidelity: optional "high" or "low" or null`1628 - `input_fidelity: optional "high" or "low" or null`

1601 1629 

1602 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.1630 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


1618 1646 

1619 Base64-encoded mask image.1647 Base64-encoded mask image.

1620 1648 

1621 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`1649 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

1622 1650 

1623 The image generation model to use. One of `gpt-image-1-mini`,1651 The image generation model to use. One of `gpt-image-1-mini`,

1624 `gpt-image-1.5`, `gpt-image-2`,1652 `gpt-image-1.5`, `gpt-image-2`,

1625 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,1653 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1626 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,1654 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1627 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:1655 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

1656 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

1628 `gpt-image-2`.1657 `gpt-image-2`.

1629 1658 

1630 `gpt-image-1` was shut down on October 23, 2026. Use1659 `gpt-image-1` was shut down on October 23, 2026. Use


1632 1661 

1633 - `string`1662 - `string`

1634 1663 

1635 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`1664 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

1636 1665 

1637 The image generation model to use. One of `gpt-image-1-mini`,1666 The image generation model to use. One of `gpt-image-1-mini`,

1638 `gpt-image-1.5`, `gpt-image-2`,1667 `gpt-image-1.5`, `gpt-image-2`,

1639 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,1668 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1640 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,1669 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1641 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:1670 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

1671 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

1642 `gpt-image-2`.1672 `gpt-image-2`.

1643 1673 

1644 `gpt-image-1` was shut down on October 23, 2026. Use1674 `gpt-image-1` was shut down on October 23, 2026. Use


1648 1678 

1649 - `"gpt-image-1-mini"`1679 - `"gpt-image-1-mini"`

1650 1680 

1651 - `"gpt-image-1.5"`

1652 

1653 - `"gpt-image-2"`1681 - `"gpt-image-2"`

1654 1682 

1655 - `"gpt-image-2-2026-04-21"`1683 - `"gpt-image-2-2026-04-21"`


1662 1690 

1663 - `"gpt-image-2.5-flare-2026-09-08"`1691 - `"gpt-image-2.5-flare-2026-09-08"`

1664 1692 

1693 - `"gpt-image-2.6-sunburst"`

1694 

1695 - `"gpt-image-2.6-flare"`

1696 

1697 - `"gpt-image-1.5"`

1698 

1699 - `"chatgpt-image-latest"`

1700 

1665 - `moderation: optional "auto" or "low" (default: "auto")`1701 - `moderation: optional "auto" or "low" (default: "auto")`

1666 1702 

1667 Moderation level for the generated image. Default: `auto`.1703 Moderation level for the generated image. Default: `auto`.


1676 1712 

1677 `minimum: 0`, `maximum: 100`1713 `minimum: 0`, `maximum: 100`

1678 1714 

1679 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`1715 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

1680 1716 

1681 The output format of the generated image. One of `png`, `webp`, or1717 The output format of the generated image. One of `png`, `webp`, `jpeg`,

1682 `jpeg`. Default: `png`.1718 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

1719 that supports the selected format. GIF output does not support

1720 partial image streaming (`partial_images` greater than `0`),

1721 `input_image_mask`, or custom `output_compression`.

1722 Responses lifecycle events can still be streamed for GIF output.

1683 1723 

1684 - `"png"`1724 - `"png"`

1685 1725 


1687 1727 

1688 - `"jpeg"`1728 - `"jpeg"`

1689 1729 

1730 - `"gif"`

1731 

1732 - `"svg"`

1733 

1690 - `partial_images: optional integer (default: 0)`1734 - `partial_images: optional integer (default: 0)`

1691 1735 

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


1730 1774 

1731 - `"auto"`1775 - `"auto"`

1732 1776 

1777 - `svg: optional object { model, reasoning }`

1778 

1779 SVG author model settings. Requires `output_format` to be `svg`.

1780 When SVG model selection is enabled, omitting this object uses the

1781 outer response model. Otherwise, the default SVG author is used and

1782 explicit model overrides are unavailable.

1783 

1784 - `model: optional string`

1785 

1786 `minLength: 1`

1787 

1788 - `reasoning: optional object { effort } or null`

1789 

1790 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

1791 

1792 - `effort: optional "none" or "minimal" or "low" or 4 more`

1793 

1794 Controls how much effort the model should spend on reasoning for this request.

1795 

1796 - `"none"`

1797 

1798 - `"minimal"`

1799 

1800 - `"low"`

1801 

1802 - `"medium"`

1803 

1804 - `"high"`

1805 

1806 - `"xhigh"`

1807 

1808 - `"max"`

1809 

1733 - `LocalShell object { type }`1810 - `LocalShell object { type }`

1734 1811 

1735 A tool that allows the model to execute shell commands in a local environment.1812 A tool that allows the model to execute shell commands in a local environment.

Details

1549 1549 

1550 - `"programmatic_tool_calling"`1550 - `"programmatic_tool_calling"`

1551 1551 

1552 - `ImageGeneration object { type, action, background, 9 more }`1552 - `ImageGeneration object { type, action, background, 13 more }`

1553 1553 

1554 A tool that generates images using the GPT image models.1554 A tool that generates images using the GPT image models.

1555 1555 


1585 1585 

1586 - `"auto"`1586 - `"auto"`

1587 1587 

1588 - `complexity: optional "low" or "medium" or "high"`

1589 

1590 Computation spent planning the image, independently of rendering quality.

1591 Overrides the outer response's `reasoning.effort` for image generation.

1592 When omitted, inherits a supported outer reasoning effort or uses the

1593 image model's configured default.

1594 For SVG output, controls the reference image, not the SVG author's

1595 reasoning.

1596 

1597 - `"low"`

1598 

1599 - `"medium"`

1600 

1601 - `"high"`

1602 

1603 - `frame_count: optional integer (default: 9)`

1604 

1605 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

1606 

1607 `minimum: 2`, `maximum: 16`

1608 

1609 - `frame_duration_ms: optional integer (default: 200)`

1610 

1611 Duration of each GIF frame in milliseconds, rounded to 10 ms.

1612 Requires `output_format` to be `gif`. Default: 200.

1613 

1614 `minimum: 20`, `maximum: 2000`

1615 

1588 - `input_fidelity: optional "high" or "low" or null`1616 - `input_fidelity: optional "high" or "low" or null`

1589 1617 

1590 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.1618 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


1606 1634 

1607 Base64-encoded mask image.1635 Base64-encoded mask image.

1608 1636 

1609 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`1637 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

1610 1638 

1611 The image generation model to use. One of `gpt-image-1-mini`,1639 The image generation model to use. One of `gpt-image-1-mini`,

1612 `gpt-image-1.5`, `gpt-image-2`,1640 `gpt-image-1.5`, `gpt-image-2`,

1613 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,1641 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1614 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,1642 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1615 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:1643 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

1644 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

1616 `gpt-image-2`.1645 `gpt-image-2`.

1617 1646 

1618 `gpt-image-1` was shut down on October 23, 2026. Use1647 `gpt-image-1` was shut down on October 23, 2026. Use


1620 1649 

1621 - `string`1650 - `string`

1622 1651 

1623 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`1652 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

1624 1653 

1625 The image generation model to use. One of `gpt-image-1-mini`,1654 The image generation model to use. One of `gpt-image-1-mini`,

1626 `gpt-image-1.5`, `gpt-image-2`,1655 `gpt-image-1.5`, `gpt-image-2`,

1627 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,1656 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1628 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,1657 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1629 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:1658 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

1659 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

1630 `gpt-image-2`.1660 `gpt-image-2`.

1631 1661 

1632 `gpt-image-1` was shut down on October 23, 2026. Use1662 `gpt-image-1` was shut down on October 23, 2026. Use


1636 1666 

1637 - `"gpt-image-1-mini"`1667 - `"gpt-image-1-mini"`

1638 1668 

1639 - `"gpt-image-1.5"`

1640 

1641 - `"gpt-image-2"`1669 - `"gpt-image-2"`

1642 1670 

1643 - `"gpt-image-2-2026-04-21"`1671 - `"gpt-image-2-2026-04-21"`


1650 1678 

1651 - `"gpt-image-2.5-flare-2026-09-08"`1679 - `"gpt-image-2.5-flare-2026-09-08"`

1652 1680 

1681 - `"gpt-image-2.6-sunburst"`

1682 

1683 - `"gpt-image-2.6-flare"`

1684 

1685 - `"gpt-image-1.5"`

1686 

1687 - `"chatgpt-image-latest"`

1688 

1653 - `moderation: optional "auto" or "low" (default: "auto")`1689 - `moderation: optional "auto" or "low" (default: "auto")`

1654 1690 

1655 Moderation level for the generated image. Default: `auto`.1691 Moderation level for the generated image. Default: `auto`.


1664 1700 

1665 `minimum: 0`, `maximum: 100`1701 `minimum: 0`, `maximum: 100`

1666 1702 

1667 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`1703 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

1668 1704 

1669 The output format of the generated image. One of `png`, `webp`, or1705 The output format of the generated image. One of `png`, `webp`, `jpeg`,

1670 `jpeg`. Default: `png`.1706 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

1707 that supports the selected format. GIF output does not support

1708 partial image streaming (`partial_images` greater than `0`),

1709 `input_image_mask`, or custom `output_compression`.

1710 Responses lifecycle events can still be streamed for GIF output.

1671 1711 

1672 - `"png"`1712 - `"png"`

1673 1713 


1675 1715 

1676 - `"jpeg"`1716 - `"jpeg"`

1677 1717 

1718 - `"gif"`

1719 

1720 - `"svg"`

1721 

1678 - `partial_images: optional integer (default: 0)`1722 - `partial_images: optional integer (default: 0)`

1679 1723 

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


1718 1762 

1719 - `"auto"`1763 - `"auto"`

1720 1764 

1765 - `svg: optional object { model, reasoning }`

1766 

1767 SVG author model settings. Requires `output_format` to be `svg`.

1768 When SVG model selection is enabled, omitting this object uses the

1769 outer response model. Otherwise, the default SVG author is used and

1770 explicit model overrides are unavailable.

1771 

1772 - `model: optional string`

1773 

1774 `minLength: 1`

1775 

1776 - `reasoning: optional object { effort } or null`

1777 

1778 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

1779 

1780 - `effort: optional "none" or "minimal" or "low" or 4 more`

1781 

1782 Controls how much effort the model should spend on reasoning for this request.

1783 

1784 - `"none"`

1785 

1786 - `"minimal"`

1787 

1788 - `"low"`

1789 

1790 - `"medium"`

1791 

1792 - `"high"`

1793 

1794 - `"xhigh"`

1795 

1796 - `"max"`

1797 

1721 - `LocalShell object { type }`1798 - `LocalShell object { type }`

1722 1799 

1723 A tool that allows the model to execute shell commands in a local environment.1800 A tool that allows the model to execute shell commands in a local environment.


3724 3801 

3725 - `"programmatic_tool_calling"`3802 - `"programmatic_tool_calling"`

3726 3803 

3727 - `ImageGeneration object { type, action, background, 9 more }`3804 - `ImageGeneration object { type, action, background, 13 more }`

3728 3805 

3729 A tool that generates images using the GPT image models.3806 A tool that generates images using the GPT image models.

3730 3807 


3760 3837 

3761 - `"auto"`3838 - `"auto"`

3762 3839 

3840 - `complexity: optional "low" or "medium" or "high"`

3841 

3842 Computation spent planning the image, independently of rendering quality.

3843 Overrides the outer response's `reasoning.effort` for image generation.

3844 When omitted, inherits a supported outer reasoning effort or uses the

3845 image model's configured default.

3846 For SVG output, controls the reference image, not the SVG author's

3847 reasoning.

3848 

3849 - `"low"`

3850 

3851 - `"medium"`

3852 

3853 - `"high"`

3854 

3855 - `frame_count: optional integer (default: 9)`

3856 

3857 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

3858 

3859 `minimum: 2`, `maximum: 16`

3860 

3861 - `frame_duration_ms: optional integer (default: 200)`

3862 

3863 Duration of each GIF frame in milliseconds, rounded to 10 ms.

3864 Requires `output_format` to be `gif`. Default: 200.

3865 

3866 `minimum: 20`, `maximum: 2000`

3867 

3763 - `input_fidelity: optional "high" or "low" or null`3868 - `input_fidelity: optional "high" or "low" or null`

3764 3869 

3765 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.3870 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


3781 3886 

3782 Base64-encoded mask image.3887 Base64-encoded mask image.

3783 3888 

3784 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3889 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3785 3890 

3786 The image generation model to use. One of `gpt-image-1-mini`,3891 The image generation model to use. One of `gpt-image-1-mini`,

3787 `gpt-image-1.5`, `gpt-image-2`,3892 `gpt-image-1.5`, `gpt-image-2`,

3788 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3893 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3789 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3894 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3790 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3895 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3896 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3791 `gpt-image-2`.3897 `gpt-image-2`.

3792 3898 

3793 `gpt-image-1` was shut down on October 23, 2026. Use3899 `gpt-image-1` was shut down on October 23, 2026. Use


3795 3901 

3796 - `string`3902 - `string`

3797 3903 

3798 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3904 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3799 3905 

3800 The image generation model to use. One of `gpt-image-1-mini`,3906 The image generation model to use. One of `gpt-image-1-mini`,

3801 `gpt-image-1.5`, `gpt-image-2`,3907 `gpt-image-1.5`, `gpt-image-2`,

3802 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3908 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3803 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3909 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3804 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3910 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3911 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3805 `gpt-image-2`.3912 `gpt-image-2`.

3806 3913 

3807 `gpt-image-1` was shut down on October 23, 2026. Use3914 `gpt-image-1` was shut down on October 23, 2026. Use


3811 3918 

3812 - `"gpt-image-1-mini"`3919 - `"gpt-image-1-mini"`

3813 3920 

3814 - `"gpt-image-1.5"`

3815 

3816 - `"gpt-image-2"`3921 - `"gpt-image-2"`

3817 3922 

3818 - `"gpt-image-2-2026-04-21"`3923 - `"gpt-image-2-2026-04-21"`


3825 3930 

3826 - `"gpt-image-2.5-flare-2026-09-08"`3931 - `"gpt-image-2.5-flare-2026-09-08"`

3827 3932 

3933 - `"gpt-image-2.6-sunburst"`

3934 

3935 - `"gpt-image-2.6-flare"`

3936 

3937 - `"gpt-image-1.5"`

3938 

3939 - `"chatgpt-image-latest"`

3940 

3828 - `moderation: optional "auto" or "low" (default: "auto")`3941 - `moderation: optional "auto" or "low" (default: "auto")`

3829 3942 

3830 Moderation level for the generated image. Default: `auto`.3943 Moderation level for the generated image. Default: `auto`.


3839 3952 

3840 `minimum: 0`, `maximum: 100`3953 `minimum: 0`, `maximum: 100`

3841 3954 

3842 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`3955 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

3843 3956 

3844 The output format of the generated image. One of `png`, `webp`, or3957 The output format of the generated image. One of `png`, `webp`, `jpeg`,

3845 `jpeg`. Default: `png`.3958 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

3959 that supports the selected format. GIF output does not support

3960 partial image streaming (`partial_images` greater than `0`),

3961 `input_image_mask`, or custom `output_compression`.

3962 Responses lifecycle events can still be streamed for GIF output.

3846 3963 

3847 - `"png"`3964 - `"png"`

3848 3965 


3850 3967 

3851 - `"jpeg"`3968 - `"jpeg"`

3852 3969 

3970 - `"gif"`

3971 

3972 - `"svg"`

3973 

3853 - `partial_images: optional integer (default: 0)`3974 - `partial_images: optional integer (default: 0)`

3854 3975 

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


3893 4014 

3894 - `"auto"`4015 - `"auto"`

3895 4016 

4017 - `svg: optional object { model, reasoning }`

4018 

4019 SVG author model settings. Requires `output_format` to be `svg`.

4020 When SVG model selection is enabled, omitting this object uses the

4021 outer response model. Otherwise, the default SVG author is used and

4022 explicit model overrides are unavailable.

4023 

4024 - `model: optional string`

4025 

4026 `minLength: 1`

4027 

4028 - `reasoning: optional object { effort } or null`

4029 

4030 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

4031 

4032 - `effort: optional "none" or "minimal" or "low" or 4 more`

4033 

4034 Controls how much effort the model should spend on reasoning for this request.

4035 

4036 - `"none"`

4037 

4038 - `"minimal"`

4039 

4040 - `"low"`

4041 

4042 - `"medium"`

4043 

4044 - `"high"`

4045 

4046 - `"xhigh"`

4047 

4048 - `"max"`

4049 

3896 - `LocalShell object { type }`4050 - `LocalShell object { type }`

3897 4051 

3898 A tool that allows the model to execute shell commands in a local environment.4052 A tool that allows the model to execute shell commands in a local environment.

Details

1593 1593 

1594 - `"programmatic_tool_calling"`1594 - `"programmatic_tool_calling"`

1595 1595 

1596 - `ImageGeneration object { type, action, background, 9 more }`1596 - `ImageGeneration object { type, action, background, 13 more }`

1597 1597 

1598 A tool that generates images using the GPT image models.1598 A tool that generates images using the GPT image models.

1599 1599 


1629 1629 

1630 - `"auto"`1630 - `"auto"`

1631 1631 

1632 - `complexity: optional "low" or "medium" or "high"`

1633 

1634 Computation spent planning the image, independently of rendering quality.

1635 Overrides the outer response's `reasoning.effort` for image generation.

1636 When omitted, inherits a supported outer reasoning effort or uses the

1637 image model's configured default.

1638 For SVG output, controls the reference image, not the SVG author's

1639 reasoning.

1640 

1641 - `"low"`

1642 

1643 - `"medium"`

1644 

1645 - `"high"`

1646 

1647 - `frame_count: optional integer (default: 9)`

1648 

1649 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

1650 

1651 `minimum: 2`, `maximum: 16`

1652 

1653 - `frame_duration_ms: optional integer (default: 200)`

1654 

1655 Duration of each GIF frame in milliseconds, rounded to 10 ms.

1656 Requires `output_format` to be `gif`. Default: 200.

1657 

1658 `minimum: 20`, `maximum: 2000`

1659 

1632 - `input_fidelity: optional "high" or "low" or null`1660 - `input_fidelity: optional "high" or "low" or null`

1633 1661 

1634 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.1662 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


1650 1678 

1651 Base64-encoded mask image.1679 Base64-encoded mask image.

1652 1680 

1653 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`1681 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

1654 1682 

1655 The image generation model to use. One of `gpt-image-1-mini`,1683 The image generation model to use. One of `gpt-image-1-mini`,

1656 `gpt-image-1.5`, `gpt-image-2`,1684 `gpt-image-1.5`, `gpt-image-2`,

1657 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,1685 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1658 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,1686 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1659 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:1687 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

1688 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

1660 `gpt-image-2`.1689 `gpt-image-2`.

1661 1690 

1662 `gpt-image-1` was shut down on October 23, 2026. Use1691 `gpt-image-1` was shut down on October 23, 2026. Use


1664 1693 

1665 - `string`1694 - `string`

1666 1695 

1667 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`1696 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

1668 1697 

1669 The image generation model to use. One of `gpt-image-1-mini`,1698 The image generation model to use. One of `gpt-image-1-mini`,

1670 `gpt-image-1.5`, `gpt-image-2`,1699 `gpt-image-1.5`, `gpt-image-2`,

1671 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,1700 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1672 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,1701 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1673 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:1702 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

1703 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

1674 `gpt-image-2`.1704 `gpt-image-2`.

1675 1705 

1676 `gpt-image-1` was shut down on October 23, 2026. Use1706 `gpt-image-1` was shut down on October 23, 2026. Use


1680 1710 

1681 - `"gpt-image-1-mini"`1711 - `"gpt-image-1-mini"`

1682 1712 

1683 - `"gpt-image-1.5"`

1684 

1685 - `"gpt-image-2"`1713 - `"gpt-image-2"`

1686 1714 

1687 - `"gpt-image-2-2026-04-21"`1715 - `"gpt-image-2-2026-04-21"`


1694 1722 

1695 - `"gpt-image-2.5-flare-2026-09-08"`1723 - `"gpt-image-2.5-flare-2026-09-08"`

1696 1724 

1725 - `"gpt-image-2.6-sunburst"`

1726 

1727 - `"gpt-image-2.6-flare"`

1728 

1729 - `"gpt-image-1.5"`

1730 

1731 - `"chatgpt-image-latest"`

1732 

1697 - `moderation: optional "auto" or "low" (default: "auto")`1733 - `moderation: optional "auto" or "low" (default: "auto")`

1698 1734 

1699 Moderation level for the generated image. Default: `auto`.1735 Moderation level for the generated image. Default: `auto`.


1708 1744 

1709 `minimum: 0`, `maximum: 100`1745 `minimum: 0`, `maximum: 100`

1710 1746 

1711 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`1747 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

1712 1748 

1713 The output format of the generated image. One of `png`, `webp`, or1749 The output format of the generated image. One of `png`, `webp`, `jpeg`,

1714 `jpeg`. Default: `png`.1750 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

1751 that supports the selected format. GIF output does not support

1752 partial image streaming (`partial_images` greater than `0`),

1753 `input_image_mask`, or custom `output_compression`.

1754 Responses lifecycle events can still be streamed for GIF output.

1715 1755 

1716 - `"png"`1756 - `"png"`

1717 1757 


1719 1759 

1720 - `"jpeg"`1760 - `"jpeg"`

1721 1761 

1762 - `"gif"`

1763 

1764 - `"svg"`

1765 

1722 - `partial_images: optional integer (default: 0)`1766 - `partial_images: optional integer (default: 0)`

1723 1767 

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


1762 1806 

1763 - `"auto"`1807 - `"auto"`

1764 1808 

1809 - `svg: optional object { model, reasoning }`

1810 

1811 SVG author model settings. Requires `output_format` to be `svg`.

1812 When SVG model selection is enabled, omitting this object uses the

1813 outer response model. Otherwise, the default SVG author is used and

1814 explicit model overrides are unavailable.

1815 

1816 - `model: optional string`

1817 

1818 `minLength: 1`

1819 

1820 - `reasoning: optional object { effort } or null`

1821 

1822 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

1823 

1824 - `effort: optional "none" or "minimal" or "low" or 4 more`

1825 

1826 Controls how much effort the model should spend on reasoning for this request.

1827 

1828 - `"none"`

1829 

1830 - `"minimal"`

1831 

1832 - `"low"`

1833 

1834 - `"medium"`

1835 

1836 - `"high"`

1837 

1838 - `"xhigh"`

1839 

1840 - `"max"`

1841 

1765 - `LocalShell object { type }`1842 - `LocalShell object { type }`

1766 1843 

1767 A tool that allows the model to execute shell commands in a local environment.1844 A tool that allows the model to execute shell commands in a local environment.

Details

1561 1561 

1562 - `"programmatic_tool_calling"`1562 - `"programmatic_tool_calling"`

1563 1563 

1564 - `ImageGeneration object { type, action, background, 9 more }`1564 - `ImageGeneration object { type, action, background, 13 more }`

1565 1565 

1566 A tool that generates images using the GPT image models.1566 A tool that generates images using the GPT image models.

1567 1567 


1597 1597 

1598 - `"auto"`1598 - `"auto"`

1599 1599 

1600 - `complexity: optional "low" or "medium" or "high"`

1601 

1602 Computation spent planning the image, independently of rendering quality.

1603 Overrides the outer response's `reasoning.effort` for image generation.

1604 When omitted, inherits a supported outer reasoning effort or uses the

1605 image model's configured default.

1606 For SVG output, controls the reference image, not the SVG author's

1607 reasoning.

1608 

1609 - `"low"`

1610 

1611 - `"medium"`

1612 

1613 - `"high"`

1614 

1615 - `frame_count: optional integer (default: 9)`

1616 

1617 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

1618 

1619 `minimum: 2`, `maximum: 16`

1620 

1621 - `frame_duration_ms: optional integer (default: 200)`

1622 

1623 Duration of each GIF frame in milliseconds, rounded to 10 ms.

1624 Requires `output_format` to be `gif`. Default: 200.

1625 

1626 `minimum: 20`, `maximum: 2000`

1627 

1600 - `input_fidelity: optional "high" or "low" or null`1628 - `input_fidelity: optional "high" or "low" or null`

1601 1629 

1602 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.1630 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


1618 1646 

1619 Base64-encoded mask image.1647 Base64-encoded mask image.

1620 1648 

1621 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`1649 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

1622 1650 

1623 The image generation model to use. One of `gpt-image-1-mini`,1651 The image generation model to use. One of `gpt-image-1-mini`,

1624 `gpt-image-1.5`, `gpt-image-2`,1652 `gpt-image-1.5`, `gpt-image-2`,

1625 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,1653 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1626 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,1654 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1627 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:1655 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

1656 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

1628 `gpt-image-2`.1657 `gpt-image-2`.

1629 1658 

1630 `gpt-image-1` was shut down on October 23, 2026. Use1659 `gpt-image-1` was shut down on October 23, 2026. Use


1632 1661 

1633 - `string`1662 - `string`

1634 1663 

1635 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`1664 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

1636 1665 

1637 The image generation model to use. One of `gpt-image-1-mini`,1666 The image generation model to use. One of `gpt-image-1-mini`,

1638 `gpt-image-1.5`, `gpt-image-2`,1667 `gpt-image-1.5`, `gpt-image-2`,

1639 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,1668 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1640 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,1669 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1641 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:1670 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

1671 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

1642 `gpt-image-2`.1672 `gpt-image-2`.

1643 1673 

1644 `gpt-image-1` was shut down on October 23, 2026. Use1674 `gpt-image-1` was shut down on October 23, 2026. Use


1648 1678 

1649 - `"gpt-image-1-mini"`1679 - `"gpt-image-1-mini"`

1650 1680 

1651 - `"gpt-image-1.5"`

1652 

1653 - `"gpt-image-2"`1681 - `"gpt-image-2"`

1654 1682 

1655 - `"gpt-image-2-2026-04-21"`1683 - `"gpt-image-2-2026-04-21"`


1662 1690 

1663 - `"gpt-image-2.5-flare-2026-09-08"`1691 - `"gpt-image-2.5-flare-2026-09-08"`

1664 1692 

1693 - `"gpt-image-2.6-sunburst"`

1694 

1695 - `"gpt-image-2.6-flare"`

1696 

1697 - `"gpt-image-1.5"`

1698 

1699 - `"chatgpt-image-latest"`

1700 

1665 - `moderation: optional "auto" or "low" (default: "auto")`1701 - `moderation: optional "auto" or "low" (default: "auto")`

1666 1702 

1667 Moderation level for the generated image. Default: `auto`.1703 Moderation level for the generated image. Default: `auto`.


1676 1712 

1677 `minimum: 0`, `maximum: 100`1713 `minimum: 0`, `maximum: 100`

1678 1714 

1679 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`1715 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

1680 1716 

1681 The output format of the generated image. One of `png`, `webp`, or1717 The output format of the generated image. One of `png`, `webp`, `jpeg`,

1682 `jpeg`. Default: `png`.1718 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

1719 that supports the selected format. GIF output does not support

1720 partial image streaming (`partial_images` greater than `0`),

1721 `input_image_mask`, or custom `output_compression`.

1722 Responses lifecycle events can still be streamed for GIF output.

1683 1723 

1684 - `"png"`1724 - `"png"`

1685 1725 


1687 1727 

1688 - `"jpeg"`1728 - `"jpeg"`

1689 1729 

1730 - `"gif"`

1731 

1732 - `"svg"`

1733 

1690 - `partial_images: optional integer (default: 0)`1734 - `partial_images: optional integer (default: 0)`

1691 1735 

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


1730 1774 

1731 - `"auto"`1775 - `"auto"`

1732 1776 

1777 - `svg: optional object { model, reasoning }`

1778 

1779 SVG author model settings. Requires `output_format` to be `svg`.

1780 When SVG model selection is enabled, omitting this object uses the

1781 outer response model. Otherwise, the default SVG author is used and

1782 explicit model overrides are unavailable.

1783 

1784 - `model: optional string`

1785 

1786 `minLength: 1`

1787 

1788 - `reasoning: optional object { effort } or null`

1789 

1790 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

1791 

1792 - `effort: optional "none" or "minimal" or "low" or 4 more`

1793 

1794 Controls how much effort the model should spend on reasoning for this request.

1795 

1796 - `"none"`

1797 

1798 - `"minimal"`

1799 

1800 - `"low"`

1801 

1802 - `"medium"`

1803 

1804 - `"high"`

1805 

1806 - `"xhigh"`

1807 

1808 - `"max"`

1809 

1733 - `LocalShell object { type }`1810 - `LocalShell object { type }`

1734 1811 

1735 A tool that allows the model to execute shell commands in a local environment.1812 A tool that allows the model to execute shell commands in a local environment.

Details

20 20 

21 - `string`21 - `string`

22 22 

23 - `ImageModel = "gpt-image-1.5" or "gpt-image-2" or "gpt-image-2-2026-04-21" or 9 more`23 - `ImageModel = "gpt-image-1.5" or "gpt-image-2" or "gpt-image-2-2026-04-21" or 11 more`

24 24 

25 - `"gpt-image-1.5"`25 - `"gpt-image-1.5"`

26 26 


36 36 

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

38 38 

39 - `"gpt-image-2.6-sunburst"`

40 

41 - `"gpt-image-2.6-flare"`

42 

39 - `"gpt-image-1"`43 - `"gpt-image-1"`

40 44 

41 - `"gpt-image-1-mini"`45 - `"gpt-image-1-mini"`


76 80 

77### Returns81### Returns

78 82 

79- `ImagesResponse object { created, background, data, 5 more }`83- `ImagesResponse object { created, background, data, 6 more }`

80 84 

81 The response from the image generation endpoint.85 The response from the image generation endpoint.

82 86 


112 116 

113 `format: uri`117 `format: uri`

114 118 

115 - `output_format: optional "png" or "webp" or "jpeg"`119 - `output_format: optional "png" or "webp" or "jpeg" or 2 more`

116 120 

117 The output format of the image generation. Either `png`, `webp`, or `jpeg`.121 The output format of the generated image.

118 122 

119 - `"png"`123 - `"png"`

120 124 


122 126 

123 - `"jpeg"`127 - `"jpeg"`

124 128 

129 - `"gif"`

130 

131 - `"svg"`

132 

125 - `quality: optional "low" or "medium" or "high" or 2 more`133 - `quality: optional "low" or "medium" or "high" or 2 more`

126 134 

127 The quality of the image generated. One of `low`, `medium`, `high`, `xhigh`, or `max`.135 The quality of the image generated. One of `low`, `medium`, `high`, `xhigh`, or `max`.


156 164 

157 - `"1536x1024"`165 - `"1536x1024"`

158 166 

167 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

168 

169 Token usage for the model that authored the SVG, separate from image rendering usage.

170 

171 - `input_tokens: integer`

172 

173 - `model: string`

174 

175 - `output_tokens: integer`

176 

177 - `reasoning_tokens: integer`

178 

179 - `total_tokens: integer`

180 

159 - `usage: optional object { input_tokens, input_tokens_details, output_tokens, 2 more }`181 - `usage: optional object { input_tokens, input_tokens_details, output_tokens, 2 more }`

160 182 

161 For `gpt-image-1` only, the token usage information for the image generation.183 For `gpt-image-1` only, the token usage information for the image generation.


227 "quality": "low",249 "quality": "low",

228 "safety_identifier": "safety_identifier",250 "safety_identifier": "safety_identifier",

229 "size": "1024x1024",251 "size": "1024x1024",

252 "svg_usage": {

253 "input_tokens": 0,

254 "model": "model",

255 "output_tokens": 0,

256 "reasoning_tokens": 0,

257 "total_tokens": 0

258 },

230 "usage": {259 "usage": {

231 "input_tokens": 0,260 "input_tokens": 0,

232 "input_tokens_details": {261 "input_tokens_details": {

Details

43 43 

44 - `"auto"`44 - `"auto"`

45 45 

46- `complexity: optional "low" or "medium" or "high" or null`

47 

48 Computation spent planning the image, independently of rendering quality. Uses the image model's configured default when omitted. For SVG output, controls the reference image, independently of the SVG author's reasoning.

49 

50 - `"low"`

51 

52 - `"medium"`

53 

54 - `"high"`

55 

56- `frame_count: optional integer or null`

57 

58 Number of frames for GIF output. Accepts integers from 2 through 16. Defaults to 9 when omitted. Only supported with output_format=gif. The requested size must satisfy the selected model's GIF size limits. GIF output does not support streaming, partial images, masks, or custom output compression. Requires access to the GIF preview for the selected model.

59 

60 `minimum: 2`, `maximum: 16`

61 

62- `frame_duration_ms: optional integer or null`

63 

64 Requested delay per GIF frame, in milliseconds. Defaults to 200 when omitted. GIF output rounds to the nearest 10 ms and caps the encoded delay at 655,350 ms per frame. Only supported with output_format=gif.

65 

66 `minimum: 20`

67 

46- `input_fidelity: optional "high" or "low" or null`68- `input_fidelity: optional "high" or "low" or null`

47 69 

48 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.70 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


80 102 

81 `maxLength: 20971520`, `format: uri`103 `maxLength: 20971520`, `format: uri`

82 104 

83- `model: optional string or "gpt-image-1.5" or "gpt-image-2" or "gpt-image-2-2026-04-21" or 7 more or null (default: "gpt-image-2.5-sunburst")`105- `model: optional string or "gpt-image-1.5" or "gpt-image-2" or "gpt-image-2-2026-04-21" or 9 more or null (default: "gpt-image-2.5-sunburst")`

84 106 

85 The GPT image model to use for image editing, including `gpt-image-2`, its dated107 The GPT image model to use for image editing, including `gpt-image-2`, its dated

86 snapshot `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,108 snapshot `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

87 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`, and109 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

88 `gpt-image-2.5-flare-2026-09-08`. Defaults to `gpt-image-2.5-sunburst`.110 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`, and `gpt-image-2.6-flare`.

111 Defaults to `gpt-image-2.5-sunburst`.

89 112 

90 `gpt-image-1` was shut down on October 23, 2026. Use113 `gpt-image-1` was shut down on October 23, 2026. Use

91 `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead.114 `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead.

92 115 

93 - `string`116 - `string`

94 117 

95 - `"gpt-image-1.5" or "gpt-image-2" or "gpt-image-2-2026-04-21" or 7 more`118 - `"gpt-image-1.5" or "gpt-image-2" or "gpt-image-2-2026-04-21" or 9 more`

96 119 

97 The GPT image model to use for image editing, including `gpt-image-2`, its dated120 The GPT image model to use for image editing, including `gpt-image-2`, its dated

98 snapshot `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,121 snapshot `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

99 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`, and122 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

100 `gpt-image-2.5-flare-2026-09-08`. Defaults to `gpt-image-2.5-sunburst`.123 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`, and `gpt-image-2.6-flare`.

124 Defaults to `gpt-image-2.5-sunburst`.

101 125 

102 `gpt-image-1` was shut down on October 23, 2026. Use126 `gpt-image-1` was shut down on October 23, 2026. Use

103 `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead.127 `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead.


116 140 

117 - `"gpt-image-2.5-flare-2026-09-08"`141 - `"gpt-image-2.5-flare-2026-09-08"`

118 142 

143 - `"gpt-image-2.6-sunburst"`

144 

145 - `"gpt-image-2.6-flare"`

146 

119 - `"gpt-image-1"`147 - `"gpt-image-1"`

120 148 

121 - `"gpt-image-1-mini"`149 - `"gpt-image-1-mini"`


142 170 

143 `minimum: 0`, `maximum: 100`171 `minimum: 0`, `maximum: 100`

144 172 

145- `output_format: optional "png" or "jpeg" or "webp" or null (default: "png")`173- `output_format: optional "png" or "jpeg" or "webp" or "gif" or null (default: "png")`

146 174 

147 Output image format. Supported for GPT image models.175 Output image format. Supported for GPT image models.

148 176 


152 180 

153 - `"webp"`181 - `"webp"`

154 182 

183 - `"gif"`

184 

155- `partial_images: optional integer or null (default: 0)`185- `partial_images: optional integer or null (default: 0)`

156 186 

157 The number of partial images to generate. This parameter is used for187 The number of partial images to generate. This parameter is used for


215 245 

216### Returns246### Returns

217 247 

218- `ImagesResponse object { created, background, data, 5 more }`248- `ImagesResponse object { created, background, data, 6 more }`

219 249 

220 The response from the image generation endpoint.250 The response from the image generation endpoint.

221 251 


251 281 

252 `format: uri`282 `format: uri`

253 283 

254 - `output_format: optional "png" or "webp" or "jpeg"`284 - `output_format: optional "png" or "webp" or "jpeg" or 2 more`

255 285 

256 The output format of the image generation. Either `png`, `webp`, or `jpeg`.286 The output format of the generated image.

257 287 

258 - `"png"`288 - `"png"`

259 289 


261 291 

262 - `"jpeg"`292 - `"jpeg"`

263 293 

294 - `"gif"`

295 

296 - `"svg"`

297 

264 - `quality: optional "low" or "medium" or "high" or 2 more`298 - `quality: optional "low" or "medium" or "high" or 2 more`

265 299 

266 The quality of the image generated. One of `low`, `medium`, `high`, `xhigh`, or `max`.300 The quality of the image generated. One of `low`, `medium`, `high`, `xhigh`, or `max`.


295 329 

296 - `"1536x1024"`330 - `"1536x1024"`

297 331 

332 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

333 

334 Token usage for the model that authored the SVG, separate from image rendering usage.

335 

336 - `input_tokens: integer`

337 

338 - `model: string`

339 

340 - `output_tokens: integer`

341 

342 - `reasoning_tokens: integer`

343 

344 - `total_tokens: integer`

345 

298 - `usage: optional object { input_tokens, input_tokens_details, output_tokens, 2 more }`346 - `usage: optional object { input_tokens, input_tokens_details, output_tokens, 2 more }`

299 347 

300 For `gpt-image-1` only, the token usage information for the image generation.348 For `gpt-image-1` only, the token usage information for the image generation.


371 "quality": "low",419 "quality": "low",

372 "safety_identifier": "safety_identifier",420 "safety_identifier": "safety_identifier",

373 "size": "1024x1024",421 "size": "1024x1024",

422 "svg_usage": {

423 "input_tokens": 0,

424 "model": "model",

425 "output_tokens": 0,

426 "reasoning_tokens": 0,

427 "total_tokens": 0

428 },

374 "usage": {429 "usage": {

375 "input_tokens": 0,430 "input_tokens": 0,

376 "input_tokens_details": {431 "input_tokens_details": {

Details

16 Supported models include `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,16 Supported models include `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,

17 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,17 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

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

19 `gpt-image-2.5-flare-2026-09-08`, and `chatgpt-image-latest`.19 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`, `gpt-image-2.6-flare`,

20 and `chatgpt-image-latest`.

20 21 

21 `gpt-image-1` was shut down on October 23, 2026. Use22 `gpt-image-1` was shut down on October 23, 2026. Use

22 `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead.23 `gpt-image-2.5-sunburst` or `gpt-image-2.5-flare` instead.

23 24 

24 - `string`25 - `string`

25 26 

26 - `ImageModel = "gpt-image-1.5" or "gpt-image-2" or "gpt-image-2-2026-04-21" or 9 more`27 - `ImageModel = "gpt-image-1.5" or "gpt-image-2" or "gpt-image-2-2026-04-21" or 11 more`

27 28 

28 - `"gpt-image-1.5"`29 - `"gpt-image-1.5"`

29 30 


39 40 

40 - `"gpt-image-2.5-flare-2026-09-08"`41 - `"gpt-image-2.5-flare-2026-09-08"`

41 42 

43 - `"gpt-image-2.6-sunburst"`

44 

45 - `"gpt-image-2.6-flare"`

46 

42 - `"gpt-image-1"`47 - `"gpt-image-1"`

43 48 

44 - `"gpt-image-1-mini"`49 - `"gpt-image-1-mini"`


72 77 

73 - `"auto"`78 - `"auto"`

74 79 

80- `complexity: optional "low" or "medium" or "high" or null`

81 

82 Computation spent planning the image, independently of rendering quality. Uses the image model's configured default when omitted. For SVG output, controls the reference image, independently of the SVG author's reasoning.

83 

84 - `"low"`

85 

86 - `"medium"`

87 

88 - `"high"`

89 

90- `frame_count: optional integer or null`

91 

92 Number of frames for GIF output. Accepts integers from 2 through 16. Defaults to 9 when omitted. Only supported with output_format=gif. The requested size must satisfy the selected model's GIF size limits. GIF output does not support streaming, partial images, masks, or custom output compression. Requires access to the GIF preview for the selected model.

93 

94 `minimum: 2`, `maximum: 16`

95 

96- `frame_duration_ms: optional integer or null`

97 

98 Requested delay per GIF frame, in milliseconds. Defaults to 200 when omitted. GIF output rounds to the nearest 10 ms and caps the encoded delay at 655,350 ms per frame. Only supported with output_format=gif.

99 

100 `minimum: 20`

101 

75- `moderation: optional "low" or "auto" or null (default: "auto")`102- `moderation: optional "low" or "auto" or null (default: "auto")`

76 103 

77 Control the content-moderation level for images generated by the GPT image models. Must be either `low` for less restrictive filtering or `auto` (default value).104 Control the content-moderation level for images generated by the GPT image models. Must be either `low` for less restrictive filtering or `auto` (default value).


90 117 

91 The compression level (0-100%) for the generated images. This parameter is only supported for the GPT image models with the `webp` or `jpeg` output formats, and defaults to 100.118 The compression level (0-100%) for the generated images. This parameter is only supported for the GPT image models with the `webp` or `jpeg` output formats, and defaults to 100.

92 119 

93- `output_format: optional "png" or "jpeg" or "webp" or null (default: "png")`120- `output_format: optional "png" or "jpeg" or "webp" or 2 more or null (default: "png")`

94 121 

95 The format in which the generated images are returned. This parameter is only supported for the GPT image models. Must be one of `png`, `jpeg`, or `webp`.122 The format in which the generated images are returned. This parameter is only supported for the GPT image models.

96 123 

97 - `"png"`124 - `"png"`

98 125 


100 127 

101 - `"webp"`128 - `"webp"`

102 129 

130 - `"gif"`

131 

132 - `"svg"`

133 

103- `partial_images: optional integer or null (default: 0)`134- `partial_images: optional integer or null (default: 0)`

104 135 

105 The number of partial images to generate. This parameter is used for136 The number of partial images to generate. This parameter is used for


191 222 

192 - `"natural"`223 - `"natural"`

193 224 

225- `svg: optional object { model, reasoning } or null`

226 

227 Selects the model and reasoning effort used to author SVG output. Requires output_format=svg and access to SVG model selection. When model selection is enabled, supply svg.model. When model selection is disabled, omit this object. The top-level model selects the image model that creates the reference image. SVG generation requires n=1 and does not support streaming, partial images, prompt_rewriter, or output_compression. SVG edits are not supported.

228 

229 - `model: string`

230 

231 Model used to author the SVG. Required when SVG model selection is enabled.

232 

233 `minLength: 1`

234 

235 - `reasoning: optional object { effort } or null`

236 

237 Reasoning settings for the SVG author, independent of image complexity. Omitted or null effort uses the author model's default. Supported efforts depend on the selected author model.

238 

239 - `effort: optional "none" or "minimal" or "low" or 4 more or null`

240 

241 Controls how much effort the SVG author spends on reasoning. Uses the author model's default when omitted or null.

242 

243 - `"none"`

244 

245 - `"minimal"`

246 

247 - `"low"`

248 

249 - `"medium"`

250 

251 - `"high"`

252 

253 - `"xhigh"`

254 

255 - `"max"`

256 

194- `user: optional string`257- `user: optional string`

195 258 

196 Deprecated: use `safety_identifier` instead. This parameter remains accepted for backward compatibility and is used when `safety_identifier` is omitted, null, or empty. [Learn more](/api/docs/guides/safety-best-practices#implement-safety-identifiers).259 Deprecated: use `safety_identifier` instead. This parameter remains accepted for backward compatibility and is used when `safety_identifier` is omitted, null, or empty. [Learn more](/api/docs/guides/safety-best-practices#implement-safety-identifiers).

197 260 

198### Returns261### Returns

199 262 

200- `ImagesResponse object { created, background, data, 5 more }`263- `ImagesResponse object { created, background, data, 6 more }`

201 264 

202 The response from the image generation endpoint.265 The response from the image generation endpoint.

203 266 


233 296 

234 `format: uri`297 `format: uri`

235 298 

236 - `output_format: optional "png" or "webp" or "jpeg"`299 - `output_format: optional "png" or "webp" or "jpeg" or 2 more`

237 300 

238 The output format of the image generation. Either `png`, `webp`, or `jpeg`.301 The output format of the generated image.

239 302 

240 - `"png"`303 - `"png"`

241 304 


243 306 

244 - `"jpeg"`307 - `"jpeg"`

245 308 

309 - `"gif"`

310 

311 - `"svg"`

312 

246 - `quality: optional "low" or "medium" or "high" or 2 more`313 - `quality: optional "low" or "medium" or "high" or 2 more`

247 314 

248 The quality of the image generated. One of `low`, `medium`, `high`, `xhigh`, or `max`.315 The quality of the image generated. One of `low`, `medium`, `high`, `xhigh`, or `max`.


277 344 

278 - `"1536x1024"`345 - `"1536x1024"`

279 346 

347 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

348 

349 Token usage for the model that authored the SVG, separate from image rendering usage.

350 

351 - `input_tokens: integer`

352 

353 - `model: string`

354 

355 - `output_tokens: integer`

356 

357 - `reasoning_tokens: integer`

358 

359 - `total_tokens: integer`

360 

280 - `usage: optional object { input_tokens, input_tokens_details, output_tokens, 2 more }`361 - `usage: optional object { input_tokens, input_tokens_details, output_tokens, 2 more }`

281 362 

282 For `gpt-image-1` only, the token usage information for the image generation.363 For `gpt-image-1` only, the token usage information for the image generation.


357 "quality": "low",438 "quality": "low",

358 "safety_identifier": "safety_identifier",439 "safety_identifier": "safety_identifier",

359 "size": "1024x1024",440 "size": "1024x1024",

441 "svg_usage": {

442 "input_tokens": 0,

443 "model": "model",

444 "output_tokens": 0,

445 "reasoning_tokens": 0,

446 "total_tokens": 0

447 },

360 "usage": {448 "usage": {

361 "input_tokens": 0,449 "input_tokens": 0,

362 "input_tokens_details": {450 "input_tokens_details": {

Details

4400 4400 

4401 - `"programmatic_tool_calling"`4401 - `"programmatic_tool_calling"`

4402 4402 

4403 - `ImageGeneration object { type, action, background, 9 more }`4403 - `ImageGeneration object { type, action, background, 13 more }`

4404 4404 

4405 A tool that generates images using the GPT image models.4405 A tool that generates images using the GPT image models.

4406 4406 


4436 4436 

4437 - `"auto"`4437 - `"auto"`

4438 4438 

4439 - `complexity: optional "low" or "medium" or "high"`

4440 

4441 Computation spent planning the image, independently of rendering quality.

4442 Overrides the outer response's `reasoning.effort` for image generation.

4443 When omitted, inherits a supported outer reasoning effort or uses the

4444 image model's configured default.

4445 For SVG output, controls the reference image, not the SVG author's

4446 reasoning.

4447 

4448 - `"low"`

4449 

4450 - `"medium"`

4451 

4452 - `"high"`

4453 

4454 - `frame_count: optional integer (default: 9)`

4455 

4456 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

4457 

4458 `minimum: 2`, `maximum: 16`

4459 

4460 - `frame_duration_ms: optional integer (default: 200)`

4461 

4462 Duration of each GIF frame in milliseconds, rounded to 10 ms.

4463 Requires `output_format` to be `gif`. Default: 200.

4464 

4465 `minimum: 20`, `maximum: 2000`

4466 

4439 - `input_fidelity: optional "high" or "low" or null`4467 - `input_fidelity: optional "high" or "low" or null`

4440 4468 

4441 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.4469 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


4457 4485 

4458 Base64-encoded mask image.4486 Base64-encoded mask image.

4459 4487 

4460 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`4488 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

4461 4489 

4462 The image generation model to use. One of `gpt-image-1-mini`,4490 The image generation model to use. One of `gpt-image-1-mini`,

4463 `gpt-image-1.5`, `gpt-image-2`,4491 `gpt-image-1.5`, `gpt-image-2`,

4464 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,4492 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

4465 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,4493 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

4466 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:4494 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

4495 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

4467 `gpt-image-2`.4496 `gpt-image-2`.

4468 4497 

4469 `gpt-image-1` was shut down on October 23, 2026. Use4498 `gpt-image-1` was shut down on October 23, 2026. Use


4471 4500 

4472 - `string`4501 - `string`

4473 4502 

4474 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`4503 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

4475 4504 

4476 The image generation model to use. One of `gpt-image-1-mini`,4505 The image generation model to use. One of `gpt-image-1-mini`,

4477 `gpt-image-1.5`, `gpt-image-2`,4506 `gpt-image-1.5`, `gpt-image-2`,

4478 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,4507 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

4479 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,4508 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

4480 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:4509 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

4510 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

4481 `gpt-image-2`.4511 `gpt-image-2`.

4482 4512 

4483 `gpt-image-1` was shut down on October 23, 2026. Use4513 `gpt-image-1` was shut down on October 23, 2026. Use


4487 4517 

4488 - `"gpt-image-1-mini"`4518 - `"gpt-image-1-mini"`

4489 4519 

4490 - `"gpt-image-1.5"`

4491 

4492 - `"gpt-image-2"`4520 - `"gpt-image-2"`

4493 4521 

4494 - `"gpt-image-2-2026-04-21"`4522 - `"gpt-image-2-2026-04-21"`


4501 4529 

4502 - `"gpt-image-2.5-flare-2026-09-08"`4530 - `"gpt-image-2.5-flare-2026-09-08"`

4503 4531 

4532 - `"gpt-image-2.6-sunburst"`

4533 

4534 - `"gpt-image-2.6-flare"`

4535 

4536 - `"gpt-image-1.5"`

4537 

4538 - `"chatgpt-image-latest"`

4539 

4504 - `moderation: optional "auto" or "low" (default: "auto")`4540 - `moderation: optional "auto" or "low" (default: "auto")`

4505 4541 

4506 Moderation level for the generated image. Default: `auto`.4542 Moderation level for the generated image. Default: `auto`.


4515 4551 

4516 `minimum: 0`, `maximum: 100`4552 `minimum: 0`, `maximum: 100`

4517 4553 

4518 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`4554 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

4519 4555 

4520 The output format of the generated image. One of `png`, `webp`, or4556 The output format of the generated image. One of `png`, `webp`, `jpeg`,

4521 `jpeg`. Default: `png`.4557 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

4558 that supports the selected format. GIF output does not support

4559 partial image streaming (`partial_images` greater than `0`),

4560 `input_image_mask`, or custom `output_compression`.

4561 Responses lifecycle events can still be streamed for GIF output.

4522 4562 

4523 - `"png"`4563 - `"png"`

4524 4564 


4526 4566 

4527 - `"jpeg"`4567 - `"jpeg"`

4528 4568 

4569 - `"gif"`

4570 

4571 - `"svg"`

4572 

4529 - `partial_images: optional integer (default: 0)`4573 - `partial_images: optional integer (default: 0)`

4530 4574 

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


4569 4613 

4570 - `"auto"`4614 - `"auto"`

4571 4615 

4616 - `svg: optional object { model, reasoning }`

4617 

4618 SVG author model settings. Requires `output_format` to be `svg`.

4619 When SVG model selection is enabled, omitting this object uses the

4620 outer response model. Otherwise, the default SVG author is used and

4621 explicit model overrides are unavailable.

4622 

4623 - `model: optional string`

4624 

4625 `minLength: 1`

4626 

4627 - `reasoning: optional object { effort } or null`

4628 

4629 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

4630 

4631 - `effort: optional "none" or "minimal" or "low" or 4 more`

4632 

4633 Controls how much effort the model should spend on reasoning for this request.

4634 

4635 - `"none"`

4636 

4637 - `"minimal"`

4638 

4639 - `"low"`

4640 

4641 - `"medium"`

4642 

4643 - `"high"`

4644 

4645 - `"xhigh"`

4646 

4647 - `"max"`

4648 

4572 - `LocalShell object { type }`4649 - `LocalShell object { type }`

4573 4650 

4574 A tool that allows the model to execute shell commands in a local environment.4651 A tool that allows the model to execute shell commands in a local environment.


5510 5587 

5511 - `"programmatic_tool_calling"`5588 - `"programmatic_tool_calling"`

5512 5589 

5513 - `ImageGeneration object { type, action, background, 9 more }`5590 - `ImageGeneration object { type, action, background, 13 more }`

5514 5591 

5515 A tool that generates images using the GPT image models.5592 A tool that generates images using the GPT image models.

5516 5593 


5546 5623 

5547 - `"auto"`5624 - `"auto"`

5548 5625 

5626 - `complexity: optional "low" or "medium" or "high"`

5627 

5628 Computation spent planning the image, independently of rendering quality.

5629 Overrides the outer response's `reasoning.effort` for image generation.

5630 When omitted, inherits a supported outer reasoning effort or uses the

5631 image model's configured default.

5632 For SVG output, controls the reference image, not the SVG author's

5633 reasoning.

5634 

5635 - `"low"`

5636 

5637 - `"medium"`

5638 

5639 - `"high"`

5640 

5641 - `frame_count: optional integer (default: 9)`

5642 

5643 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

5644 

5645 `minimum: 2`, `maximum: 16`

5646 

5647 - `frame_duration_ms: optional integer (default: 200)`

5648 

5649 Duration of each GIF frame in milliseconds, rounded to 10 ms.

5650 Requires `output_format` to be `gif`. Default: 200.

5651 

5652 `minimum: 20`, `maximum: 2000`

5653 

5549 - `input_fidelity: optional "high" or "low" or null`5654 - `input_fidelity: optional "high" or "low" or null`

5550 5655 

5551 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.5656 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


5567 5672 

5568 Base64-encoded mask image.5673 Base64-encoded mask image.

5569 5674 

5570 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`5675 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

5571 5676 

5572 The image generation model to use. One of `gpt-image-1-mini`,5677 The image generation model to use. One of `gpt-image-1-mini`,

5573 `gpt-image-1.5`, `gpt-image-2`,5678 `gpt-image-1.5`, `gpt-image-2`,

5574 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,5679 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

5575 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,5680 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

5576 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:5681 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

5682 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

5577 `gpt-image-2`.5683 `gpt-image-2`.

5578 5684 

5579 `gpt-image-1` was shut down on October 23, 2026. Use5685 `gpt-image-1` was shut down on October 23, 2026. Use


5581 5687 

5582 - `string`5688 - `string`

5583 5689 

5584 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`5690 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

5585 5691 

5586 The image generation model to use. One of `gpt-image-1-mini`,5692 The image generation model to use. One of `gpt-image-1-mini`,

5587 `gpt-image-1.5`, `gpt-image-2`,5693 `gpt-image-1.5`, `gpt-image-2`,

5588 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,5694 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

5589 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,5695 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

5590 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:5696 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

5697 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

5591 `gpt-image-2`.5698 `gpt-image-2`.

5592 5699 

5593 `gpt-image-1` was shut down on October 23, 2026. Use5700 `gpt-image-1` was shut down on October 23, 2026. Use


5597 5704 

5598 - `"gpt-image-1-mini"`5705 - `"gpt-image-1-mini"`

5599 5706 

5600 - `"gpt-image-1.5"`

5601 

5602 - `"gpt-image-2"`5707 - `"gpt-image-2"`

5603 5708 

5604 - `"gpt-image-2-2026-04-21"`5709 - `"gpt-image-2-2026-04-21"`


5611 5716 

5612 - `"gpt-image-2.5-flare-2026-09-08"`5717 - `"gpt-image-2.5-flare-2026-09-08"`

5613 5718 

5719 - `"gpt-image-2.6-sunburst"`

5720 

5721 - `"gpt-image-2.6-flare"`

5722 

5723 - `"gpt-image-1.5"`

5724 

5725 - `"chatgpt-image-latest"`

5726 

5614 - `moderation: optional "auto" or "low" (default: "auto")`5727 - `moderation: optional "auto" or "low" (default: "auto")`

5615 5728 

5616 Moderation level for the generated image. Default: `auto`.5729 Moderation level for the generated image. Default: `auto`.


5625 5738 

5626 `minimum: 0`, `maximum: 100`5739 `minimum: 0`, `maximum: 100`

5627 5740 

5628 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`5741 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

5629 5742 

5630 The output format of the generated image. One of `png`, `webp`, or5743 The output format of the generated image. One of `png`, `webp`, `jpeg`,

5631 `jpeg`. Default: `png`.5744 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

5745 that supports the selected format. GIF output does not support

5746 partial image streaming (`partial_images` greater than `0`),

5747 `input_image_mask`, or custom `output_compression`.

5748 Responses lifecycle events can still be streamed for GIF output.

5632 5749 

5633 - `"png"`5750 - `"png"`

5634 5751 


5636 5753 

5637 - `"jpeg"`5754 - `"jpeg"`

5638 5755 

5756 - `"gif"`

5757 

5758 - `"svg"`

5759 

5639 - `partial_images: optional integer (default: 0)`5760 - `partial_images: optional integer (default: 0)`

5640 5761 

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


5679 5800 

5680 - `"auto"`5801 - `"auto"`

5681 5802 

5803 - `svg: optional object { model, reasoning }`

5804 

5805 SVG author model settings. Requires `output_format` to be `svg`.

5806 When SVG model selection is enabled, omitting this object uses the

5807 outer response model. Otherwise, the default SVG author is used and

5808 explicit model overrides are unavailable.

5809 

5810 - `model: optional string`

5811 

5812 `minLength: 1`

5813 

5814 - `reasoning: optional object { effort } or null`

5815 

5816 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

5817 

5818 - `effort: optional "none" or "minimal" or "low" or 4 more`

5819 

5820 Controls how much effort the model should spend on reasoning for this request.

5821 

5822 - `"none"`

5823 

5824 - `"minimal"`

5825 

5826 - `"low"`

5827 

5828 - `"medium"`

5829 

5830 - `"high"`

5831 

5832 - `"xhigh"`

5833 

5834 - `"max"`

5835 

5682 - `LocalShell object { type }`5836 - `LocalShell object { type }`

5683 5837 

5684 A tool that allows the model to execute shell commands in a local environment.5838 A tool that allows the model to execute shell commands in a local environment.


6151 6305 

6152 The ID of the compaction item.6306 The ID of the compaction item.

6153 6307 

6154 - `ImageGenerationCall object { id, result, status, 8 more }`6308 - `ImageGenerationCall object { id, result, status, 9 more }`

6155 6309 

6156 An image generation request made by the model.6310 An image generation request made by the model.

6157 6311 


6239 6393 

6240 - `"unknown"`6394 - `"unknown"`

6241 6395 

6242 - `output_format: optional "png" or "webp" or "jpeg" or null`6396 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

6243 6397 

6244 The output format used for generation.6398 The output format used for generation.

6245 6399 


6249 6403 

6250 - `"jpeg"`6404 - `"jpeg"`

6251 6405 

6406 - `"gif"`

6407 

6408 - `"svg"`

6409 

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

6253 6411 

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


6285 6443 

6286 - `"1536x1024"`6444 - `"1536x1024"`

6287 6445 

6446 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

6447 

6448 - `input_tokens: integer`

6449 

6450 - `model: string`

6451 

6452 - `output_tokens: integer`

6453 

6454 - `reasoning_tokens: integer`

6455 

6456 - `total_tokens: integer`

6457 

6288 - `CodeInterpreterCall object { id, code, container_id, 3 more }`6458 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

6289 6459 

6290 A tool call to run code.6460 A tool call to run code.

Details

4954 4954 

4955 - `"programmatic_tool_calling"`4955 - `"programmatic_tool_calling"`

4956 4956 

4957 - `ImageGeneration object { type, action, background, 9 more }`4957 - `ImageGeneration object { type, action, background, 13 more }`

4958 4958 

4959 A tool that generates images using the GPT image models.4959 A tool that generates images using the GPT image models.

4960 4960 


4990 4990 

4991 - `"auto"`4991 - `"auto"`

4992 4992 

4993 - `complexity: optional "low" or "medium" or "high"`

4994 

4995 Computation spent planning the image, independently of rendering quality.

4996 Overrides the outer response's `reasoning.effort` for image generation.

4997 When omitted, inherits a supported outer reasoning effort or uses the

4998 image model's configured default.

4999 For SVG output, controls the reference image, not the SVG author's

5000 reasoning.

5001 

5002 - `"low"`

5003 

5004 - `"medium"`

5005 

5006 - `"high"`

5007 

5008 - `frame_count: optional integer (default: 9)`

5009 

5010 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

5011 

5012 `minimum: 2`, `maximum: 16`

5013 

5014 - `frame_duration_ms: optional integer (default: 200)`

5015 

5016 Duration of each GIF frame in milliseconds, rounded to 10 ms.

5017 Requires `output_format` to be `gif`. Default: 200.

5018 

5019 `minimum: 20`, `maximum: 2000`

5020 

4993 - `input_fidelity: optional "high" or "low" or null`5021 - `input_fidelity: optional "high" or "low" or null`

4994 5022 

4995 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.5023 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


5011 5039 

5012 Base64-encoded mask image.5040 Base64-encoded mask image.

5013 5041 

5014 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`5042 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

5015 5043 

5016 The image generation model to use. One of `gpt-image-1-mini`,5044 The image generation model to use. One of `gpt-image-1-mini`,

5017 `gpt-image-1.5`, `gpt-image-2`,5045 `gpt-image-1.5`, `gpt-image-2`,

5018 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,5046 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

5019 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,5047 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

5020 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:5048 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

5049 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

5021 `gpt-image-2`.5050 `gpt-image-2`.

5022 5051 

5023 `gpt-image-1` was shut down on October 23, 2026. Use5052 `gpt-image-1` was shut down on October 23, 2026. Use


5025 5054 

5026 - `string`5055 - `string`

5027 5056 

5028 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`5057 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

5029 5058 

5030 The image generation model to use. One of `gpt-image-1-mini`,5059 The image generation model to use. One of `gpt-image-1-mini`,

5031 `gpt-image-1.5`, `gpt-image-2`,5060 `gpt-image-1.5`, `gpt-image-2`,

5032 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,5061 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

5033 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,5062 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

5034 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:5063 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

5064 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

5035 `gpt-image-2`.5065 `gpt-image-2`.

5036 5066 

5037 `gpt-image-1` was shut down on October 23, 2026. Use5067 `gpt-image-1` was shut down on October 23, 2026. Use


5041 5071 

5042 - `"gpt-image-1-mini"`5072 - `"gpt-image-1-mini"`

5043 5073 

5044 - `"gpt-image-1.5"`

5045 

5046 - `"gpt-image-2"`5074 - `"gpt-image-2"`

5047 5075 

5048 - `"gpt-image-2-2026-04-21"`5076 - `"gpt-image-2-2026-04-21"`


5055 5083 

5056 - `"gpt-image-2.5-flare-2026-09-08"`5084 - `"gpt-image-2.5-flare-2026-09-08"`

5057 5085 

5086 - `"gpt-image-2.6-sunburst"`

5087 

5088 - `"gpt-image-2.6-flare"`

5089 

5090 - `"gpt-image-1.5"`

5091 

5092 - `"chatgpt-image-latest"`

5093 

5058 - `moderation: optional "auto" or "low" (default: "auto")`5094 - `moderation: optional "auto" or "low" (default: "auto")`

5059 5095 

5060 Moderation level for the generated image. Default: `auto`.5096 Moderation level for the generated image. Default: `auto`.


5069 5105 

5070 `minimum: 0`, `maximum: 100`5106 `minimum: 0`, `maximum: 100`

5071 5107 

5072 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`5108 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

5073 5109 

5074 The output format of the generated image. One of `png`, `webp`, or5110 The output format of the generated image. One of `png`, `webp`, `jpeg`,

5075 `jpeg`. Default: `png`.5111 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

5112 that supports the selected format. GIF output does not support

5113 partial image streaming (`partial_images` greater than `0`),

5114 `input_image_mask`, or custom `output_compression`.

5115 Responses lifecycle events can still be streamed for GIF output.

5076 5116 

5077 - `"png"`5117 - `"png"`

5078 5118 


5080 5120 

5081 - `"jpeg"`5121 - `"jpeg"`

5082 5122 

5123 - `"gif"`

5124 

5125 - `"svg"`

5126 

5083 - `partial_images: optional integer (default: 0)`5127 - `partial_images: optional integer (default: 0)`

5084 5128 

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


5123 5167 

5124 - `"auto"`5168 - `"auto"`

5125 5169 

5170 - `svg: optional object { model, reasoning }`

5171 

5172 SVG author model settings. Requires `output_format` to be `svg`.

5173 When SVG model selection is enabled, omitting this object uses the

5174 outer response model. Otherwise, the default SVG author is used and

5175 explicit model overrides are unavailable.

5176 

5177 - `model: optional string`

5178 

5179 `minLength: 1`

5180 

5181 - `reasoning: optional object { effort } or null`

5182 

5183 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

5184 

5185 - `effort: optional "none" or "minimal" or "low" or 4 more`

5186 

5187 Controls how much effort the model should spend on reasoning for this request.

5188 

5189 - `"none"`

5190 

5191 - `"minimal"`

5192 

5193 - `"low"`

5194 

5195 - `"medium"`

5196 

5197 - `"high"`

5198 

5199 - `"xhigh"`

5200 

5201 - `"max"`

5202 

5126 - `LocalShell object { type }`5203 - `LocalShell object { type }`

5127 5204 

5128 A tool that allows the model to execute shell commands in a local environment.5205 A tool that allows the model to execute shell commands in a local environment.


6064 6141 

6065 - `"programmatic_tool_calling"`6142 - `"programmatic_tool_calling"`

6066 6143 

6067 - `ImageGeneration object { type, action, background, 9 more }`6144 - `ImageGeneration object { type, action, background, 13 more }`

6068 6145 

6069 A tool that generates images using the GPT image models.6146 A tool that generates images using the GPT image models.

6070 6147 


6100 6177 

6101 - `"auto"`6178 - `"auto"`

6102 6179 

6180 - `complexity: optional "low" or "medium" or "high"`

6181 

6182 Computation spent planning the image, independently of rendering quality.

6183 Overrides the outer response's `reasoning.effort` for image generation.

6184 When omitted, inherits a supported outer reasoning effort or uses the

6185 image model's configured default.

6186 For SVG output, controls the reference image, not the SVG author's

6187 reasoning.

6188 

6189 - `"low"`

6190 

6191 - `"medium"`

6192 

6193 - `"high"`

6194 

6195 - `frame_count: optional integer (default: 9)`

6196 

6197 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

6198 

6199 `minimum: 2`, `maximum: 16`

6200 

6201 - `frame_duration_ms: optional integer (default: 200)`

6202 

6203 Duration of each GIF frame in milliseconds, rounded to 10 ms.

6204 Requires `output_format` to be `gif`. Default: 200.

6205 

6206 `minimum: 20`, `maximum: 2000`

6207 

6103 - `input_fidelity: optional "high" or "low" or null`6208 - `input_fidelity: optional "high" or "low" or null`

6104 6209 

6105 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.6210 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


6121 6226 

6122 Base64-encoded mask image.6227 Base64-encoded mask image.

6123 6228 

6124 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`6229 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

6125 6230 

6126 The image generation model to use. One of `gpt-image-1-mini`,6231 The image generation model to use. One of `gpt-image-1-mini`,

6127 `gpt-image-1.5`, `gpt-image-2`,6232 `gpt-image-1.5`, `gpt-image-2`,

6128 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,6233 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6129 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,6234 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6130 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:6235 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

6236 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

6131 `gpt-image-2`.6237 `gpt-image-2`.

6132 6238 

6133 `gpt-image-1` was shut down on October 23, 2026. Use6239 `gpt-image-1` was shut down on October 23, 2026. Use


6135 6241 

6136 - `string`6242 - `string`

6137 6243 

6138 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`6244 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

6139 6245 

6140 The image generation model to use. One of `gpt-image-1-mini`,6246 The image generation model to use. One of `gpt-image-1-mini`,

6141 `gpt-image-1.5`, `gpt-image-2`,6247 `gpt-image-1.5`, `gpt-image-2`,

6142 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,6248 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6143 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,6249 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6144 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:6250 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

6251 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

6145 `gpt-image-2`.6252 `gpt-image-2`.

6146 6253 

6147 `gpt-image-1` was shut down on October 23, 2026. Use6254 `gpt-image-1` was shut down on October 23, 2026. Use


6151 6258 

6152 - `"gpt-image-1-mini"`6259 - `"gpt-image-1-mini"`

6153 6260 

6154 - `"gpt-image-1.5"`

6155 

6156 - `"gpt-image-2"`6261 - `"gpt-image-2"`

6157 6262 

6158 - `"gpt-image-2-2026-04-21"`6263 - `"gpt-image-2-2026-04-21"`


6165 6270 

6166 - `"gpt-image-2.5-flare-2026-09-08"`6271 - `"gpt-image-2.5-flare-2026-09-08"`

6167 6272 

6273 - `"gpt-image-2.6-sunburst"`

6274 

6275 - `"gpt-image-2.6-flare"`

6276 

6277 - `"gpt-image-1.5"`

6278 

6279 - `"chatgpt-image-latest"`

6280 

6168 - `moderation: optional "auto" or "low" (default: "auto")`6281 - `moderation: optional "auto" or "low" (default: "auto")`

6169 6282 

6170 Moderation level for the generated image. Default: `auto`.6283 Moderation level for the generated image. Default: `auto`.


6179 6292 

6180 `minimum: 0`, `maximum: 100`6293 `minimum: 0`, `maximum: 100`

6181 6294 

6182 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`6295 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

6183 6296 

6184 The output format of the generated image. One of `png`, `webp`, or6297 The output format of the generated image. One of `png`, `webp`, `jpeg`,

6185 `jpeg`. Default: `png`.6298 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

6299 that supports the selected format. GIF output does not support

6300 partial image streaming (`partial_images` greater than `0`),

6301 `input_image_mask`, or custom `output_compression`.

6302 Responses lifecycle events can still be streamed for GIF output.

6186 6303 

6187 - `"png"`6304 - `"png"`

6188 6305 


6190 6307 

6191 - `"jpeg"`6308 - `"jpeg"`

6192 6309 

6310 - `"gif"`

6311 

6312 - `"svg"`

6313 

6193 - `partial_images: optional integer (default: 0)`6314 - `partial_images: optional integer (default: 0)`

6194 6315 

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


6233 6354 

6234 - `"auto"`6355 - `"auto"`

6235 6356 

6357 - `svg: optional object { model, reasoning }`

6358 

6359 SVG author model settings. Requires `output_format` to be `svg`.

6360 When SVG model selection is enabled, omitting this object uses the

6361 outer response model. Otherwise, the default SVG author is used and

6362 explicit model overrides are unavailable.

6363 

6364 - `model: optional string`

6365 

6366 `minLength: 1`

6367 

6368 - `reasoning: optional object { effort } or null`

6369 

6370 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

6371 

6372 - `effort: optional "none" or "minimal" or "low" or 4 more`

6373 

6374 Controls how much effort the model should spend on reasoning for this request.

6375 

6376 - `"none"`

6377 

6378 - `"minimal"`

6379 

6380 - `"low"`

6381 

6382 - `"medium"`

6383 

6384 - `"high"`

6385 

6386 - `"xhigh"`

6387 

6388 - `"max"`

6389 

6236 - `LocalShell object { type }`6390 - `LocalShell object { type }`

6237 6391 

6238 A tool that allows the model to execute shell commands in a local environment.6392 A tool that allows the model to execute shell commands in a local environment.


6705 6859 

6706 The ID of the compaction item.6860 The ID of the compaction item.

6707 6861 

6708 - `ImageGenerationCall object { id, result, status, 8 more }`6862 - `ImageGenerationCall object { id, result, status, 9 more }`

6709 6863 

6710 An image generation request made by the model.6864 An image generation request made by the model.

6711 6865 


6793 6947 

6794 - `"unknown"`6948 - `"unknown"`

6795 6949 

6796 - `output_format: optional "png" or "webp" or "jpeg" or null`6950 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

6797 6951 

6798 The output format used for generation.6952 The output format used for generation.

6799 6953 


6803 6957 

6804 - `"jpeg"`6958 - `"jpeg"`

6805 6959 

6960 - `"gif"`

6961 

6962 - `"svg"`

6963 

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

6807 6965 

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


6839 6997 

6840 - `"1536x1024"`6998 - `"1536x1024"`

6841 6999 

7000 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

7001 

7002 - `input_tokens: integer`

7003 

7004 - `model: string`

7005 

7006 - `output_tokens: integer`

7007 

7008 - `reasoning_tokens: integer`

7009 

7010 - `total_tokens: integer`

7011 

6842 - `CodeInterpreterCall object { id, code, container_id, 3 more }`7012 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

6843 7013 

6844 A tool call to run code.7014 A tool call to run code.

Details

3601 3601 

3602 - `"programmatic_tool_calling"`3602 - `"programmatic_tool_calling"`

3603 3603 

3604 - `ImageGeneration object { type, action, background, 9 more }`3604 - `ImageGeneration object { type, action, background, 13 more }`

3605 3605 

3606 A tool that generates images using the GPT image models.3606 A tool that generates images using the GPT image models.

3607 3607 


3637 3637 

3638 - `"auto"`3638 - `"auto"`

3639 3639 

3640 - `complexity: optional "low" or "medium" or "high"`

3641 

3642 Computation spent planning the image, independently of rendering quality.

3643 Overrides the outer response's `reasoning.effort` for image generation.

3644 When omitted, inherits a supported outer reasoning effort or uses the

3645 image model's configured default.

3646 For SVG output, controls the reference image, not the SVG author's

3647 reasoning.

3648 

3649 - `"low"`

3650 

3651 - `"medium"`

3652 

3653 - `"high"`

3654 

3655 - `frame_count: optional integer (default: 9)`

3656 

3657 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

3658 

3659 `minimum: 2`, `maximum: 16`

3660 

3661 - `frame_duration_ms: optional integer (default: 200)`

3662 

3663 Duration of each GIF frame in milliseconds, rounded to 10 ms.

3664 Requires `output_format` to be `gif`. Default: 200.

3665 

3666 `minimum: 20`, `maximum: 2000`

3667 

3640 - `input_fidelity: optional "high" or "low" or null`3668 - `input_fidelity: optional "high" or "low" or null`

3641 3669 

3642 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.3670 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


3658 3686 

3659 Base64-encoded mask image.3687 Base64-encoded mask image.

3660 3688 

3661 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3689 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3662 3690 

3663 The image generation model to use. One of `gpt-image-1-mini`,3691 The image generation model to use. One of `gpt-image-1-mini`,

3664 `gpt-image-1.5`, `gpt-image-2`,3692 `gpt-image-1.5`, `gpt-image-2`,

3665 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3693 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3666 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3694 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3667 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3695 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3696 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3668 `gpt-image-2`.3697 `gpt-image-2`.

3669 3698 

3670 `gpt-image-1` was shut down on October 23, 2026. Use3699 `gpt-image-1` was shut down on October 23, 2026. Use


3672 3701 

3673 - `string`3702 - `string`

3674 3703 

3675 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3704 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3676 3705 

3677 The image generation model to use. One of `gpt-image-1-mini`,3706 The image generation model to use. One of `gpt-image-1-mini`,

3678 `gpt-image-1.5`, `gpt-image-2`,3707 `gpt-image-1.5`, `gpt-image-2`,

3679 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3708 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3680 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3709 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3681 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3710 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3711 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3682 `gpt-image-2`.3712 `gpt-image-2`.

3683 3713 

3684 `gpt-image-1` was shut down on October 23, 2026. Use3714 `gpt-image-1` was shut down on October 23, 2026. Use


3688 3718 

3689 - `"gpt-image-1-mini"`3719 - `"gpt-image-1-mini"`

3690 3720 

3691 - `"gpt-image-1.5"`

3692 

3693 - `"gpt-image-2"`3721 - `"gpt-image-2"`

3694 3722 

3695 - `"gpt-image-2-2026-04-21"`3723 - `"gpt-image-2-2026-04-21"`


3702 3730 

3703 - `"gpt-image-2.5-flare-2026-09-08"`3731 - `"gpt-image-2.5-flare-2026-09-08"`

3704 3732 

3733 - `"gpt-image-2.6-sunburst"`

3734 

3735 - `"gpt-image-2.6-flare"`

3736 

3737 - `"gpt-image-1.5"`

3738 

3739 - `"chatgpt-image-latest"`

3740 

3705 - `moderation: optional "auto" or "low" (default: "auto")`3741 - `moderation: optional "auto" or "low" (default: "auto")`

3706 3742 

3707 Moderation level for the generated image. Default: `auto`.3743 Moderation level for the generated image. Default: `auto`.


3716 3752 

3717 `minimum: 0`, `maximum: 100`3753 `minimum: 0`, `maximum: 100`

3718 3754 

3719 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`3755 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

3720 3756 

3721 The output format of the generated image. One of `png`, `webp`, or3757 The output format of the generated image. One of `png`, `webp`, `jpeg`,

3722 `jpeg`. Default: `png`.3758 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

3759 that supports the selected format. GIF output does not support

3760 partial image streaming (`partial_images` greater than `0`),

3761 `input_image_mask`, or custom `output_compression`.

3762 Responses lifecycle events can still be streamed for GIF output.

3723 3763 

3724 - `"png"`3764 - `"png"`

3725 3765 


3727 3767 

3728 - `"jpeg"`3768 - `"jpeg"`

3729 3769 

3770 - `"gif"`

3771 

3772 - `"svg"`

3773 

3730 - `partial_images: optional integer (default: 0)`3774 - `partial_images: optional integer (default: 0)`

3731 3775 

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


3770 3814 

3771 - `"auto"`3815 - `"auto"`

3772 3816 

3817 - `svg: optional object { model, reasoning }`

3818 

3819 SVG author model settings. Requires `output_format` to be `svg`.

3820 When SVG model selection is enabled, omitting this object uses the

3821 outer response model. Otherwise, the default SVG author is used and

3822 explicit model overrides are unavailable.

3823 

3824 - `model: optional string`

3825 

3826 `minLength: 1`

3827 

3828 - `reasoning: optional object { effort } or null`

3829 

3830 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

3831 

3832 - `effort: optional "none" or "minimal" or "low" or 4 more`

3833 

3834 Controls how much effort the model should spend on reasoning for this request.

3835 

3836 - `"none"`

3837 

3838 - `"minimal"`

3839 

3840 - `"low"`

3841 

3842 - `"medium"`

3843 

3844 - `"high"`

3845 

3846 - `"xhigh"`

3847 

3848 - `"max"`

3849 

3773 - `LocalShell object { type }`3850 - `LocalShell object { type }`

3774 3851 

3775 A tool that allows the model to execute shell commands in a local environment.3852 A tool that allows the model to execute shell commands in a local environment.


4711 4788 

4712 - `"programmatic_tool_calling"`4789 - `"programmatic_tool_calling"`

4713 4790 

4714 - `ImageGeneration object { type, action, background, 9 more }`4791 - `ImageGeneration object { type, action, background, 13 more }`

4715 4792 

4716 A tool that generates images using the GPT image models.4793 A tool that generates images using the GPT image models.

4717 4794 


4747 4824 

4748 - `"auto"`4825 - `"auto"`

4749 4826 

4827 - `complexity: optional "low" or "medium" or "high"`

4828 

4829 Computation spent planning the image, independently of rendering quality.

4830 Overrides the outer response's `reasoning.effort` for image generation.

4831 When omitted, inherits a supported outer reasoning effort or uses the

4832 image model's configured default.

4833 For SVG output, controls the reference image, not the SVG author's

4834 reasoning.

4835 

4836 - `"low"`

4837 

4838 - `"medium"`

4839 

4840 - `"high"`

4841 

4842 - `frame_count: optional integer (default: 9)`

4843 

4844 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

4845 

4846 `minimum: 2`, `maximum: 16`

4847 

4848 - `frame_duration_ms: optional integer (default: 200)`

4849 

4850 Duration of each GIF frame in milliseconds, rounded to 10 ms.

4851 Requires `output_format` to be `gif`. Default: 200.

4852 

4853 `minimum: 20`, `maximum: 2000`

4854 

4750 - `input_fidelity: optional "high" or "low" or null`4855 - `input_fidelity: optional "high" or "low" or null`

4751 4856 

4752 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.4857 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


4768 4873 

4769 Base64-encoded mask image.4874 Base64-encoded mask image.

4770 4875 

4771 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`4876 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

4772 4877 

4773 The image generation model to use. One of `gpt-image-1-mini`,4878 The image generation model to use. One of `gpt-image-1-mini`,

4774 `gpt-image-1.5`, `gpt-image-2`,4879 `gpt-image-1.5`, `gpt-image-2`,

4775 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,4880 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

4776 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,4881 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

4777 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:4882 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

4883 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

4778 `gpt-image-2`.4884 `gpt-image-2`.

4779 4885 

4780 `gpt-image-1` was shut down on October 23, 2026. Use4886 `gpt-image-1` was shut down on October 23, 2026. Use


4782 4888 

4783 - `string`4889 - `string`

4784 4890 

4785 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`4891 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

4786 4892 

4787 The image generation model to use. One of `gpt-image-1-mini`,4893 The image generation model to use. One of `gpt-image-1-mini`,

4788 `gpt-image-1.5`, `gpt-image-2`,4894 `gpt-image-1.5`, `gpt-image-2`,

4789 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,4895 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

4790 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,4896 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

4791 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:4897 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

4898 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

4792 `gpt-image-2`.4899 `gpt-image-2`.

4793 4900 

4794 `gpt-image-1` was shut down on October 23, 2026. Use4901 `gpt-image-1` was shut down on October 23, 2026. Use


4798 4905 

4799 - `"gpt-image-1-mini"`4906 - `"gpt-image-1-mini"`

4800 4907 

4801 - `"gpt-image-1.5"`

4802 

4803 - `"gpt-image-2"`4908 - `"gpt-image-2"`

4804 4909 

4805 - `"gpt-image-2-2026-04-21"`4910 - `"gpt-image-2-2026-04-21"`


4812 4917 

4813 - `"gpt-image-2.5-flare-2026-09-08"`4918 - `"gpt-image-2.5-flare-2026-09-08"`

4814 4919 

4920 - `"gpt-image-2.6-sunburst"`

4921 

4922 - `"gpt-image-2.6-flare"`

4923 

4924 - `"gpt-image-1.5"`

4925 

4926 - `"chatgpt-image-latest"`

4927 

4815 - `moderation: optional "auto" or "low" (default: "auto")`4928 - `moderation: optional "auto" or "low" (default: "auto")`

4816 4929 

4817 Moderation level for the generated image. Default: `auto`.4930 Moderation level for the generated image. Default: `auto`.


4826 4939 

4827 `minimum: 0`, `maximum: 100`4940 `minimum: 0`, `maximum: 100`

4828 4941 

4829 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`4942 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

4830 4943 

4831 The output format of the generated image. One of `png`, `webp`, or4944 The output format of the generated image. One of `png`, `webp`, `jpeg`,

4832 `jpeg`. Default: `png`.4945 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

4946 that supports the selected format. GIF output does not support

4947 partial image streaming (`partial_images` greater than `0`),

4948 `input_image_mask`, or custom `output_compression`.

4949 Responses lifecycle events can still be streamed for GIF output.

4833 4950 

4834 - `"png"`4951 - `"png"`

4835 4952 


4837 4954 

4838 - `"jpeg"`4955 - `"jpeg"`

4839 4956 

4957 - `"gif"`

4958 

4959 - `"svg"`

4960 

4840 - `partial_images: optional integer (default: 0)`4961 - `partial_images: optional integer (default: 0)`

4841 4962 

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


4880 5001 

4881 - `"auto"`5002 - `"auto"`

4882 5003 

5004 - `svg: optional object { model, reasoning }`

5005 

5006 SVG author model settings. Requires `output_format` to be `svg`.

5007 When SVG model selection is enabled, omitting this object uses the

5008 outer response model. Otherwise, the default SVG author is used and

5009 explicit model overrides are unavailable.

5010 

5011 - `model: optional string`

5012 

5013 `minLength: 1`

5014 

5015 - `reasoning: optional object { effort } or null`

5016 

5017 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

5018 

5019 - `effort: optional "none" or "minimal" or "low" or 4 more`

5020 

5021 Controls how much effort the model should spend on reasoning for this request.

5022 

5023 - `"none"`

5024 

5025 - `"minimal"`

5026 

5027 - `"low"`

5028 

5029 - `"medium"`

5030 

5031 - `"high"`

5032 

5033 - `"xhigh"`

5034 

5035 - `"max"`

5036 

4883 - `LocalShell object { type }`5037 - `LocalShell object { type }`

4884 5038 

4885 A tool that allows the model to execute shell commands in a local environment.5039 A tool that allows the model to execute shell commands in a local environment.


5352 5506 

5353 The ID of the compaction item.5507 The ID of the compaction item.

5354 5508 

5355 - `ImageGenerationCall object { id, result, status, 8 more }`5509 - `ImageGenerationCall object { id, result, status, 9 more }`

5356 5510 

5357 An image generation request made by the model.5511 An image generation request made by the model.

5358 5512 


5440 5594 

5441 - `"unknown"`5595 - `"unknown"`

5442 5596 

5443 - `output_format: optional "png" or "webp" or "jpeg" or null`5597 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

5444 5598 

5445 The output format used for generation.5599 The output format used for generation.

5446 5600 


5450 5604 

5451 - `"jpeg"`5605 - `"jpeg"`

5452 5606 

5607 - `"gif"`

5608 

5609 - `"svg"`

5610 

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

5454 5612 

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


5486 5644 

5487 - `"1536x1024"`5645 - `"1536x1024"`

5488 5646 

5647 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

5648 

5649 - `input_tokens: integer`

5650 

5651 - `model: string`

5652 

5653 - `output_tokens: integer`

5654 

5655 - `reasoning_tokens: integer`

5656 

5657 - `total_tokens: integer`

5658 

5489 - `CodeInterpreterCall object { id, code, container_id, 3 more }`5659 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

5490 5660 

5491 A tool call to run code.5661 A tool call to run code.

Details

2008 2008 

2009 - `"programmatic_tool_calling"`2009 - `"programmatic_tool_calling"`

2010 2010 

2011 - `ImageGeneration object { type, action, background, 9 more }`2011 - `ImageGeneration object { type, action, background, 13 more }`

2012 2012 

2013 A tool that generates images using the GPT image models.2013 A tool that generates images using the GPT image models.

2014 2014 


2044 2044 

2045 - `"auto"`2045 - `"auto"`

2046 2046 

2047 - `complexity: optional "low" or "medium" or "high"`

2048 

2049 Computation spent planning the image, independently of rendering quality.

2050 Overrides the outer response's `reasoning.effort` for image generation.

2051 When omitted, inherits a supported outer reasoning effort or uses the

2052 image model's configured default.

2053 For SVG output, controls the reference image, not the SVG author's

2054 reasoning.

2055 

2056 - `"low"`

2057 

2058 - `"medium"`

2059 

2060 - `"high"`

2061 

2062 - `frame_count: optional integer (default: 9)`

2063 

2064 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

2065 

2066 `minimum: 2`, `maximum: 16`

2067 

2068 - `frame_duration_ms: optional integer (default: 200)`

2069 

2070 Duration of each GIF frame in milliseconds, rounded to 10 ms.

2071 Requires `output_format` to be `gif`. Default: 200.

2072 

2073 `minimum: 20`, `maximum: 2000`

2074 

2047 - `input_fidelity: optional "high" or "low" or null`2075 - `input_fidelity: optional "high" or "low" or null`

2048 2076 

2049 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.2077 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


2065 2093 

2066 Base64-encoded mask image.2094 Base64-encoded mask image.

2067 2095 

2068 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2096 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

2069 2097 

2070 The image generation model to use. One of `gpt-image-1-mini`,2098 The image generation model to use. One of `gpt-image-1-mini`,

2071 `gpt-image-1.5`, `gpt-image-2`,2099 `gpt-image-1.5`, `gpt-image-2`,

2072 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2100 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2073 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2101 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2074 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2102 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

2103 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

2075 `gpt-image-2`.2104 `gpt-image-2`.

2076 2105 

2077 `gpt-image-1` was shut down on October 23, 2026. Use2106 `gpt-image-1` was shut down on October 23, 2026. Use


2079 2108 

2080 - `string`2109 - `string`

2081 2110 

2082 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2111 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

2083 2112 

2084 The image generation model to use. One of `gpt-image-1-mini`,2113 The image generation model to use. One of `gpt-image-1-mini`,

2085 `gpt-image-1.5`, `gpt-image-2`,2114 `gpt-image-1.5`, `gpt-image-2`,

2086 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2115 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2087 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2116 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2088 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2117 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

2118 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

2089 `gpt-image-2`.2119 `gpt-image-2`.

2090 2120 

2091 `gpt-image-1` was shut down on October 23, 2026. Use2121 `gpt-image-1` was shut down on October 23, 2026. Use


2095 2125 

2096 - `"gpt-image-1-mini"`2126 - `"gpt-image-1-mini"`

2097 2127 

2098 - `"gpt-image-1.5"`

2099 

2100 - `"gpt-image-2"`2128 - `"gpt-image-2"`

2101 2129 

2102 - `"gpt-image-2-2026-04-21"`2130 - `"gpt-image-2-2026-04-21"`


2109 2137 

2110 - `"gpt-image-2.5-flare-2026-09-08"`2138 - `"gpt-image-2.5-flare-2026-09-08"`

2111 2139 

2140 - `"gpt-image-2.6-sunburst"`

2141 

2142 - `"gpt-image-2.6-flare"`

2143 

2144 - `"gpt-image-1.5"`

2145 

2146 - `"chatgpt-image-latest"`

2147 

2112 - `moderation: optional "auto" or "low" (default: "auto")`2148 - `moderation: optional "auto" or "low" (default: "auto")`

2113 2149 

2114 Moderation level for the generated image. Default: `auto`.2150 Moderation level for the generated image. Default: `auto`.


2123 2159 

2124 `minimum: 0`, `maximum: 100`2160 `minimum: 0`, `maximum: 100`

2125 2161 

2126 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`2162 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

2127 2163 

2128 The output format of the generated image. One of `png`, `webp`, or2164 The output format of the generated image. One of `png`, `webp`, `jpeg`,

2129 `jpeg`. Default: `png`.2165 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

2166 that supports the selected format. GIF output does not support

2167 partial image streaming (`partial_images` greater than `0`),

2168 `input_image_mask`, or custom `output_compression`.

2169 Responses lifecycle events can still be streamed for GIF output.

2130 2170 

2131 - `"png"`2171 - `"png"`

2132 2172 


2134 2174 

2135 - `"jpeg"`2175 - `"jpeg"`

2136 2176 

2177 - `"gif"`

2178 

2179 - `"svg"`

2180 

2137 - `partial_images: optional integer (default: 0)`2181 - `partial_images: optional integer (default: 0)`

2138 2182 

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


2177 2221 

2178 - `"auto"`2222 - `"auto"`

2179 2223 

2224 - `svg: optional object { model, reasoning }`

2225 

2226 SVG author model settings. Requires `output_format` to be `svg`.

2227 When SVG model selection is enabled, omitting this object uses the

2228 outer response model. Otherwise, the default SVG author is used and

2229 explicit model overrides are unavailable.

2230 

2231 - `model: optional string`

2232 

2233 `minLength: 1`

2234 

2235 - `reasoning: optional object { effort } or null`

2236 

2237 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

2238 

2239 - `effort: optional "none" or "minimal" or "low" or 4 more`

2240 

2241 Controls how much effort the model should spend on reasoning for this request.

2242 

2243 - `"none"`

2244 

2245 - `"minimal"`

2246 

2247 - `"low"`

2248 

2249 - `"medium"`

2250 

2251 - `"high"`

2252 

2253 - `"xhigh"`

2254 

2255 - `"max"`

2256 

2180 - `LocalShell object { type }`2257 - `LocalShell object { type }`

2181 2258 

2182 A tool that allows the model to execute shell commands in a local environment.2259 A tool that allows the model to execute shell commands in a local environment.


3118 3195 

3119 - `"programmatic_tool_calling"`3196 - `"programmatic_tool_calling"`

3120 3197 

3121 - `ImageGeneration object { type, action, background, 9 more }`3198 - `ImageGeneration object { type, action, background, 13 more }`

3122 3199 

3123 A tool that generates images using the GPT image models.3200 A tool that generates images using the GPT image models.

3124 3201 


3154 3231 

3155 - `"auto"`3232 - `"auto"`

3156 3233 

3234 - `complexity: optional "low" or "medium" or "high"`

3235 

3236 Computation spent planning the image, independently of rendering quality.

3237 Overrides the outer response's `reasoning.effort` for image generation.

3238 When omitted, inherits a supported outer reasoning effort or uses the

3239 image model's configured default.

3240 For SVG output, controls the reference image, not the SVG author's

3241 reasoning.

3242 

3243 - `"low"`

3244 

3245 - `"medium"`

3246 

3247 - `"high"`

3248 

3249 - `frame_count: optional integer (default: 9)`

3250 

3251 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

3252 

3253 `minimum: 2`, `maximum: 16`

3254 

3255 - `frame_duration_ms: optional integer (default: 200)`

3256 

3257 Duration of each GIF frame in milliseconds, rounded to 10 ms.

3258 Requires `output_format` to be `gif`. Default: 200.

3259 

3260 `minimum: 20`, `maximum: 2000`

3261 

3157 - `input_fidelity: optional "high" or "low" or null`3262 - `input_fidelity: optional "high" or "low" or null`

3158 3263 

3159 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.3264 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


3175 3280 

3176 Base64-encoded mask image.3281 Base64-encoded mask image.

3177 3282 

3178 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3283 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3179 3284 

3180 The image generation model to use. One of `gpt-image-1-mini`,3285 The image generation model to use. One of `gpt-image-1-mini`,

3181 `gpt-image-1.5`, `gpt-image-2`,3286 `gpt-image-1.5`, `gpt-image-2`,

3182 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3287 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3183 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3288 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3184 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3289 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3290 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3185 `gpt-image-2`.3291 `gpt-image-2`.

3186 3292 

3187 `gpt-image-1` was shut down on October 23, 2026. Use3293 `gpt-image-1` was shut down on October 23, 2026. Use


3189 3295 

3190 - `string`3296 - `string`

3191 3297 

3192 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3298 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3193 3299 

3194 The image generation model to use. One of `gpt-image-1-mini`,3300 The image generation model to use. One of `gpt-image-1-mini`,

3195 `gpt-image-1.5`, `gpt-image-2`,3301 `gpt-image-1.5`, `gpt-image-2`,

3196 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3302 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3197 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3303 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3198 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3304 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3305 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3199 `gpt-image-2`.3306 `gpt-image-2`.

3200 3307 

3201 `gpt-image-1` was shut down on October 23, 2026. Use3308 `gpt-image-1` was shut down on October 23, 2026. Use


3205 3312 

3206 - `"gpt-image-1-mini"`3313 - `"gpt-image-1-mini"`

3207 3314 

3208 - `"gpt-image-1.5"`

3209 

3210 - `"gpt-image-2"`3315 - `"gpt-image-2"`

3211 3316 

3212 - `"gpt-image-2-2026-04-21"`3317 - `"gpt-image-2-2026-04-21"`


3219 3324 

3220 - `"gpt-image-2.5-flare-2026-09-08"`3325 - `"gpt-image-2.5-flare-2026-09-08"`

3221 3326 

3327 - `"gpt-image-2.6-sunburst"`

3328 

3329 - `"gpt-image-2.6-flare"`

3330 

3331 - `"gpt-image-1.5"`

3332 

3333 - `"chatgpt-image-latest"`

3334 

3222 - `moderation: optional "auto" or "low" (default: "auto")`3335 - `moderation: optional "auto" or "low" (default: "auto")`

3223 3336 

3224 Moderation level for the generated image. Default: `auto`.3337 Moderation level for the generated image. Default: `auto`.


3233 3346 

3234 `minimum: 0`, `maximum: 100`3347 `minimum: 0`, `maximum: 100`

3235 3348 

3236 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`3349 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

3237 3350 

3238 The output format of the generated image. One of `png`, `webp`, or3351 The output format of the generated image. One of `png`, `webp`, `jpeg`,

3239 `jpeg`. Default: `png`.3352 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

3353 that supports the selected format. GIF output does not support

3354 partial image streaming (`partial_images` greater than `0`),

3355 `input_image_mask`, or custom `output_compression`.

3356 Responses lifecycle events can still be streamed for GIF output.

3240 3357 

3241 - `"png"`3358 - `"png"`

3242 3359 


3244 3361 

3245 - `"jpeg"`3362 - `"jpeg"`

3246 3363 

3364 - `"gif"`

3365 

3366 - `"svg"`

3367 

3247 - `partial_images: optional integer (default: 0)`3368 - `partial_images: optional integer (default: 0)`

3248 3369 

3249 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.


3287 3408 

3288 - `"auto"`3409 - `"auto"`

3289 3410 

3411 - `svg: optional object { model, reasoning }`

3412 

3413 SVG author model settings. Requires `output_format` to be `svg`.

3414 When SVG model selection is enabled, omitting this object uses the

3415 outer response model. Otherwise, the default SVG author is used and

3416 explicit model overrides are unavailable.

3417 

3418 - `model: optional string`

3419 

3420 `minLength: 1`

3421 

3422 - `reasoning: optional object { effort } or null`

3423 

3424 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

3425 

3426 - `effort: optional "none" or "minimal" or "low" or 4 more`

3427 

3428 Controls how much effort the model should spend on reasoning for this request.

3429 

3430 - `"none"`

3431 

3432 - `"minimal"`

3433 

3434 - `"low"`

3435 

3436 - `"medium"`

3437 

3438 - `"high"`

3439 

3440 - `"xhigh"`

3441 

3442 - `"max"`

3443 

3290 - `LocalShell object { type }`3444 - `LocalShell object { type }`

3291 3445 

3292 A tool that allows the model to execute shell commands in a local environment.3446 A tool that allows the model to execute shell commands in a local environment.


3759 3913 

3760 The ID of the compaction item.3914 The ID of the compaction item.

3761 3915 

3762 - `ImageGenerationCall object { id, result, status, 8 more }`3916 - `ImageGenerationCall object { id, result, status, 9 more }`

3763 3917 

3764 An image generation request made by the model.3918 An image generation request made by the model.

3765 3919 


3847 4001 

3848 - `"unknown"`4002 - `"unknown"`

3849 4003 

3850 - `output_format: optional "png" or "webp" or "jpeg" or null`4004 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

3851 4005 

3852 The output format used for generation.4006 The output format used for generation.

3853 4007 


3857 4011 

3858 - `"jpeg"`4012 - `"jpeg"`

3859 4013 

4014 - `"gif"`

4015 

4016 - `"svg"`

4017 

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

3861 4019 

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


3893 4051 

3894 - `"1536x1024"`4052 - `"1536x1024"`

3895 4053 

4054 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

4055 

4056 - `input_tokens: integer`

4057 

4058 - `model: string`

4059 

4060 - `output_tokens: integer`

4061 

4062 - `reasoning_tokens: integer`

4063 

4064 - `total_tokens: integer`

4065 

3896 - `CodeInterpreterCall object { id, code, container_id, 3 more }`4066 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

3897 4067 

3898 A tool call to run code.4068 A tool call to run code.


5000 5170 

5001 - `"gpt-3.5-turbo-16k-0613"`5171 - `"gpt-3.5-turbo-16k-0613"`

5002 5172 

5003 - `ResponsesOnlyModel = "o1-pro" or "o1-pro-2025-03-19" or "o3-pro" or 18 more`5173 - `ResponsesOnlyModel = "o1-pro" or "o1-pro-2025-03-19" or "o3-pro" or 19 more`

5004 5174 

5005 - `"o1-pro"`5175 - `"o1-pro"`

5006 5176 


5040 5210 

5041 - `"gpt-5.6-cyber"`5211 - `"gpt-5.6-cyber"`

5042 5212 

5213 - `"gpt-6-cyber"`

5214 

5043 - `"gpt-rosalind-research"`5215 - `"gpt-rosalind-research"`

5044 5216 

5045 - `"gpt-6-rosalind"`5217 - `"gpt-6-rosalind"`


6147 6319 

6148 - `"programmatic_tool_calling"`6320 - `"programmatic_tool_calling"`

6149 6321 

6150 - `ImageGeneration object { type, action, background, 9 more }`6322 - `ImageGeneration object { type, action, background, 13 more }`

6151 6323 

6152 A tool that generates images using the GPT image models.6324 A tool that generates images using the GPT image models.

6153 6325 


6183 6355 

6184 - `"auto"`6356 - `"auto"`

6185 6357 

6358 - `complexity: optional "low" or "medium" or "high"`

6359 

6360 Computation spent planning the image, independently of rendering quality.

6361 Overrides the outer response's `reasoning.effort` for image generation.

6362 When omitted, inherits a supported outer reasoning effort or uses the

6363 image model's configured default.

6364 For SVG output, controls the reference image, not the SVG author's

6365 reasoning.

6366 

6367 - `"low"`

6368 

6369 - `"medium"`

6370 

6371 - `"high"`

6372 

6373 - `frame_count: optional integer (default: 9)`

6374 

6375 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

6376 

6377 `minimum: 2`, `maximum: 16`

6378 

6379 - `frame_duration_ms: optional integer (default: 200)`

6380 

6381 Duration of each GIF frame in milliseconds, rounded to 10 ms.

6382 Requires `output_format` to be `gif`. Default: 200.

6383 

6384 `minimum: 20`, `maximum: 2000`

6385 

6186 - `input_fidelity: optional "high" or "low" or null`6386 - `input_fidelity: optional "high" or "low" or null`

6187 6387 

6188 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.6388 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


6204 6404 

6205 Base64-encoded mask image.6405 Base64-encoded mask image.

6206 6406 

6207 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`6407 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

6208 6408 

6209 The image generation model to use. One of `gpt-image-1-mini`,6409 The image generation model to use. One of `gpt-image-1-mini`,

6210 `gpt-image-1.5`, `gpt-image-2`,6410 `gpt-image-1.5`, `gpt-image-2`,

6211 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,6411 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6212 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,6412 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6213 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:6413 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

6414 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

6214 `gpt-image-2`.6415 `gpt-image-2`.

6215 6416 

6216 `gpt-image-1` was shut down on October 23, 2026. Use6417 `gpt-image-1` was shut down on October 23, 2026. Use


6218 6419 

6219 - `string`6420 - `string`

6220 6421 

6221 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`6422 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

6222 6423 

6223 The image generation model to use. One of `gpt-image-1-mini`,6424 The image generation model to use. One of `gpt-image-1-mini`,

6224 `gpt-image-1.5`, `gpt-image-2`,6425 `gpt-image-1.5`, `gpt-image-2`,

6225 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,6426 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6226 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,6427 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6227 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:6428 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

6429 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

6228 `gpt-image-2`.6430 `gpt-image-2`.

6229 6431 

6230 `gpt-image-1` was shut down on October 23, 2026. Use6432 `gpt-image-1` was shut down on October 23, 2026. Use


6234 6436 

6235 - `"gpt-image-1-mini"`6437 - `"gpt-image-1-mini"`

6236 6438 

6237 - `"gpt-image-1.5"`

6238 

6239 - `"gpt-image-2"`6439 - `"gpt-image-2"`

6240 6440 

6241 - `"gpt-image-2-2026-04-21"`6441 - `"gpt-image-2-2026-04-21"`


6248 6448 

6249 - `"gpt-image-2.5-flare-2026-09-08"`6449 - `"gpt-image-2.5-flare-2026-09-08"`

6250 6450 

6451 - `"gpt-image-2.6-sunburst"`

6452 

6453 - `"gpt-image-2.6-flare"`

6454 

6455 - `"gpt-image-1.5"`

6456 

6457 - `"chatgpt-image-latest"`

6458 

6251 - `moderation: optional "auto" or "low" (default: "auto")`6459 - `moderation: optional "auto" or "low" (default: "auto")`

6252 6460 

6253 Moderation level for the generated image. Default: `auto`.6461 Moderation level for the generated image. Default: `auto`.


6262 6470 

6263 `minimum: 0`, `maximum: 100`6471 `minimum: 0`, `maximum: 100`

6264 6472 

6265 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`6473 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

6266 6474 

6267 The output format of the generated image. One of `png`, `webp`, or6475 The output format of the generated image. One of `png`, `webp`, `jpeg`,

6268 `jpeg`. Default: `png`.6476 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

6477 that supports the selected format. GIF output does not support

6478 partial image streaming (`partial_images` greater than `0`),

6479 `input_image_mask`, or custom `output_compression`.

6480 Responses lifecycle events can still be streamed for GIF output.

6269 6481 

6270 - `"png"`6482 - `"png"`

6271 6483 


6273 6485 

6274 - `"jpeg"`6486 - `"jpeg"`

6275 6487 

6488 - `"gif"`

6489 

6490 - `"svg"`

6491 

6276 - `partial_images: optional integer (default: 0)`6492 - `partial_images: optional integer (default: 0)`

6277 6493 

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


6316 6532 

6317 - `"auto"`6533 - `"auto"`

6318 6534 

6535 - `svg: optional object { model, reasoning }`

6536 

6537 SVG author model settings. Requires `output_format` to be `svg`.

6538 When SVG model selection is enabled, omitting this object uses the

6539 outer response model. Otherwise, the default SVG author is used and

6540 explicit model overrides are unavailable.

6541 

6542 - `model: optional string`

6543 

6544 `minLength: 1`

6545 

6546 - `reasoning: optional object { effort } or null`

6547 

6548 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

6549 

6550 - `effort: optional "none" or "minimal" or "low" or 4 more`

6551 

6552 Controls how much effort the model should spend on reasoning for this request.

6553 

6554 - `"none"`

6555 

6556 - `"minimal"`

6557 

6558 - `"low"`

6559 

6560 - `"medium"`

6561 

6562 - `"high"`

6563 

6564 - `"xhigh"`

6565 

6566 - `"max"`

6567 

6319 - `LocalShell object { type }`6568 - `LocalShell object { type }`

6320 6569 

6321 A tool that allows the model to execute shell commands in a local environment.6570 A tool that allows the model to execute shell commands in a local environment.


7089 7338 

7090 - `"programmatic_tool_calling"`7339 - `"programmatic_tool_calling"`

7091 7340 

7092 - `ImageGeneration object { type, action, background, 9 more }`7341 - `ImageGeneration object { type, action, background, 13 more }`

7093 7342 

7094 A tool that generates images using the GPT image models.7343 A tool that generates images using the GPT image models.

7095 7344 


7125 7374 

7126 - `"auto"`7375 - `"auto"`

7127 7376 

7377 - `complexity: optional "low" or "medium" or "high"`

7378 

7379 Computation spent planning the image, independently of rendering quality.

7380 Overrides the outer response's `reasoning.effort` for image generation.

7381 When omitted, inherits a supported outer reasoning effort or uses the

7382 image model's configured default.

7383 For SVG output, controls the reference image, not the SVG author's

7384 reasoning.

7385 

7386 - `"low"`

7387 

7388 - `"medium"`

7389 

7390 - `"high"`

7391 

7392 - `frame_count: optional integer (default: 9)`

7393 

7394 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

7395 

7396 `minimum: 2`, `maximum: 16`

7397 

7398 - `frame_duration_ms: optional integer (default: 200)`

7399 

7400 Duration of each GIF frame in milliseconds, rounded to 10 ms.

7401 Requires `output_format` to be `gif`. Default: 200.

7402 

7403 `minimum: 20`, `maximum: 2000`

7404 

7128 - `input_fidelity: optional "high" or "low" or null`7405 - `input_fidelity: optional "high" or "low" or null`

7129 7406 

7130 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.7407 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


7146 7423 

7147 Base64-encoded mask image.7424 Base64-encoded mask image.

7148 7425 

7149 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`7426 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

7150 7427 

7151 The image generation model to use. One of `gpt-image-1-mini`,7428 The image generation model to use. One of `gpt-image-1-mini`,

7152 `gpt-image-1.5`, `gpt-image-2`,7429 `gpt-image-1.5`, `gpt-image-2`,

7153 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,7430 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

7154 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,7431 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

7155 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:7432 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

7433 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

7156 `gpt-image-2`.7434 `gpt-image-2`.

7157 7435 

7158 `gpt-image-1` was shut down on October 23, 2026. Use7436 `gpt-image-1` was shut down on October 23, 2026. Use


7160 7438 

7161 - `string`7439 - `string`

7162 7440 

7163 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`7441 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

7164 7442 

7165 The image generation model to use. One of `gpt-image-1-mini`,7443 The image generation model to use. One of `gpt-image-1-mini`,

7166 `gpt-image-1.5`, `gpt-image-2`,7444 `gpt-image-1.5`, `gpt-image-2`,

7167 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,7445 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

7168 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,7446 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

7169 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:7447 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

7448 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

7170 `gpt-image-2`.7449 `gpt-image-2`.

7171 7450 

7172 `gpt-image-1` was shut down on October 23, 2026. Use7451 `gpt-image-1` was shut down on October 23, 2026. Use


7176 7455 

7177 - `"gpt-image-1-mini"`7456 - `"gpt-image-1-mini"`

7178 7457 

7179 - `"gpt-image-1.5"`

7180 

7181 - `"gpt-image-2"`7458 - `"gpt-image-2"`

7182 7459 

7183 - `"gpt-image-2-2026-04-21"`7460 - `"gpt-image-2-2026-04-21"`


7190 7467 

7191 - `"gpt-image-2.5-flare-2026-09-08"`7468 - `"gpt-image-2.5-flare-2026-09-08"`

7192 7469 

7470 - `"gpt-image-2.6-sunburst"`

7471 

7472 - `"gpt-image-2.6-flare"`

7473 

7474 - `"gpt-image-1.5"`

7475 

7476 - `"chatgpt-image-latest"`

7477 

7193 - `moderation: optional "auto" or "low" (default: "auto")`7478 - `moderation: optional "auto" or "low" (default: "auto")`

7194 7479 

7195 Moderation level for the generated image. Default: `auto`.7480 Moderation level for the generated image. Default: `auto`.


7204 7489 

7205 `minimum: 0`, `maximum: 100`7490 `minimum: 0`, `maximum: 100`

7206 7491 

7207 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`7492 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

7208 7493 

7209 The output format of the generated image. One of `png`, `webp`, or7494 The output format of the generated image. One of `png`, `webp`, `jpeg`,

7210 `jpeg`. Default: `png`.7495 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

7496 that supports the selected format. GIF output does not support

7497 partial image streaming (`partial_images` greater than `0`),

7498 `input_image_mask`, or custom `output_compression`.

7499 Responses lifecycle events can still be streamed for GIF output.

7211 7500 

7212 - `"png"`7501 - `"png"`

7213 7502 


7215 7504 

7216 - `"jpeg"`7505 - `"jpeg"`

7217 7506 

7507 - `"gif"`

7508 

7509 - `"svg"`

7510 

7218 - `partial_images: optional integer (default: 0)`7511 - `partial_images: optional integer (default: 0)`

7219 7512 

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


7258 7551 

7259 - `"auto"`7552 - `"auto"`

7260 7553 

7554 - `svg: optional object { model, reasoning }`

7555 

7556 SVG author model settings. Requires `output_format` to be `svg`.

7557 When SVG model selection is enabled, omitting this object uses the

7558 outer response model. Otherwise, the default SVG author is used and

7559 explicit model overrides are unavailable.

7560 

7561 - `model: optional string`

7562 

7563 `minLength: 1`

7564 

7565 - `reasoning: optional object { effort } or null`

7566 

7567 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

7568 

7569 - `effort: optional "none" or "minimal" or "low" or 4 more`

7570 

7571 Controls how much effort the model should spend on reasoning for this request.

7572 

7573 - `"none"`

7574 

7575 - `"minimal"`

7576 

7577 - `"low"`

7578 

7579 - `"medium"`

7580 

7581 - `"high"`

7582 

7583 - `"xhigh"`

7584 

7585 - `"max"`

7586 

7261 - `LocalShell object { type }`7587 - `LocalShell object { type }`

7262 7588 

7263 A tool that allows the model to execute shell commands in a local environment.7589 A tool that allows the model to execute shell commands in a local environment.


7570 7896 

7571 The identifier of the actor that created the item.7897 The identifier of the actor that created the item.

7572 7898 

7573 - `ImageGenerationCall object { id, result, status, 8 more }`7899 - `ImageGenerationCall object { id, result, status, 9 more }`

7574 7900 

7575 An image generation request made by the model.7901 An image generation request made by the model.

7576 7902 


7658 7984 

7659 - `"unknown"`7985 - `"unknown"`

7660 7986 

7661 - `output_format: optional "png" or "webp" or "jpeg" or null`7987 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

7662 7988 

7663 The output format used for generation.7989 The output format used for generation.

7664 7990 


7668 7994 

7669 - `"jpeg"`7995 - `"jpeg"`

7670 7996 

7997 - `"gif"`

7998 

7999 - `"svg"`

8000 

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

7672 8002 

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


7704 8034 

7705 - `"1536x1024"`8035 - `"1536x1024"`

7706 8036 

8037 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

8038 

8039 - `input_tokens: integer`

8040 

8041 - `model: string`

8042 

8043 - `output_tokens: integer`

8044 

8045 - `reasoning_tokens: integer`

8046 

8047 - `total_tokens: integer`

8048 

7707 - `CodeInterpreterCall object { id, code, container_id, 3 more }`8049 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

7708 8050 

7709 A tool call to run code.8051 A tool call to run code.


9144 9486 

9145 - `"programmatic_tool_calling"`9487 - `"programmatic_tool_calling"`

9146 9488 

9147 - `ImageGeneration object { type, action, background, 9 more }`9489 - `ImageGeneration object { type, action, background, 13 more }`

9148 9490 

9149 A tool that generates images using the GPT image models.9491 A tool that generates images using the GPT image models.

9150 9492 


9180 9522 

9181 - `"auto"`9523 - `"auto"`

9182 9524 

9525 - `complexity: optional "low" or "medium" or "high"`

9526 

9527 Computation spent planning the image, independently of rendering quality.

9528 Overrides the outer response's `reasoning.effort` for image generation.

9529 When omitted, inherits a supported outer reasoning effort or uses the

9530 image model's configured default.

9531 For SVG output, controls the reference image, not the SVG author's

9532 reasoning.

9533 

9534 - `"low"`

9535 

9536 - `"medium"`

9537 

9538 - `"high"`

9539 

9540 - `frame_count: optional integer (default: 9)`

9541 

9542 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

9543 

9544 `minimum: 2`, `maximum: 16`

9545 

9546 - `frame_duration_ms: optional integer (default: 200)`

9547 

9548 Duration of each GIF frame in milliseconds, rounded to 10 ms.

9549 Requires `output_format` to be `gif`. Default: 200.

9550 

9551 `minimum: 20`, `maximum: 2000`

9552 

9183 - `input_fidelity: optional "high" or "low" or null`9553 - `input_fidelity: optional "high" or "low" or null`

9184 9554 

9185 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.9555 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


9201 9571 

9202 Base64-encoded mask image.9572 Base64-encoded mask image.

9203 9573 

9204 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`9574 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

9205 9575 

9206 The image generation model to use. One of `gpt-image-1-mini`,9576 The image generation model to use. One of `gpt-image-1-mini`,

9207 `gpt-image-1.5`, `gpt-image-2`,9577 `gpt-image-1.5`, `gpt-image-2`,

9208 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,9578 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

9209 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,9579 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

9210 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:9580 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

9581 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

9211 `gpt-image-2`.9582 `gpt-image-2`.

9212 9583 

9213 `gpt-image-1` was shut down on October 23, 2026. Use9584 `gpt-image-1` was shut down on October 23, 2026. Use


9215 9586 

9216 - `string`9587 - `string`

9217 9588 

9218 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`9589 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

9219 9590 

9220 The image generation model to use. One of `gpt-image-1-mini`,9591 The image generation model to use. One of `gpt-image-1-mini`,

9221 `gpt-image-1.5`, `gpt-image-2`,9592 `gpt-image-1.5`, `gpt-image-2`,

9222 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,9593 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

9223 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,9594 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

9224 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:9595 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

9596 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

9225 `gpt-image-2`.9597 `gpt-image-2`.

9226 9598 

9227 `gpt-image-1` was shut down on October 23, 2026. Use9599 `gpt-image-1` was shut down on October 23, 2026. Use


9231 9603 

9232 - `"gpt-image-1-mini"`9604 - `"gpt-image-1-mini"`

9233 9605 

9234 - `"gpt-image-1.5"`

9235 

9236 - `"gpt-image-2"`9606 - `"gpt-image-2"`

9237 9607 

9238 - `"gpt-image-2-2026-04-21"`9608 - `"gpt-image-2-2026-04-21"`


9245 9615 

9246 - `"gpt-image-2.5-flare-2026-09-08"`9616 - `"gpt-image-2.5-flare-2026-09-08"`

9247 9617 

9618 - `"gpt-image-2.6-sunburst"`

9619 

9620 - `"gpt-image-2.6-flare"`

9621 

9622 - `"gpt-image-1.5"`

9623 

9624 - `"chatgpt-image-latest"`

9625 

9248 - `moderation: optional "auto" or "low" (default: "auto")`9626 - `moderation: optional "auto" or "low" (default: "auto")`

9249 9627 

9250 Moderation level for the generated image. Default: `auto`.9628 Moderation level for the generated image. Default: `auto`.


9259 9637 

9260 `minimum: 0`, `maximum: 100`9638 `minimum: 0`, `maximum: 100`

9261 9639 

9262 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`9640 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

9263 9641 

9264 The output format of the generated image. One of `png`, `webp`, or9642 The output format of the generated image. One of `png`, `webp`, `jpeg`,

9265 `jpeg`. Default: `png`.9643 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

9644 that supports the selected format. GIF output does not support

9645 partial image streaming (`partial_images` greater than `0`),

9646 `input_image_mask`, or custom `output_compression`.

9647 Responses lifecycle events can still be streamed for GIF output.

9266 9648 

9267 - `"png"`9649 - `"png"`

9268 9650 


9270 9652 

9271 - `"jpeg"`9653 - `"jpeg"`

9272 9654 

9655 - `"gif"`

9656 

9657 - `"svg"`

9658 

9273 - `partial_images: optional integer (default: 0)`9659 - `partial_images: optional integer (default: 0)`

9274 9660 

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


9313 9699 

9314 - `"auto"`9700 - `"auto"`

9315 9701 

9702 - `svg: optional object { model, reasoning }`

9703 

9704 SVG author model settings. Requires `output_format` to be `svg`.

9705 When SVG model selection is enabled, omitting this object uses the

9706 outer response model. Otherwise, the default SVG author is used and

9707 explicit model overrides are unavailable.

9708 

9709 - `model: optional string`

9710 

9711 `minLength: 1`

9712 

9713 - `reasoning: optional object { effort } or null`

9714 

9715 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

9716 

9717 - `effort: optional "none" or "minimal" or "low" or 4 more`

9718 

9719 Controls how much effort the model should spend on reasoning for this request.

9720 

9721 - `"none"`

9722 

9723 - `"minimal"`

9724 

9725 - `"low"`

9726 

9727 - `"medium"`

9728 

9729 - `"high"`

9730 

9731 - `"xhigh"`

9732 

9733 - `"max"`

9734 

9316 - `LocalShell object { type }`9735 - `LocalShell object { type }`

9317 9736 

9318 A tool that allows the model to execute shell commands in a local environment.9737 A tool that allows the model to execute shell commands in a local environment.

Details

12 12 

13Content type: `application/json`13Content type: `application/json`

14 14 

15- `model: "gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 108 more or string or null`15- `model: "gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 109 more or string or null`

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](/api/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" or "gpt-6.1-sol" or "gpt-6.1-terra" or 108 more`19 - `"gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 109 more`

20 20 

21 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.21 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.

22 22 


238 238 

239 - `"gpt-5.6-cyber"`239 - `"gpt-5.6-cyber"`

240 240 

241 - `"gpt-6-cyber"`

242 

241 - `"gpt-rosalind-research"`243 - `"gpt-rosalind-research"`

242 244 

243 - `"gpt-6-rosalind"`245 - `"gpt-6-rosalind"`


2105 2107 

2106 - `"programmatic_tool_calling"`2108 - `"programmatic_tool_calling"`

2107 2109 

2108 - `ImageGeneration object { type, action, background, 9 more }`2110 - `ImageGeneration object { type, action, background, 13 more }`

2109 2111 

2110 A tool that generates images using the GPT image models.2112 A tool that generates images using the GPT image models.

2111 2113 


2141 2143 

2142 - `"auto"`2144 - `"auto"`

2143 2145 

2146 - `complexity: optional "low" or "medium" or "high"`

2147 

2148 Computation spent planning the image, independently of rendering quality.

2149 Overrides the outer response's `reasoning.effort` for image generation.

2150 When omitted, inherits a supported outer reasoning effort or uses the

2151 image model's configured default.

2152 For SVG output, controls the reference image, not the SVG author's

2153 reasoning.

2154 

2155 - `"low"`

2156 

2157 - `"medium"`

2158 

2159 - `"high"`

2160 

2161 - `frame_count: optional integer (default: 9)`

2162 

2163 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

2164 

2165 `minimum: 2`, `maximum: 16`

2166 

2167 - `frame_duration_ms: optional integer (default: 200)`

2168 

2169 Duration of each GIF frame in milliseconds, rounded to 10 ms.

2170 Requires `output_format` to be `gif`. Default: 200.

2171 

2172 `minimum: 20`, `maximum: 2000`

2173 

2144 - `input_fidelity: optional "high" or "low" or null`2174 - `input_fidelity: optional "high" or "low" or null`

2145 2175 

2146 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.2176 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


2162 2192 

2163 Base64-encoded mask image.2193 Base64-encoded mask image.

2164 2194 

2165 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2195 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

2166 2196 

2167 The image generation model to use. One of `gpt-image-1-mini`,2197 The image generation model to use. One of `gpt-image-1-mini`,

2168 `gpt-image-1.5`, `gpt-image-2`,2198 `gpt-image-1.5`, `gpt-image-2`,

2169 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2199 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2170 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2200 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2171 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2201 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

2202 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

2172 `gpt-image-2`.2203 `gpt-image-2`.

2173 2204 

2174 `gpt-image-1` was shut down on October 23, 2026. Use2205 `gpt-image-1` was shut down on October 23, 2026. Use


2176 2207 

2177 - `string`2208 - `string`

2178 2209 

2179 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2210 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

2180 2211 

2181 The image generation model to use. One of `gpt-image-1-mini`,2212 The image generation model to use. One of `gpt-image-1-mini`,

2182 `gpt-image-1.5`, `gpt-image-2`,2213 `gpt-image-1.5`, `gpt-image-2`,

2183 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2214 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2184 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2215 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2185 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2216 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

2217 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

2186 `gpt-image-2`.2218 `gpt-image-2`.

2187 2219 

2188 `gpt-image-1` was shut down on October 23, 2026. Use2220 `gpt-image-1` was shut down on October 23, 2026. Use


2192 2224 

2193 - `"gpt-image-1-mini"`2225 - `"gpt-image-1-mini"`

2194 2226 

2195 - `"gpt-image-1.5"`

2196 

2197 - `"gpt-image-2"`2227 - `"gpt-image-2"`

2198 2228 

2199 - `"gpt-image-2-2026-04-21"`2229 - `"gpt-image-2-2026-04-21"`


2206 2236 

2207 - `"gpt-image-2.5-flare-2026-09-08"`2237 - `"gpt-image-2.5-flare-2026-09-08"`

2208 2238 

2239 - `"gpt-image-2.6-sunburst"`

2240 

2241 - `"gpt-image-2.6-flare"`

2242 

2243 - `"gpt-image-1.5"`

2244 

2245 - `"chatgpt-image-latest"`

2246 

2209 - `moderation: optional "auto" or "low" (default: "auto")`2247 - `moderation: optional "auto" or "low" (default: "auto")`

2210 2248 

2211 Moderation level for the generated image. Default: `auto`.2249 Moderation level for the generated image. Default: `auto`.


2220 2258 

2221 `minimum: 0`, `maximum: 100`2259 `minimum: 0`, `maximum: 100`

2222 2260 

2223 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`2261 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

2224 2262 

2225 The output format of the generated image. One of `png`, `webp`, or2263 The output format of the generated image. One of `png`, `webp`, `jpeg`,

2226 `jpeg`. Default: `png`.2264 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

2265 that supports the selected format. GIF output does not support

2266 partial image streaming (`partial_images` greater than `0`),

2267 `input_image_mask`, or custom `output_compression`.

2268 Responses lifecycle events can still be streamed for GIF output.

2227 2269 

2228 - `"png"`2270 - `"png"`

2229 2271 


2231 2273 

2232 - `"jpeg"`2274 - `"jpeg"`

2233 2275 

2276 - `"gif"`

2277 

2278 - `"svg"`

2279 

2234 - `partial_images: optional integer (default: 0)`2280 - `partial_images: optional integer (default: 0)`

2235 2281 

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


2274 2320 

2275 - `"auto"`2321 - `"auto"`

2276 2322 

2323 - `svg: optional object { model, reasoning }`

2324 

2325 SVG author model settings. Requires `output_format` to be `svg`.

2326 When SVG model selection is enabled, omitting this object uses the

2327 outer response model. Otherwise, the default SVG author is used and

2328 explicit model overrides are unavailable.

2329 

2330 - `model: optional string`

2331 

2332 `minLength: 1`

2333 

2334 - `reasoning: optional object { effort } or null`

2335 

2336 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

2337 

2338 - `effort: optional "none" or "minimal" or "low" or 4 more`

2339 

2340 Controls how much effort the model should spend on reasoning for this request.

2341 

2342 - `"none"`

2343 

2344 - `"minimal"`

2345 

2346 - `"low"`

2347 

2348 - `"medium"`

2349 

2350 - `"high"`

2351 

2352 - `"xhigh"`

2353 

2354 - `"max"`

2355 

2277 - `LocalShell object { type }`2356 - `LocalShell object { type }`

2278 2357 

2279 A tool that allows the model to execute shell commands in a local environment.2358 A tool that allows the model to execute shell commands in a local environment.


3215 3294 

3216 - `"programmatic_tool_calling"`3295 - `"programmatic_tool_calling"`

3217 3296 

3218 - `ImageGeneration object { type, action, background, 9 more }`3297 - `ImageGeneration object { type, action, background, 13 more }`

3219 3298 

3220 A tool that generates images using the GPT image models.3299 A tool that generates images using the GPT image models.

3221 3300 


3251 3330 

3252 - `"auto"`3331 - `"auto"`

3253 3332 

3333 - `complexity: optional "low" or "medium" or "high"`

3334 

3335 Computation spent planning the image, independently of rendering quality.

3336 Overrides the outer response's `reasoning.effort` for image generation.

3337 When omitted, inherits a supported outer reasoning effort or uses the

3338 image model's configured default.

3339 For SVG output, controls the reference image, not the SVG author's

3340 reasoning.

3341 

3342 - `"low"`

3343 

3344 - `"medium"`

3345 

3346 - `"high"`

3347 

3348 - `frame_count: optional integer (default: 9)`

3349 

3350 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

3351 

3352 `minimum: 2`, `maximum: 16`

3353 

3354 - `frame_duration_ms: optional integer (default: 200)`

3355 

3356 Duration of each GIF frame in milliseconds, rounded to 10 ms.

3357 Requires `output_format` to be `gif`. Default: 200.

3358 

3359 `minimum: 20`, `maximum: 2000`

3360 

3254 - `input_fidelity: optional "high" or "low" or null`3361 - `input_fidelity: optional "high" or "low" or null`

3255 3362 

3256 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.3363 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


3272 3379 

3273 Base64-encoded mask image.3380 Base64-encoded mask image.

3274 3381 

3275 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3382 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3276 3383 

3277 The image generation model to use. One of `gpt-image-1-mini`,3384 The image generation model to use. One of `gpt-image-1-mini`,

3278 `gpt-image-1.5`, `gpt-image-2`,3385 `gpt-image-1.5`, `gpt-image-2`,

3279 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3386 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3280 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3387 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3281 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3388 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3389 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3282 `gpt-image-2`.3390 `gpt-image-2`.

3283 3391 

3284 `gpt-image-1` was shut down on October 23, 2026. Use3392 `gpt-image-1` was shut down on October 23, 2026. Use


3286 3394 

3287 - `string`3395 - `string`

3288 3396 

3289 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3397 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3290 3398 

3291 The image generation model to use. One of `gpt-image-1-mini`,3399 The image generation model to use. One of `gpt-image-1-mini`,

3292 `gpt-image-1.5`, `gpt-image-2`,3400 `gpt-image-1.5`, `gpt-image-2`,

3293 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3401 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3294 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3402 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3295 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3403 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3404 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3296 `gpt-image-2`.3405 `gpt-image-2`.

3297 3406 

3298 `gpt-image-1` was shut down on October 23, 2026. Use3407 `gpt-image-1` was shut down on October 23, 2026. Use


3302 3411 

3303 - `"gpt-image-1-mini"`3412 - `"gpt-image-1-mini"`

3304 3413 

3305 - `"gpt-image-1.5"`

3306 

3307 - `"gpt-image-2"`3414 - `"gpt-image-2"`

3308 3415 

3309 - `"gpt-image-2-2026-04-21"`3416 - `"gpt-image-2-2026-04-21"`


3316 3423 

3317 - `"gpt-image-2.5-flare-2026-09-08"`3424 - `"gpt-image-2.5-flare-2026-09-08"`

3318 3425 

3426 - `"gpt-image-2.6-sunburst"`

3427 

3428 - `"gpt-image-2.6-flare"`

3429 

3430 - `"gpt-image-1.5"`

3431 

3432 - `"chatgpt-image-latest"`

3433 

3319 - `moderation: optional "auto" or "low" (default: "auto")`3434 - `moderation: optional "auto" or "low" (default: "auto")`

3320 3435 

3321 Moderation level for the generated image. Default: `auto`.3436 Moderation level for the generated image. Default: `auto`.


3330 3445 

3331 `minimum: 0`, `maximum: 100`3446 `minimum: 0`, `maximum: 100`

3332 3447 

3333 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`3448 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

3334 3449 

3335 The output format of the generated image. One of `png`, `webp`, or3450 The output format of the generated image. One of `png`, `webp`, `jpeg`,

3336 `jpeg`. Default: `png`.3451 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

3452 that supports the selected format. GIF output does not support

3453 partial image streaming (`partial_images` greater than `0`),

3454 `input_image_mask`, or custom `output_compression`.

3455 Responses lifecycle events can still be streamed for GIF output.

3337 3456 

3338 - `"png"`3457 - `"png"`

3339 3458 


3341 3460 

3342 - `"jpeg"`3461 - `"jpeg"`

3343 3462 

3463 - `"gif"`

3464 

3465 - `"svg"`

3466 

3344 - `partial_images: optional integer (default: 0)`3467 - `partial_images: optional integer (default: 0)`

3345 3468 

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


3384 3507 

3385 - `"auto"`3508 - `"auto"`

3386 3509 

3510 - `svg: optional object { model, reasoning }`

3511 

3512 SVG author model settings. Requires `output_format` to be `svg`.

3513 When SVG model selection is enabled, omitting this object uses the

3514 outer response model. Otherwise, the default SVG author is used and

3515 explicit model overrides are unavailable.

3516 

3517 - `model: optional string`

3518 

3519 `minLength: 1`

3520 

3521 - `reasoning: optional object { effort } or null`

3522 

3523 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

3524 

3525 - `effort: optional "none" or "minimal" or "low" or 4 more`

3526 

3527 Controls how much effort the model should spend on reasoning for this request.

3528 

3529 - `"none"`

3530 

3531 - `"minimal"`

3532 

3533 - `"low"`

3534 

3535 - `"medium"`

3536 

3537 - `"high"`

3538 

3539 - `"xhigh"`

3540 

3541 - `"max"`

3542 

3387 - `LocalShell object { type }`3543 - `LocalShell object { type }`

3388 3544 

3389 A tool that allows the model to execute shell commands in a local environment.3545 A tool that allows the model to execute shell commands in a local environment.


3856 4012 

3857 The ID of the compaction item.4013 The ID of the compaction item.

3858 4014 

3859 - `ImageGenerationCall object { id, result, status, 8 more }`4015 - `ImageGenerationCall object { id, result, status, 9 more }`

3860 4016 

3861 An image generation request made by the model.4017 An image generation request made by the model.

3862 4018 


3944 4100 

3945 - `"unknown"`4101 - `"unknown"`

3946 4102 

3947 - `output_format: optional "png" or "webp" or "jpeg" or null`4103 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

3948 4104 

3949 The output format used for generation.4105 The output format used for generation.

3950 4106 


3954 4110 

3955 - `"jpeg"`4111 - `"jpeg"`

3956 4112 

4113 - `"gif"`

4114 

4115 - `"svg"`

4116 

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

3958 4118 

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


3990 4150 

3991 - `"1536x1024"`4151 - `"1536x1024"`

3992 4152 

4153 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

4154 

4155 - `input_tokens: integer`

4156 

4157 - `model: string`

4158 

4159 - `output_tokens: integer`

4160 

4161 - `reasoning_tokens: integer`

4162 

4163 - `total_tokens: integer`

4164 

3993 - `CodeInterpreterCall object { id, code, container_id, 3 more }`4165 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

3994 4166 

3995 A tool call to run code.4167 A tool call to run code.


6149 6321 

6150 - `"programmatic_tool_calling"`6322 - `"programmatic_tool_calling"`

6151 6323 

6152 - `ImageGeneration object { type, action, background, 9 more }`6324 - `ImageGeneration object { type, action, background, 13 more }`

6153 6325 

6154 A tool that generates images using the GPT image models.6326 A tool that generates images using the GPT image models.

6155 6327 


6185 6357 

6186 - `"auto"`6358 - `"auto"`

6187 6359 

6360 - `complexity: optional "low" or "medium" or "high"`

6361 

6362 Computation spent planning the image, independently of rendering quality.

6363 Overrides the outer response's `reasoning.effort` for image generation.

6364 When omitted, inherits a supported outer reasoning effort or uses the

6365 image model's configured default.

6366 For SVG output, controls the reference image, not the SVG author's

6367 reasoning.

6368 

6369 - `"low"`

6370 

6371 - `"medium"`

6372 

6373 - `"high"`

6374 

6375 - `frame_count: optional integer (default: 9)`

6376 

6377 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

6378 

6379 `minimum: 2`, `maximum: 16`

6380 

6381 - `frame_duration_ms: optional integer (default: 200)`

6382 

6383 Duration of each GIF frame in milliseconds, rounded to 10 ms.

6384 Requires `output_format` to be `gif`. Default: 200.

6385 

6386 `minimum: 20`, `maximum: 2000`

6387 

6188 - `input_fidelity: optional "high" or "low" or null`6388 - `input_fidelity: optional "high" or "low" or null`

6189 6389 

6190 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.6390 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


6206 6406 

6207 Base64-encoded mask image.6407 Base64-encoded mask image.

6208 6408 

6209 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`6409 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

6210 6410 

6211 The image generation model to use. One of `gpt-image-1-mini`,6411 The image generation model to use. One of `gpt-image-1-mini`,

6212 `gpt-image-1.5`, `gpt-image-2`,6412 `gpt-image-1.5`, `gpt-image-2`,

6213 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,6413 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6214 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,6414 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6215 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:6415 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

6416 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

6216 `gpt-image-2`.6417 `gpt-image-2`.

6217 6418 

6218 `gpt-image-1` was shut down on October 23, 2026. Use6419 `gpt-image-1` was shut down on October 23, 2026. Use


6220 6421 

6221 - `string`6422 - `string`

6222 6423 

6223 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`6424 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

6224 6425 

6225 The image generation model to use. One of `gpt-image-1-mini`,6426 The image generation model to use. One of `gpt-image-1-mini`,

6226 `gpt-image-1.5`, `gpt-image-2`,6427 `gpt-image-1.5`, `gpt-image-2`,

6227 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,6428 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6228 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,6429 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6229 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:6430 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

6431 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

6230 `gpt-image-2`.6432 `gpt-image-2`.

6231 6433 

6232 `gpt-image-1` was shut down on October 23, 2026. Use6434 `gpt-image-1` was shut down on October 23, 2026. Use


6236 6438 

6237 - `"gpt-image-1-mini"`6439 - `"gpt-image-1-mini"`

6238 6440 

6239 - `"gpt-image-1.5"`

6240 

6241 - `"gpt-image-2"`6441 - `"gpt-image-2"`

6242 6442 

6243 - `"gpt-image-2-2026-04-21"`6443 - `"gpt-image-2-2026-04-21"`


6250 6450 

6251 - `"gpt-image-2.5-flare-2026-09-08"`6451 - `"gpt-image-2.5-flare-2026-09-08"`

6252 6452 

6453 - `"gpt-image-2.6-sunburst"`

6454 

6455 - `"gpt-image-2.6-flare"`

6456 

6457 - `"gpt-image-1.5"`

6458 

6459 - `"chatgpt-image-latest"`

6460 

6253 - `moderation: optional "auto" or "low" (default: "auto")`6461 - `moderation: optional "auto" or "low" (default: "auto")`

6254 6462 

6255 Moderation level for the generated image. Default: `auto`.6463 Moderation level for the generated image. Default: `auto`.


6264 6472 

6265 `minimum: 0`, `maximum: 100`6473 `minimum: 0`, `maximum: 100`

6266 6474 

6267 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`6475 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

6268 6476 

6269 The output format of the generated image. One of `png`, `webp`, or6477 The output format of the generated image. One of `png`, `webp`, `jpeg`,

6270 `jpeg`. Default: `png`.6478 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

6479 that supports the selected format. GIF output does not support

6480 partial image streaming (`partial_images` greater than `0`),

6481 `input_image_mask`, or custom `output_compression`.

6482 Responses lifecycle events can still be streamed for GIF output.

6271 6483 

6272 - `"png"`6484 - `"png"`

6273 6485 


6275 6487 

6276 - `"jpeg"`6488 - `"jpeg"`

6277 6489 

6490 - `"gif"`

6491 

6492 - `"svg"`

6493 

6278 - `partial_images: optional integer (default: 0)`6494 - `partial_images: optional integer (default: 0)`

6279 6495 

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


6318 6534 

6319 - `"auto"`6535 - `"auto"`

6320 6536 

6537 - `svg: optional object { model, reasoning }`

6538 

6539 SVG author model settings. Requires `output_format` to be `svg`.

6540 When SVG model selection is enabled, omitting this object uses the

6541 outer response model. Otherwise, the default SVG author is used and

6542 explicit model overrides are unavailable.

6543 

6544 - `model: optional string`

6545 

6546 `minLength: 1`

6547 

6548 - `reasoning: optional object { effort } or null`

6549 

6550 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

6551 

6552 - `effort: optional "none" or "minimal" or "low" or 4 more`

6553 

6554 Controls how much effort the model should spend on reasoning for this request.

6555 

6556 - `"none"`

6557 

6558 - `"minimal"`

6559 

6560 - `"low"`

6561 

6562 - `"medium"`

6563 

6564 - `"high"`

6565 

6566 - `"xhigh"`

6567 

6568 - `"max"`

6569 

6321 - `LocalShell object { type }`6570 - `LocalShell object { type }`

6322 6571 

6323 A tool that allows the model to execute shell commands in a local environment.6572 A tool that allows the model to execute shell commands in a local environment.


7251 7500 

7252 - `"programmatic_tool_calling"`7501 - `"programmatic_tool_calling"`

7253 7502 

7254 - `ImageGeneration object { type, action, background, 9 more }`7503 - `ImageGeneration object { type, action, background, 13 more }`

7255 7504 

7256 A tool that generates images using the GPT image models.7505 A tool that generates images using the GPT image models.

7257 7506 


7287 7536 

7288 - `"auto"`7537 - `"auto"`

7289 7538 

7539 - `complexity: optional "low" or "medium" or "high"`

7540 

7541 Computation spent planning the image, independently of rendering quality.

7542 Overrides the outer response's `reasoning.effort` for image generation.

7543 When omitted, inherits a supported outer reasoning effort or uses the

7544 image model's configured default.

7545 For SVG output, controls the reference image, not the SVG author's

7546 reasoning.

7547 

7548 - `"low"`

7549 

7550 - `"medium"`

7551 

7552 - `"high"`

7553 

7554 - `frame_count: optional integer (default: 9)`

7555 

7556 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

7557 

7558 `minimum: 2`, `maximum: 16`

7559 

7560 - `frame_duration_ms: optional integer (default: 200)`

7561 

7562 Duration of each GIF frame in milliseconds, rounded to 10 ms.

7563 Requires `output_format` to be `gif`. Default: 200.

7564 

7565 `minimum: 20`, `maximum: 2000`

7566 

7290 - `input_fidelity: optional "high" or "low" or null`7567 - `input_fidelity: optional "high" or "low" or null`

7291 7568 

7292 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.7569 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


7308 7585 

7309 Base64-encoded mask image.7586 Base64-encoded mask image.

7310 7587 

7311 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`7588 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

7312 7589 

7313 The image generation model to use. One of `gpt-image-1-mini`,7590 The image generation model to use. One of `gpt-image-1-mini`,

7314 `gpt-image-1.5`, `gpt-image-2`,7591 `gpt-image-1.5`, `gpt-image-2`,

7315 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,7592 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

7316 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,7593 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

7317 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:7594 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

7595 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

7318 `gpt-image-2`.7596 `gpt-image-2`.

7319 7597 

7320 `gpt-image-1` was shut down on October 23, 2026. Use7598 `gpt-image-1` was shut down on October 23, 2026. Use


7322 7600 

7323 - `string`7601 - `string`

7324 7602 

7325 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`7603 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

7326 7604 

7327 The image generation model to use. One of `gpt-image-1-mini`,7605 The image generation model to use. One of `gpt-image-1-mini`,

7328 `gpt-image-1.5`, `gpt-image-2`,7606 `gpt-image-1.5`, `gpt-image-2`,

7329 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,7607 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

7330 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,7608 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

7331 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:7609 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

7610 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

7332 `gpt-image-2`.7611 `gpt-image-2`.

7333 7612 

7334 `gpt-image-1` was shut down on October 23, 2026. Use7613 `gpt-image-1` was shut down on October 23, 2026. Use


7338 7617 

7339 - `"gpt-image-1-mini"`7618 - `"gpt-image-1-mini"`

7340 7619 

7341 - `"gpt-image-1.5"`

7342 

7343 - `"gpt-image-2"`7620 - `"gpt-image-2"`

7344 7621 

7345 - `"gpt-image-2-2026-04-21"`7622 - `"gpt-image-2-2026-04-21"`


7352 7629 

7353 - `"gpt-image-2.5-flare-2026-09-08"`7630 - `"gpt-image-2.5-flare-2026-09-08"`

7354 7631 

7632 - `"gpt-image-2.6-sunburst"`

7633 

7634 - `"gpt-image-2.6-flare"`

7635 

7636 - `"gpt-image-1.5"`

7637 

7638 - `"chatgpt-image-latest"`

7639 

7355 - `moderation: optional "auto" or "low" (default: "auto")`7640 - `moderation: optional "auto" or "low" (default: "auto")`

7356 7641 

7357 Moderation level for the generated image. Default: `auto`.7642 Moderation level for the generated image. Default: `auto`.


7366 7651 

7367 `minimum: 0`, `maximum: 100`7652 `minimum: 0`, `maximum: 100`

7368 7653 

7369 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`7654 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

7370 7655 

7371 The output format of the generated image. One of `png`, `webp`, or7656 The output format of the generated image. One of `png`, `webp`, `jpeg`,

7372 `jpeg`. Default: `png`.7657 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

7658 that supports the selected format. GIF output does not support

7659 partial image streaming (`partial_images` greater than `0`),

7660 `input_image_mask`, or custom `output_compression`.

7661 Responses lifecycle events can still be streamed for GIF output.

7373 7662 

7374 - `"png"`7663 - `"png"`

7375 7664 


7377 7666 

7378 - `"jpeg"`7667 - `"jpeg"`

7379 7668 

7669 - `"gif"`

7670 

7671 - `"svg"`

7672 

7380 - `partial_images: optional integer (default: 0)`7673 - `partial_images: optional integer (default: 0)`

7381 7674 

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


7420 7713 

7421 - `"auto"`7714 - `"auto"`

7422 7715 

7716 - `svg: optional object { model, reasoning }`

7717 

7718 SVG author model settings. Requires `output_format` to be `svg`.

7719 When SVG model selection is enabled, omitting this object uses the

7720 outer response model. Otherwise, the default SVG author is used and

7721 explicit model overrides are unavailable.

7722 

7723 - `model: optional string`

7724 

7725 `minLength: 1`

7726 

7727 - `reasoning: optional object { effort } or null`

7728 

7729 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

7730 

7731 - `effort: optional "none" or "minimal" or "low" or 4 more`

7732 

7733 Controls how much effort the model should spend on reasoning for this request.

7734 

7735 - `"none"`

7736 

7737 - `"minimal"`

7738 

7739 - `"low"`

7740 

7741 - `"medium"`

7742 

7743 - `"high"`

7744 

7745 - `"xhigh"`

7746 

7747 - `"max"`

7748 

7423 - `LocalShell object { type }`7749 - `LocalShell object { type }`

7424 7750 

7425 A tool that allows the model to execute shell commands in a local environment.7751 A tool that allows the model to execute shell commands in a local environment.


7975 8301 

7976 `format: uri`8302 `format: uri`

7977 8303 

7978 - `ImageGenerationCall object { id, result, status, 8 more }`8304 - `ImageGenerationCall object { id, result, status, 9 more }`

7979 8305 

7980 An image generation request made by the model.8306 An image generation request made by the model.

7981 8307 


8063 8389 

8064 - `"unknown"`8390 - `"unknown"`

8065 8391 

8066 - `output_format: optional "png" or "webp" or "jpeg" or null`8392 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

8067 8393 

8068 The output format used for generation.8394 The output format used for generation.

8069 8395 


8073 8399 

8074 - `"jpeg"`8400 - `"jpeg"`

8075 8401 

8402 - `"gif"`

8403 

8404 - `"svg"`

8405 

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

8077 8407 

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


8109 8439 

8110 - `"1536x1024"`8440 - `"1536x1024"`

8111 8441 

8442 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

8443 

8444 - `input_tokens: integer`

8445 

8446 - `model: string`

8447 

8448 - `output_tokens: integer`

8449 

8450 - `reasoning_tokens: integer`

8451 

8452 - `total_tokens: integer`

8453 

8112 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`8454 - `ComputerCall object { id, call_id, pending_safety_checks, 4 more }`

8113 8455 

8114 A tool call to a computer use tool. See the8456 A tool call to a computer use tool. See the

Details

1963 1963 

1964 - `"programmatic_tool_calling"`1964 - `"programmatic_tool_calling"`

1965 1965 

1966 - `ImageGeneration object { type, action, background, 9 more }`1966 - `ImageGeneration object { type, action, background, 13 more }`

1967 1967 

1968 A tool that generates images using the GPT image models.1968 A tool that generates images using the GPT image models.

1969 1969 


1999 1999 

2000 - `"auto"`2000 - `"auto"`

2001 2001 

2002 - `complexity: optional "low" or "medium" or "high"`

2003 

2004 Computation spent planning the image, independently of rendering quality.

2005 Overrides the outer response's `reasoning.effort` for image generation.

2006 When omitted, inherits a supported outer reasoning effort or uses the

2007 image model's configured default.

2008 For SVG output, controls the reference image, not the SVG author's

2009 reasoning.

2010 

2011 - `"low"`

2012 

2013 - `"medium"`

2014 

2015 - `"high"`

2016 

2017 - `frame_count: optional integer (default: 9)`

2018 

2019 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

2020 

2021 `minimum: 2`, `maximum: 16`

2022 

2023 - `frame_duration_ms: optional integer (default: 200)`

2024 

2025 Duration of each GIF frame in milliseconds, rounded to 10 ms.

2026 Requires `output_format` to be `gif`. Default: 200.

2027 

2028 `minimum: 20`, `maximum: 2000`

2029 

2002 - `input_fidelity: optional "high" or "low" or null`2030 - `input_fidelity: optional "high" or "low" or null`

2003 2031 

2004 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.2032 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


2020 2048 

2021 Base64-encoded mask image.2049 Base64-encoded mask image.

2022 2050 

2023 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2051 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

2024 2052 

2025 The image generation model to use. One of `gpt-image-1-mini`,2053 The image generation model to use. One of `gpt-image-1-mini`,

2026 `gpt-image-1.5`, `gpt-image-2`,2054 `gpt-image-1.5`, `gpt-image-2`,

2027 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2055 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2028 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2056 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2029 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2057 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

2058 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

2030 `gpt-image-2`.2059 `gpt-image-2`.

2031 2060 

2032 `gpt-image-1` was shut down on October 23, 2026. Use2061 `gpt-image-1` was shut down on October 23, 2026. Use


2034 2063 

2035 - `string`2064 - `string`

2036 2065 

2037 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2066 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

2038 2067 

2039 The image generation model to use. One of `gpt-image-1-mini`,2068 The image generation model to use. One of `gpt-image-1-mini`,

2040 `gpt-image-1.5`, `gpt-image-2`,2069 `gpt-image-1.5`, `gpt-image-2`,

2041 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2070 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2042 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2071 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2043 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2072 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

2073 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

2044 `gpt-image-2`.2074 `gpt-image-2`.

2045 2075 

2046 `gpt-image-1` was shut down on October 23, 2026. Use2076 `gpt-image-1` was shut down on October 23, 2026. Use


2050 2080 

2051 - `"gpt-image-1-mini"`2081 - `"gpt-image-1-mini"`

2052 2082 

2053 - `"gpt-image-1.5"`

2054 

2055 - `"gpt-image-2"`2083 - `"gpt-image-2"`

2056 2084 

2057 - `"gpt-image-2-2026-04-21"`2085 - `"gpt-image-2-2026-04-21"`


2064 2092 

2065 - `"gpt-image-2.5-flare-2026-09-08"`2093 - `"gpt-image-2.5-flare-2026-09-08"`

2066 2094 

2095 - `"gpt-image-2.6-sunburst"`

2096 

2097 - `"gpt-image-2.6-flare"`

2098 

2099 - `"gpt-image-1.5"`

2100 

2101 - `"chatgpt-image-latest"`

2102 

2067 - `moderation: optional "auto" or "low" (default: "auto")`2103 - `moderation: optional "auto" or "low" (default: "auto")`

2068 2104 

2069 Moderation level for the generated image. Default: `auto`.2105 Moderation level for the generated image. Default: `auto`.


2078 2114 

2079 `minimum: 0`, `maximum: 100`2115 `minimum: 0`, `maximum: 100`

2080 2116 

2081 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`2117 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

2082 2118 

2083 The output format of the generated image. One of `png`, `webp`, or2119 The output format of the generated image. One of `png`, `webp`, `jpeg`,

2084 `jpeg`. Default: `png`.2120 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

2121 that supports the selected format. GIF output does not support

2122 partial image streaming (`partial_images` greater than `0`),

2123 `input_image_mask`, or custom `output_compression`.

2124 Responses lifecycle events can still be streamed for GIF output.

2085 2125 

2086 - `"png"`2126 - `"png"`

2087 2127 


2089 2129 

2090 - `"jpeg"`2130 - `"jpeg"`

2091 2131 

2132 - `"gif"`

2133 

2134 - `"svg"`

2135 

2092 - `partial_images: optional integer (default: 0)`2136 - `partial_images: optional integer (default: 0)`

2093 2137 

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


2132 2176 

2133 - `"auto"`2177 - `"auto"`

2134 2178 

2179 - `svg: optional object { model, reasoning }`

2180 

2181 SVG author model settings. Requires `output_format` to be `svg`.

2182 When SVG model selection is enabled, omitting this object uses the

2183 outer response model. Otherwise, the default SVG author is used and

2184 explicit model overrides are unavailable.

2185 

2186 - `model: optional string`

2187 

2188 `minLength: 1`

2189 

2190 - `reasoning: optional object { effort } or null`

2191 

2192 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

2193 

2194 - `effort: optional "none" or "minimal" or "low" or 4 more`

2195 

2196 Controls how much effort the model should spend on reasoning for this request.

2197 

2198 - `"none"`

2199 

2200 - `"minimal"`

2201 

2202 - `"low"`

2203 

2204 - `"medium"`

2205 

2206 - `"high"`

2207 

2208 - `"xhigh"`

2209 

2210 - `"max"`

2211 

2135 - `LocalShell object { type }`2212 - `LocalShell object { type }`

2136 2213 

2137 A tool that allows the model to execute shell commands in a local environment.2214 A tool that allows the model to execute shell commands in a local environment.


3073 3150 

3074 - `"programmatic_tool_calling"`3151 - `"programmatic_tool_calling"`

3075 3152 

3076 - `ImageGeneration object { type, action, background, 9 more }`3153 - `ImageGeneration object { type, action, background, 13 more }`

3077 3154 

3078 A tool that generates images using the GPT image models.3155 A tool that generates images using the GPT image models.

3079 3156 


3109 3186 

3110 - `"auto"`3187 - `"auto"`

3111 3188 

3189 - `complexity: optional "low" or "medium" or "high"`

3190 

3191 Computation spent planning the image, independently of rendering quality.

3192 Overrides the outer response's `reasoning.effort` for image generation.

3193 When omitted, inherits a supported outer reasoning effort or uses the

3194 image model's configured default.

3195 For SVG output, controls the reference image, not the SVG author's

3196 reasoning.

3197 

3198 - `"low"`

3199 

3200 - `"medium"`

3201 

3202 - `"high"`

3203 

3204 - `frame_count: optional integer (default: 9)`

3205 

3206 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

3207 

3208 `minimum: 2`, `maximum: 16`

3209 

3210 - `frame_duration_ms: optional integer (default: 200)`

3211 

3212 Duration of each GIF frame in milliseconds, rounded to 10 ms.

3213 Requires `output_format` to be `gif`. Default: 200.

3214 

3215 `minimum: 20`, `maximum: 2000`

3216 

3112 - `input_fidelity: optional "high" or "low" or null`3217 - `input_fidelity: optional "high" or "low" or null`

3113 3218 

3114 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.3219 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


3130 3235 

3131 Base64-encoded mask image.3236 Base64-encoded mask image.

3132 3237 

3133 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3238 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3134 3239 

3135 The image generation model to use. One of `gpt-image-1-mini`,3240 The image generation model to use. One of `gpt-image-1-mini`,

3136 `gpt-image-1.5`, `gpt-image-2`,3241 `gpt-image-1.5`, `gpt-image-2`,

3137 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3242 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3138 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3243 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3139 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3244 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3245 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3140 `gpt-image-2`.3246 `gpt-image-2`.

3141 3247 

3142 `gpt-image-1` was shut down on October 23, 2026. Use3248 `gpt-image-1` was shut down on October 23, 2026. Use


3144 3250 

3145 - `string`3251 - `string`

3146 3252 

3147 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3253 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3148 3254 

3149 The image generation model to use. One of `gpt-image-1-mini`,3255 The image generation model to use. One of `gpt-image-1-mini`,

3150 `gpt-image-1.5`, `gpt-image-2`,3256 `gpt-image-1.5`, `gpt-image-2`,

3151 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3257 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3152 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3258 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3153 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3259 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3260 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3154 `gpt-image-2`.3261 `gpt-image-2`.

3155 3262 

3156 `gpt-image-1` was shut down on October 23, 2026. Use3263 `gpt-image-1` was shut down on October 23, 2026. Use


3160 3267 

3161 - `"gpt-image-1-mini"`3268 - `"gpt-image-1-mini"`

3162 3269 

3163 - `"gpt-image-1.5"`

3164 

3165 - `"gpt-image-2"`3270 - `"gpt-image-2"`

3166 3271 

3167 - `"gpt-image-2-2026-04-21"`3272 - `"gpt-image-2-2026-04-21"`


3174 3279 

3175 - `"gpt-image-2.5-flare-2026-09-08"`3280 - `"gpt-image-2.5-flare-2026-09-08"`

3176 3281 

3282 - `"gpt-image-2.6-sunburst"`

3283 

3284 - `"gpt-image-2.6-flare"`

3285 

3286 - `"gpt-image-1.5"`

3287 

3288 - `"chatgpt-image-latest"`

3289 

3177 - `moderation: optional "auto" or "low" (default: "auto")`3290 - `moderation: optional "auto" or "low" (default: "auto")`

3178 3291 

3179 Moderation level for the generated image. Default: `auto`.3292 Moderation level for the generated image. Default: `auto`.


3188 3301 

3189 `minimum: 0`, `maximum: 100`3302 `minimum: 0`, `maximum: 100`

3190 3303 

3191 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`3304 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

3192 3305 

3193 The output format of the generated image. One of `png`, `webp`, or3306 The output format of the generated image. One of `png`, `webp`, `jpeg`,

3194 `jpeg`. Default: `png`.3307 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

3308 that supports the selected format. GIF output does not support

3309 partial image streaming (`partial_images` greater than `0`),

3310 `input_image_mask`, or custom `output_compression`.

3311 Responses lifecycle events can still be streamed for GIF output.

3195 3312 

3196 - `"png"`3313 - `"png"`

3197 3314 


3199 3316 

3200 - `"jpeg"`3317 - `"jpeg"`

3201 3318 

3319 - `"gif"`

3320 

3321 - `"svg"`

3322 

3202 - `partial_images: optional integer (default: 0)`3323 - `partial_images: optional integer (default: 0)`

3203 3324 

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


3242 3363 

3243 - `"auto"`3364 - `"auto"`

3244 3365 

3366 - `svg: optional object { model, reasoning }`

3367 

3368 SVG author model settings. Requires `output_format` to be `svg`.

3369 When SVG model selection is enabled, omitting this object uses the

3370 outer response model. Otherwise, the default SVG author is used and

3371 explicit model overrides are unavailable.

3372 

3373 - `model: optional string`

3374 

3375 `minLength: 1`

3376 

3377 - `reasoning: optional object { effort } or null`

3378 

3379 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

3380 

3381 - `effort: optional "none" or "minimal" or "low" or 4 more`

3382 

3383 Controls how much effort the model should spend on reasoning for this request.

3384 

3385 - `"none"`

3386 

3387 - `"minimal"`

3388 

3389 - `"low"`

3390 

3391 - `"medium"`

3392 

3393 - `"high"`

3394 

3395 - `"xhigh"`

3396 

3397 - `"max"`

3398 

3245 - `LocalShell object { type }`3399 - `LocalShell object { type }`

3246 3400 

3247 A tool that allows the model to execute shell commands in a local environment.3401 A tool that allows the model to execute shell commands in a local environment.


3714 3868 

3715 The ID of the compaction item.3869 The ID of the compaction item.

3716 3870 

3717 - `ImageGenerationCall object { id, result, status, 8 more }`3871 - `ImageGenerationCall object { id, result, status, 9 more }`

3718 3872 

3719 An image generation request made by the model.3873 An image generation request made by the model.

3720 3874 


3802 3956 

3803 - `"unknown"`3957 - `"unknown"`

3804 3958 

3805 - `output_format: optional "png" or "webp" or "jpeg" or null`3959 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

3806 3960 

3807 The output format used for generation.3961 The output format used for generation.

3808 3962 


3812 3966 

3813 - `"jpeg"`3967 - `"jpeg"`

3814 3968 

3969 - `"gif"`

3970 

3971 - `"svg"`

3972 

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

3816 3974 

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


3848 4006 

3849 - `"1536x1024"`4007 - `"1536x1024"`

3850 4008 

4009 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

4010 

4011 - `input_tokens: integer`

4012 

4013 - `model: string`

4014 

4015 - `output_tokens: integer`

4016 

4017 - `reasoning_tokens: integer`

4018 

4019 - `total_tokens: integer`

4020 

3851 - `CodeInterpreterCall object { id, code, container_id, 3 more }`4021 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

3852 4022 

3853 A tool call to run code.4023 A tool call to run code.


4973 5143 

4974 - `"gpt-3.5-turbo-16k-0613"`5144 - `"gpt-3.5-turbo-16k-0613"`

4975 5145 

4976 - `ResponsesOnlyModel = "o1-pro" or "o1-pro-2025-03-19" or "o3-pro" or 18 more`5146 - `ResponsesOnlyModel = "o1-pro" or "o1-pro-2025-03-19" or "o3-pro" or 19 more`

4977 5147 

4978 - `"o1-pro"`5148 - `"o1-pro"`

4979 5149 


5013 5183 

5014 - `"gpt-5.6-cyber"`5184 - `"gpt-5.6-cyber"`

5015 5185 

5186 - `"gpt-6-cyber"`

5187 

5016 - `"gpt-rosalind-research"`5188 - `"gpt-rosalind-research"`

5017 5189 

5018 - `"gpt-6-rosalind"`5190 - `"gpt-6-rosalind"`


5987 6159 

5988 - `"programmatic_tool_calling"`6160 - `"programmatic_tool_calling"`

5989 6161 

5990 - `ImageGeneration object { type, action, background, 9 more }`6162 - `ImageGeneration object { type, action, background, 13 more }`

5991 6163 

5992 A tool that generates images using the GPT image models.6164 A tool that generates images using the GPT image models.

5993 6165 


6023 6195 

6024 - `"auto"`6196 - `"auto"`

6025 6197 

6198 - `complexity: optional "low" or "medium" or "high"`

6199 

6200 Computation spent planning the image, independently of rendering quality.

6201 Overrides the outer response's `reasoning.effort` for image generation.

6202 When omitted, inherits a supported outer reasoning effort or uses the

6203 image model's configured default.

6204 For SVG output, controls the reference image, not the SVG author's

6205 reasoning.

6206 

6207 - `"low"`

6208 

6209 - `"medium"`

6210 

6211 - `"high"`

6212 

6213 - `frame_count: optional integer (default: 9)`

6214 

6215 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

6216 

6217 `minimum: 2`, `maximum: 16`

6218 

6219 - `frame_duration_ms: optional integer (default: 200)`

6220 

6221 Duration of each GIF frame in milliseconds, rounded to 10 ms.

6222 Requires `output_format` to be `gif`. Default: 200.

6223 

6224 `minimum: 20`, `maximum: 2000`

6225 

6026 - `input_fidelity: optional "high" or "low" or null`6226 - `input_fidelity: optional "high" or "low" or null`

6027 6227 

6028 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.6228 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


6044 6244 

6045 Base64-encoded mask image.6245 Base64-encoded mask image.

6046 6246 

6047 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`6247 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

6048 6248 

6049 The image generation model to use. One of `gpt-image-1-mini`,6249 The image generation model to use. One of `gpt-image-1-mini`,

6050 `gpt-image-1.5`, `gpt-image-2`,6250 `gpt-image-1.5`, `gpt-image-2`,

6051 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,6251 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6052 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,6252 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6053 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:6253 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

6254 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

6054 `gpt-image-2`.6255 `gpt-image-2`.

6055 6256 

6056 `gpt-image-1` was shut down on October 23, 2026. Use6257 `gpt-image-1` was shut down on October 23, 2026. Use


6058 6259 

6059 - `string`6260 - `string`

6060 6261 

6061 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`6262 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

6062 6263 

6063 The image generation model to use. One of `gpt-image-1-mini`,6264 The image generation model to use. One of `gpt-image-1-mini`,

6064 `gpt-image-1.5`, `gpt-image-2`,6265 `gpt-image-1.5`, `gpt-image-2`,

6065 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,6266 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6066 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,6267 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6067 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:6268 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

6269 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

6068 `gpt-image-2`.6270 `gpt-image-2`.

6069 6271 

6070 `gpt-image-1` was shut down on October 23, 2026. Use6272 `gpt-image-1` was shut down on October 23, 2026. Use


6074 6276 

6075 - `"gpt-image-1-mini"`6277 - `"gpt-image-1-mini"`

6076 6278 

6077 - `"gpt-image-1.5"`

6078 

6079 - `"gpt-image-2"`6279 - `"gpt-image-2"`

6080 6280 

6081 - `"gpt-image-2-2026-04-21"`6281 - `"gpt-image-2-2026-04-21"`


6088 6288 

6089 - `"gpt-image-2.5-flare-2026-09-08"`6289 - `"gpt-image-2.5-flare-2026-09-08"`

6090 6290 

6291 - `"gpt-image-2.6-sunburst"`

6292 

6293 - `"gpt-image-2.6-flare"`

6294 

6295 - `"gpt-image-1.5"`

6296 

6297 - `"chatgpt-image-latest"`

6298 

6091 - `moderation: optional "auto" or "low" (default: "auto")`6299 - `moderation: optional "auto" or "low" (default: "auto")`

6092 6300 

6093 Moderation level for the generated image. Default: `auto`.6301 Moderation level for the generated image. Default: `auto`.


6102 6310 

6103 `minimum: 0`, `maximum: 100`6311 `minimum: 0`, `maximum: 100`

6104 6312 

6105 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`6313 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

6106 6314 

6107 The output format of the generated image. One of `png`, `webp`, or6315 The output format of the generated image. One of `png`, `webp`, `jpeg`,

6108 `jpeg`. Default: `png`.6316 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

6317 that supports the selected format. GIF output does not support

6318 partial image streaming (`partial_images` greater than `0`),

6319 `input_image_mask`, or custom `output_compression`.

6320 Responses lifecycle events can still be streamed for GIF output.

6109 6321 

6110 - `"png"`6322 - `"png"`

6111 6323 


6113 6325 

6114 - `"jpeg"`6326 - `"jpeg"`

6115 6327 

6328 - `"gif"`

6329 

6330 - `"svg"`

6331 

6116 - `partial_images: optional integer (default: 0)`6332 - `partial_images: optional integer (default: 0)`

6117 6333 

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


6156 6372 

6157 - `"auto"`6373 - `"auto"`

6158 6374 

6375 - `svg: optional object { model, reasoning }`

6376 

6377 SVG author model settings. Requires `output_format` to be `svg`.

6378 When SVG model selection is enabled, omitting this object uses the

6379 outer response model. Otherwise, the default SVG author is used and

6380 explicit model overrides are unavailable.

6381 

6382 - `model: optional string`

6383 

6384 `minLength: 1`

6385 

6386 - `reasoning: optional object { effort } or null`

6387 

6388 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

6389 

6390 - `effort: optional "none" or "minimal" or "low" or 4 more`

6391 

6392 Controls how much effort the model should spend on reasoning for this request.

6393 

6394 - `"none"`

6395 

6396 - `"minimal"`

6397 

6398 - `"low"`

6399 

6400 - `"medium"`

6401 

6402 - `"high"`

6403 

6404 - `"xhigh"`

6405 

6406 - `"max"`

6407 

6159 - `LocalShell object { type }`6408 - `LocalShell object { type }`

6160 6409 

6161 A tool that allows the model to execute shell commands in a local environment.6410 A tool that allows the model to execute shell commands in a local environment.


8474 8723 

8475 - `"programmatic_tool_calling"`8724 - `"programmatic_tool_calling"`

8476 8725 

8477 - `ImageGeneration object { type, action, background, 9 more }`8726 - `ImageGeneration object { type, action, background, 13 more }`

8478 8727 

8479 A tool that generates images using the GPT image models.8728 A tool that generates images using the GPT image models.

8480 8729 


8510 8759 

8511 - `"auto"`8760 - `"auto"`

8512 8761 

8762 - `complexity: optional "low" or "medium" or "high"`

8763 

8764 Computation spent planning the image, independently of rendering quality.

8765 Overrides the outer response's `reasoning.effort` for image generation.

8766 When omitted, inherits a supported outer reasoning effort or uses the

8767 image model's configured default.

8768 For SVG output, controls the reference image, not the SVG author's

8769 reasoning.

8770 

8771 - `"low"`

8772 

8773 - `"medium"`

8774 

8775 - `"high"`

8776 

8777 - `frame_count: optional integer (default: 9)`

8778 

8779 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

8780 

8781 `minimum: 2`, `maximum: 16`

8782 

8783 - `frame_duration_ms: optional integer (default: 200)`

8784 

8785 Duration of each GIF frame in milliseconds, rounded to 10 ms.

8786 Requires `output_format` to be `gif`. Default: 200.

8787 

8788 `minimum: 20`, `maximum: 2000`

8789 

8513 - `input_fidelity: optional "high" or "low" or null`8790 - `input_fidelity: optional "high" or "low" or null`

8514 8791 

8515 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.8792 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


8531 8808 

8532 Base64-encoded mask image.8809 Base64-encoded mask image.

8533 8810 

8534 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`8811 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

8535 8812 

8536 The image generation model to use. One of `gpt-image-1-mini`,8813 The image generation model to use. One of `gpt-image-1-mini`,

8537 `gpt-image-1.5`, `gpt-image-2`,8814 `gpt-image-1.5`, `gpt-image-2`,

8538 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,8815 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

8539 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,8816 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

8540 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:8817 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

8818 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

8541 `gpt-image-2`.8819 `gpt-image-2`.

8542 8820 

8543 `gpt-image-1` was shut down on October 23, 2026. Use8821 `gpt-image-1` was shut down on October 23, 2026. Use


8545 8823 

8546 - `string`8824 - `string`

8547 8825 

8548 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`8826 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

8549 8827 

8550 The image generation model to use. One of `gpt-image-1-mini`,8828 The image generation model to use. One of `gpt-image-1-mini`,

8551 `gpt-image-1.5`, `gpt-image-2`,8829 `gpt-image-1.5`, `gpt-image-2`,

8552 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,8830 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

8553 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,8831 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

8554 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:8832 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

8833 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

8555 `gpt-image-2`.8834 `gpt-image-2`.

8556 8835 

8557 `gpt-image-1` was shut down on October 23, 2026. Use8836 `gpt-image-1` was shut down on October 23, 2026. Use


8561 8840 

8562 - `"gpt-image-1-mini"`8841 - `"gpt-image-1-mini"`

8563 8842 

8564 - `"gpt-image-1.5"`

8565 

8566 - `"gpt-image-2"`8843 - `"gpt-image-2"`

8567 8844 

8568 - `"gpt-image-2-2026-04-21"`8845 - `"gpt-image-2-2026-04-21"`


8575 8852 

8576 - `"gpt-image-2.5-flare-2026-09-08"`8853 - `"gpt-image-2.5-flare-2026-09-08"`

8577 8854 

8855 - `"gpt-image-2.6-sunburst"`

8856 

8857 - `"gpt-image-2.6-flare"`

8858 

8859 - `"gpt-image-1.5"`

8860 

8861 - `"chatgpt-image-latest"`

8862 

8578 - `moderation: optional "auto" or "low" (default: "auto")`8863 - `moderation: optional "auto" or "low" (default: "auto")`

8579 8864 

8580 Moderation level for the generated image. Default: `auto`.8865 Moderation level for the generated image. Default: `auto`.


8589 8874 

8590 `minimum: 0`, `maximum: 100`8875 `minimum: 0`, `maximum: 100`

8591 8876 

8592 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`8877 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

8593 8878 

8594 The output format of the generated image. One of `png`, `webp`, or8879 The output format of the generated image. One of `png`, `webp`, `jpeg`,

8595 `jpeg`. Default: `png`.8880 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

8881 that supports the selected format. GIF output does not support

8882 partial image streaming (`partial_images` greater than `0`),

8883 `input_image_mask`, or custom `output_compression`.

8884 Responses lifecycle events can still be streamed for GIF output.

8596 8885 

8597 - `"png"`8886 - `"png"`

8598 8887 


8600 8889 

8601 - `"jpeg"`8890 - `"jpeg"`

8602 8891 

8892 - `"gif"`

8893 

8894 - `"svg"`

8895 

8603 - `partial_images: optional integer (default: 0)`8896 - `partial_images: optional integer (default: 0)`

8604 8897 

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


8643 8936 

8644 - `"auto"`8937 - `"auto"`

8645 8938 

8939 - `svg: optional object { model, reasoning }`

8940 

8941 SVG author model settings. Requires `output_format` to be `svg`.

8942 When SVG model selection is enabled, omitting this object uses the

8943 outer response model. Otherwise, the default SVG author is used and

8944 explicit model overrides are unavailable.

8945 

8946 - `model: optional string`

8947 

8948 `minLength: 1`

8949 

8950 - `reasoning: optional object { effort } or null`

8951 

8952 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

8953 

8954 - `effort: optional "none" or "minimal" or "low" or 4 more`

8955 

8956 Controls how much effort the model should spend on reasoning for this request.

8957 

8958 - `"none"`

8959 

8960 - `"minimal"`

8961 

8962 - `"low"`

8963 

8964 - `"medium"`

8965 

8966 - `"high"`

8967 

8968 - `"xhigh"`

8969 

8970 - `"max"`

8971 

8646 - `LocalShell object { type }`8972 - `LocalShell object { type }`

8647 8973 

8648 A tool that allows the model to execute shell commands in a local environment.8974 A tool that allows the model to execute shell commands in a local environment.


9584 9910 

9585 - `"programmatic_tool_calling"`9911 - `"programmatic_tool_calling"`

9586 9912 

9587 - `ImageGeneration object { type, action, background, 9 more }`9913 - `ImageGeneration object { type, action, background, 13 more }`

9588 9914 

9589 A tool that generates images using the GPT image models.9915 A tool that generates images using the GPT image models.

9590 9916 


9620 9946 

9621 - `"auto"`9947 - `"auto"`

9622 9948 

9949 - `complexity: optional "low" or "medium" or "high"`

9950 

9951 Computation spent planning the image, independently of rendering quality.

9952 Overrides the outer response's `reasoning.effort` for image generation.

9953 When omitted, inherits a supported outer reasoning effort or uses the

9954 image model's configured default.

9955 For SVG output, controls the reference image, not the SVG author's

9956 reasoning.

9957 

9958 - `"low"`

9959 

9960 - `"medium"`

9961 

9962 - `"high"`

9963 

9964 - `frame_count: optional integer (default: 9)`

9965 

9966 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

9967 

9968 `minimum: 2`, `maximum: 16`

9969 

9970 - `frame_duration_ms: optional integer (default: 200)`

9971 

9972 Duration of each GIF frame in milliseconds, rounded to 10 ms.

9973 Requires `output_format` to be `gif`. Default: 200.

9974 

9975 `minimum: 20`, `maximum: 2000`

9976 

9623 - `input_fidelity: optional "high" or "low" or null`9977 - `input_fidelity: optional "high" or "low" or null`

9624 9978 

9625 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.9979 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


9641 9995 

9642 Base64-encoded mask image.9996 Base64-encoded mask image.

9643 9997 

9644 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`9998 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

9645 9999 

9646 The image generation model to use. One of `gpt-image-1-mini`,10000 The image generation model to use. One of `gpt-image-1-mini`,

9647 `gpt-image-1.5`, `gpt-image-2`,10001 `gpt-image-1.5`, `gpt-image-2`,

9648 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,10002 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

9649 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,10003 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

9650 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:10004 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

10005 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

9651 `gpt-image-2`.10006 `gpt-image-2`.

9652 10007 

9653 `gpt-image-1` was shut down on October 23, 2026. Use10008 `gpt-image-1` was shut down on October 23, 2026. Use


9655 10010 

9656 - `string`10011 - `string`

9657 10012 

9658 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`10013 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

9659 10014 

9660 The image generation model to use. One of `gpt-image-1-mini`,10015 The image generation model to use. One of `gpt-image-1-mini`,

9661 `gpt-image-1.5`, `gpt-image-2`,10016 `gpt-image-1.5`, `gpt-image-2`,

9662 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,10017 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

9663 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,10018 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

9664 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:10019 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

10020 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

9665 `gpt-image-2`.10021 `gpt-image-2`.

9666 10022 

9667 `gpt-image-1` was shut down on October 23, 2026. Use10023 `gpt-image-1` was shut down on October 23, 2026. Use


9671 10027 

9672 - `"gpt-image-1-mini"`10028 - `"gpt-image-1-mini"`

9673 10029 

9674 - `"gpt-image-1.5"`

9675 

9676 - `"gpt-image-2"`10030 - `"gpt-image-2"`

9677 10031 

9678 - `"gpt-image-2-2026-04-21"`10032 - `"gpt-image-2-2026-04-21"`


9685 10039 

9686 - `"gpt-image-2.5-flare-2026-09-08"`10040 - `"gpt-image-2.5-flare-2026-09-08"`

9687 10041 

10042 - `"gpt-image-2.6-sunburst"`

10043 

10044 - `"gpt-image-2.6-flare"`

10045 

10046 - `"gpt-image-1.5"`

10047 

10048 - `"chatgpt-image-latest"`

10049 

9688 - `moderation: optional "auto" or "low" (default: "auto")`10050 - `moderation: optional "auto" or "low" (default: "auto")`

9689 10051 

9690 Moderation level for the generated image. Default: `auto`.10052 Moderation level for the generated image. Default: `auto`.


9699 10061 

9700 `minimum: 0`, `maximum: 100`10062 `minimum: 0`, `maximum: 100`

9701 10063 

9702 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`10064 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

9703 10065 

9704 The output format of the generated image. One of `png`, `webp`, or10066 The output format of the generated image. One of `png`, `webp`, `jpeg`,

9705 `jpeg`. Default: `png`.10067 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

10068 that supports the selected format. GIF output does not support

10069 partial image streaming (`partial_images` greater than `0`),

10070 `input_image_mask`, or custom `output_compression`.

10071 Responses lifecycle events can still be streamed for GIF output.

9706 10072 

9707 - `"png"`10073 - `"png"`

9708 10074 


9710 10076 

9711 - `"jpeg"`10077 - `"jpeg"`

9712 10078 

10079 - `"gif"`

10080 

10081 - `"svg"`

10082 

9713 - `partial_images: optional integer (default: 0)`10083 - `partial_images: optional integer (default: 0)`

9714 10084 

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


9753 10123 

9754 - `"auto"`10124 - `"auto"`

9755 10125 

10126 - `svg: optional object { model, reasoning }`

10127 

10128 SVG author model settings. Requires `output_format` to be `svg`.

10129 When SVG model selection is enabled, omitting this object uses the

10130 outer response model. Otherwise, the default SVG author is used and

10131 explicit model overrides are unavailable.

10132 

10133 - `model: optional string`

10134 

10135 `minLength: 1`

10136 

10137 - `reasoning: optional object { effort } or null`

10138 

10139 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

10140 

10141 - `effort: optional "none" or "minimal" or "low" or 4 more`

10142 

10143 Controls how much effort the model should spend on reasoning for this request.

10144 

10145 - `"none"`

10146 

10147 - `"minimal"`

10148 

10149 - `"low"`

10150 

10151 - `"medium"`

10152 

10153 - `"high"`

10154 

10155 - `"xhigh"`

10156 

10157 - `"max"`

10158 

9756 - `LocalShell object { type }`10159 - `LocalShell object { type }`

9757 10160 

9758 A tool that allows the model to execute shell commands in a local environment.10161 A tool that allows the model to execute shell commands in a local environment.


10225 10628 

10226 The ID of the compaction item.10629 The ID of the compaction item.

10227 10630 

10228 - `ImageGenerationCall object { id, result, status, 8 more }`10631 - `ImageGenerationCall object { id, result, status, 9 more }`

10229 10632 

10230 An image generation request made by the model.10633 An image generation request made by the model.

10231 10634 


10313 10716 

10314 - `"unknown"`10717 - `"unknown"`

10315 10718 

10316 - `output_format: optional "png" or "webp" or "jpeg" or null`10719 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

10317 10720 

10318 The output format used for generation.10721 The output format used for generation.

10319 10722 


10323 10726 

10324 - `"jpeg"`10727 - `"jpeg"`

10325 10728 

10729 - `"gif"`

10730 

10731 - `"svg"`

10732 

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

10327 10734 

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


10359 10766 

10360 - `"1536x1024"`10767 - `"1536x1024"`

10361 10768 

10769 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

10770 

10771 - `input_tokens: integer`

10772 

10773 - `model: string`

10774 

10775 - `output_tokens: integer`

10776 

10777 - `reasoning_tokens: integer`

10778 

10779 - `total_tokens: integer`

10780 

10362 - `CodeInterpreterCall object { id, code, container_id, 3 more }`10781 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

10363 10782 

10364 A tool call to run code.10783 A tool call to run code.


11466 11885 

11467 - `"gpt-3.5-turbo-16k-0613"`11886 - `"gpt-3.5-turbo-16k-0613"`

11468 11887 

11469 - `ResponsesOnlyModel = "o1-pro" or "o1-pro-2025-03-19" or "o3-pro" or 18 more`11888 - `ResponsesOnlyModel = "o1-pro" or "o1-pro-2025-03-19" or "o3-pro" or 19 more`

11470 11889 

11471 - `"o1-pro"`11890 - `"o1-pro"`

11472 11891 


11506 11925 

11507 - `"gpt-5.6-cyber"`11926 - `"gpt-5.6-cyber"`

11508 11927 

11928 - `"gpt-6-cyber"`

11929 

11509 - `"gpt-rosalind-research"`11930 - `"gpt-rosalind-research"`

11510 11931 

11511 - `"gpt-6-rosalind"`11932 - `"gpt-6-rosalind"`


12613 13034 

12614 - `"programmatic_tool_calling"`13035 - `"programmatic_tool_calling"`

12615 13036 

12616 - `ImageGeneration object { type, action, background, 9 more }`13037 - `ImageGeneration object { type, action, background, 13 more }`

12617 13038 

12618 A tool that generates images using the GPT image models.13039 A tool that generates images using the GPT image models.

12619 13040 


12649 13070 

12650 - `"auto"`13071 - `"auto"`

12651 13072 

13073 - `complexity: optional "low" or "medium" or "high"`

13074 

13075 Computation spent planning the image, independently of rendering quality.

13076 Overrides the outer response's `reasoning.effort` for image generation.

13077 When omitted, inherits a supported outer reasoning effort or uses the

13078 image model's configured default.

13079 For SVG output, controls the reference image, not the SVG author's

13080 reasoning.

13081 

13082 - `"low"`

13083 

13084 - `"medium"`

13085 

13086 - `"high"`

13087 

13088 - `frame_count: optional integer (default: 9)`

13089 

13090 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

13091 

13092 `minimum: 2`, `maximum: 16`

13093 

13094 - `frame_duration_ms: optional integer (default: 200)`

13095 

13096 Duration of each GIF frame in milliseconds, rounded to 10 ms.

13097 Requires `output_format` to be `gif`. Default: 200.

13098 

13099 `minimum: 20`, `maximum: 2000`

13100 

12652 - `input_fidelity: optional "high" or "low" or null`13101 - `input_fidelity: optional "high" or "low" or null`

12653 13102 

12654 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.13103 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


12670 13119 

12671 Base64-encoded mask image.13120 Base64-encoded mask image.

12672 13121 

12673 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`13122 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

12674 13123 

12675 The image generation model to use. One of `gpt-image-1-mini`,13124 The image generation model to use. One of `gpt-image-1-mini`,

12676 `gpt-image-1.5`, `gpt-image-2`,13125 `gpt-image-1.5`, `gpt-image-2`,

12677 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,13126 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

12678 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,13127 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

12679 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:13128 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

13129 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

12680 `gpt-image-2`.13130 `gpt-image-2`.

12681 13131 

12682 `gpt-image-1` was shut down on October 23, 2026. Use13132 `gpt-image-1` was shut down on October 23, 2026. Use


12684 13134 

12685 - `string`13135 - `string`

12686 13136 

12687 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`13137 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

12688 13138 

12689 The image generation model to use. One of `gpt-image-1-mini`,13139 The image generation model to use. One of `gpt-image-1-mini`,

12690 `gpt-image-1.5`, `gpt-image-2`,13140 `gpt-image-1.5`, `gpt-image-2`,

12691 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,13141 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

12692 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,13142 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

12693 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:13143 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

13144 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

12694 `gpt-image-2`.13145 `gpt-image-2`.

12695 13146 

12696 `gpt-image-1` was shut down on October 23, 2026. Use13147 `gpt-image-1` was shut down on October 23, 2026. Use


12700 13151 

12701 - `"gpt-image-1-mini"`13152 - `"gpt-image-1-mini"`

12702 13153 

12703 - `"gpt-image-1.5"`

12704 

12705 - `"gpt-image-2"`13154 - `"gpt-image-2"`

12706 13155 

12707 - `"gpt-image-2-2026-04-21"`13156 - `"gpt-image-2-2026-04-21"`


12714 13163 

12715 - `"gpt-image-2.5-flare-2026-09-08"`13164 - `"gpt-image-2.5-flare-2026-09-08"`

12716 13165 

13166 - `"gpt-image-2.6-sunburst"`

13167 

13168 - `"gpt-image-2.6-flare"`

13169 

13170 - `"gpt-image-1.5"`

13171 

13172 - `"chatgpt-image-latest"`

13173 

12717 - `moderation: optional "auto" or "low" (default: "auto")`13174 - `moderation: optional "auto" or "low" (default: "auto")`

12718 13175 

12719 Moderation level for the generated image. Default: `auto`.13176 Moderation level for the generated image. Default: `auto`.


12728 13185 

12729 `minimum: 0`, `maximum: 100`13186 `minimum: 0`, `maximum: 100`

12730 13187 

12731 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`13188 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

12732 13189 

12733 The output format of the generated image. One of `png`, `webp`, or13190 The output format of the generated image. One of `png`, `webp`, `jpeg`,

12734 `jpeg`. Default: `png`.13191 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

13192 that supports the selected format. GIF output does not support

13193 partial image streaming (`partial_images` greater than `0`),

13194 `input_image_mask`, or custom `output_compression`.

13195 Responses lifecycle events can still be streamed for GIF output.

12735 13196 

12736 - `"png"`13197 - `"png"`

12737 13198 


12739 13200 

12740 - `"jpeg"`13201 - `"jpeg"`

12741 13202 

13203 - `"gif"`

13204 

13205 - `"svg"`

13206 

12742 - `partial_images: optional integer (default: 0)`13207 - `partial_images: optional integer (default: 0)`

12743 13208 

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


12782 13247 

12783 - `"auto"`13248 - `"auto"`

12784 13249 

13250 - `svg: optional object { model, reasoning }`

13251 

13252 SVG author model settings. Requires `output_format` to be `svg`.

13253 When SVG model selection is enabled, omitting this object uses the

13254 outer response model. Otherwise, the default SVG author is used and

13255 explicit model overrides are unavailable.

13256 

13257 - `model: optional string`

13258 

13259 `minLength: 1`

13260 

13261 - `reasoning: optional object { effort } or null`

13262 

13263 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

13264 

13265 - `effort: optional "none" or "minimal" or "low" or 4 more`

13266 

13267 Controls how much effort the model should spend on reasoning for this request.

13268 

13269 - `"none"`

13270 

13271 - `"minimal"`

13272 

13273 - `"low"`

13274 

13275 - `"medium"`

13276 

13277 - `"high"`

13278 

13279 - `"xhigh"`

13280 

13281 - `"max"`

13282 

12785 - `LocalShell object { type }`13283 - `LocalShell object { type }`

12786 13284 

12787 A tool that allows the model to execute shell commands in a local environment.13285 A tool that allows the model to execute shell commands in a local environment.


13555 14053 

13556 - `"programmatic_tool_calling"`14054 - `"programmatic_tool_calling"`

13557 14055 

13558 - `ImageGeneration object { type, action, background, 9 more }`14056 - `ImageGeneration object { type, action, background, 13 more }`

13559 14057 

13560 A tool that generates images using the GPT image models.14058 A tool that generates images using the GPT image models.

13561 14059 


13591 14089 

13592 - `"auto"`14090 - `"auto"`

13593 14091 

14092 - `complexity: optional "low" or "medium" or "high"`

14093 

14094 Computation spent planning the image, independently of rendering quality.

14095 Overrides the outer response's `reasoning.effort` for image generation.

14096 When omitted, inherits a supported outer reasoning effort or uses the

14097 image model's configured default.

14098 For SVG output, controls the reference image, not the SVG author's

14099 reasoning.

14100 

14101 - `"low"`

14102 

14103 - `"medium"`

14104 

14105 - `"high"`

14106 

14107 - `frame_count: optional integer (default: 9)`

14108 

14109 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

14110 

14111 `minimum: 2`, `maximum: 16`

14112 

14113 - `frame_duration_ms: optional integer (default: 200)`

14114 

14115 Duration of each GIF frame in milliseconds, rounded to 10 ms.

14116 Requires `output_format` to be `gif`. Default: 200.

14117 

14118 `minimum: 20`, `maximum: 2000`

14119 

13594 - `input_fidelity: optional "high" or "low" or null`14120 - `input_fidelity: optional "high" or "low" or null`

13595 14121 

13596 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.14122 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


13612 14138 

13613 Base64-encoded mask image.14139 Base64-encoded mask image.

13614 14140 

13615 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`14141 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

13616 14142 

13617 The image generation model to use. One of `gpt-image-1-mini`,14143 The image generation model to use. One of `gpt-image-1-mini`,

13618 `gpt-image-1.5`, `gpt-image-2`,14144 `gpt-image-1.5`, `gpt-image-2`,

13619 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,14145 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

13620 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,14146 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

13621 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:14147 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

14148 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

13622 `gpt-image-2`.14149 `gpt-image-2`.

13623 14150 

13624 `gpt-image-1` was shut down on October 23, 2026. Use14151 `gpt-image-1` was shut down on October 23, 2026. Use


13626 14153 

13627 - `string`14154 - `string`

13628 14155 

13629 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`14156 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

13630 14157 

13631 The image generation model to use. One of `gpt-image-1-mini`,14158 The image generation model to use. One of `gpt-image-1-mini`,

13632 `gpt-image-1.5`, `gpt-image-2`,14159 `gpt-image-1.5`, `gpt-image-2`,

13633 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,14160 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

13634 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,14161 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

13635 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:14162 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

14163 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

13636 `gpt-image-2`.14164 `gpt-image-2`.

13637 14165 

13638 `gpt-image-1` was shut down on October 23, 2026. Use14166 `gpt-image-1` was shut down on October 23, 2026. Use


13642 14170 

13643 - `"gpt-image-1-mini"`14171 - `"gpt-image-1-mini"`

13644 14172 

13645 - `"gpt-image-1.5"`

13646 

13647 - `"gpt-image-2"`14173 - `"gpt-image-2"`

13648 14174 

13649 - `"gpt-image-2-2026-04-21"`14175 - `"gpt-image-2-2026-04-21"`


13656 14182 

13657 - `"gpt-image-2.5-flare-2026-09-08"`14183 - `"gpt-image-2.5-flare-2026-09-08"`

13658 14184 

14185 - `"gpt-image-2.6-sunburst"`

14186 

14187 - `"gpt-image-2.6-flare"`

14188 

14189 - `"gpt-image-1.5"`

14190 

14191 - `"chatgpt-image-latest"`

14192 

13659 - `moderation: optional "auto" or "low" (default: "auto")`14193 - `moderation: optional "auto" or "low" (default: "auto")`

13660 14194 

13661 Moderation level for the generated image. Default: `auto`.14195 Moderation level for the generated image. Default: `auto`.


13670 14204 

13671 `minimum: 0`, `maximum: 100`14205 `minimum: 0`, `maximum: 100`

13672 14206 

13673 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`14207 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

13674 14208 

13675 The output format of the generated image. One of `png`, `webp`, or14209 The output format of the generated image. One of `png`, `webp`, `jpeg`,

13676 `jpeg`. Default: `png`.14210 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

14211 that supports the selected format. GIF output does not support

14212 partial image streaming (`partial_images` greater than `0`),

14213 `input_image_mask`, or custom `output_compression`.

14214 Responses lifecycle events can still be streamed for GIF output.

13677 14215 

13678 - `"png"`14216 - `"png"`

13679 14217 


13681 14219 

13682 - `"jpeg"`14220 - `"jpeg"`

13683 14221 

14222 - `"gif"`

14223 

14224 - `"svg"`

14225 

13684 - `partial_images: optional integer (default: 0)`14226 - `partial_images: optional integer (default: 0)`

13685 14227 

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


13724 14266 

13725 - `"auto"`14267 - `"auto"`

13726 14268 

14269 - `svg: optional object { model, reasoning }`

14270 

14271 SVG author model settings. Requires `output_format` to be `svg`.

14272 When SVG model selection is enabled, omitting this object uses the

14273 outer response model. Otherwise, the default SVG author is used and

14274 explicit model overrides are unavailable.

14275 

14276 - `model: optional string`

14277 

14278 `minLength: 1`

14279 

14280 - `reasoning: optional object { effort } or null`

14281 

14282 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

14283 

14284 - `effort: optional "none" or "minimal" or "low" or 4 more`

14285 

14286 Controls how much effort the model should spend on reasoning for this request.

14287 

14288 - `"none"`

14289 

14290 - `"minimal"`

14291 

14292 - `"low"`

14293 

14294 - `"medium"`

14295 

14296 - `"high"`

14297 

14298 - `"xhigh"`

14299 

14300 - `"max"`

14301 

13727 - `LocalShell object { type }`14302 - `LocalShell object { type }`

13728 14303 

13729 A tool that allows the model to execute shell commands in a local environment.14304 A tool that allows the model to execute shell commands in a local environment.


14036 14611 

14037 The identifier of the actor that created the item.14612 The identifier of the actor that created the item.

14038 14613 

14039 - `ImageGenerationCall object { id, result, status, 8 more }`14614 - `ImageGenerationCall object { id, result, status, 9 more }`

14040 14615 

14041 An image generation request made by the model.14616 An image generation request made by the model.

14042 14617 


14124 14699 

14125 - `"unknown"`14700 - `"unknown"`

14126 14701 

14127 - `output_format: optional "png" or "webp" or "jpeg" or null`14702 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

14128 14703 

14129 The output format used for generation.14704 The output format used for generation.

14130 14705 


14134 14709 

14135 - `"jpeg"`14710 - `"jpeg"`

14136 14711 

14712 - `"gif"`

14713 

14714 - `"svg"`

14715 

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

14138 14717 

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


14170 14749 

14171 - `"1536x1024"`14750 - `"1536x1024"`

14172 14751 

14752 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

14753 

14754 - `input_tokens: integer`

14755 

14756 - `model: string`

14757 

14758 - `output_tokens: integer`

14759 

14760 - `reasoning_tokens: integer`

14761 

14762 - `total_tokens: integer`

14763 

14173 - `CodeInterpreterCall object { id, code, container_id, 3 more }`14764 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

14174 14765 

14175 A tool call to run code.14766 A tool call to run code.


15610 16201 

15611 - `"programmatic_tool_calling"`16202 - `"programmatic_tool_calling"`

15612 16203 

15613 - `ImageGeneration object { type, action, background, 9 more }`16204 - `ImageGeneration object { type, action, background, 13 more }`

15614 16205 

15615 A tool that generates images using the GPT image models.16206 A tool that generates images using the GPT image models.

15616 16207 


15646 16237 

15647 - `"auto"`16238 - `"auto"`

15648 16239 

16240 - `complexity: optional "low" or "medium" or "high"`

16241 

16242 Computation spent planning the image, independently of rendering quality.

16243 Overrides the outer response's `reasoning.effort` for image generation.

16244 When omitted, inherits a supported outer reasoning effort or uses the

16245 image model's configured default.

16246 For SVG output, controls the reference image, not the SVG author's

16247 reasoning.

16248 

16249 - `"low"`

16250 

16251 - `"medium"`

16252 

16253 - `"high"`

16254 

16255 - `frame_count: optional integer (default: 9)`

16256 

16257 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

16258 

16259 `minimum: 2`, `maximum: 16`

16260 

16261 - `frame_duration_ms: optional integer (default: 200)`

16262 

16263 Duration of each GIF frame in milliseconds, rounded to 10 ms.

16264 Requires `output_format` to be `gif`. Default: 200.

16265 

16266 `minimum: 20`, `maximum: 2000`

16267 

15649 - `input_fidelity: optional "high" or "low" or null`16268 - `input_fidelity: optional "high" or "low" or null`

15650 16269 

15651 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.16270 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


15667 16286 

15668 Base64-encoded mask image.16287 Base64-encoded mask image.

15669 16288 

15670 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`16289 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

15671 16290 

15672 The image generation model to use. One of `gpt-image-1-mini`,16291 The image generation model to use. One of `gpt-image-1-mini`,

15673 `gpt-image-1.5`, `gpt-image-2`,16292 `gpt-image-1.5`, `gpt-image-2`,

15674 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,16293 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

15675 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,16294 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

15676 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:16295 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

16296 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

15677 `gpt-image-2`.16297 `gpt-image-2`.

15678 16298 

15679 `gpt-image-1` was shut down on October 23, 2026. Use16299 `gpt-image-1` was shut down on October 23, 2026. Use


15681 16301 

15682 - `string`16302 - `string`

15683 16303 

15684 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`16304 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

15685 16305 

15686 The image generation model to use. One of `gpt-image-1-mini`,16306 The image generation model to use. One of `gpt-image-1-mini`,

15687 `gpt-image-1.5`, `gpt-image-2`,16307 `gpt-image-1.5`, `gpt-image-2`,

15688 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,16308 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

15689 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,16309 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

15690 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:16310 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

16311 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

15691 `gpt-image-2`.16312 `gpt-image-2`.

15692 16313 

15693 `gpt-image-1` was shut down on October 23, 2026. Use16314 `gpt-image-1` was shut down on October 23, 2026. Use


15697 16318 

15698 - `"gpt-image-1-mini"`16319 - `"gpt-image-1-mini"`

15699 16320 

15700 - `"gpt-image-1.5"`

15701 

15702 - `"gpt-image-2"`16321 - `"gpt-image-2"`

15703 16322 

15704 - `"gpt-image-2-2026-04-21"`16323 - `"gpt-image-2-2026-04-21"`


15711 16330 

15712 - `"gpt-image-2.5-flare-2026-09-08"`16331 - `"gpt-image-2.5-flare-2026-09-08"`

15713 16332 

16333 - `"gpt-image-2.6-sunburst"`

16334 

16335 - `"gpt-image-2.6-flare"`

16336 

16337 - `"gpt-image-1.5"`

16338 

16339 - `"chatgpt-image-latest"`

16340 

15714 - `moderation: optional "auto" or "low" (default: "auto")`16341 - `moderation: optional "auto" or "low" (default: "auto")`

15715 16342 

15716 Moderation level for the generated image. Default: `auto`.16343 Moderation level for the generated image. Default: `auto`.


15725 16352 

15726 `minimum: 0`, `maximum: 100`16353 `minimum: 0`, `maximum: 100`

15727 16354 

15728 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`16355 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

15729 16356 

15730 The output format of the generated image. One of `png`, `webp`, or16357 The output format of the generated image. One of `png`, `webp`, `jpeg`,

15731 `jpeg`. Default: `png`.16358 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

16359 that supports the selected format. GIF output does not support

16360 partial image streaming (`partial_images` greater than `0`),

16361 `input_image_mask`, or custom `output_compression`.

16362 Responses lifecycle events can still be streamed for GIF output.

15732 16363 

15733 - `"png"`16364 - `"png"`

15734 16365 


15736 16367 

15737 - `"jpeg"`16368 - `"jpeg"`

15738 16369 

16370 - `"gif"`

16371 

16372 - `"svg"`

16373 

15739 - `partial_images: optional integer (default: 0)`16374 - `partial_images: optional integer (default: 0)`

15740 16375 

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


15779 16414 

15780 - `"auto"`16415 - `"auto"`

15781 16416 

16417 - `svg: optional object { model, reasoning }`

16418 

16419 SVG author model settings. Requires `output_format` to be `svg`.

16420 When SVG model selection is enabled, omitting this object uses the

16421 outer response model. Otherwise, the default SVG author is used and

16422 explicit model overrides are unavailable.

16423 

16424 - `model: optional string`

16425 

16426 `minLength: 1`

16427 

16428 - `reasoning: optional object { effort } or null`

16429 

16430 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

16431 

16432 - `effort: optional "none" or "minimal" or "low" or 4 more`

16433 

16434 Controls how much effort the model should spend on reasoning for this request.

16435 

16436 - `"none"`

16437 

16438 - `"minimal"`

16439 

16440 - `"low"`

16441 

16442 - `"medium"`

16443 

16444 - `"high"`

16445 

16446 - `"xhigh"`

16447 

16448 - `"max"`

16449 

15782 - `LocalShell object { type }`16450 - `LocalShell object { type }`

15783 16451 

15784 A tool that allows the model to execute shell commands in a local environment.16452 A tool that allows the model to execute shell commands in a local environment.

Details

2052 2052 

2053 - `"programmatic_tool_calling"`2053 - `"programmatic_tool_calling"`

2054 2054 

2055 - `ImageGeneration object { type, action, background, 9 more }`2055 - `ImageGeneration object { type, action, background, 13 more }`

2056 2056 

2057 A tool that generates images using the GPT image models.2057 A tool that generates images using the GPT image models.

2058 2058 


2088 2088 

2089 - `"auto"`2089 - `"auto"`

2090 2090 

2091 - `complexity: optional "low" or "medium" or "high"`

2092 

2093 Computation spent planning the image, independently of rendering quality.

2094 Overrides the outer response's `reasoning.effort` for image generation.

2095 When omitted, inherits a supported outer reasoning effort or uses the

2096 image model's configured default.

2097 For SVG output, controls the reference image, not the SVG author's

2098 reasoning.

2099 

2100 - `"low"`

2101 

2102 - `"medium"`

2103 

2104 - `"high"`

2105 

2106 - `frame_count: optional integer (default: 9)`

2107 

2108 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

2109 

2110 `minimum: 2`, `maximum: 16`

2111 

2112 - `frame_duration_ms: optional integer (default: 200)`

2113 

2114 Duration of each GIF frame in milliseconds, rounded to 10 ms.

2115 Requires `output_format` to be `gif`. Default: 200.

2116 

2117 `minimum: 20`, `maximum: 2000`

2118 

2091 - `input_fidelity: optional "high" or "low" or null`2119 - `input_fidelity: optional "high" or "low" or null`

2092 2120 

2093 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.2121 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


2109 2137 

2110 Base64-encoded mask image.2138 Base64-encoded mask image.

2111 2139 

2112 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2140 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

2113 2141 

2114 The image generation model to use. One of `gpt-image-1-mini`,2142 The image generation model to use. One of `gpt-image-1-mini`,

2115 `gpt-image-1.5`, `gpt-image-2`,2143 `gpt-image-1.5`, `gpt-image-2`,

2116 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2144 `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`,2145 `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:2146 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

2147 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

2119 `gpt-image-2`.2148 `gpt-image-2`.

2120 2149 

2121 `gpt-image-1` was shut down on October 23, 2026. Use2150 `gpt-image-1` was shut down on October 23, 2026. Use


2123 2152 

2124 - `string`2153 - `string`

2125 2154 

2126 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`2155 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

2127 2156 

2128 The image generation model to use. One of `gpt-image-1-mini`,2157 The image generation model to use. One of `gpt-image-1-mini`,

2129 `gpt-image-1.5`, `gpt-image-2`,2158 `gpt-image-1.5`, `gpt-image-2`,

2130 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,2159 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2131 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,2160 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2132 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:2161 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

2162 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

2133 `gpt-image-2`.2163 `gpt-image-2`.

2134 2164 

2135 `gpt-image-1` was shut down on October 23, 2026. Use2165 `gpt-image-1` was shut down on October 23, 2026. Use


2139 2169 

2140 - `"gpt-image-1-mini"`2170 - `"gpt-image-1-mini"`

2141 2171 

2142 - `"gpt-image-1.5"`

2143 

2144 - `"gpt-image-2"`2172 - `"gpt-image-2"`

2145 2173 

2146 - `"gpt-image-2-2026-04-21"`2174 - `"gpt-image-2-2026-04-21"`


2153 2181 

2154 - `"gpt-image-2.5-flare-2026-09-08"`2182 - `"gpt-image-2.5-flare-2026-09-08"`

2155 2183 

2184 - `"gpt-image-2.6-sunburst"`

2185 

2186 - `"gpt-image-2.6-flare"`

2187 

2188 - `"gpt-image-1.5"`

2189 

2190 - `"chatgpt-image-latest"`

2191 

2156 - `moderation: optional "auto" or "low" (default: "auto")`2192 - `moderation: optional "auto" or "low" (default: "auto")`

2157 2193 

2158 Moderation level for the generated image. Default: `auto`.2194 Moderation level for the generated image. Default: `auto`.


2167 2203 

2168 `minimum: 0`, `maximum: 100`2204 `minimum: 0`, `maximum: 100`

2169 2205 

2170 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`2206 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

2171 2207 

2172 The output format of the generated image. One of `png`, `webp`, or2208 The output format of the generated image. One of `png`, `webp`, `jpeg`,

2173 `jpeg`. Default: `png`.2209 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

2210 that supports the selected format. GIF output does not support

2211 partial image streaming (`partial_images` greater than `0`),

2212 `input_image_mask`, or custom `output_compression`.

2213 Responses lifecycle events can still be streamed for GIF output.

2174 2214 

2175 - `"png"`2215 - `"png"`

2176 2216 


2178 2218 

2179 - `"jpeg"`2219 - `"jpeg"`

2180 2220 

2221 - `"gif"`

2222 

2223 - `"svg"`

2224 

2181 - `partial_images: optional integer (default: 0)`2225 - `partial_images: optional integer (default: 0)`

2182 2226 

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


2221 2265 

2222 - `"auto"`2266 - `"auto"`

2223 2267 

2268 - `svg: optional object { model, reasoning }`

2269 

2270 SVG author model settings. Requires `output_format` to be `svg`.

2271 When SVG model selection is enabled, omitting this object uses the

2272 outer response model. Otherwise, the default SVG author is used and

2273 explicit model overrides are unavailable.

2274 

2275 - `model: optional string`

2276 

2277 `minLength: 1`

2278 

2279 - `reasoning: optional object { effort } or null`

2280 

2281 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

2282 

2283 - `effort: optional "none" or "minimal" or "low" or 4 more`

2284 

2285 Controls how much effort the model should spend on reasoning for this request.

2286 

2287 - `"none"`

2288 

2289 - `"minimal"`

2290 

2291 - `"low"`

2292 

2293 - `"medium"`

2294 

2295 - `"high"`

2296 

2297 - `"xhigh"`

2298 

2299 - `"max"`

2300 

2224 - `LocalShell object { type }`2301 - `LocalShell object { type }`

2225 2302 

2226 A tool that allows the model to execute shell commands in a local environment.2303 A tool that allows the model to execute shell commands in a local environment.


3162 3239 

3163 - `"programmatic_tool_calling"`3240 - `"programmatic_tool_calling"`

3164 3241 

3165 - `ImageGeneration object { type, action, background, 9 more }`3242 - `ImageGeneration object { type, action, background, 13 more }`

3166 3243 

3167 A tool that generates images using the GPT image models.3244 A tool that generates images using the GPT image models.

3168 3245 


3198 3275 

3199 - `"auto"`3276 - `"auto"`

3200 3277 

3278 - `complexity: optional "low" or "medium" or "high"`

3279 

3280 Computation spent planning the image, independently of rendering quality.

3281 Overrides the outer response's `reasoning.effort` for image generation.

3282 When omitted, inherits a supported outer reasoning effort or uses the

3283 image model's configured default.

3284 For SVG output, controls the reference image, not the SVG author's

3285 reasoning.

3286 

3287 - `"low"`

3288 

3289 - `"medium"`

3290 

3291 - `"high"`

3292 

3293 - `frame_count: optional integer (default: 9)`

3294 

3295 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

3296 

3297 `minimum: 2`, `maximum: 16`

3298 

3299 - `frame_duration_ms: optional integer (default: 200)`

3300 

3301 Duration of each GIF frame in milliseconds, rounded to 10 ms.

3302 Requires `output_format` to be `gif`. Default: 200.

3303 

3304 `minimum: 20`, `maximum: 2000`

3305 

3201 - `input_fidelity: optional "high" or "low" or null`3306 - `input_fidelity: optional "high" or "low" or null`

3202 3307 

3203 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.3308 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


3219 3324 

3220 Base64-encoded mask image.3325 Base64-encoded mask image.

3221 3326 

3222 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3327 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3223 3328 

3224 The image generation model to use. One of `gpt-image-1-mini`,3329 The image generation model to use. One of `gpt-image-1-mini`,

3225 `gpt-image-1.5`, `gpt-image-2`,3330 `gpt-image-1.5`, `gpt-image-2`,

3226 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3331 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3227 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3332 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3228 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3333 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3334 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3229 `gpt-image-2`.3335 `gpt-image-2`.

3230 3336 

3231 `gpt-image-1` was shut down on October 23, 2026. Use3337 `gpt-image-1` was shut down on October 23, 2026. Use


3233 3339 

3234 - `string`3340 - `string`

3235 3341 

3236 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3342 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3237 3343 

3238 The image generation model to use. One of `gpt-image-1-mini`,3344 The image generation model to use. One of `gpt-image-1-mini`,

3239 `gpt-image-1.5`, `gpt-image-2`,3345 `gpt-image-1.5`, `gpt-image-2`,

3240 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3346 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3241 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3347 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3242 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3348 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3349 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3243 `gpt-image-2`.3350 `gpt-image-2`.

3244 3351 

3245 `gpt-image-1` was shut down on October 23, 2026. Use3352 `gpt-image-1` was shut down on October 23, 2026. Use


3249 3356 

3250 - `"gpt-image-1-mini"`3357 - `"gpt-image-1-mini"`

3251 3358 

3252 - `"gpt-image-1.5"`

3253 

3254 - `"gpt-image-2"`3359 - `"gpt-image-2"`

3255 3360 

3256 - `"gpt-image-2-2026-04-21"`3361 - `"gpt-image-2-2026-04-21"`


3263 3368 

3264 - `"gpt-image-2.5-flare-2026-09-08"`3369 - `"gpt-image-2.5-flare-2026-09-08"`

3265 3370 

3371 - `"gpt-image-2.6-sunburst"`

3372 

3373 - `"gpt-image-2.6-flare"`

3374 

3375 - `"gpt-image-1.5"`

3376 

3377 - `"chatgpt-image-latest"`

3378 

3266 - `moderation: optional "auto" or "low" (default: "auto")`3379 - `moderation: optional "auto" or "low" (default: "auto")`

3267 3380 

3268 Moderation level for the generated image. Default: `auto`.3381 Moderation level for the generated image. Default: `auto`.


3277 3390 

3278 `minimum: 0`, `maximum: 100`3391 `minimum: 0`, `maximum: 100`

3279 3392 

3280 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`3393 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

3281 3394 

3282 The output format of the generated image. One of `png`, `webp`, or3395 The output format of the generated image. One of `png`, `webp`, `jpeg`,

3283 `jpeg`. Default: `png`.3396 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

3397 that supports the selected format. GIF output does not support

3398 partial image streaming (`partial_images` greater than `0`),

3399 `input_image_mask`, or custom `output_compression`.

3400 Responses lifecycle events can still be streamed for GIF output.

3284 3401 

3285 - `"png"`3402 - `"png"`

3286 3403 


3288 3405 

3289 - `"jpeg"`3406 - `"jpeg"`

3290 3407 

3408 - `"gif"`

3409 

3410 - `"svg"`

3411 

3291 - `partial_images: optional integer (default: 0)`3412 - `partial_images: optional integer (default: 0)`

3292 3413 

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


3331 3452 

3332 - `"auto"`3453 - `"auto"`

3333 3454 

3455 - `svg: optional object { model, reasoning }`

3456 

3457 SVG author model settings. Requires `output_format` to be `svg`.

3458 When SVG model selection is enabled, omitting this object uses the

3459 outer response model. Otherwise, the default SVG author is used and

3460 explicit model overrides are unavailable.

3461 

3462 - `model: optional string`

3463 

3464 `minLength: 1`

3465 

3466 - `reasoning: optional object { effort } or null`

3467 

3468 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

3469 

3470 - `effort: optional "none" or "minimal" or "low" or 4 more`

3471 

3472 Controls how much effort the model should spend on reasoning for this request.

3473 

3474 - `"none"`

3475 

3476 - `"minimal"`

3477 

3478 - `"low"`

3479 

3480 - `"medium"`

3481 

3482 - `"high"`

3483 

3484 - `"xhigh"`

3485 

3486 - `"max"`

3487 

3334 - `LocalShell object { type }`3488 - `LocalShell object { type }`

3335 3489 

3336 A tool that allows the model to execute shell commands in a local environment.3490 A tool that allows the model to execute shell commands in a local environment.


3803 3957 

3804 The ID of the compaction item.3958 The ID of the compaction item.

3805 3959 

3806 - `ImageGenerationCall object { id, result, status, 8 more }`3960 - `ImageGenerationCall object { id, result, status, 9 more }`

3807 3961 

3808 An image generation request made by the model.3962 An image generation request made by the model.

3809 3963 


3891 4045 

3892 - `"unknown"`4046 - `"unknown"`

3893 4047 

3894 - `output_format: optional "png" or "webp" or "jpeg" or null`4048 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

3895 4049 

3896 The output format used for generation.4050 The output format used for generation.

3897 4051 


3901 4055 

3902 - `"jpeg"`4056 - `"jpeg"`

3903 4057 

4058 - `"gif"`

4059 

4060 - `"svg"`

4061 

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

3905 4063 

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


3937 4095 

3938 - `"1536x1024"`4096 - `"1536x1024"`

3939 4097 

4098 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

4099 

4100 - `input_tokens: integer`

4101 

4102 - `model: string`

4103 

4104 - `output_tokens: integer`

4105 

4106 - `reasoning_tokens: integer`

4107 

4108 - `total_tokens: integer`

4109 

3940 - `CodeInterpreterCall object { id, code, container_id, 3 more }`4110 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

3941 4111 

3942 A tool call to run code.4112 A tool call to run code.


5044 5214 

5045 - `"gpt-3.5-turbo-16k-0613"`5215 - `"gpt-3.5-turbo-16k-0613"`

5046 5216 

5047 - `ResponsesOnlyModel = "o1-pro" or "o1-pro-2025-03-19" or "o3-pro" or 18 more`5217 - `ResponsesOnlyModel = "o1-pro" or "o1-pro-2025-03-19" or "o3-pro" or 19 more`

5048 5218 

5049 - `"o1-pro"`5219 - `"o1-pro"`

5050 5220 


5084 5254 

5085 - `"gpt-5.6-cyber"`5255 - `"gpt-5.6-cyber"`

5086 5256 

5257 - `"gpt-6-cyber"`

5258 

5087 - `"gpt-rosalind-research"`5259 - `"gpt-rosalind-research"`

5088 5260 

5089 - `"gpt-6-rosalind"`5261 - `"gpt-6-rosalind"`


6191 6363 

6192 - `"programmatic_tool_calling"`6364 - `"programmatic_tool_calling"`

6193 6365 

6194 - `ImageGeneration object { type, action, background, 9 more }`6366 - `ImageGeneration object { type, action, background, 13 more }`

6195 6367 

6196 A tool that generates images using the GPT image models.6368 A tool that generates images using the GPT image models.

6197 6369 


6227 6399 

6228 - `"auto"`6400 - `"auto"`

6229 6401 

6402 - `complexity: optional "low" or "medium" or "high"`

6403 

6404 Computation spent planning the image, independently of rendering quality.

6405 Overrides the outer response's `reasoning.effort` for image generation.

6406 When omitted, inherits a supported outer reasoning effort or uses the

6407 image model's configured default.

6408 For SVG output, controls the reference image, not the SVG author's

6409 reasoning.

6410 

6411 - `"low"`

6412 

6413 - `"medium"`

6414 

6415 - `"high"`

6416 

6417 - `frame_count: optional integer (default: 9)`

6418 

6419 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

6420 

6421 `minimum: 2`, `maximum: 16`

6422 

6423 - `frame_duration_ms: optional integer (default: 200)`

6424 

6425 Duration of each GIF frame in milliseconds, rounded to 10 ms.

6426 Requires `output_format` to be `gif`. Default: 200.

6427 

6428 `minimum: 20`, `maximum: 2000`

6429 

6230 - `input_fidelity: optional "high" or "low" or null`6430 - `input_fidelity: optional "high" or "low" or null`

6231 6431 

6232 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.6432 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


6248 6448 

6249 Base64-encoded mask image.6449 Base64-encoded mask image.

6250 6450 

6251 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`6451 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

6252 6452 

6253 The image generation model to use. One of `gpt-image-1-mini`,6453 The image generation model to use. One of `gpt-image-1-mini`,

6254 `gpt-image-1.5`, `gpt-image-2`,6454 `gpt-image-1.5`, `gpt-image-2`,

6255 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,6455 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6256 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,6456 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6257 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:6457 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

6458 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

6258 `gpt-image-2`.6459 `gpt-image-2`.

6259 6460 

6260 `gpt-image-1` was shut down on October 23, 2026. Use6461 `gpt-image-1` was shut down on October 23, 2026. Use


6262 6463 

6263 - `string`6464 - `string`

6264 6465 

6265 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`6466 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

6266 6467 

6267 The image generation model to use. One of `gpt-image-1-mini`,6468 The image generation model to use. One of `gpt-image-1-mini`,

6268 `gpt-image-1.5`, `gpt-image-2`,6469 `gpt-image-1.5`, `gpt-image-2`,

6269 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,6470 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

6270 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,6471 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

6271 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:6472 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

6473 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

6272 `gpt-image-2`.6474 `gpt-image-2`.

6273 6475 

6274 `gpt-image-1` was shut down on October 23, 2026. Use6476 `gpt-image-1` was shut down on October 23, 2026. Use


6278 6480 

6279 - `"gpt-image-1-mini"`6481 - `"gpt-image-1-mini"`

6280 6482 

6281 - `"gpt-image-1.5"`

6282 

6283 - `"gpt-image-2"`6483 - `"gpt-image-2"`

6284 6484 

6285 - `"gpt-image-2-2026-04-21"`6485 - `"gpt-image-2-2026-04-21"`


6292 6492 

6293 - `"gpt-image-2.5-flare-2026-09-08"`6493 - `"gpt-image-2.5-flare-2026-09-08"`

6294 6494 

6495 - `"gpt-image-2.6-sunburst"`

6496 

6497 - `"gpt-image-2.6-flare"`

6498 

6499 - `"gpt-image-1.5"`

6500 

6501 - `"chatgpt-image-latest"`

6502 

6295 - `moderation: optional "auto" or "low" (default: "auto")`6503 - `moderation: optional "auto" or "low" (default: "auto")`

6296 6504 

6297 Moderation level for the generated image. Default: `auto`.6505 Moderation level for the generated image. Default: `auto`.


6306 6514 

6307 `minimum: 0`, `maximum: 100`6515 `minimum: 0`, `maximum: 100`

6308 6516 

6309 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`6517 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

6310 6518 

6311 The output format of the generated image. One of `png`, `webp`, or6519 The output format of the generated image. One of `png`, `webp`, `jpeg`,

6312 `jpeg`. Default: `png`.6520 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

6521 that supports the selected format. GIF output does not support

6522 partial image streaming (`partial_images` greater than `0`),

6523 `input_image_mask`, or custom `output_compression`.

6524 Responses lifecycle events can still be streamed for GIF output.

6313 6525 

6314 - `"png"`6526 - `"png"`

6315 6527 


6317 6529 

6318 - `"jpeg"`6530 - `"jpeg"`

6319 6531 

6532 - `"gif"`

6533 

6534 - `"svg"`

6535 

6320 - `partial_images: optional integer (default: 0)`6536 - `partial_images: optional integer (default: 0)`

6321 6537 

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


6360 6576 

6361 - `"auto"`6577 - `"auto"`

6362 6578 

6579 - `svg: optional object { model, reasoning }`

6580 

6581 SVG author model settings. Requires `output_format` to be `svg`.

6582 When SVG model selection is enabled, omitting this object uses the

6583 outer response model. Otherwise, the default SVG author is used and

6584 explicit model overrides are unavailable.

6585 

6586 - `model: optional string`

6587 

6588 `minLength: 1`

6589 

6590 - `reasoning: optional object { effort } or null`

6591 

6592 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

6593 

6594 - `effort: optional "none" or "minimal" or "low" or 4 more`

6595 

6596 Controls how much effort the model should spend on reasoning for this request.

6597 

6598 - `"none"`

6599 

6600 - `"minimal"`

6601 

6602 - `"low"`

6603 

6604 - `"medium"`

6605 

6606 - `"high"`

6607 

6608 - `"xhigh"`

6609 

6610 - `"max"`

6611 

6363 - `LocalShell object { type }`6612 - `LocalShell object { type }`

6364 6613 

6365 A tool that allows the model to execute shell commands in a local environment.6614 A tool that allows the model to execute shell commands in a local environment.


7133 7382 

7134 - `"programmatic_tool_calling"`7383 - `"programmatic_tool_calling"`

7135 7384 

7136 - `ImageGeneration object { type, action, background, 9 more }`7385 - `ImageGeneration object { type, action, background, 13 more }`

7137 7386 

7138 A tool that generates images using the GPT image models.7387 A tool that generates images using the GPT image models.

7139 7388 


7169 7418 

7170 - `"auto"`7419 - `"auto"`

7171 7420 

7421 - `complexity: optional "low" or "medium" or "high"`

7422 

7423 Computation spent planning the image, independently of rendering quality.

7424 Overrides the outer response's `reasoning.effort` for image generation.

7425 When omitted, inherits a supported outer reasoning effort or uses the

7426 image model's configured default.

7427 For SVG output, controls the reference image, not the SVG author's

7428 reasoning.

7429 

7430 - `"low"`

7431 

7432 - `"medium"`

7433 

7434 - `"high"`

7435 

7436 - `frame_count: optional integer (default: 9)`

7437 

7438 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

7439 

7440 `minimum: 2`, `maximum: 16`

7441 

7442 - `frame_duration_ms: optional integer (default: 200)`

7443 

7444 Duration of each GIF frame in milliseconds, rounded to 10 ms.

7445 Requires `output_format` to be `gif`. Default: 200.

7446 

7447 `minimum: 20`, `maximum: 2000`

7448 

7172 - `input_fidelity: optional "high" or "low" or null`7449 - `input_fidelity: optional "high" or "low" or null`

7173 7450 

7174 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.7451 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


7190 7467 

7191 Base64-encoded mask image.7468 Base64-encoded mask image.

7192 7469 

7193 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`7470 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

7194 7471 

7195 The image generation model to use. One of `gpt-image-1-mini`,7472 The image generation model to use. One of `gpt-image-1-mini`,

7196 `gpt-image-1.5`, `gpt-image-2`,7473 `gpt-image-1.5`, `gpt-image-2`,

7197 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,7474 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

7198 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,7475 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

7199 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:7476 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

7477 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

7200 `gpt-image-2`.7478 `gpt-image-2`.

7201 7479 

7202 `gpt-image-1` was shut down on October 23, 2026. Use7480 `gpt-image-1` was shut down on October 23, 2026. Use


7204 7482 

7205 - `string`7483 - `string`

7206 7484 

7207 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`7485 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

7208 7486 

7209 The image generation model to use. One of `gpt-image-1-mini`,7487 The image generation model to use. One of `gpt-image-1-mini`,

7210 `gpt-image-1.5`, `gpt-image-2`,7488 `gpt-image-1.5`, `gpt-image-2`,

7211 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,7489 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

7212 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,7490 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

7213 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:7491 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

7492 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

7214 `gpt-image-2`.7493 `gpt-image-2`.

7215 7494 

7216 `gpt-image-1` was shut down on October 23, 2026. Use7495 `gpt-image-1` was shut down on October 23, 2026. Use


7220 7499 

7221 - `"gpt-image-1-mini"`7500 - `"gpt-image-1-mini"`

7222 7501 

7223 - `"gpt-image-1.5"`

7224 

7225 - `"gpt-image-2"`7502 - `"gpt-image-2"`

7226 7503 

7227 - `"gpt-image-2-2026-04-21"`7504 - `"gpt-image-2-2026-04-21"`


7234 7511 

7235 - `"gpt-image-2.5-flare-2026-09-08"`7512 - `"gpt-image-2.5-flare-2026-09-08"`

7236 7513 

7514 - `"gpt-image-2.6-sunburst"`

7515 

7516 - `"gpt-image-2.6-flare"`

7517 

7518 - `"gpt-image-1.5"`

7519 

7520 - `"chatgpt-image-latest"`

7521 

7237 - `moderation: optional "auto" or "low" (default: "auto")`7522 - `moderation: optional "auto" or "low" (default: "auto")`

7238 7523 

7239 Moderation level for the generated image. Default: `auto`.7524 Moderation level for the generated image. Default: `auto`.


7248 7533 

7249 `minimum: 0`, `maximum: 100`7534 `minimum: 0`, `maximum: 100`

7250 7535 

7251 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`7536 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

7252 7537 

7253 The output format of the generated image. One of `png`, `webp`, or7538 The output format of the generated image. One of `png`, `webp`, `jpeg`,

7254 `jpeg`. Default: `png`.7539 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

7540 that supports the selected format. GIF output does not support

7541 partial image streaming (`partial_images` greater than `0`),

7542 `input_image_mask`, or custom `output_compression`.

7543 Responses lifecycle events can still be streamed for GIF output.

7255 7544 

7256 - `"png"`7545 - `"png"`

7257 7546 


7259 7548 

7260 - `"jpeg"`7549 - `"jpeg"`

7261 7550 

7551 - `"gif"`

7552 

7553 - `"svg"`

7554 

7262 - `partial_images: optional integer (default: 0)`7555 - `partial_images: optional integer (default: 0)`

7263 7556 

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


7302 7595 

7303 - `"auto"`7596 - `"auto"`

7304 7597 

7598 - `svg: optional object { model, reasoning }`

7599 

7600 SVG author model settings. Requires `output_format` to be `svg`.

7601 When SVG model selection is enabled, omitting this object uses the

7602 outer response model. Otherwise, the default SVG author is used and

7603 explicit model overrides are unavailable.

7604 

7605 - `model: optional string`

7606 

7607 `minLength: 1`

7608 

7609 - `reasoning: optional object { effort } or null`

7610 

7611 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

7612 

7613 - `effort: optional "none" or "minimal" or "low" or 4 more`

7614 

7615 Controls how much effort the model should spend on reasoning for this request.

7616 

7617 - `"none"`

7618 

7619 - `"minimal"`

7620 

7621 - `"low"`

7622 

7623 - `"medium"`

7624 

7625 - `"high"`

7626 

7627 - `"xhigh"`

7628 

7629 - `"max"`

7630 

7305 - `LocalShell object { type }`7631 - `LocalShell object { type }`

7306 7632 

7307 A tool that allows the model to execute shell commands in a local environment.7633 A tool that allows the model to execute shell commands in a local environment.


7614 7940 

7615 The identifier of the actor that created the item.7941 The identifier of the actor that created the item.

7616 7942 

7617 - `ImageGenerationCall object { id, result, status, 8 more }`7943 - `ImageGenerationCall object { id, result, status, 9 more }`

7618 7944 

7619 An image generation request made by the model.7945 An image generation request made by the model.

7620 7946 


7702 8028 

7703 - `"unknown"`8029 - `"unknown"`

7704 8030 

7705 - `output_format: optional "png" or "webp" or "jpeg" or null`8031 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

7706 8032 

7707 The output format used for generation.8033 The output format used for generation.

7708 8034 


7712 8038 

7713 - `"jpeg"`8039 - `"jpeg"`

7714 8040 

8041 - `"gif"`

8042 

8043 - `"svg"`

8044 

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

7716 8046 

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


7748 8078 

7749 - `"1536x1024"`8079 - `"1536x1024"`

7750 8080 

8081 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

8082 

8083 - `input_tokens: integer`

8084 

8085 - `model: string`

8086 

8087 - `output_tokens: integer`

8088 

8089 - `reasoning_tokens: integer`

8090 

8091 - `total_tokens: integer`

8092 

7751 - `CodeInterpreterCall object { id, code, container_id, 3 more }`8093 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

7752 8094 

7753 A tool call to run code.8095 A tool call to run code.


9188 9530 

9189 - `"programmatic_tool_calling"`9531 - `"programmatic_tool_calling"`

9190 9532 

9191 - `ImageGeneration object { type, action, background, 9 more }`9533 - `ImageGeneration object { type, action, background, 13 more }`

9192 9534 

9193 A tool that generates images using the GPT image models.9535 A tool that generates images using the GPT image models.

9194 9536 


9224 9566 

9225 - `"auto"`9567 - `"auto"`

9226 9568 

9569 - `complexity: optional "low" or "medium" or "high"`

9570 

9571 Computation spent planning the image, independently of rendering quality.

9572 Overrides the outer response's `reasoning.effort` for image generation.

9573 When omitted, inherits a supported outer reasoning effort or uses the

9574 image model's configured default.

9575 For SVG output, controls the reference image, not the SVG author's

9576 reasoning.

9577 

9578 - `"low"`

9579 

9580 - `"medium"`

9581 

9582 - `"high"`

9583 

9584 - `frame_count: optional integer (default: 9)`

9585 

9586 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

9587 

9588 `minimum: 2`, `maximum: 16`

9589 

9590 - `frame_duration_ms: optional integer (default: 200)`

9591 

9592 Duration of each GIF frame in milliseconds, rounded to 10 ms.

9593 Requires `output_format` to be `gif`. Default: 200.

9594 

9595 `minimum: 20`, `maximum: 2000`

9596 

9227 - `input_fidelity: optional "high" or "low" or null`9597 - `input_fidelity: optional "high" or "low" or null`

9228 9598 

9229 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.9599 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


9245 9615 

9246 Base64-encoded mask image.9616 Base64-encoded mask image.

9247 9617 

9248 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`9618 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

9249 9619 

9250 The image generation model to use. One of `gpt-image-1-mini`,9620 The image generation model to use. One of `gpt-image-1-mini`,

9251 `gpt-image-1.5`, `gpt-image-2`,9621 `gpt-image-1.5`, `gpt-image-2`,

9252 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,9622 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

9253 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,9623 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

9254 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:9624 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

9625 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

9255 `gpt-image-2`.9626 `gpt-image-2`.

9256 9627 

9257 `gpt-image-1` was shut down on October 23, 2026. Use9628 `gpt-image-1` was shut down on October 23, 2026. Use


9259 9630 

9260 - `string`9631 - `string`

9261 9632 

9262 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`9633 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

9263 9634 

9264 The image generation model to use. One of `gpt-image-1-mini`,9635 The image generation model to use. One of `gpt-image-1-mini`,

9265 `gpt-image-1.5`, `gpt-image-2`,9636 `gpt-image-1.5`, `gpt-image-2`,

9266 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,9637 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

9267 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,9638 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

9268 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:9639 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

9640 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

9269 `gpt-image-2`.9641 `gpt-image-2`.

9270 9642 

9271 `gpt-image-1` was shut down on October 23, 2026. Use9643 `gpt-image-1` was shut down on October 23, 2026. Use


9275 9647 

9276 - `"gpt-image-1-mini"`9648 - `"gpt-image-1-mini"`

9277 9649 

9278 - `"gpt-image-1.5"`

9279 

9280 - `"gpt-image-2"`9650 - `"gpt-image-2"`

9281 9651 

9282 - `"gpt-image-2-2026-04-21"`9652 - `"gpt-image-2-2026-04-21"`


9289 9659 

9290 - `"gpt-image-2.5-flare-2026-09-08"`9660 - `"gpt-image-2.5-flare-2026-09-08"`

9291 9661 

9662 - `"gpt-image-2.6-sunburst"`

9663 

9664 - `"gpt-image-2.6-flare"`

9665 

9666 - `"gpt-image-1.5"`

9667 

9668 - `"chatgpt-image-latest"`

9669 

9292 - `moderation: optional "auto" or "low" (default: "auto")`9670 - `moderation: optional "auto" or "low" (default: "auto")`

9293 9671 

9294 Moderation level for the generated image. Default: `auto`.9672 Moderation level for the generated image. Default: `auto`.


9303 9681 

9304 `minimum: 0`, `maximum: 100`9682 `minimum: 0`, `maximum: 100`

9305 9683 

9306 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`9684 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

9307 9685 

9308 The output format of the generated image. One of `png`, `webp`, or9686 The output format of the generated image. One of `png`, `webp`, `jpeg`,

9309 `jpeg`. Default: `png`.9687 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

9688 that supports the selected format. GIF output does not support

9689 partial image streaming (`partial_images` greater than `0`),

9690 `input_image_mask`, or custom `output_compression`.

9691 Responses lifecycle events can still be streamed for GIF output.

9310 9692 

9311 - `"png"`9693 - `"png"`

9312 9694 


9314 9696 

9315 - `"jpeg"`9697 - `"jpeg"`

9316 9698 

9699 - `"gif"`

9700 

9701 - `"svg"`

9702 

9317 - `partial_images: optional integer (default: 0)`9703 - `partial_images: optional integer (default: 0)`

9318 9704 

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


9357 9743 

9358 - `"auto"`9744 - `"auto"`

9359 9745 

9746 - `svg: optional object { model, reasoning }`

9747 

9748 SVG author model settings. Requires `output_format` to be `svg`.

9749 When SVG model selection is enabled, omitting this object uses the

9750 outer response model. Otherwise, the default SVG author is used and

9751 explicit model overrides are unavailable.

9752 

9753 - `model: optional string`

9754 

9755 `minLength: 1`

9756 

9757 - `reasoning: optional object { effort } or null`

9758 

9759 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

9760 

9761 - `effort: optional "none" or "minimal" or "low" or 4 more`

9762 

9763 Controls how much effort the model should spend on reasoning for this request.

9764 

9765 - `"none"`

9766 

9767 - `"minimal"`

9768 

9769 - `"low"`

9770 

9771 - `"medium"`

9772 

9773 - `"high"`

9774 

9775 - `"xhigh"`

9776 

9777 - `"max"`

9778 

9360 - `LocalShell object { type }`9779 - `LocalShell object { type }`

9361 9780 

9362 A tool that allows the model to execute shell commands in a local environment.9781 A tool that allows the model to execute shell commands in a local environment.

Details

1752 1752 

1753 - `"programmatic_tool_calling"`1753 - `"programmatic_tool_calling"`

1754 1754 

1755 - `ImageGeneration object { type, action, background, 9 more }`1755 - `ImageGeneration object { type, action, background, 13 more }`

1756 1756 

1757 A tool that generates images using the GPT image models.1757 A tool that generates images using the GPT image models.

1758 1758 


1788 1788 

1789 - `"auto"`1789 - `"auto"`

1790 1790 

1791 - `complexity: optional "low" or "medium" or "high"`

1792 

1793 Computation spent planning the image, independently of rendering quality.

1794 Overrides the outer response's `reasoning.effort` for image generation.

1795 When omitted, inherits a supported outer reasoning effort or uses the

1796 image model's configured default.

1797 For SVG output, controls the reference image, not the SVG author's

1798 reasoning.

1799 

1800 - `"low"`

1801 

1802 - `"medium"`

1803 

1804 - `"high"`

1805 

1806 - `frame_count: optional integer (default: 9)`

1807 

1808 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

1809 

1810 `minimum: 2`, `maximum: 16`

1811 

1812 - `frame_duration_ms: optional integer (default: 200)`

1813 

1814 Duration of each GIF frame in milliseconds, rounded to 10 ms.

1815 Requires `output_format` to be `gif`. Default: 200.

1816 

1817 `minimum: 20`, `maximum: 2000`

1818 

1791 - `input_fidelity: optional "high" or "low" or null`1819 - `input_fidelity: optional "high" or "low" or null`

1792 1820 

1793 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.1821 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


1809 1837 

1810 Base64-encoded mask image.1838 Base64-encoded mask image.

1811 1839 

1812 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`1840 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

1813 1841 

1814 The image generation model to use. One of `gpt-image-1-mini`,1842 The image generation model to use. One of `gpt-image-1-mini`,

1815 `gpt-image-1.5`, `gpt-image-2`,1843 `gpt-image-1.5`, `gpt-image-2`,

1816 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,1844 `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`,1845 `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:1846 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

1847 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

1819 `gpt-image-2`.1848 `gpt-image-2`.

1820 1849 

1821 `gpt-image-1` was shut down on October 23, 2026. Use1850 `gpt-image-1` was shut down on October 23, 2026. Use


1823 1852 

1824 - `string`1853 - `string`

1825 1854 

1826 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`1855 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

1827 1856 

1828 The image generation model to use. One of `gpt-image-1-mini`,1857 The image generation model to use. One of `gpt-image-1-mini`,

1829 `gpt-image-1.5`, `gpt-image-2`,1858 `gpt-image-1.5`, `gpt-image-2`,

1830 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,1859 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1831 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,1860 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1832 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:1861 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

1862 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

1833 `gpt-image-2`.1863 `gpt-image-2`.

1834 1864 

1835 `gpt-image-1` was shut down on October 23, 2026. Use1865 `gpt-image-1` was shut down on October 23, 2026. Use


1839 1869 

1840 - `"gpt-image-1-mini"`1870 - `"gpt-image-1-mini"`

1841 1871 

1842 - `"gpt-image-1.5"`

1843 

1844 - `"gpt-image-2"`1872 - `"gpt-image-2"`

1845 1873 

1846 - `"gpt-image-2-2026-04-21"`1874 - `"gpt-image-2-2026-04-21"`


1853 1881 

1854 - `"gpt-image-2.5-flare-2026-09-08"`1882 - `"gpt-image-2.5-flare-2026-09-08"`

1855 1883 

1884 - `"gpt-image-2.6-sunburst"`

1885 

1886 - `"gpt-image-2.6-flare"`

1887 

1888 - `"gpt-image-1.5"`

1889 

1890 - `"chatgpt-image-latest"`

1891 

1856 - `moderation: optional "auto" or "low" (default: "auto")`1892 - `moderation: optional "auto" or "low" (default: "auto")`

1857 1893 

1858 Moderation level for the generated image. Default: `auto`.1894 Moderation level for the generated image. Default: `auto`.


1867 1903 

1868 `minimum: 0`, `maximum: 100`1904 `minimum: 0`, `maximum: 100`

1869 1905 

1870 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`1906 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

1871 1907 

1872 The output format of the generated image. One of `png`, `webp`, or1908 The output format of the generated image. One of `png`, `webp`, `jpeg`,

1873 `jpeg`. Default: `png`.1909 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

1910 that supports the selected format. GIF output does not support

1911 partial image streaming (`partial_images` greater than `0`),

1912 `input_image_mask`, or custom `output_compression`.

1913 Responses lifecycle events can still be streamed for GIF output.

1874 1914 

1875 - `"png"`1915 - `"png"`

1876 1916 


1878 1918 

1879 - `"jpeg"`1919 - `"jpeg"`

1880 1920 

1921 - `"gif"`

1922 

1923 - `"svg"`

1924 

1881 - `partial_images: optional integer (default: 0)`1925 - `partial_images: optional integer (default: 0)`

1882 1926 

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


1921 1965 

1922 - `"auto"`1966 - `"auto"`

1923 1967 

1968 - `svg: optional object { model, reasoning }`

1969 

1970 SVG author model settings. Requires `output_format` to be `svg`.

1971 When SVG model selection is enabled, omitting this object uses the

1972 outer response model. Otherwise, the default SVG author is used and

1973 explicit model overrides are unavailable.

1974 

1975 - `model: optional string`

1976 

1977 `minLength: 1`

1978 

1979 - `reasoning: optional object { effort } or null`

1980 

1981 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

1982 

1983 - `effort: optional "none" or "minimal" or "low" or 4 more`

1984 

1985 Controls how much effort the model should spend on reasoning for this request.

1986 

1987 - `"none"`

1988 

1989 - `"minimal"`

1990 

1991 - `"low"`

1992 

1993 - `"medium"`

1994 

1995 - `"high"`

1996 

1997 - `"xhigh"`

1998 

1999 - `"max"`

2000 

1924 - `LocalShell object { type }`2001 - `LocalShell object { type }`

1925 2002 

1926 A tool that allows the model to execute shell commands in a local environment.2003 A tool that allows the model to execute shell commands in a local environment.


2854 2931 

2855 - `"programmatic_tool_calling"`2932 - `"programmatic_tool_calling"`

2856 2933 

2857 - `ImageGeneration object { type, action, background, 9 more }`2934 - `ImageGeneration object { type, action, background, 13 more }`

2858 2935 

2859 A tool that generates images using the GPT image models.2936 A tool that generates images using the GPT image models.

2860 2937 


2890 2967 

2891 - `"auto"`2968 - `"auto"`

2892 2969 

2970 - `complexity: optional "low" or "medium" or "high"`

2971 

2972 Computation spent planning the image, independently of rendering quality.

2973 Overrides the outer response's `reasoning.effort` for image generation.

2974 When omitted, inherits a supported outer reasoning effort or uses the

2975 image model's configured default.

2976 For SVG output, controls the reference image, not the SVG author's

2977 reasoning.

2978 

2979 - `"low"`

2980 

2981 - `"medium"`

2982 

2983 - `"high"`

2984 

2985 - `frame_count: optional integer (default: 9)`

2986 

2987 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

2988 

2989 `minimum: 2`, `maximum: 16`

2990 

2991 - `frame_duration_ms: optional integer (default: 200)`

2992 

2993 Duration of each GIF frame in milliseconds, rounded to 10 ms.

2994 Requires `output_format` to be `gif`. Default: 200.

2995 

2996 `minimum: 20`, `maximum: 2000`

2997 

2893 - `input_fidelity: optional "high" or "low" or null`2998 - `input_fidelity: optional "high" or "low" or null`

2894 2999 

2895 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.3000 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


2911 3016 

2912 Base64-encoded mask image.3017 Base64-encoded mask image.

2913 3018 

2914 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3019 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

2915 3020 

2916 The image generation model to use. One of `gpt-image-1-mini`,3021 The image generation model to use. One of `gpt-image-1-mini`,

2917 `gpt-image-1.5`, `gpt-image-2`,3022 `gpt-image-1.5`, `gpt-image-2`,

2918 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3023 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2919 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3024 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2920 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3025 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3026 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

2921 `gpt-image-2`.3027 `gpt-image-2`.

2922 3028 

2923 `gpt-image-1` was shut down on October 23, 2026. Use3029 `gpt-image-1` was shut down on October 23, 2026. Use


2925 3031 

2926 - `string`3032 - `string`

2927 3033 

2928 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3034 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

2929 3035 

2930 The image generation model to use. One of `gpt-image-1-mini`,3036 The image generation model to use. One of `gpt-image-1-mini`,

2931 `gpt-image-1.5`, `gpt-image-2`,3037 `gpt-image-1.5`, `gpt-image-2`,

2932 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3038 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

2933 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3039 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

2934 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3040 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3041 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

2935 `gpt-image-2`.3042 `gpt-image-2`.

2936 3043 

2937 `gpt-image-1` was shut down on October 23, 2026. Use3044 `gpt-image-1` was shut down on October 23, 2026. Use


2941 3048 

2942 - `"gpt-image-1-mini"`3049 - `"gpt-image-1-mini"`

2943 3050 

2944 - `"gpt-image-1.5"`

2945 

2946 - `"gpt-image-2"`3051 - `"gpt-image-2"`

2947 3052 

2948 - `"gpt-image-2-2026-04-21"`3053 - `"gpt-image-2-2026-04-21"`


2955 3060 

2956 - `"gpt-image-2.5-flare-2026-09-08"`3061 - `"gpt-image-2.5-flare-2026-09-08"`

2957 3062 

3063 - `"gpt-image-2.6-sunburst"`

3064 

3065 - `"gpt-image-2.6-flare"`

3066 

3067 - `"gpt-image-1.5"`

3068 

3069 - `"chatgpt-image-latest"`

3070 

2958 - `moderation: optional "auto" or "low" (default: "auto")`3071 - `moderation: optional "auto" or "low" (default: "auto")`

2959 3072 

2960 Moderation level for the generated image. Default: `auto`.3073 Moderation level for the generated image. Default: `auto`.


2969 3082 

2970 `minimum: 0`, `maximum: 100`3083 `minimum: 0`, `maximum: 100`

2971 3084 

2972 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`3085 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

2973 3086 

2974 The output format of the generated image. One of `png`, `webp`, or3087 The output format of the generated image. One of `png`, `webp`, `jpeg`,

2975 `jpeg`. Default: `png`.3088 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

3089 that supports the selected format. GIF output does not support

3090 partial image streaming (`partial_images` greater than `0`),

3091 `input_image_mask`, or custom `output_compression`.

3092 Responses lifecycle events can still be streamed for GIF output.

2976 3093 

2977 - `"png"`3094 - `"png"`

2978 3095 


2980 3097 

2981 - `"jpeg"`3098 - `"jpeg"`

2982 3099 

3100 - `"gif"`

3101 

3102 - `"svg"`

3103 

2983 - `partial_images: optional integer (default: 0)`3104 - `partial_images: optional integer (default: 0)`

2984 3105 

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


3023 3144 

3024 - `"auto"`3145 - `"auto"`

3025 3146 

3147 - `svg: optional object { model, reasoning }`

3148 

3149 SVG author model settings. Requires `output_format` to be `svg`.

3150 When SVG model selection is enabled, omitting this object uses the

3151 outer response model. Otherwise, the default SVG author is used and

3152 explicit model overrides are unavailable.

3153 

3154 - `model: optional string`

3155 

3156 `minLength: 1`

3157 

3158 - `reasoning: optional object { effort } or null`

3159 

3160 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

3161 

3162 - `effort: optional "none" or "minimal" or "low" or 4 more`

3163 

3164 Controls how much effort the model should spend on reasoning for this request.

3165 

3166 - `"none"`

3167 

3168 - `"minimal"`

3169 

3170 - `"low"`

3171 

3172 - `"medium"`

3173 

3174 - `"high"`

3175 

3176 - `"xhigh"`

3177 

3178 - `"max"`

3179 

3026 - `LocalShell object { type }`3180 - `LocalShell object { type }`

3027 3181 

3028 A tool that allows the model to execute shell commands in a local environment.3182 A tool that allows the model to execute shell commands in a local environment.


3545 3699 

3546 The identifier of the actor that created the item.3700 The identifier of the actor that created the item.

3547 3701 

3548 - `ImageGenerationCall object { id, result, status, 8 more }`3702 - `ImageGenerationCall object { id, result, status, 9 more }`

3549 3703 

3550 An image generation request made by the model.3704 An image generation request made by the model.

3551 3705 


3633 3787 

3634 - `"unknown"`3788 - `"unknown"`

3635 3789 

3636 - `output_format: optional "png" or "webp" or "jpeg" or null`3790 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

3637 3791 

3638 The output format used for generation.3792 The output format used for generation.

3639 3793 


3643 3797 

3644 - `"jpeg"`3798 - `"jpeg"`

3645 3799 

3800 - `"gif"`

3801 

3802 - `"svg"`

3803 

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

3647 3805 

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


3679 3837 

3680 - `"1536x1024"`3838 - `"1536x1024"`

3681 3839 

3840 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

3841 

3842 - `input_tokens: integer`

3843 

3844 - `model: string`

3845 

3846 - `output_tokens: integer`

3847 

3848 - `reasoning_tokens: integer`

3849 

3850 - `total_tokens: integer`

3851 

3682 - `CodeInterpreterCall object { id, code, container_id, 3 more }`3852 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

3683 3853 

3684 A tool call to run code.3854 A tool call to run code.

Details

1876 1876 

1877 - `"programmatic_tool_calling"`1877 - `"programmatic_tool_calling"`

1878 1878 

1879 - `ImageGeneration object { type, action, background, 9 more }`1879 - `ImageGeneration object { type, action, background, 13 more }`

1880 1880 

1881 A tool that generates images using the GPT image models.1881 A tool that generates images using the GPT image models.

1882 1882 


1912 1912 

1913 - `"auto"`1913 - `"auto"`

1914 1914 

1915 - `complexity: optional "low" or "medium" or "high"`

1916 

1917 Computation spent planning the image, independently of rendering quality.

1918 Overrides the outer response's `reasoning.effort` for image generation.

1919 When omitted, inherits a supported outer reasoning effort or uses the

1920 image model's configured default.

1921 For SVG output, controls the reference image, not the SVG author's

1922 reasoning.

1923 

1924 - `"low"`

1925 

1926 - `"medium"`

1927 

1928 - `"high"`

1929 

1930 - `frame_count: optional integer (default: 9)`

1931 

1932 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

1933 

1934 `minimum: 2`, `maximum: 16`

1935 

1936 - `frame_duration_ms: optional integer (default: 200)`

1937 

1938 Duration of each GIF frame in milliseconds, rounded to 10 ms.

1939 Requires `output_format` to be `gif`. Default: 200.

1940 

1941 `minimum: 20`, `maximum: 2000`

1942 

1915 - `input_fidelity: optional "high" or "low" or null`1943 - `input_fidelity: optional "high" or "low" or null`

1916 1944 

1917 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.1945 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


1933 1961 

1934 Base64-encoded mask image.1962 Base64-encoded mask image.

1935 1963 

1936 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`1964 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

1937 1965 

1938 The image generation model to use. One of `gpt-image-1-mini`,1966 The image generation model to use. One of `gpt-image-1-mini`,

1939 `gpt-image-1.5`, `gpt-image-2`,1967 `gpt-image-1.5`, `gpt-image-2`,

1940 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,1968 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1941 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,1969 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1942 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:1970 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

1971 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

1943 `gpt-image-2`.1972 `gpt-image-2`.

1944 1973 

1945 `gpt-image-1` was shut down on October 23, 2026. Use1974 `gpt-image-1` was shut down on October 23, 2026. Use


1947 1976 

1948 - `string`1977 - `string`

1949 1978 

1950 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`1979 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

1951 1980 

1952 The image generation model to use. One of `gpt-image-1-mini`,1981 The image generation model to use. One of `gpt-image-1-mini`,

1953 `gpt-image-1.5`, `gpt-image-2`,1982 `gpt-image-1.5`, `gpt-image-2`,

1954 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,1983 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

1955 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,1984 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

1956 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:1985 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

1986 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

1957 `gpt-image-2`.1987 `gpt-image-2`.

1958 1988 

1959 `gpt-image-1` was shut down on October 23, 2026. Use1989 `gpt-image-1` was shut down on October 23, 2026. Use


1963 1993 

1964 - `"gpt-image-1-mini"`1994 - `"gpt-image-1-mini"`

1965 1995 

1966 - `"gpt-image-1.5"`

1967 

1968 - `"gpt-image-2"`1996 - `"gpt-image-2"`

1969 1997 

1970 - `"gpt-image-2-2026-04-21"`1998 - `"gpt-image-2-2026-04-21"`


1977 2005 

1978 - `"gpt-image-2.5-flare-2026-09-08"`2006 - `"gpt-image-2.5-flare-2026-09-08"`

1979 2007 

2008 - `"gpt-image-2.6-sunburst"`

2009 

2010 - `"gpt-image-2.6-flare"`

2011 

2012 - `"gpt-image-1.5"`

2013 

2014 - `"chatgpt-image-latest"`

2015 

1980 - `moderation: optional "auto" or "low" (default: "auto")`2016 - `moderation: optional "auto" or "low" (default: "auto")`

1981 2017 

1982 Moderation level for the generated image. Default: `auto`.2018 Moderation level for the generated image. Default: `auto`.


1991 2027 

1992 `minimum: 0`, `maximum: 100`2028 `minimum: 0`, `maximum: 100`

1993 2029 

1994 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`2030 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

1995 2031 

1996 The output format of the generated image. One of `png`, `webp`, or2032 The output format of the generated image. One of `png`, `webp`, `jpeg`,

1997 `jpeg`. Default: `png`.2033 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

2034 that supports the selected format. GIF output does not support

2035 partial image streaming (`partial_images` greater than `0`),

2036 `input_image_mask`, or custom `output_compression`.

2037 Responses lifecycle events can still be streamed for GIF output.

1998 2038 

1999 - `"png"`2039 - `"png"`

2000 2040 


2002 2042 

2003 - `"jpeg"`2043 - `"jpeg"`

2004 2044 

2045 - `"gif"`

2046 

2047 - `"svg"`

2048 

2005 - `partial_images: optional integer (default: 0)`2049 - `partial_images: optional integer (default: 0)`

2006 2050 

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


2045 2089 

2046 - `"auto"`2090 - `"auto"`

2047 2091 

2092 - `svg: optional object { model, reasoning }`

2093 

2094 SVG author model settings. Requires `output_format` to be `svg`.

2095 When SVG model selection is enabled, omitting this object uses the

2096 outer response model. Otherwise, the default SVG author is used and

2097 explicit model overrides are unavailable.

2098 

2099 - `model: optional string`

2100 

2101 `minLength: 1`

2102 

2103 - `reasoning: optional object { effort } or null`

2104 

2105 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

2106 

2107 - `effort: optional "none" or "minimal" or "low" or 4 more`

2108 

2109 Controls how much effort the model should spend on reasoning for this request.

2110 

2111 - `"none"`

2112 

2113 - `"minimal"`

2114 

2115 - `"low"`

2116 

2117 - `"medium"`

2118 

2119 - `"high"`

2120 

2121 - `"xhigh"`

2122 

2123 - `"max"`

2124 

2048 - `LocalShell object { type }`2125 - `LocalShell object { type }`

2049 2126 

2050 A tool that allows the model to execute shell commands in a local environment.2127 A tool that allows the model to execute shell commands in a local environment.


2986 3063 

2987 - `"programmatic_tool_calling"`3064 - `"programmatic_tool_calling"`

2988 3065 

2989 - `ImageGeneration object { type, action, background, 9 more }`3066 - `ImageGeneration object { type, action, background, 13 more }`

2990 3067 

2991 A tool that generates images using the GPT image models.3068 A tool that generates images using the GPT image models.

2992 3069 


3022 3099 

3023 - `"auto"`3100 - `"auto"`

3024 3101 

3102 - `complexity: optional "low" or "medium" or "high"`

3103 

3104 Computation spent planning the image, independently of rendering quality.

3105 Overrides the outer response's `reasoning.effort` for image generation.

3106 When omitted, inherits a supported outer reasoning effort or uses the

3107 image model's configured default.

3108 For SVG output, controls the reference image, not the SVG author's

3109 reasoning.

3110 

3111 - `"low"`

3112 

3113 - `"medium"`

3114 

3115 - `"high"`

3116 

3117 - `frame_count: optional integer (default: 9)`

3118 

3119 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

3120 

3121 `minimum: 2`, `maximum: 16`

3122 

3123 - `frame_duration_ms: optional integer (default: 200)`

3124 

3125 Duration of each GIF frame in milliseconds, rounded to 10 ms.

3126 Requires `output_format` to be `gif`. Default: 200.

3127 

3128 `minimum: 20`, `maximum: 2000`

3129 

3025 - `input_fidelity: optional "high" or "low" or null`3130 - `input_fidelity: optional "high" or "low" or null`

3026 3131 

3027 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.3132 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


3043 3148 

3044 Base64-encoded mask image.3149 Base64-encoded mask image.

3045 3150 

3046 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3151 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3047 3152 

3048 The image generation model to use. One of `gpt-image-1-mini`,3153 The image generation model to use. One of `gpt-image-1-mini`,

3049 `gpt-image-1.5`, `gpt-image-2`,3154 `gpt-image-1.5`, `gpt-image-2`,

3050 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3155 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3051 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3156 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3052 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3157 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3158 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3053 `gpt-image-2`.3159 `gpt-image-2`.

3054 3160 

3055 `gpt-image-1` was shut down on October 23, 2026. Use3161 `gpt-image-1` was shut down on October 23, 2026. Use


3057 3163 

3058 - `string`3164 - `string`

3059 3165 

3060 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`3166 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

3061 3167 

3062 The image generation model to use. One of `gpt-image-1-mini`,3168 The image generation model to use. One of `gpt-image-1-mini`,

3063 `gpt-image-1.5`, `gpt-image-2`,3169 `gpt-image-1.5`, `gpt-image-2`,

3064 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,3170 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

3065 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,3171 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

3066 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:3172 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

3173 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

3067 `gpt-image-2`.3174 `gpt-image-2`.

3068 3175 

3069 `gpt-image-1` was shut down on October 23, 2026. Use3176 `gpt-image-1` was shut down on October 23, 2026. Use


3073 3180 

3074 - `"gpt-image-1-mini"`3181 - `"gpt-image-1-mini"`

3075 3182 

3076 - `"gpt-image-1.5"`

3077 

3078 - `"gpt-image-2"`3183 - `"gpt-image-2"`

3079 3184 

3080 - `"gpt-image-2-2026-04-21"`3185 - `"gpt-image-2-2026-04-21"`


3087 3192 

3088 - `"gpt-image-2.5-flare-2026-09-08"`3193 - `"gpt-image-2.5-flare-2026-09-08"`

3089 3194 

3195 - `"gpt-image-2.6-sunburst"`

3196 

3197 - `"gpt-image-2.6-flare"`

3198 

3199 - `"gpt-image-1.5"`

3200 

3201 - `"chatgpt-image-latest"`

3202 

3090 - `moderation: optional "auto" or "low" (default: "auto")`3203 - `moderation: optional "auto" or "low" (default: "auto")`

3091 3204 

3092 Moderation level for the generated image. Default: `auto`.3205 Moderation level for the generated image. Default: `auto`.


3101 3214 

3102 `minimum: 0`, `maximum: 100`3215 `minimum: 0`, `maximum: 100`

3103 3216 

3104 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`3217 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

3105 3218 

3106 The output format of the generated image. One of `png`, `webp`, or3219 The output format of the generated image. One of `png`, `webp`, `jpeg`,

3107 `jpeg`. Default: `png`.3220 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

3221 that supports the selected format. GIF output does not support

3222 partial image streaming (`partial_images` greater than `0`),

3223 `input_image_mask`, or custom `output_compression`.

3224 Responses lifecycle events can still be streamed for GIF output.

3108 3225 

3109 - `"png"`3226 - `"png"`

3110 3227 


3112 3229 

3113 - `"jpeg"`3230 - `"jpeg"`

3114 3231 

3232 - `"gif"`

3233 

3234 - `"svg"`

3235 

3115 - `partial_images: optional integer (default: 0)`3236 - `partial_images: optional integer (default: 0)`

3116 3237 

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


3155 3276 

3156 - `"auto"`3277 - `"auto"`

3157 3278 

3279 - `svg: optional object { model, reasoning }`

3280 

3281 SVG author model settings. Requires `output_format` to be `svg`.

3282 When SVG model selection is enabled, omitting this object uses the

3283 outer response model. Otherwise, the default SVG author is used and

3284 explicit model overrides are unavailable.

3285 

3286 - `model: optional string`

3287 

3288 `minLength: 1`

3289 

3290 - `reasoning: optional object { effort } or null`

3291 

3292 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

3293 

3294 - `effort: optional "none" or "minimal" or "low" or 4 more`

3295 

3296 Controls how much effort the model should spend on reasoning for this request.

3297 

3298 - `"none"`

3299 

3300 - `"minimal"`

3301 

3302 - `"low"`

3303 

3304 - `"medium"`

3305 

3306 - `"high"`

3307 

3308 - `"xhigh"`

3309 

3310 - `"max"`

3311 

3158 - `LocalShell object { type }`3312 - `LocalShell object { type }`

3159 3313 

3160 A tool that allows the model to execute shell commands in a local environment.3314 A tool that allows the model to execute shell commands in a local environment.


3627 3781 

3628 The ID of the compaction item.3782 The ID of the compaction item.

3629 3783 

3630 - `ImageGenerationCall object { id, result, status, 8 more }`3784 - `ImageGenerationCall object { id, result, status, 9 more }`

3631 3785 

3632 An image generation request made by the model.3786 An image generation request made by the model.

3633 3787 


3715 3869 

3716 - `"unknown"`3870 - `"unknown"`

3717 3871 

3718 - `output_format: optional "png" or "webp" or "jpeg" or null`3872 - `output_format: optional "png" or "webp" or "jpeg" or 2 more or null`

3719 3873 

3720 The output format used for generation.3874 The output format used for generation.

3721 3875 


3725 3879 

3726 - `"jpeg"`3880 - `"jpeg"`

3727 3881 

3882 - `"gif"`

3883 

3884 - `"svg"`

3885 

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

3729 3887 

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


3761 3919 

3762 - `"1536x1024"`3920 - `"1536x1024"`

3763 3921 

3922 - `svg_usage: optional object { input_tokens, model, output_tokens, 2 more }`

3923 

3924 - `input_tokens: integer`

3925 

3926 - `model: string`

3927 

3928 - `output_tokens: integer`

3929 

3930 - `reasoning_tokens: integer`

3931 

3932 - `total_tokens: integer`

3933 

3764 - `CodeInterpreterCall object { id, code, container_id, 3 more }`3934 - `CodeInterpreterCall object { id, code, container_id, 3 more }`

3765 3935 

3766 A tool call to run code.3936 A tool call to run code.


5455 5625 

5456 - `"programmatic_tool_calling"`5626 - `"programmatic_tool_calling"`

5457 5627 

5458 - `ImageGeneration object { type, action, background, 9 more }`5628 - `ImageGeneration object { type, action, background, 13 more }`

5459 5629 

5460 A tool that generates images using the GPT image models.5630 A tool that generates images using the GPT image models.

5461 5631 


5491 5661 

5492 - `"auto"`5662 - `"auto"`

5493 5663 

5664 - `complexity: optional "low" or "medium" or "high"`

5665 

5666 Computation spent planning the image, independently of rendering quality.

5667 Overrides the outer response's `reasoning.effort` for image generation.

5668 When omitted, inherits a supported outer reasoning effort or uses the

5669 image model's configured default.

5670 For SVG output, controls the reference image, not the SVG author's

5671 reasoning.

5672 

5673 - `"low"`

5674 

5675 - `"medium"`

5676 

5677 - `"high"`

5678 

5679 - `frame_count: optional integer (default: 9)`

5680 

5681 Number of GIF frames. Requires `output_format` to be `gif`. Default: 9.

5682 

5683 `minimum: 2`, `maximum: 16`

5684 

5685 - `frame_duration_ms: optional integer (default: 200)`

5686 

5687 Duration of each GIF frame in milliseconds, rounded to 10 ms.

5688 Requires `output_format` to be `gif`. Default: 200.

5689 

5690 `minimum: 20`, `maximum: 2000`

5691 

5494 - `input_fidelity: optional "high" or "low" or null`5692 - `input_fidelity: optional "high" or "low" or null`

5495 5693 

5496 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.5694 Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports `high` and `low` on `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.


5512 5710 

5513 Base64-encoded mask image.5711 Base64-encoded mask image.

5514 5712 

5515 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`5713 - `model: optional string or "gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

5516 5714 

5517 The image generation model to use. One of `gpt-image-1-mini`,5715 The image generation model to use. One of `gpt-image-1-mini`,

5518 `gpt-image-1.5`, `gpt-image-2`,5716 `gpt-image-1.5`, `gpt-image-2`,

5519 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,5717 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

5520 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,5718 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

5521 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:5719 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

5720 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

5522 `gpt-image-2`.5721 `gpt-image-2`.

5523 5722 

5524 `gpt-image-1` was shut down on October 23, 2026. Use5723 `gpt-image-1` was shut down on October 23, 2026. Use


5526 5725 

5527 - `string`5726 - `string`

5528 5727 

5529 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-1.5" or 6 more`5728 - `"gpt-image-1" or "gpt-image-1-mini" or "gpt-image-2" or 9 more`

5530 5729 

5531 The image generation model to use. One of `gpt-image-1-mini`,5730 The image generation model to use. One of `gpt-image-1-mini`,

5532 `gpt-image-1.5`, `gpt-image-2`,5731 `gpt-image-1.5`, `gpt-image-2`,

5533 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,5732 `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,

5534 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,5733 `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,

5535 `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`. Default:5734 `gpt-image-2.5-flare-2026-09-08`, `gpt-image-2.6-sunburst`,

5735 `gpt-image-2.6-flare`, or `chatgpt-image-latest`. Default:

5536 `gpt-image-2`.5736 `gpt-image-2`.

5537 5737 

5538 `gpt-image-1` was shut down on October 23, 2026. Use5738 `gpt-image-1` was shut down on October 23, 2026. Use


5542 5742 

5543 - `"gpt-image-1-mini"`5743 - `"gpt-image-1-mini"`

5544 5744 

5545 - `"gpt-image-1.5"`

5546 

5547 - `"gpt-image-2"`5745 - `"gpt-image-2"`

5548 5746 

5549 - `"gpt-image-2-2026-04-21"`5747 - `"gpt-image-2-2026-04-21"`


5556 5754 

5557 - `"gpt-image-2.5-flare-2026-09-08"`5755 - `"gpt-image-2.5-flare-2026-09-08"`

5558 5756 

5757 - `"gpt-image-2.6-sunburst"`

5758 

5759 - `"gpt-image-2.6-flare"`

5760 

5761 - `"gpt-image-1.5"`

5762 

5763 - `"chatgpt-image-latest"`

5764 

5559 - `moderation: optional "auto" or "low" (default: "auto")`5765 - `moderation: optional "auto" or "low" (default: "auto")`

5560 5766 

5561 Moderation level for the generated image. Default: `auto`.5767 Moderation level for the generated image. Default: `auto`.


5570 5776 

5571 `minimum: 0`, `maximum: 100`5777 `minimum: 0`, `maximum: 100`

5572 5778 

5573 - `output_format: optional "png" or "webp" or "jpeg" (default: "png")`5779 - `output_format: optional "png" or "webp" or "jpeg" or 2 more (default: "png")`

5574 5780 

5575 The output format of the generated image. One of `png`, `webp`, or5781 The output format of the generated image. One of `png`, `webp`, `jpeg`,

5576 `jpeg`. Default: `png`.5782 `gif`, or `svg`. Default: `png`. GIF and SVG output require a model

5783 that supports the selected format. GIF output does not support

5784 partial image streaming (`partial_images` greater than `0`),

5785 `input_image_mask`, or custom `output_compression`.

5786 Responses lifecycle events can still be streamed for GIF output.

5577 5787 

5578 - `"png"`5788 - `"png"`

5579 5789 


5581 5791 

5582 - `"jpeg"`5792 - `"jpeg"`

5583 5793 

5794 - `"gif"`

5795 

5796 - `"svg"`

5797 

5584 - `partial_images: optional integer (default: 0)`5798 - `partial_images: optional integer (default: 0)`

5585 5799 

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


5624 5838 

5625 - `"auto"`5839 - `"auto"`

5626 5840 

5841 - `svg: optional object { model, reasoning }`

5842 

5843 SVG author model settings. Requires `output_format` to be `svg`.

5844 When SVG model selection is enabled, omitting this object uses the

5845 outer response model. Otherwise, the default SVG author is used and

5846 explicit model overrides are unavailable.

5847 

5848 - `model: optional string`

5849 

5850 `minLength: 1`

5851 

5852 - `reasoning: optional object { effort } or null`

5853 

5854 Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

5855 

5856 - `effort: optional "none" or "minimal" or "low" or 4 more`

5857 

5858 Controls how much effort the model should spend on reasoning for this request.

5859 

5860 - `"none"`

5861 

5862 - `"minimal"`

5863 

5864 - `"low"`

5865 

5866 - `"medium"`

5867 

5868 - `"high"`

5869 

5870 - `"xhigh"`

5871 

5872 - `"max"`

5873 

5627 - `LocalShell object { type }`5874 - `LocalShell object { type }`

5628 5875 

5629 A tool that allows the model to execute shell commands in a local environment.5876 A tool that allows the model to execute shell commands in a local environment.