Raeto picks the right model for every request your app makes. Simple questions go to a fast, cheap model; hard ones go to a strong one. You call the model with your own provider key, so nothing about your setup changes.
Up to 70% off simple requests · works on any chain · $0.0002 per decision
Add one line before you call your model. Raeto answers in milliseconds with the model to use, why it picked it, and stronger fallbacks if you ever need them.
import OpenAI from "openai"; import { Raeto } from "./raeto.mjs"; // raeto.cc/sdk/raeto.mjs, no dependencies const raeto = new Raeto({ apiKey: process.env.RAETO_API_KEY }); const openai = new OpenAI(); // your own key, unchanged const request = { messages: [{ role: "user", content: userMessage }] }; const { model } = await raeto.route({ ...request, models: { fast: "gpt-4o-mini", mid: "gpt-4.1", top: "o3" } }); const reply = await openai.chat.completions.create({ ...request, model });
import os from openai import OpenAI from raeto import Raeto # raeto.cc/sdk/raeto.py, no dependencies raeto = Raeto(api_key=os.environ["RAETO_API_KEY"]) openai = OpenAI() # your own key, unchanged messages = [{"role": "user", "content": user_message}] pick = raeto.route(messages=messages, models={"fast": "gpt-4o-mini", "mid": "gpt-4.1", "top": "o3"}) reply = openai.chat.completions.create(model=pick["model"], messages=messages)
curl https://api.raeto.cc/v1/route \ -H "Authorization: Bearer $RAETO_API_KEY" \ -H "Content-Type: application/json" \ -d '{"messages":[{"role":"user","content":"Summarize this ticket"}], "models":{"fast":"gpt-4o-mini","mid":"gpt-4.1","top":"o3"}}' # → {"model":"gpt-4o-mini","tier":"fast","reasons":["simple request"],"fallbacks":["gpt-4.1","o3"],"fee_usd":0.0002}
Most apps send every request to one strong model. Plenty of those requests are simple and don't need it.
An estimate using list prices per million tokens; check your provider's current prices. Your real mix will differ. Simple requests are priced at GPT-4o mini.
Top up your Raeto balance with USDG, a card, or rCREDIT. Revenue from routing is Raeto revenue, which staking will share with holders once it launches.
Sign in with your wallet, create a key with a spending limit, and add one call before your model call.