ModeleWsparciePrzedsiębiorstwoBlog
Ponad 500 API modeli AI, wszystko w jednym API. Tylko w CometAPI
API modeli
Deweloper
Szybki startDokumentacjaPanel API
Zasoby
Modele Sztucznej InteligencjiBlogPrzedsiębiorstwoDziennik zmianO nas
2025 CometAPI. Wszelkie prawa zastrzeżone.Polityka PrywatnościWarunki korzystania z usługi
Home/Models/OpenAI/gpt-4-search
O

gpt-4-search

Na żądanie:$0.04
Użycie komercyjne
Przegląd
Funkcje
Cennik
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.

Funkcje dla gpt-4-search

Poznaj kluczowe funkcje gpt-4-search, zaprojektowane w celu zwiększenia wydajności i użyteczności. Odkryj, jak te możliwości mogą przynieść korzyści Twoim projektom i poprawić doświadczenie użytkownika.

Cennik dla gpt-4-search

Poznaj konkurencyjne ceny dla gpt-4-search, zaprojektowane tak, aby pasowały do różnych budżetów i potrzeb użytkowania. Nasze elastyczne plany zapewniają, że płacisz tylko za to, czego używasz, co ułatwia skalowanie w miarę wzrostu Twoich wymagań. Odkryj, jak gpt-4-search może ulepszyć Twoje projekty przy jednoczesnym utrzymaniu kosztów na rozsądnym poziomie.
Cena Comet (USD / M Tokens)Oficjalna cena (USD / M Tokens)Zniżka
Na żądanie:$0.04
Na żądanie:$0.05
-20%

Przykładowy kod i API dla gpt-4-search

Uzyskaj dostęp do kompleksowego przykładowego kodu i zasobów API dla gpt-4-search, aby usprawnić proces integracji. Nasza szczegółowa dokumentacja zapewnia wskazówki krok po kroku, pomagając wykorzystać pełny potencjał gpt-4-search w Twoich projektach.

Więcej modeli

G

Nano Banana 2

Wejście:$0.4/M
Wyjście:$2.4/M
Przegląd kluczowych możliwości: Rozdzielczość: Do 4K (4096×4096), na równi z Pro. Spójność obrazów referencyjnych: Do 14 obrazów referencyjnych (10 obiektów + 4 postacie), z zachowaniem spójności stylu/postaci. Ekstremalne proporcje obrazu: Dodano nowe proporcje 1:4, 4:1, 1:8, 8:1, odpowiednie do długich obrazów, plakatów i banerów. Renderowanie tekstu: Zaawansowane generowanie tekstu, odpowiednie do infografik i układów plakatów marketingowych. Ulepszenie wyszukiwania: Zintegrowane Google Search + Image Search. Osadzanie: Wbudowany proces rozumowania; złożone polecenia są analizowane przed generowaniem.
A

Claude Opus 4.6

Wejście:$4/M
Wyjście:$20/M
Claude Opus 4.6 to duży model językowy firmy Anthropic klasy „Opus”, wydany w lutym 2026 r. Jest pozycjonowany jako podstawowe narzędzie wspierające pracę opartą na wiedzy oraz procesy badawcze — usprawnia rozumowanie w długim kontekście, planowanie wieloetapowe, korzystanie z narzędzi (w tym agentowe przepływy pracy oprogramowania) oraz zadania związane z obsługą komputera, takie jak automatyczne generowanie slajdów i arkuszy kalkulacyjnych.
A

Claude Sonnet 4.6

Wejście:$2.4/M
Wyjście:$12/M
Claude Sonnet 4.6 to nasz najbardziej zaawansowany model Sonnet do tej pory. To pełna aktualizacja umiejętności modelu, obejmująca programowanie, korzystanie z komputera, rozumowanie w długim kontekście, planowanie agentowe, pracę opartą na wiedzy oraz projektowanie. Sonnet 4.6 oferuje również okno kontekstu 1M tokenów w wersji beta.
O

GPT-5.4 nano

Wejście:$0.16/M
Wyjście:$1/M
GPT-5.4 nano został zaprojektowany z myślą o zadaniach, w których kluczowe są szybkość i koszt, takich jak klasyfikacja, ekstrakcja danych, ranking oraz sub-agenty.
O

GPT-5.4 mini

Wejście:$0.6/M
Wyjście:$3.6/M
GPT-5.4 mini przenosi zalety GPT-5.4 do szybszego i bardziej wydajnego modelu, zaprojektowanego z myślą o zadaniach o dużej skali.
A

Claude Mythos Preview

A

Claude Mythos Preview

Wkrótce
Wejście:$60/M
Wyjście:$240/M
Claude Mythos Preview to nasz najbardziej zaawansowany model najnowszej generacji jak dotąd i wykazuje imponujący skok wyników w wielu benchmarkach ewaluacyjnych w porównaniu z naszym poprzednim modelem najnowszej generacji, Claude Opus 4.6.