Studios

Smart Router

Send clawhunter/smart as the model. Each request goes to the best model for its difficulty.

How it routes

Each request is classified easy, medium, hard, or frontier. It's then served by the best model on the menu for that difficulty.

import OpenAI from "openai";​const client = new OpenAI({  apiKey: process.env.CLAWHUNTER_API_KEY,  baseURL: "https://mystudios.fun/api/v1",});​const response = await client.chat.completions.create({  model: "clawhunter/smart",  messages: [{ role: "user", content: "Debug this race condition" }],});

What you pay

You pay the routed model's per-token rates, settled for what you used. The response's billing block names the routed model and the difficulty. It also shows list_usd, the same tokens at provider list price.

Smart Router needs a prepaid key. It reserves at the priciest routable model's rates, then settles down. It never draws on the daily free allowance.

Reference

Smart Router runs on Chat Completions. Chat Completions