ModelSokonganPerusahaanBlog
500+ API Model AI, Semua Dalam Satu API. Hanya Di CometAPI
API Model
Pembangun
Mula PantasDokumentasiPapan Pemuka API
Sumber
Model AIBlogPerusahaanLog PerubahanTentang
2025 CometAPI. Hak cipta terpelihara.Dasar PrivasiTerma Perkhidmatan
Home/Models/OpenAI/gpt-4-search
O

gpt-4-search

Setiap Permintaan:$0.04
Penggunaan komersial
Gambaran Keseluruhan
Ciri-ciri
Harga
API

Technical Specifications of gpt-4-search

SpecificationDetails
Model IDgpt-4-search
Provider / familyOpenAI search-oriented GPT model, mapped on CometAPI to a web-search-capable GPT variant.
Primary purposeSearch-augmented text generation for timely questions that benefit from live web retrieval and cited answers.
Input / outputText input and text output.
Context window128,000 tokens.
Max output tokens16,384 tokens.
Knowledge behaviorUses web search to supplement its base knowledge for current information; the underlying search-preview model page lists an October 1, 2023 knowledge cutoff for the base model component.
API patterns commonly associated with this capabilityChat Completions and Responses-style workflows for web-connected answers, depending on the platform abstraction.
Typical result formatNatural-language answers that can include source links/citations from retrieved web content.

What is gpt-4-search?

gpt-4-search is CometAPI’s platform identifier for a GPT-4-class search-capable model designed for answering questions that require fresh information from the web. In OpenAI’s public documentation, the closest corresponding capability is its search-specialized GPT model and the web search tool used in ChatGPT search and the API. These systems are built to retrieve current web information, synthesize it into an answer, and surface references so users can verify the response.

This makes gpt-4-search especially suitable for use cases such as news summaries, market monitoring, product research, fact-checking, travel planning, and other workflows where a standard static-knowledge model may be insufficient. OpenAI also states that the same search model powers ChatGPT search, reinforcing that this class of model is optimized for timely, citation-backed responses rather than purely closed-book generation.

Main features of gpt-4-search

  • Live web retrieval: The model is intended for queries that need up-to-date information from the public web, rather than relying only on training data.
  • Citation-backed answers: Search-enabled responses can include links or references to sources, helping users inspect where information came from.
  • Search-specialized behavior: OpenAI describes its search preview model as specialized for understanding and executing web search queries.
  • Large context handling: With a 128k context window, the model can manage longer prompts and richer retrieved context than many smaller models.
  • High factual QA utility: OpenAI reports strong benchmark performance for its search-enabled models on short factual question answering, indicating usefulness for research and verification workflows.
  • Good fit for agents and assistants: OpenAI positions web search as a core tool for building assistants such as shopping, research, and travel agents that depend on timely information.
  • Text-focused interaction: The publicly documented search-preview model is text-in/text-out, which aligns well with chat, analysis, and retrieval-driven API tasks.

How to access and integrate gpt-4-search

Step 1: Sign Up for API Key

Sign up on CometAPI and create an API key from the dashboard. After that, store the key as an environment variable such as COMETAPI_API_KEY so your application can authenticate securely with the API.

Step 2: Send Requests to gpt-4-search API

Use CometAPI’s OpenAI-compatible endpoint and specify the model as gpt-4-search.

curl https://api.cometapi.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $COMETAPI_API_KEY" \
  -d '{
    "model": "gpt-4-search",
    "messages": [
      {
        "role": "user",
        "content": "Summarize the latest major AI news and include the most important takeaways."
      }
    ]
  }'

Step 3: Retrieve and Verify Results

Parse the JSON response and read the generated assistant message from the choices[0].message.content field. Because gpt-4-search is intended for search-backed answers, you should also review any returned citations, source references, or related metadata in the response payload when available, and verify important claims before using them in production workflows.

Ciri-ciri untuk gpt-4-search

Terokai ciri-ciri utama gpt-4-search, yang direka untuk meningkatkan prestasi dan kebolehgunaan. Temui bagaimana keupayaan ini boleh memberi manfaat kepada projek anda dan meningkatkan pengalaman pengguna.

Harga untuk gpt-4-search

Terokai harga yang kompetitif untuk gpt-4-search, direka bentuk untuk memenuhi pelbagai bajet dan keperluan penggunaan. Pelan fleksibel kami memastikan anda hanya membayar untuk apa yang anda gunakan, menjadikannya mudah untuk meningkatkan skala apabila keperluan anda berkembang. Temui bagaimana gpt-4-search boleh meningkatkan projek anda sambil mengekalkan kos yang terurus.
Harga Comet (USD / M Tokens)Harga Rasmi (USD / M Tokens)Diskaun
Setiap Permintaan:$0.04
Setiap Permintaan:$0.05
-20%

Kod contoh dan API untuk gpt-4-search

Akses kod sampel yang komprehensif dan sumber API untuk gpt-4-search bagi memperlancar proses integrasi anda. Dokumentasi terperinci kami menyediakan panduan langkah demi langkah, membantu anda memanfaatkan potensi penuh gpt-4-search dalam projek anda.

Lebih Banyak Model

G

Nano Banana 2

Masukan:$0.4/M
Keluaran:$2.4/M
Gambaran Keseluruhan Keupayaan Teras: Resolusi: Sehingga 4K (4096×4096), setara dengan Pro. Ketekalan Imej Rujukan: Sehingga 14 imej rujukan (10 objek + 4 watak), mengekalkan ketekalan gaya/watak. Nisbah Aspek Melampau: Nisbah baharu 1:4, 4:1, 1:8, 8:1 ditambah, sesuai untuk imej panjang, poster dan sepanduk. Penjanaan Teks: Penjanaan teks lanjutan, sesuai untuk infografik dan susun atur poster pemasaran. Peningkatan Carian: Carian Google + Carian Imej bersepadu. Pembumian: Proses pemikiran terbina dalam; arahan kompleks dirasionalkan sebelum penjanaan.
A

Claude Opus 4.6

Masukan:$4/M
Keluaran:$20/M
Claude Opus 4.6 ialah model bahasa besar kelas “Opus” oleh Anthropic, dikeluarkan pada Februari 2026. Ia diposisikan sebagai tulang belakang untuk kerja berpengetahuan dan aliran kerja penyelidikan — menambah baik penaakulan berkonteks panjang, perancangan berbilang langkah, penggunaan alat (termasuk aliran kerja perisian berasaskan ejen), dan tugas penggunaan komputer seperti penjanaan slaid dan hamparan automatik.
A

Claude Sonnet 4.6

Masukan:$2.4/M
Keluaran:$12/M
Claude Sonnet 4.6 ialah model Sonnet kami yang paling berkeupayaan setakat ini. Ia merupakan peningkatan menyeluruh terhadap kemahiran model yang meliputi pengaturcaraan, penggunaan komputer, penaakulan konteks panjang, perancangan agen, kerja berasaskan pengetahuan, dan reka bentuk. Sonnet 4.6 turut menampilkan tetingkap konteks 1M token dalam beta.
O

GPT-5.4 nano

Masukan:$0.16/M
Keluaran:$1/M
GPT-5.4 nano direka untuk tugasan yang amat mengutamakan kelajuan dan kos, seperti pengelasan, pengekstrakan data, pemeringkatan dan sub-agen.
O

GPT-5.4 mini

Masukan:$0.6/M
Keluaran:$3.6/M
GPT-5.4 mini membawa kekuatan GPT-5.4 ke dalam model yang lebih pantas dan lebih cekap, direka untuk beban kerja berskala besar.
A

Claude Mythos Preview

A

Claude Mythos Preview

Akan datang
Masukan:$60/M
Keluaran:$240/M
Claude Mythos Preview ialah model terdepan kami yang paling berkemampuan setakat ini, dan menunjukkan lonjakan yang ketara dalam skor pada banyak penanda aras penilaian berbanding model terdepan kami sebelum ini, Claude Opus 4.6.