---
title: "Sell inference · Tempo AI Platform"
description: "Serve the Tempo gateway's model calls from your own GPUs and get paid per token: one command next to Ollama, vLLM, SGLang, llama.cpp or LM Studio quotes every call for the models you serve, with the live orderflow per model."
url: "https://gateway.tempo-dev.workers.dev/sell"
---

> Every page of the Tempo AI Platform is Markdown at its URL with .md, or with Accept: text/markdown. The index of every page is https://gateway.tempo-dev.workers.dev/llms.txt, the API https://gateway.tempo-dev.workers.dev/openapi.json and the MCP server https://gateway.tempo-dev.workers.dev/mcp.

# Sell inference

Serve the Tempo gateway's model calls from your own GPUs and get paid per token.

Every model call on the gateway can be a request for quote. Run one command next to your inference server, and it quotes each call for the models you serve. Among quotes under the gateway's own price, a new conversation goes to the one that costs its caller least for a good answer: your price, plus the wait the gateway measures for your first token and throughput, divided by how often your answers come back whole. You serve it over the same connection, keep the conversation while you have room, and are paid your quote for its tokens.

**Run it next to your inference server**

```sh
curl -fsSL https://gateway.tempo-dev.workers.dev/bid | sh
```

Needs Node.js 22.6 or later, or Bun, and an OpenAI-compatible server: Ollama, vLLM, SGLang, llama.cpp, LM Studio or LiteLLM.

## Orderflow

Model calls the gateway charged for in the last 24 hours, what they paid, and how many came from wallets that take auctions, which are the calls you can win. The price is the gateway's own for the model, from the provider that serves it now, per million tokens: quote under it to win. The table is JSON at GET /api/auction, under market.

## What the command does

1. Finds the OpenAI-compatible server on your machine, or the one you name with `--upstream`.

2. Matches its models to the gateway's by name and sends each a short test prompt. A model that does not answer is skipped.

3. Opens Tempo ID once to approve a key that registers the bidder and reads what it earned. The key spends nothing.

4. Waits for Tempo to verify each model, which it does by hand, since the gateway cannot check which weights you run. Until then you get no calls; the terminal says when a model is verified.

5. Keeps a standing quote for those models over one WebSocket, a little under the gateway's price or the cheapest other seller's, and serves the calls it gets from your server, up to `--capacity` at a time. Each new conversation goes to a quote with room, so there is nothing to answer per call but the call itself.

Stop it with Ctrl-C. Run the same command to start again: it keeps its key and token in `~/.tempo/bid`.

## How you are paid

A call you win costs its caller your quote, and you are owed the same for the tokens the gateway counted, out of what the caller paid. Callers whose key settles in OUSD pay you directly over a session channel the gateway settles, and so do callers paying in MACH once your payee is on the MACH merchant list (ask Tempo to add it). For the rest, the gateway pays the address that approved the key, or the one you name with `--payee`, in USDC.e on Tempo once you are owed $0.10, or $0.01 after a day. The terminal prints each call you served and, every ten minutes, what the gateway counts you earned, paid and owed.

## What you see and what you must do

- Only the seller a call goes to gets its request, and never who sent it. Quotes carry only prices and how many calls a seller takes at once.
- Serve exactly the model you registered. Tempo verifies a bidder per model, and changing its payee or token takes the verification away.
- The gateway scores each quote under its price with room as what a good answer costs the caller: the price for the call, plus the time to first token and the time to stream the answer, both as the gateway measured them on your recent calls and priced at what a second of the model's output costs, divided by the share of your answers that did not fail or time out and held up: some text or tool calls, tool calls with a name and JSON object arguments, and reported usage within the gateway's estimate of the prompt and the request's output limit. Quotes within 10% of the best score share new conversations, closer ones more, and 2% go to any quote, so a seller that improves is noticed. A new seller is scored at the other sellers' typical numbers until it has served five calls. A seller whose measured failure rate passes 50% gets no calls at all, not even conversations it served before; the rate halves every hour without calls, so it is tried again once it falls under 50%, and [/api/auction](https://gateway.tempo-dev.workers.dev/api/auction) lists every online seller's measured numbers. The terminal prints what the gateway measures for you. A seller that is full, offline or rests refuses at once and the call goes to the next quote, so there is no race to answer: being cheap, fast, reliable and having capacity is what wins.
- The gateway relays only the answer's text, reasoning, tool calls and finish reason, and counts the tokens itself: your reported usage, at most its own estimate of the prompt and, for output, at most the bytes it relayed.
- A call you fail goes to the next quote, then to the gateway's own provider. Three failures in a row rest you for a minute.
- You are never asked for calls your own wallet pays for.

## Options

Pass options after `sh -s --`. Check what it finds without selling anything:

**Check**

```sh
curl -fsSL https://gateway.tempo-dev.workers.dev/bid | sh -s -- --check
```

Name a server on another machine and the models it serves, as `gateway model=your model`:

**A remote vLLM**

```sh
curl -fsSL https://gateway.tempo-dev.workers.dev/bid | sh -s -- --upstream http://10.0.0.5:8000/v1 --models '@cf/deepseek-ai/deepseek-v4.1-flash-1017=deepseek-ai/DeepSeek-V4.1-Flash'
```

`--help` lists the rest: `--payee`, `--name`, `--key`, `--upstream-key`, `--capacity`, `--floor` and `--tick`.

## Where the calls come from

Every wallet's calls are auctioned unless it turns auctions off, in the console's Settings, with `auction: off` in `/v1/profile/set` or the MCP tool `profile_set`, and its agents follow it. Each agent, and each subagent it starts, is a conversation of its own: a new one is auctioned on its first call and keeps the provider it got for as long as it runs. Every answer names who served it in `Gateway-Provider`, `auction:` and the bidder's id when a bidder did.

## Write your own bidder

The command runs [one TypeScript file](https://gateway.tempo-dev.workers.dev/bid/bidder.mts) with no dependencies; change it, or speak the protocol from anything that holds a WebSocket. The messages, routes and rules are in [Models: inference auctions](https://gateway.tempo-dev.workers.dev/docs/models.md#auction).
