翻篇收录说明
翻篇网页快照

Auto Search - Octen Docs

https://docs.octen.ai/capabilities/auto-search

最近抓取:2026-12-05 07:58:46(北京时间)

最近内容变化:2026-12-05 07:58:46(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

Access frontier models through one API key, with live web search built in.

正文摘录

For AI agents: docs.octen.ai/capabilities/auto-search.md Building with LLMs usually means juggling providers, protocols, and API keys, and every model only knows the web as of its training date. Auto Search closes both gaps: it serves frontier models from Anthropic, OpenAI, Google, and more behind one API key, with built-in Octen search tools that let any model answer with live web data. For the full list of parameters, see the Auto Search API reference. Why Auto Search One key, frontier lineup. Claude, GPT, Gemini, and more. Switch models by changing one string. Built-in search. Enable the built-in search tools and the model grounds its answers on the live web; Octen runs the searches server-side, with no tool plumbing on your side. Drop-in compatibility. Speaks the OpenAI Chat Completions and Anthropic Messages protocols. Point your existing SDK at the Octen base URL. Image generation. Create or edit images with image models through the same gateway. Video generation. Generate videos from a text prompt, optionally guided by reference images or videos. How It Works Point your existing OpenAI or Anthropic SDK at the Octen base URL and pick a model. Octen routes the request to the model provider; when built-in search tools are enabled, the model decides when to search and Octen executes the searches server-side. The response comes back in the standard protocol shape, grounded in live web results when search was used. Scenarios Bring your existing code If your app already uses the OpenAI or Anthropic SDK, switch to Octen by changing the base URL and API key. The rest of your code stays the same. OpenAI SDKAnthropic SDKfrom openai import OpenAI client = OpenAI( api_key="YOUR_OCTEN_API_KEY", base_url="https://api.octen.ai/v1", ) response = client.chat.completions.create( model="openai/gpt-5.4", messages=[{"role": "user", "content": "Explain vector search in one paragraph"}], ) Chat with a frontier model Call any model in the lineup through the OpenAI Chat Completions protocol. curl -X POST https://api.octen.ai/v1/chat/completions \ -H "Content-Type: application/json" \ -H "x-api-key: YOUR_API_KEY" \ -d '{ "model": "anthropic/claude-sonnet-5.5", "messages": [{ "role": "user", "content": "Explain vector search in one paragraph" }] }' Answer with live web data Enable a built-in search tool; the model searches when it needs fresh information. { "model": "openai/gpt-5.4", "messages": [{ "role": "user", "content": "What happened in tech today?" }], "tools": [{ "type": "octen_search" }] } Use octen_broad_search instead for multi-angle questions. Find local places For local questions, such as nearby restaurants or opening hours, octen_search also returns place cards with the address, rating, and opening hours. { "model": "anthropic/claude-sonnet-5.5", "messages": [{ "role": "user", "content": "Recommend a few highly rated ramen shops near Shibuya Station in Tokyo." }], "tools": [{ "type": "octen_search" }] } Answer with images and videos Enable octen_multimodal_search; the model searches web pages, images, and videos as needed and places images and videos directly in the answer. { "model": "openai/gpt-6.1-terra", "messages": [{ "role": "user", "content": "What does the Sagrada Familia look like today?" }], "tools": [{ "type": "octen_multimodal_search" }] } Generate images Create images from text at /v1/images/generations, following the OpenAI Images protocol; pass an input image to edit it instead. { "model": "openai/gpt-image-2", "prompt": "an isometric illustration of a search engine indexing the web" } Generate videos Generate a video from text at /v1/videos. { "model": "google/veo-3.1", "prompt": "an isometric illustration of a search engine indexing the web" } Generation is asynchronous. The call returns a task id; poll /v1/videos/{id} until status is completed, then download the file from video_url. Preview videos in draft mode With bytedance/seedance-2.5, add "draft": true to render a low-cost 480p preview. { "model": "bytedance/seedance-2.5", "prompt": "A red paper boat drifts down a rainy city gutter, close-up, cinematic.", "duration": 4, "aspect_ratio": "16:9", "draft": true } Once the preview is completed, pass its id as draft_video_id to render the final in 1080p. The final reuses the preview’s prompt and settings, so send no other fields. { "model": "bytedance/seedance-2.5", "draft_video_id": "video-1796379563-4377ac", "resolution": "1080p" } The preview and the final are billed as two separate tasks, so together they cost more than a direct 1080p render. Next Steps Try in ConsoleRun Auto Search live in the Octen console.Auto Search API ReferenceFull request/response schema. Last modified on December 4, 2026Was this page helpful?YesNo