Skip to main content

For AI agents: docs.octen.ai/capabilities/model-gateway.md

Building with LLMs usually means juggling providers, protocols, and API keys, and every model only knows the web as of its training date. Model Gateway 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 Model Gateway API reference.

Why Model Gateway

  • 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.

How It Works

  1. Point your existing OpenAI or Anthropic SDK at the Octen base URL and pick a model.
  2. 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.
  3. 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.

Chat with a frontier model

Call any model in the lineup through the OpenAI Chat Completions protocol.

Answer with live web data

Enable a built-in search tool; the model searches when it needs fresh information.
Use octen_broad_search instead for multi-angle questions.

Generate images

Create images from text at /v1/images/generations, following the OpenAI Images protocol; pass an input image to edit it instead.

Next Steps

Try in Console

Run Model Gateway live in the Octen console.

Model Gateway API Reference

Full request/response schema.