ModelDukunganPerusahaanBlog
500+ API Model AI, Semua Dalam Satu API. Hanya Di CometAPI
API Model
Pengembang
Mulai CepatDokumentasiDasbor API
Sumber Daya
Model AIBlogPerusahaanCatatan PerubahanTentang
2025 CometAPI. Semua hak dilindungi undang-undang.Kebijakan PrivasiSyarat dan Ketentuan Layanan
Home/Models/OpenAI/gpt-4-search
O

gpt-4-search

Per Permintaan:$0.04
Penggunaan komersial
Ikhtisar
Fitur
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.

Fitur untuk gpt-4-search

Jelajahi fitur-fitur utama dari gpt-4-search, yang dirancang untuk meningkatkan performa dan kegunaan. Temukan bagaimana kemampuan-kemampuan ini dapat menguntungkan proyek Anda dan meningkatkan pengalaman pengguna.

Harga untuk gpt-4-search

Jelajahi harga kompetitif untuk gpt-4-search, dirancang untuk berbagai anggaran dan kebutuhan penggunaan. Paket fleksibel kami memastikan Anda hanya membayar untuk apa yang Anda gunakan, memudahkan untuk meningkatkan skala seiring berkembangnya kebutuhan Anda. Temukan bagaimana gpt-4-search dapat meningkatkan proyek Anda sambil menjaga biaya tetap terkendali.
Harga Comet (USD / M Tokens)Harga Resmi (USD / M Tokens)Diskon
Per Permintaan:$0.04
Per Permintaan:$0.05
-20%

Kode contoh dan API untuk gpt-4-search

Akses kode sampel komprehensif dan sumber daya API untuk gpt-4-search guna mempermudah proses integrasi Anda. Dokumentasi terperinci kami menyediakan panduan langkah demi langkah, membantu Anda memanfaatkan potensi penuh gpt-4-search dalam proyek Anda.

Model Lainnya

G

Nano Banana 2

Masukan:$0.4/M
Keluaran:$2.4/M
Ikhtisar Kapabilitas Inti: Resolusi: Hingga 4K (4096×4096), setara dengan Pro. Konsistensi Gambar Referensi: Hingga 14 gambar referensi (10 objek + 4 karakter), mempertahankan konsistensi gaya/karakter. Rasio Aspek Ekstrem: Rasio baru 1:4, 4:1, 1:8, 8:1 ditambahkan, cocok untuk gambar panjang, poster, dan banner. Rendering Teks: Pembuatan teks tingkat lanjut, cocok untuk infografis dan tata letak poster pemasaran. Peningkatan Pencarian: Terintegrasi dengan Google Search + Pencarian Gambar. Grounding: Proses penalaran bawaan; prompt kompleks dinalar terlebih dahulu sebelum pembuatan.
A

Claude Opus 4.6

Masukan:$4/M
Keluaran:$20/M
Claude Opus 4.6 adalah model bahasa besar kelas “Opus” dari Anthropic, dirilis pada Februari 2026. Model ini diposisikan sebagai andalan untuk pekerjaan berbasis pengetahuan dan alur kerja riset — meningkatkan penalaran dalam konteks panjang, perencanaan multi-langkah, penggunaan alat (termasuk alur kerja perangkat lunak berbasis agen), serta tugas penggunaan komputer seperti pembuatan slide dan spreadsheet secara otomatis.
A

Claude Sonnet 4.6

Masukan:$2.4/M
Keluaran:$12/M
Claude Sonnet 4.6 adalah model Sonnet kami yang paling mumpuni sejauh ini. Ini merupakan peningkatan menyeluruh atas keahlian model di bidang pemrograman, penggunaan komputer, penalaran konteks panjang, perencanaan agen, pekerjaan berbasis pengetahuan, dan desain. Sonnet 4.6 juga menyertakan jendela konteks 1M token dalam tahap beta.
O

GPT-5.4 nano

Masukan:$0.16/M
Keluaran:$1/M
GPT-5.4 nano dirancang untuk tugas-tugas di mana kecepatan dan biaya paling penting, seperti klasifikasi, ekstraksi data, pemeringkatan, dan sub-agen.
O

GPT-5.4 mini

Masukan:$0.6/M
Keluaran:$3.6/M
GPT-5.4 mini menghadirkan keunggulan GPT-5.4 ke model yang lebih cepat dan lebih efisien, dirancang untuk beban kerja bervolume tinggi.
A

Claude Mythos Preview

A

Claude Mythos Preview

Segera hadir
Masukan:$60/M
Keluaran:$240/M
Claude Mythos Preview adalah model frontier kami yang paling mumpuni hingga saat ini, dan menunjukkan lompatan skor yang mencolok pada banyak tolok ukur evaluasi dibandingkan dengan model frontier kami sebelumnya, Claude Opus 4.6.