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.

Dữ liệu và giá

  • Tiền tệMọi khoản chi đều tính bằng USD. Số tiền bằng CNY chỉ là ước tính để tham khảo, không tham gia vào việc trừ phí hay hoàn tiền.
  • Tỷ giáKhi không có tỷ giá khả dụng, chúng tôi ẩn số tiền bằng CNY và không gượng ép một tỷ giá cố định.
  • GiáGiá lấy từ mẫu báo giá công khai, có ghi nguồn trên từng dòng. Nếu không đọc được, chúng tôi ghi “chưa có” — không điền số 0 và không quay về giá đối thủ. Đơn hàng là căn cứ.
  • Thời gianThời gian hiển thị theo múi giờ địa phương của người truy cập, chính xác đến phút.
  • Minh họaCác điểm sáng và đường cong trên bản đồ chỉ mang tính minh họa: cho thấy có điều phối liên vùng, không phải lưu lượng thật, số nút hay độ trễ.
  • Nghiên cứu bên thứ baBài báo TokenRouter chỉ là tài liệu tham khảo nghiên cứu. TokenBank không tham gia và không cung cấp năng lực này. Các chỉ số trong đó không phải số đo của chúng tôi.
  • Token và phần thưởngToken là hạn mức suy luận: chỉ bù trừ suy luận, không rút tiền và không đổi sang USDT. Thưởng giới thiệu là điểm và không phải cam kết lợi nhuận.
  • Khi không lấy được dữ liệuKhi không có dữ liệu, chúng tôi hiển thị “chưa có” hoặc “trạng thái chưa rõ”, không bao giờ điền số 0.

Điều khoản đầy đủ ở mục “Điều khoản dịch vụ” nơi chân trang; trang này chỉ trình bày dữ liệu và giá.

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.