AI Rate Card

GPT 4o Search Preview · aihubmix

Using the Chat Completions API, you can directly access the fine-tuned models and tool used by Search in ChatGPT. When using Chat Completions, the model always retrieves information from the web before responding to your query. To use web_search_preview as a tool that models like gpt-4o and gpt-4o-mini invoke only when necessary, switch to using the Responses API. Currently, you need to use one of these models to use web search in Chat Completions: gpt-4o-search-preview gpt-4o-mini-search-preview Web search parameter example import OpenAI from "openai"; const client = new OpenAI(); const completion = await client.chat.completions.create({ model: "gpt-4o-search-preview", web_search_options: {}, messages: [{ "role": "user", "content": "What was a positive news story from today?" }], }); console.log(completion.choices[0].message.content); Output and citations The API response item in the choices array will include: message.content with the text result from the model, inclusive of any inline citations annotations with a list of cited URLs By default, the model's response will include inline citations for URLs found in the web search results. In addition to this, the url_citation annotation object will contain the URL and title of the cited source, as well as the start and end index characters in the model's response where those sources were used.

Базовая модельВсе модели этой базовойВсе модели провайдерак провайдеру

Вход, $/1M $2.50

Выход, $/1M $10.00

Чтение из кэша $1.25

Запись в кэш —

Контекст 128 000

Макс. выход 16 384

Принимает картинки, текст

Последняя проверка 04.11.2026 12:00:14 UTC

Источник страница провайдера

Уведомления о ценах

Войдите, чтобы следить за ценой

API

API, совместимый с OpenAI: подходят официальные SDK OpenAI с этим адресом. YOUR_API_KEY замените на свой ключ от провайдера.

Адрес API
https://aihubmix.com/api/v1
Эндпоинт
https://aihubmix.com/api/v1/chat/completions
Модель (id в API)
gpt-4o-search-preview
curl
curl https://aihubmix.com/api/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-4o-search-preview", "messages": [{"role": "user", "content": "Hello!"}], "max_tokens": 256}'
Python
import requests

r = requests.post(
    "https://aihubmix.com/api/v1/chat/completions",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={
      "model": "gpt-4o-search-preview",
      "messages": [
        {
          "role": "user",
          "content": "Hello!"
        }
      ],
      "max_tokens": 256
    },
)
print(r.json())
JavaScript
const r = await fetch("https://aihubmix.com/api/v1/chat/completions", {
  method: "POST",
  headers: {Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json"},
  body: JSON.stringify({
    "model": "gpt-4o-search-preview",
    "messages": [
      {
        "role": "user",
        "content": "Hello!"
      }
    ],
    "max_tokens": 256
  }),
});
console.log(await r.json());
Запрос (JSON)
{
  "model": "gpt-4o-search-preview",
  "messages": [
    {
      "role": "user",
      "content": "Hello!"
    }
  ],
  "max_tokens": 256
}
Ответ (JSON)
{
  "id": "chatcmpl-...",
  "object": "chat.completion",
  "model": "gpt-4o-search-preview",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hi! How can I help?"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 9,
    "completion_tokens": 12,
    "total_tokens": 21
  }
}

Адрес взят из списка моделей провайдера - сверьте с его документацией.

Документация API провайдера

Source: AI Rate Card, https://airatecard.com/ru/c/offer%3Aaihubmix%7Cgpt-4o-search-preview, prices checked 2026-11-04; seller's page: https://aihubmix.com

Технические данные

ID: offer:aihubmix|gpt-4o-search-preview