Vela 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 Vela is ever slow or unreachable, the request goes to your usual model, so it can't break your app.
// curl -o vela-route.mjs https://velastocks.online/sdk/vela-route.mjs import OpenAI from "openai"; import { withVela } from "./vela-route.mjs"; const openai = withVela(new OpenAI(), { apiKey: process.env.VELA_API_KEY }); // use openai exactly as before const reply = await openai.chat.completions.create({ model: "gpt-4.1", messages });
# curl -o vela_route.py https://velastocks.online/sdk/vela_route.py import os from openai import OpenAI from vela_route import with_vela client = with_vela(OpenAI(), api_key=os.environ["VELA_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://velastocks.online/api/v1/route \ -H "Authorization: Bearer $VELA_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 Vela balance with USDC, a card, or rCREDIT.
Sign in with your wallet, add funds, add two lines, and your next request is routed.