GPT-4o-mini Search Preview

OpenAI Generally Available

GPT-4o mini Search Preview is a specialized model for web search in Chat Completions. It is trained to understand and execute web search queries.

Context
128K
tokens
Input
$0.15
per MTok
Output
$0.60
per MTok

About

GPT-4o mini Search Preview is a specialized model for web search in Chat Completions. It is trained to understand and execute web search queries.

Modalities

Input
Text
Output
Text

Code Examples

curl https://api.openai.com/v1/chat/completions \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4o-mini-search-preview",
    "messages": [
      { "role": "user", "content": "Explain quantum entanglement in one sentence." }
    ]
  }'

API Parameters

Name Type Description
max_tokens deprecated integer Deprecated. Use max_completion_tokens.
response_format one of Constrain output to a JSON schema or an enum (structured outputs).
structured_outputs boolean Enable JSON-schema-constrained output.
web_search_options object Configuration for web-search tool augmentation.

Standard OpenAI-compatible parameters. Consult the provider docs for model-specific behaviour.