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
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.
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.
Get a key in one click, add two lines, and your next request is routed. No sign-up, no wallet.