Skip to main content
Use OpenAI’s built-in web_search tool to generate responses informed by a web search:
Set search_context_size to low, medium, or high to control the search context size. Search pricing multipliers vary by context size. The web search tool supports the following models:
  • gpt-5 (web search is not supported when the reasoning level is minimal)
  • gpt-5-mini
  • gpt-4.1
  • gpt-4.1-mini
  • gpt-4o
  • gpt-4o-mini
  • o3
  • o4-mini
  • o3-pro
  • o3-deep-research
  • o4-mini-deep-research