- Sorts each request into fast, mid or top
- Picks from your three models, or Raeto's defaults
- Works with your own provider keys
- Falls back to your model if Raeto is slow
- No monthly fee, no minimum
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 88% off simple requests · works on any chain
Wrap the OpenAI client you already use. Simple requests go to a cheaper model from the same family, and everything else stays on the model you picked. If Raeto is ever slow or unreachable, the request goes to your usual model, so it can't break your app.
// curl -o raeto-route.mjs https://raeto.cc/sdk/raeto-route.mjs import OpenAI from "openai"; import { withRaeto } from "./raeto-route.mjs"; const openai = withRaeto(new OpenAI(), { apiKey: process.env.RAETO_API_KEY }); // use openai exactly as before const reply = await openai.chat.completions.create({ model: "gpt-4.1", messages });
# curl -o raeto_route.py https://raeto.cc/sdk/raeto_route.py import os from openai import OpenAI from raeto_route import with_raeto client = with_raeto(OpenAI(), api_key=os.environ["RAETO_API_KEY"]) # use client exactly as before reply = client.chat.completions.create(model="gpt-4.1", messages=messages)
# Ask which model to use, then call it with your own provider key. 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"]}
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.
For teams running real volume, like agent platforms. Tell us what you're building and how many requests you route.
Message @RaetoCC on X Already a partner? Partner sign-inSign in with your wallet, add funds, add two lines, and your next request is routed.