Logo
Back to all models

GPT-4o mini Search Preview - In-Depth Overview

OpenAI · GPT-4o

preview

Model ID: gpt-4o-mini-search-preview

Get all the details on GPT-4o mini Search Preview, an AI model from OpenAI. This page covers its token limits, pricing structure, key capabilities such as web_browsing_via_tool, function_calling, available API code samples, and performance strengths.

Key Metrics

Input Limit

128K tokens

Output Limit

16.4K tokens

Input Cost

$0.15/1M

Output Cost

$0.60/1M

Sample API Code

from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
    model="gpt-4o-mini-search-preview",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "What is the capital of France?"}
    ],
    tools=[{"type": "web_search"}]
)
print(response.choices[0].message.content)

Required Libraries

openai
openai

Benchmarks

BenchmarkScoreSourceNotes
961
Open LLM LeaderboardScore for 'api-gpt-4o-mini-search'

Notes

GPT-4o mini Search Preview is 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.

Supported Data Types

Input Types

text

Output Types

text

Strengths & Weaknesses

Exceptional at

web search queries

Good at

affordability
speed

Poor at

image input
audio input

Additional Information

Latest Update

Mar 11, 2025

Knowledge Cutoff

Oct 1, 2023