Dagon InferenceDocs Console

Get started

Dagon Inference documentation

Dagon Inference is a metered gateway in front of upstream model providers. You call it with any OpenAI or Anthropic SDK, each request goes to the cheapest healthy provider serving its model id, and you pay that provider's token price plus 10% from a prepaid balance or per request in USDC. Every request gets an Ed25519 signed receipt.

On this page

Base URLs

ClientBase URLEndpoints
OpenAI SDKshttps://inference.dagon.so/v1/v1/chat/completions, /v1/responses
Anthropic SDKshttps://inference.dagon.so/v1/messages, /v1/messages/count_tokens

Authenticate with Authorization: Bearer <key> (Anthropic SDKs may send x-api-key instead). Keys start with gk_ (prepaid). Without a key, the inference endpoints answer 402 with x402 payment requirements.

How a request is handled

  1. Authenticate the key, or price a keyless request for x402.
  2. Hold the request's maximum cost against the balance: an upper bound of the prompt plus the full output cap, at the rates of the dearest route that may serve it, plus the markup. Short of funds: 402 insufficient_credits, and nothing is sent upstream.
  3. Route to the cheapest healthy provider serving the model id and endpoint, falling back to the next before any output.
  4. Capture the provider's reported usage, release the rest of the hold, and sign a receipt naming the provider and price version.

Details: Models and pricing, Receipts.

Where to go next

Machine-readable files

Not affiliated

Dagon Inference is not affiliated with OpenAI, Anthropic or the upstream providers. Compatibility refers only to request formats. It is operated by Inkwell Finance, Inc. d/b/a Dagon.

Last updated