



import OpenAI from 'openai';
const api = new OpenAI({
baseURL: 'https://api.ai.cc/v1',
apiKey: '',
});
const main = async () => {
const answer = await api.chat.completions.create({
model: 'gpt-4o-search-preview',
web_search_options: {},
messages: [
{
role: 'user',
content: 'What holiday is today?'
}
],
});
console.log(answer.choices[0]);
};
main();
from openai import OpenAI
client = OpenAI(
base_url="https://api.ai.cc/v1",
api_key="",
)
response = client.chat.completions.create(
model="gpt-4o-search-preview",
web_search_options={},
messages=[
{
"role": "user",
"content": "What holiday is today?"
},
],
)
print(response.choices[0])
-
AI Playground

Test all API models in the sandbox environment before you integrate.
We provide more than 300 models to integrate into your app.


Product Detail
Discover the power of GPT-4o Search Preview, a cutting-edge AI model that integrates advanced natural language processing with real-time web capabilities. This innovative tool is designed to provide highly accurate, up-to-date, and contextually rich responses, transforming how applications access and process information from the internet.
Overview: Real-Time Intelligence
The GPT-4o Search Preview elevates AI capabilities by combining GPT-4o's exceptional natural language understanding with direct, live web access. This powerful integration facilitates instant fact-checking, dynamic data updates, and the generation of context-aware responses utilizing the most current information available on the web.
Key Features: Enhanced Search & Context
- ✅ Web Search Integration: Gain direct access to live web data through OpenAI's integrated search tool, providing unparalleled accuracy and freshness.
- 📚 Large Context Window: Process complex and extensive queries with a vast 128,000-token context window, allowing for deep understanding and comprehensive responses.
- 💻 Structured Outputs: Receive responses formatted in JSON, ideal for seamless integration into API-driven applications and automated workflows.
- 🌐 Global Localization: Customize search results based on geographical parameters (e.g., using the "user_location" parameter) to deliver relevant, location-specific information.
Intended Use Cases: Powering Intelligent Applications
- 🔍 Real-Time Fact-Checking: Instantly verify information and generate accurate citations from current web sources.
- 📍 Location-Based Recommendations: Provide up-to-date suggestions for services like restaurants, events, or local businesses based on user location.
- 🔬 Enhanced Research Assistance: Aid in research by pulling the latest information from web sources, ensuring data freshness and relevance.
- 💬 Advanced Q&A Systems: Develop sophisticated question-and-answer systems that require access to the most current information for accurate responses.
Technical Details
Architecture
The GPT-4o Search Preview is built upon a robust Transformer-based model, further enhanced with specialized web search adaptation layers to efficiently process and integrate real-time web data.
Usage & Integration
Code Samples
The GPT-4o Search Preview model, referred to as "gpt-4o-search-preview", is accessible on the AI/ML API platform. It can be utilized as a chat model with an optional web_search_options parameter for fine-tuned control over search behavior.
Here is an example demonstrating its usage:
model="gpt-4o-mini-search-preview",
web_search_options={
"user_location": {
"type": "approximate",
"approximate": {
"country": "GB",
"city": "London",
"region": "London"
}
},
"search_context_size": "low"
},
messages=[
{
"role": "user",
"content": "What holiday is today?"
},
],
API Documentation
For comprehensive guidelines on integration and further details, please refer to the API Documentation available on the AI/ML API website.
Ethical Guidelines: Safety & Bias Mitigation
OpenAI has prioritized ethical considerations throughout the development of this model, with a strong focus on safety and bias mitigation. The GPT-4o Search Preview inherits the robust bias mitigation framework from GPT-4o. It is important to acknowledge that web results, by their nature, may reflect inherent biases present in internet content.
Licensing: Commercial Usage Rights
The GPT-4o Search Preview is available under commercial usage rights, allowing businesses and developers to seamlessly integrate this powerful model into their diverse applications and services.
Frequently Asked Questions (FAQ)
-
❓ What is GPT-4o Search Preview?
It's an advanced AI model that combines GPT-4o's natural language understanding with real-time access to current web data, enabling dynamic fact-checking and context-aware responses. -
❓ How does it access web data?
It integrates directly with OpenAI's search tool, allowing it to retrieve and utilize live web information for its responses. -
❓ Can I specify a location for search results?
Yes, you can use theuser_locationparameter to customize search results based on approximate geographic location. -
❓ What kind of applications can benefit from GPT-4o Search Preview?
Applications requiring real-time fact-checking, up-to-date recommendations (e.g., local services), current research assistance, and enhanced Q&A systems are ideal use cases. -
❓ Is this model available for commercial use?
Yes, GPT-4o Search Preview comes with commercial usage rights, allowing businesses to integrate it into their products and services.
Learn how you can transformyour company with AICC APIs



Log in