Inference

One API. Every open model. Served by peers.

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.

Peers
24
Models
12
Regions
6
Median out
$0.48

Sample network, models and prices shown.

Models on the network.

Open in dashboard
ModelContextProvidersMedian speedFrom in / out
Qwen 2.5 Coder 32BQwen · 32B · code
128k tokens
14 peers · 5 regions
94 tok/s
$0.18 / $0.42per 1M tokens
Llama 3.3 70B InstructLlama · 70B · general
128k tokens
11 peers · 4 regions
68 tok/s
$0.32 / $0.68per 1M tokens
DeepSeek R1 Distill 70BDeepSeek · 70B · reasoning
128k tokens
9 peers · 4 regions
61 tok/s
$0.36 / $0.74per 1M tokens
Mistral Small 24BMistral · 24B · fast
64k tokens
16 peers · 6 regions
132 tok/s
$0.12 / $0.28per 1M tokens

Works with the OpenAI SDK.

Read the docs

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.

  1. 1Qwen 2.5 Coder 32B4.2B tokens this week
  2. 2Llama 3.3 70B Instruct3.1B tokens this week
  3. 3DeepSeek R1 Distill 70B1.9B tokens this week
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." }],
});

How routing works.

  1. 1
    Pick a model

    Every open model on the network, with every peer that serves it and their prices.

  2. 2
    Set how to route

    Cheapest, fastest, co-located with your agent, or a provider you pin. Add max prices, regions and fallbacks.

  3. 3
    Call one API

    The best peer answers. If it fails, the next one does. Usage comes back signed.

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.
Open dashboard

For Node owners

  • Serve open models from your GPUs and set your own price per model.
  • Requests routed to you pay you directly: $85.00 of every $100.00, after the 15% fee.
  • Inference uses little CPU, so the same Node can rent spare cores as runner slots.
How Nodes work

Open, and still accountable.

Automatic failover

If a peer is slow, busy or down, the next one in your route answers the same request.

Open pricing

Every provider sets its own price. Pin one, exclude one, or let the cheapest win.

Signed usage

The peer that served you signs token counts and a quorum of other peers checks them.

Prompts never stored

Providers see a request only to answer it. Optional logs go to your own Storage bucket.

Route your first request.

Create a key, pick a model and let the network find the best peer.

Open Inference