---
last_updated: 2026-11-28
source_url: https://opper.ai/openai/gpt-5-search-api
title: "GPT-5 Search API by OpenAI"
description: "GPT-5 Search API equips GPT-5 with live web search, enabling research, current-events reasoning, and dynamic information retrieval over the open web."
---

# GPT-5 Search API

By [OpenAI](https://opper.ai/openai).

GPT-5 Search API is a variant of GPT-5 equipped with web search, letting the model retrieve and reason over live information from the internet. It supports agentic search, where the model actively decides when and what to search, and deep research modes for in-depth, multi-source investigations.

With a 272k token context window and web search tool access, GPT-5 Search API excels at tasks that need current information, research synthesis, fact-checking, and reasoning over real-world events and data. Web search does not support minimal reasoning mode, and very low reasoning effort may produce lower-quality results.

The model supports tool use, making it suitable for applications that combine language understanding with dynamic web intelligence. It is a good fit for news analysis, research synthesis, knowledge work, and agentic workflows that require up-to-date information.

## Available routes

GPT-5 Search API runs on 1 route through the Opper gateway. Prices are per 1M tokens. Its routes and prices, live from the catalogue, are public JSON with no API key needed at https://api.opper.ai/v3/models?q=openai%2Fgpt-5-search-api.

| Provider | Model id | Region | Zero data retention | Training | Input | Output | Cache read |
| --- | --- | --- | --- | --- | --- | --- | --- |
| [OpenAI](https://opper.ai/provider/openai) | `openai/gpt-5-search-api` | US (United States) | Abuse monitoring | No | $1.25 | $10.00 | Input price |

## Key info

- Model id: `openai/gpt-5-search-api`
- Input: Text
- Output: Text
- Features: Tools
- Context window: 200K
- Max output: 128K
- Input price: $1.25 per 1M tokens
- Output price: $10.00 per 1M tokens
- US residency available
- Zero data retention with abuse monitoring
- No training by default

## Data handling per route

Each route hosting GPT-5 Search API has its own privacy posture, residency, and GDPR terms. Postures are maintained by Opper with a last-verification timestamp.

### OpenAI — United States

Zero data retention with abuse monitoring: prompts and outputs are kept for up to 30 days for abuse monitoring only, and are not used for training. No training on customer data. US; SCCs.

- Zero data retention: With abuse monitoring, 30-day window.
- Training: No training on customer data.
- Logging: Abuse monitoring (30-day retention)
- Abuse monitoring: On by default, holds flagged content, 30 days, a person can view samples
- Caching: Prompt cache
- Transfer mechanism: SCCs

Verified by Opper on 2026-09-16.

## Get started

Call GPT-5 Search API through the Opper gateway with one API key. Opper is drop-in compatible with the OpenAI, Anthropic and Google AI SDKs.

GPT-5 Search API is a premium model on Opper. Sign up needs no credit card: you get an API key straight away and the free models work in the playground and the API. Add a card to use premium models, pay-as-you-go with no minimum.

### Set it up with your agent

Paste this into a coding agent like Claude Code, Cursor or Codex and it will wire up Opper for you:

```text
Use curl to download, read and follow: https://skills.opper.ai Call GPT-5 Search API
```

### Or call it directly

OpenAI:

```javascript
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.OPPER_API_KEY,
  baseURL: "https://api.opper.ai/v3/compat",
});

const completion = await client.chat.completions.create({
  model: "openai/gpt-5-search-api",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(completion.choices[0].message.content);
```

Anthropic:

```javascript
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  apiKey: process.env.OPPER_API_KEY,
  baseURL: "https://api.opper.ai/v3/compat",
});

const message = await client.messages.create({
  model: "openai/gpt-5-search-api",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Hello" }],
});
console.log(message.content);
```

Gemini:

```javascript
import { GoogleGenAI } from "@google/genai";

const ai = new GoogleGenAI({
  apiKey: process.env.OPPER_API_KEY,
  httpOptions: { baseUrl: "https://api.opper.ai/v3/compat" },
});

const response = await ai.models.generateContent({
  model: "openai/gpt-5-search-api",
  contents: "Hello",
});
console.log(response.text);
```

cURL:

```bash
curl https://api.opper.ai/v3/compat/chat/completions \
  -H "Authorization: Bearer $OPPER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-5-search-api",
    "messages": [{ "role": "user", "content": "Hello" }]
  }'
```

## Use GPT-5 Search API in your apps

Pick your tool to see how to run it on GPT-5 Search API through Opper.

- [Claude Code](https://opper.ai/apps/claude-code/gpt-5-search-api)
- [Claude Cowork](https://opper.ai/apps/claude-cowork/gpt-5-search-api)
- [Codex](https://opper.ai/apps/codex/gpt-5-search-api)
- [DeepSeek Harness](https://opper.ai/apps/deepseek-harness/gpt-5-search-api)
- [GitHub Copilot CLI](https://opper.ai/apps/github-copilot-cli/gpt-5-search-api)
- [Aider](https://opper.ai/apps/aider/gpt-5-search-api)
- [Goose](https://opper.ai/apps/goose/gpt-5-search-api)
- [Droid](https://opper.ai/apps/droid/gpt-5-search-api)
- [OpenCode](https://opper.ai/apps/opencode/gpt-5-search-api)
- [Pi](https://opper.ai/apps/pi/gpt-5-search-api)
- [OpenClaw](https://opper.ai/apps/openclaw/gpt-5-search-api)
- [Hermes](https://opper.ai/apps/hermes/gpt-5-search-api)
- [Copilot for Obsidian](https://opper.ai/apps/obsidian-copilot/gpt-5-search-api)
- [OmniRoute](https://opper.ai/apps/omniroute/gpt-5-search-api)
- [Cursor](https://opper.ai/apps/cursor/gpt-5-search-api)
- [Cline](https://opper.ai/apps/cline/gpt-5-search-api)
- [Continue](https://opper.ai/apps/continue/gpt-5-search-api)
- [Kilo Code](https://opper.ai/apps/kilo-code/gpt-5-search-api)
- [GitHub Copilot](https://opper.ai/apps/github-copilot/gpt-5-search-api)
- [Zed](https://opper.ai/apps/zed/gpt-5-search-api)
- [JetBrains AI Assistant](https://opper.ai/apps/jetbrains-ai-assistant/gpt-5-search-api)
- [Voidleap Code](https://opper.ai/apps/voidleap-code/gpt-5-search-api)
- [n8n](https://opper.ai/apps/n8n/gpt-5-search-api)
- [LibreChat](https://opper.ai/apps/librechat/gpt-5-search-api)
- [Open WebUI](https://opper.ai/apps/open-webui/gpt-5-search-api)
- [See all apps](https://opper.ai/apps)

## Other models from OpenAI

- [GPT-6.2 Astra](https://opper.ai/openai/gpt-6-2-astra)
- [GPT-6 Astra](https://opper.ai/openai/gpt-6-astra)
- [GPT-6.2 Sol](https://opper.ai/openai/gpt-6-2-sol)
- [GPT-6.1 Sol](https://opper.ai/openai/gpt-6-1-sol)
- [GPT-6.1 Terra](https://opper.ai/openai/gpt-6-1-terra)
- [GPT-6 Luna](https://opper.ai/openai/gpt-6-luna)
