Skip to content

Model Routers

These capsules take the detections of other capsules and send them, with a prompt, to a cloud AI model through its API: Claude Classifier Agent (Anthropic), ChatGPT Classifier Agent (OpenAI), and Classifier Model Router, which lets you select the provider in its options: Claude, ChatGPT, Gemini, Qwen, GLM, DeepSeek, or any OpenAI-compatible server. A third-party account and fee are required (some providers have a free tier).

To see how a model router works together with other capsules, see Capsule Fusion and Model Router.

{{model_router_downloads_table}}

Source Code and Your Own Model Router

The source code of the model routers is open, in the capsules directory of the Capsule Zoo on GitHub: classifier_model_router, claude_classifier_agent and chatgpt_classifier_agent.

You can implement a model router of your own that sends the detections to a server of your private LLM model, so that the images stay inside your network. Start from the code of classifier_model_router. It already works with any OpenAI-compatible server (set the provider to custom, and fill in base_url and custom_model); for a server with a different API, change the backend of the capsule to call it. To write and package a capsule, see the tutorial Creating a Basic Capsule.