Back to all models
Get all the details on GPT-4o Search Preview, an AI model from OpenAI. This page covers its token limits, pricing structure, key capabilities such as text_generation, web_browsing_via_tool, available API code samples, and performance strengths.
Key Metrics
Input Limit
128K tokens
Output Limit
16.4K tokens
Input Cost
$2.50/1M
Output Cost
$10.00/1M
Sample API Code
from openai import OpenAI
client = OpenAI()
chat_completion = client.chat.completions.create(
messages=[
{
'role': 'user',
'content': 'What is the capital of France?',
}
],
model='gpt-4o-search-preview',
)
print(chat_completion.choices[0].message.content)
Required Libraries
openai
openai
Benchmarks
Benchmark | Score | Source | Notes |
---|---|---|---|
1000 | OpenLLM Leaderboard | Listed as 'api-gpt-4o-search' | |
999 | OpenLLM Leaderboard | Listed as 'api-gpt-4o-search-high' | |
994 | OpenLLM Leaderboard | Listed as 'api-gpt-4o-search-high-loc' |
Notes
A specialized model trained to understand and execute web search queries with the Chat Completions API. In addition to token fees, web search queries have a fee per tool call.
Capabilities
text generation
web browsing via tool
Supported Data Types
Input Types
text
Output Types
text
Strengths & Weaknesses
Exceptional at
web search queries
Additional Information
Latest Update
Mar 11, 2025
Knowledge Cutoff
Oct 1, 2023