FAQ
These are direct answers to the questions people ask most about DIM. Each answer starts with the short version; the linked pages have the detail. Amounts are in micro-USDC, where 1 USDC is 1,000,000 micro-USDC.
The basics
What is DIM?
DIM, the Dagon Inference Marketplace, is a marketplace where AI agents find an exact model, pay its seller per token from their own Solana vault, and check a signed receipt for every request. The index lists and measures routes; the agent calls the seller directly; a Solana program pays the seller by a fixed rule. See what is DIM.
Who is DIM for?
DIM is for people building AI agents that need to buy inference programmatically, and for operators who want to sell inference from their own hardware. Agents get exact models, hard spending limits and verifiable bills; sellers get paid per token without signups or invoices.
Does DIM run the models?
No. Sellers run models on their own hardware behind OpenAI-compatible endpoints. DIM provides discovery, measurement and settlement; it never serves or proxies inference.
Is DIM live on Solana mainnet?
No. The program's default build targets Solana devnet with a test token mint. Its mainnet build compiles but is not deployed or audited for mainnet, according to programs/README.md.
Do I need an account or API key?
No. There is no signup. Buyers are identified by their vault and keys, sellers by their listing key. You pay with USDC from a vault you own, not with a credit card on file.
Which API do sellers expose?
Sellers expose the OpenAI-compatible POST /v1/chat/completions, streaming and non-streaming, plus three DIM headers carrying the signed hold. The SDK's client mirrors chat.completions.create. See calling a seller.
Money and budgets
How does an agent pay per token?
The agent signs a voucher for the running total after checking each receipt, and the seller redeems it on-chain. The money comes from a channel funded from your vault, so no on-chain transaction happens per request. See vouchers.
What currency is used?
USDC, counted in integer micro-USDC. Each program build pins one token mint; the mainnet build pins USDC and the devnet build a 6-decimal test mint.
Can a seller charge more than its published prices?
No. Every receipt names the price schedule it used, and your agent recomputes the charge from the token counts before paying. The SDK refuses a receipt whose charge does not match, and never pays above the request's cap. See verifying receipts.
Can a seller lie about token counts?
A seller signs the token counts, and the protocol cannot check them against the model's internals. What it does guarantee: the charge must follow the signed prices exactly, never exceed your cap, and every receipt is signed evidence you keep. Set caps you can afford per request and compare sellers' measured behaviour.
What is the most a single request can cost?
The cap in its hold. A receipt's charge is never above the cap; anything over it the seller absorbs. Under a Mandate, the cap itself can never exceed the Mandate's per_request_cap.
What is the most my agent can spend?
Under a Mandate, its budget per period, enforced on-chain when channels open. Without a Mandate, the total of the channels you open, since a channel can never pay out more than its budget. See Mandates.
Do I pay for failed requests?
No. Requests that end failed, not_served or policy_unhonored cost 0, and any request that got a non-2xx answer such as 402, 429 or 5xx is unbillable.
Do I pay if I cancel a streaming request?
Yes, partly. If you disconnect after output started, the receipt is cancelled and charges input tokens plus the per-request fee. The reference gateway bills no output on cancellation.
What happens to money I do not spend?
It returns to your vault. When a channel closes, finalize moves budget − redeemed back to your free balance, which you can withdraw. See closing channels.
Who pays Solana fees?
Whoever submits each transaction. You pay to open channels and create Mandates, sellers usually pay to redeem, and anyone may pay to finalize. Account rent is a deposit refunded to whoever created the channel or Mandate when it closes.
Agents and Mandates
What is a Mandate?
A Mandate is an on-chain spending rule an owner gives one agent key: a budget per period, a cap per request, up to 8 allowed sellers and an expiry. The program and the seller's gateway enforce it. See Mandates.
Can I stop my agent from spending immediately?
Yes. Revoke its Mandate. It can then open no new channels, anyone can start closing its channels, and after the grace period the unspent money returns to your vault.
Can an agent give a sub-agent its own budget?
Yes, by creating a child Mandate that is narrower in every way: smaller or equal budget, cap, expiry and grace, and a subset of sellers. Chains go at most three ancestors deep. See budgets for agent swarms.
Can a compromised agent drain my vault?
No. An agent key can only open channels inside its Mandate's limits, and only to allowed sellers. It cannot withdraw from your vault. A channel's session key can only sign holds and vouchers for that one channel.
Privacy
Does DIM see my prompts?
No. Prompts and outputs travel only between your agent and the seller. The index never sits on the request path, and nothing about request content goes on-chain. See the privacy model.
What goes on-chain?
Vault, Mandate and channel accounts, the amounts that move, and redeemed vouchers. Vouchers contain a hash chain over receipts, not receipts or content. On-chain amounts are public.
Does the seller keep my data?
That depends on the seller. Routes declare zdr (zero data retention) in their signed policy, and you can require it, but it is the seller's claim; DIM cannot inspect a seller's servers.
Routes and evidence
How do I find a model?
Query the discovery index by family or exact model identity ID, over HTTP (GET /v1/routes), MCP (list_routes) or the SDK's DiscoveryClient. See the buyer quickstart.
Are routes verified?
Every route is signed by its seller, and its IDs and price digest are recomputed by the SDK and the index. Independent probe operators measure speed and availability. Hardware attestation of what actually runs is planned but not shipped. See evidence levels.
Is there a single ranking score?
No. The index returns evidence with sample sizes and time windows, not a rank. The SDK's planner scores eligible routes by price, latency, throughput and load, and you can replace it with your own planner. See choosing a route.
Can I use DIM from an MCP client?
Yes, for discovery. The index serves two read-only MCP tools, list_routes and get_route, over stdio or HTTP; every result is a signed envelope. Paying for inference still goes through a client that signs holds, such as the SDK. See MCP tools.
Errors and recovery
What does a 402 from a seller mean?
The seller refused your hold before serving. The body says why, for example cap_too_low, hold_expired or insufficient_channel_funds. Only insufficient_channel_funds is worth retrying, after a voucher is acknowledged or the channel is topped up. See errors.
What does a 429 mean?
The route is at capacity right now. A 429 is free, carries Retry-After, and the SDK tries another eligible route.
What if my agent crashes mid-request?
Restart and call reattach() before any new work. With the SDK's durable wallet journal (the default on Solana), it restores channels, Mandates, lane counters, unpaid receipts and any half-sent voucher, and recovers receipts for requests that got a 2xx. A request whose outcome is unknown keeps its cap reserved until signed evidence settles it, so nothing is paid twice or without a valid receipt. See recovery after a restart.