openai

OpenAI: GPT 4o Search Preview

models/GPT-4o Search Preview

GPT 4o Search Preview is a specialized model for web search in Chat Completions. It is trained to understand and execute web search queries.
Currency$USD
Input$2.50
Output$10.00
Context window128K

Generate API Key Generate your API Key to securely access IndoxHub's AI models. Integrate with OpenAI-compatible tools, run queries, and build powerful AI applications — all with a single secure key.
Endpoint
POSThttps://api.indoxhub.com/api/v1/chat/completions
Configopenai/gpt-4o-search-preview
from indoxhub import Client
 
# Initialize the client
with Client(api_key="[LOGIN TO GET API KEY]") as client:
    # Generate a chat completion
    response = client.chat(
        messages=[{"role":"system","content":"You are a helpful assistant."},{"role":"user","content":"What is machine learning and why is it important?"}],
        model="openai/gpt-4o-search-preview",
        temperature:"0.7"
    )
 
    # Print the response
    print(response["data"])