PUBLIC / DOCS

Docs

Integration guide, protocol spec and contributor guide. The protocol contract (spec not configured) is the single source of truth.

Integration guide

The example base_url is https://api.example.invalid/v1 — it only shows the format and does not resolve; use your own endpoint. Use an API key against the OpenAI-compatible API; streaming and non-streaming share one entry point.

A key is shown once at creation; afterwards only its prefix is visible.

Protocol

OpenAPI 3.1. Within one MAJOR version we only add fields and never change them; clients must tolerate unknown fields and enum values.

One error envelope: type / code / message / request_id.

Contributor guide

The code is open, logs are exportable and the ledger is verifiable. Read the contribution rules and the boundary checklist before submitting.

Contributors are settled in USDT per completed task.

Three steps to a first call

  1. Create an API key in the console and store the plaintext — it is shown once.
  2. Point base_url at your provider's endpoint and pass a model slug from the model list.
  3. Keep the request_id from the response or the error envelope; quote it in support requests.
curl -sS https://api.example.invalid/v1/chat/completions \
  -H "Authorization: Bearer $DJB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"djb-standard","messages":[{"role":"user","content":"ping"}]}'

The example domain only shows the format. Replace it with your own endpoint.

Bind the web console (client setup)

A client only takes work once it is bound to your account: the web console issues the code while you are signed in and the client pastes it. Signing in is not binding.

  1. Web console → Nodes page → generate a binding code (single use, 10 minutes, shown once).
  2. Client → Account → Bind web console: paste the code, or run djb auth --bind <code>.
  3. Back on the Nodes page, enter node ID, client key and code → submit.
  4. Read the receipt: dispatched / awaiting node (offline, effective once online). Offline does not mean unbound.
  5. Once bound, set budgets and guardrails on the Account page, then start sharing.

Command-line equivalent:djb auth --bind <one-time code>

Open the Nodes page · Open the Account page

The code is single-use and expires in 10 minutes; regenerate it on the Nodes page. Never enter an upstream API key in the web console.

Data and pricing notes

  • CurrencyAll spending is billed in USD. CNY amounts are an estimate for reference only and play no part in billing or refunds.
  • Exchange rateWith no usable rate we hide CNY amounts and never force a fixed rate.
  • PricesPrices come from sampled public quotes, with the source marked on every row. Unreadable means we write “none yet”, never zero-padding and never falling back to competitor prices. Orders prevail.
  • TimeTimes are shown in the visitor's local time zone, to the minute.
  • IllustrativeThe lights and arcs on the map are illustrative: they show that cross-region dispatch exists, not real traffic, node counts or latency.
  • Third-party researchThe TokenRouter paper is a research reference only. TokenBank took no part in it and does not ship that capability. Its numbers are not our measurements.
  • Tokens and rewardsTokens are an inference allowance: offset inference only, no cash-out and no USDT conversion. Referral rewards are points and carry no yield promise.
  • When data is missingWhen data is unavailable we show “none yet” or “status unknown”, never fill in zero.

See “Terms of Service” in the footer for the full terms; this page covers data and pricing only.

FAQ

Why does my bill differ from the page estimate?

The bill is the aggregate of ledger entries and the settled price is set by bidding.

Why does the node app say “awaiting node receipt”?

The setting is already dispatched from the web; the node is offline and will apply it once it reconnects.

Can tokens or points be exchanged for cash?

No. Tokens only offset inference; points only offset inference when your own compute falls short, with no yield promise.