GPT-4o Search Preview API
Access GPT-4o Search Preview from OpenAI using Puter.js AI API.
Get Startedopenai/gpt-4o-search-preview
Model Card
GPT-4o Search Preview is a specialized model for web search in Chat Completions, trained to understand and execute search queries. It returns responses with embedded citations and source references.
Context Window
N/A
tokens
Max Output
16,384
tokens
Input Cost
$2.5
per million tokens
Output Cost
$10
per million tokens
API Usage Example
Add GPT-4o Search Preview to your app with just a few lines of code.
No API keys, no backend, no configuration required.
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.chat("Explain quantum computing in simple terms", {
model: "openai/gpt-4o-search-preview"
}).then(response => {
document.body.innerHTML = response.message.content;
});
</script>
</body>
</html>
Get started with Puter.js
Add GPT-4o Search Preview to your app without worrying about API keys or setup.
Read the Docs View Tutorials