One of the following:
"gpt-6-astra" | "gpt-6.1-sol" | "gpt-6-sol" | 106 more

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 to browse and compare available models.

"gpt-6-astra"
"gpt-6.1-sol"
"gpt-6-sol"
"gpt-6-luna"
"gpt-5.6-sol"
"gpt-5.6-terra"
"gpt-5.6-luna"
"gpt-5.5"
"gpt-5.5-2026-04-23"
"gpt-5.4"
"gpt-5.4-mini"
"gpt-5.4-nano"
"gpt-5.4-mini-2026-03-17"
"gpt-5.4-nano-2026-03-17"
"gpt-5.2"
"gpt-5.2-2025-12-11"
"gpt-5.2-pro"
"gpt-5.2-pro-2025-12-11"
"gpt-5.1"
"gpt-5.1-2025-11-13"
"gpt-4.1"
"gpt-4.1-mini"
"gpt-4.1-2025-04-14"
"gpt-4.1-mini-2025-04-14"
"gpt-4o"
"gpt-4o-2024-11-20"
"gpt-4o-2024-08-06"
"gpt-4o-mini"
"gpt-4o-mini-2024-07-18"
"gpt-5.5-pro"
"gpt-5.5-pro-2026-04-23"
"gpt-daybreak-blue-latest"
"gpt-daybreak-red-latest"
"gpt-5.6-cyber"
"gpt-rosalind-research"
"gpt-5.3-chat-latest"

Deprecated. Announced shutdown date: 2026-08-10. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-5.2-chat-latest"

Deprecated. Announced shutdown date: 2026-08-10. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-5.1-codex"

Deprecated. Announced shutdown date: 2026-07-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-5.1-mini"

Deprecated. Not a supported model ID. Retained for SDK compatibility.

"gpt-5.1-chat-latest"

Deprecated. Announced shutdown date: 2026-07-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-5"

Deprecated. Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-5-mini"

Deprecated. Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-5-nano"

Deprecated. Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-5-2025-08-07"

Deprecated. Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-5-mini-2025-08-07"

Deprecated. Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-5-nano-2025-08-07"

Deprecated. Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-5-chat-latest"

Deprecated. Announced shutdown date: 2026-07-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-4.1-nano"

Deprecated. Announced shutdown date: 2026-10-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-4.1-nano-2025-04-14"

Deprecated. Announced shutdown date: 2026-10-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"o4-mini"

Deprecated. Announced shutdown date: 2026-10-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"o4-mini-2025-04-16"

Deprecated. Announced shutdown date: 2026-10-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"o3"

Deprecated. Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"o3-2025-04-16"

Deprecated. Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"o3-mini"

Deprecated. Announced shutdown date: 2026-10-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"o3-mini-2025-01-31"

Deprecated. Announced shutdown date: 2026-10-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"o1"

Deprecated. Announced shutdown date: 2026-10-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"o1-2024-12-17"

Deprecated. Announced shutdown date: 2026-10-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"o1-preview"

Deprecated. Announced shutdown date: 2025-07-28. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"o1-preview-2024-09-12"

Deprecated. Announced shutdown date: 2025-07-28. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"o1-mini"

Deprecated. Announced shutdown date: 2025-10-27. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"o1-mini-2024-09-12"

Deprecated. Announced shutdown date: 2025-10-27. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-4o-2024-05-13"

Deprecated. Announced shutdown date: 2026-10-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-audio-mini"

Deprecated. Announced shutdown date: 2027-01-20. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-audio-mini-2025-12-15"

Deprecated. Announced shutdown date: 2027-01-20. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-4o-audio-preview"

Deprecated. Announced shutdown date: 2026-05-07. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-4o-audio-preview-2024-10-01"

Deprecated. Announced shutdown date: 2025-10-10. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-4o-audio-preview-2024-12-17"

Deprecated. Announced shutdown date: 2026-05-07. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-4o-audio-preview-2025-06-03"

Deprecated. Announced shutdown date: 2026-05-07. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-4o-mini-audio-preview"

Deprecated. Announced shutdown date: 2026-05-07. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-4o-mini-audio-preview-2024-12-17"

Deprecated. Announced shutdown date: 2026-05-07. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-4o-search-preview"

Deprecated. Announced shutdown date: 2026-07-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-4o-mini-search-preview"

Deprecated. Announced shutdown date: 2026-07-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-4o-search-preview-2025-03-11"

Deprecated. Announced shutdown date: 2026-07-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-4o-mini-search-preview-2025-03-11"

Deprecated. Announced shutdown date: 2026-07-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"chatgpt-4o-latest"

Deprecated. Announced shutdown date: 2026-02-17. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"codex-mini-latest"

Deprecated. Announced shutdown date: 2026-02-12. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-4-turbo"

Deprecated. Announced shutdown date: 2026-10-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-4-turbo-2024-04-09"

Deprecated. Announced shutdown date: 2026-10-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-4-0125-preview"

Deprecated. Announced shutdown date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-4-turbo-preview"

Deprecated. Announced shutdown date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-4-1106-preview"

Deprecated. Announced shutdown date: 2026-10-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-4-vision-preview"

Deprecated. Announced shutdown date: 2024-12-06. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-4"

Deprecated. Announced shutdown date: 2026-10-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-4-0314"

Deprecated. Announced shutdown date: 2026-03-26. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-4-0613"

Deprecated. Announced shutdown date: 2026-10-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-4-32k"

Deprecated. Announced shutdown date: 2025-06-06. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-4-32k-0314"

Deprecated. Announced shutdown date: 2025-06-06. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-4-32k-0613"

Deprecated. Announced shutdown date: 2025-06-06. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-3.5-turbo"

Deprecated. Announced shutdown date: 2026-10-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-3.5-turbo-16k"

Deprecated. Announced shutdown date: 2024-09-13. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-3.5-turbo-0301"

Deprecated. Announced shutdown date: 2024-09-13. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-3.5-turbo-0613"

Deprecated. Announced shutdown date: 2024-09-13. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-3.5-turbo-1106"

Deprecated. Announced shutdown date: 2026-09-28. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-3.5-turbo-0125"

Deprecated. Announced shutdown date: 2026-10-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

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

Deprecated. Announced shutdown date: 2024-09-13. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"o1-pro"

Deprecated. Announced shutdown date: 2026-10-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"o1-pro-2025-03-19"

Deprecated. Announced shutdown date: 2026-10-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"o3-pro"

Deprecated. Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"o3-pro-2025-06-10"

Deprecated. Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"o3-deep-research"

Deprecated. Announced shutdown date: 2026-07-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"o3-deep-research-2025-06-26"

Deprecated. Announced shutdown date: 2026-07-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"o4-mini-deep-research"

Deprecated. Announced shutdown date: 2026-07-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"o4-mini-deep-research-2025-06-26"

Deprecated. Announced shutdown date: 2026-07-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"computer-use-preview"

Deprecated. Announced shutdown date: 2026-07-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"computer-use-preview-2025-03-11"

Deprecated. Announced shutdown date: 2026-07-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-5-codex"

Deprecated. Announced shutdown date: 2026-07-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-5-pro"

Deprecated. Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-5-pro-2025-10-06"

Deprecated. Announced shutdown date: 2026-12-11. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

"gpt-5.1-codex-max"

Deprecated. Announced shutdown date: 2026-07-23. See https://developers.openai.com/api/docs/deprecations for details and recommended replacements.

(string & {})
This type repeats the enclosing schema.