Dagon Inference
v0.1.0Uncensored LLM inference: list models, chat, create keys, buy credits with Solana USDC.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
dagon_models List Dagon models
List the models available on Dagon Inference, with their pricing (GET /v1/models). No API key needed.
dagon_balance Check Dagon credit balance
Show the credit balance of a Dagon account key in USD: total credits, total usage, available (GET /v1/credits).
| Parameter | Type | Description |
|---|---|---|
api_key | string | Dagon account key (gk_...). Defaults to the DAGON_API_KEY environment variable. |
dagon_create_key Create a Dagon API key
Create a new Dagon account key (POST /v1/keys). The secret is shown only once: store it securely (e.g. as DAGON_API_KEY) and never paste it into shared chats or files under version control.
| Parameter | Type | Description |
|---|---|---|
name | string | Label for the key, up to 80 characters. |
dagon_buy_credits Buy Dagon credits with Solana USDC
Buy credits for the configured Dagon account, paid in USDC on Solana. The server checks that the gateway's transaction is exactly the USDC payment to the configured treasury (DAGON_TREASURY_WALLET). If the MCP server has a wallet (DAGON_WALLET_SECRET_KEY), it then signs and confirms it (submitting it itself unless the purchase is fee sponsored, in which case the payment service adds the fee payer's signature and submits it). Otherwise it returns the verified unsigned transaction for payer_wallet to sign; then call dagon_confirm_purchase with signed_transaction (fee sponsored: do not submit it…
| Parameter | Type | Description |
|---|---|---|
amount_usd * | number | Amount to buy in USD (whole cents, e.g. 5 or 12.5). |
chain | string | Payment chain. Only 'solana' (USDC) is supported. |
payer_wallet | string | Base58 Solana address that pays. Required when the server has no wallet configured. |
dagon_confirm_purchase Confirm a Dagon credit purchase
Report a dagon_buy_credits payment you signed yourself so the configured account is credited (POST /v1/credits/purchase/confirm). Fee sponsored: pass signed_transaction, the base64 wallet-signed transaction, without submitting it (the payment service adds the fee payer's signature and submits it; resending the same one is safe). Not fee sponsored: submit it yourself and pass its signature.
| Parameter | Type | Description |
|---|---|---|
purchase_id * | string | purchase_id returned by dagon_buy_credits. |
signature | string | Base58 Solana transaction signature of the payment you submitted (not fee sponsored). |
signed_transaction | string | Base64 wallet-signed transaction of a fee-sponsored purchase, not submitted. |
dagon_chat Chat with a Dagon model
Send a chat completion to a Dagon model (POST /v1/chat/completions, non-streaming) and return the reply. Spends credits.
| Parameter | Type | Description |
|---|---|---|
model * | string | Model id from dagon_models. |
api_key | string | Dagon account key (gk_...). Defaults to the DAGON_API_KEY environment variable. |
max_tokens | integer | |
messages | array | Full conversation, OpenAI chat format. Use this or prompt. |
prompt | string | User message. Use this or messages. |
system | string | Optional system prompt, prepended to the conversation. |
temperature | number |