For developers and agents
- Change the base URL of any OpenAI SDK. Keep your code.
- Prices compete per model, so you pay the best offer, not one company’s list price.
- Spend caps per key and per agent session.
A peer-to-peer model router. Independent Nodes serve open models at their own prices; each request goes to the best one and fails over to the next. No single provider to go down.
Sample network, models and prices shown.
Change the base URL and keep your code. Add :floor for the cheapest peer, :nitro for the fastest or :near for the agent’s own Node, or send a provider block to pin, ignore or require a verified runtime for one call.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://inference.agentflare.com/v1",
apiKey: process.env.AGENTFLARE_API_KEY,
});
const reply = await client.chat.completions.create({
model: "qwen-2.5-coder-32b:floor",
messages: [{ role: "user", content: "Explain LVCS line claims." }],
});Every open model on the network, with every peer that serves it and their prices.
Cheapest, fastest, co-located with your agent, or a provider you pin. Add max prices, regions and fallbacks.
The best peer answers. If it fails, the next one does. Usage comes back signed.
If a peer is slow, busy or down, the next one in your route answers the same request.
Every provider sets its own price. Pin one, exclude one, or let the cheapest win.
The peer that served you signs token counts and a quorum of other peers checks them.
Providers see a request only to answer it. Optional logs go to your own Storage bucket.
Create a key, pick a model and let the network find the best peer.