DIM · Dagon Inference Marketplace

Routes

A route is one seller's signed offer to serve one exact model identity at one endpoint, under one price schedule, retention policy and set of receipt keys. It is the unit you choose, pay and rank. A seller with three models, or one model at two prices, publishes several routes.

Where routes come from

Each seller serves a signed listing at GET /.well-known/inference-marketplace.json. The listing is a JSON document signed with the seller's listing key, and that key is the seller's identity (seller_id). There is no signup: the discovery index crawls the sellers it is configured to follow, verifies each listing, and serves the routes it found. You can also read a seller directly with the SDK's DiscoveryClient.direct({ url, key }), pinning that seller's key yourself.

What a route contains

Field Meaning
route_id SHA256(jcs({seller_id, endpoint, model_identity_id, nonce})), 64 hex characters. Anyone can recompute it, and verifiers must.
endpoint The seller's https://…/v1/chat/completions URL. Your agent calls this directly.
model_identity, model_identity_id What is served. See model identity.
schedule, schedule_digest The price schedule and its SHA-256.
policy {zdr, region[]}: whether the seller declares zero data retention, and where it serves from.
settler, payout_token The seller's settlement key and the token account that receives payment. Your channel is bound to this pair.
receipt_key, key_epoch The key that signs this route's receipts. The listing also carries all accepted receipt_keys.
nonce 32 random bytes, so a seller can publish distinct routes for the same model and endpoint.

The price schedule

Prices are integers in micro-USDC (one millionth of a USDC) per million tokens:

{ "v": 1, "currency": "USDC", "unit": "micro-USDC",
  "rates_per_mtok": { "input": 300000, "cached_input": 150000, "output_visible": 1200000, "output_hidden": 1200000 },
  "per_request_fee": 10, "w_req_micros": 2000,
  "ack_timeout_ms": 5000, "ttft_max_ms": 20000,
  "failure_billing": "none", "effective_from": 1764201600 }

These numbers are an example. An input rate of 300,000 micro-USDC per million tokens is $0.30 per million input tokens.

  • per_request_fee is added once to every billable request.
  • w_req_micros is the smallest cap a hold may carry; a lower cap is refused with 402 cap_too_low.
  • ttft_max_ms is the longest the seller waits for a first token. If the model is slower, the request ends as failed with charge 0.
  • ack_timeout_ms is informational in the MVP, and failure_billing is always "none": failures are free.
  • effective_from is when the schedule starts to apply. A route whose schedule is not yet effective is not selected.

How these rates become a charge is on receipts and in the worked example.

Capacity

Each seller also serves GET /im/v1/capacity: one signed report per route with in_flight, max_concurrency, headroom, queue_depth and observed_at. Headroom is how many more requests the route says it can take right now. A route with no fresh report, or with zero headroom, is not selected by the SDK planner. By default the SDK treats a capacity report as fresh for 30 seconds after observed_at, and the index's default capacity freshness window is 120 seconds.