> ## Documentation Index
> Fetch the complete documentation index at: https://docs.darkbloom.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Pricing: inference tokens and sandbox jobs

> How Darkbloom charges for inference and Darkbloom Sandbox jobs, how the prepaid balance works, and how to fetch current rates and usage.

Darkbloom has two paid products with separate pricing. Inference is charged per token from a prepaid credit balance. Darkbloom Sandbox CI jobs are charged per second of runner time, with a one-minute minimum. There are no subscription or seat fees.

## Inference pricing

Inference rates are per token and vary by model. The catalog and its prices are maintained by the coordinator, so fetch the current values instead of relying on a fixed table:

```bash theme={null}
curl https://api.darkbloom.dev/v1/pricing
```

`GET /v1/models` repeats the same prices in each model's `pricing` block (`prompt`, `completion`, `input_cache_read`, `image`, `request`). The request path is described in [Billing](https://docs.darkbloom.dev/billing/add-credits.md).

Prices are µUSD per 1,000,000 tokens; the `*_usd` fields are the same rates as USD per 1M tokens. This snapshot was read from the live endpoint on 2026-11-16:

| Model | Input | Output | Cache read |
| - | -: | -: | -: |
| `EigenLabs/Qwen3.8-27B-4bit-mtp` | \$0.0350 | \$1.5000 | \$0.0175 |
| `EigenLabs/Ternary-Bonsai-2-9B-MLX-2bit` | \$0.0800 | \$0.1300 | \$0.0400 |
| `gemma-4-26b` | \$0.0400 | \$0.1500 | \$0.0100 |
| `gemma-4-26b-8bit` | \$0.0400 | \$0.1500 | \$0.0100 |
| `gemma-4-26b-qat-4bit` | \$0.0400 | \$0.1500 | \$0.0100 |
| `glm-5.3-flash` | \$0.0650 | \$0.1800 | \$0.0120 |
| `gpt-oss-20b` | \$0.0180 | \$0.0900 | \$0.0090 |
| `mimo-v2.6-flash-mopd` | \$0.1000 | \$0.2800 | \$0.0028 |
| `nvidia-nemotron-3.5-lightning` | \$0.0250 | \$0.1200 | \$0.0125 |
| `nvidia-nemotron-3.5-super` | \$0.0600 | \$0.3500 | \$0.0100 |
| `qwen3.5-35b-a3b` | \$0.0650 | \$0.7500 | \$0.0325 |
| `Qwen3.5-9B` | \$0.0800 | \$0.1300 | \$0.0400 |
| `qwen3.6-35b-a3b-vl-mtp-mxfp8` | \$0.0500 | \$0.7000 | \$0.0250 |
| `qwen3.8-flash-next` | \$0.1300 | \$0.4000 | \$0.0650 |
| `qwen3-vl-30b-a3b-instruct` | \$0.0900 | \$0.4000 | \$0.0450 |
| `RecursiveSI/flint-int4` | \$0.0500 | \$0.4000 | \$0.0250 |
| `ternary-bonsai-2-27b` | \$0.0750 | \$0.5000 | \$0.0375 |

If a model has no price row, the fallback rates are $0.0500 input, $0.2000 output and \$0.0250 cache read per 1M tokens.

During the public alpha the platform fee is 0%, so providers keep 100% of the per-token revenue. A provider may set its own price only at or below the platform price, so a request never bills a token above the rate `GET /v1/pricing` shows.

### How inference billing works

1. Before dispatch, the coordinator reserves the worst-case cost: the estimated prompt plus the full output bound (your `max_tokens`, or the model's default when you omit it).
2. When the request settles, the coordinator charges the actual token counts and refunds the unused part of the reservation.
3. If the balance cannot cover the reservation, the request is refused with `402` (`insufficient_funds`), not `403`. A per-key spend cap has its own `402` (`insufficient_quota`).

Prompt tokens served from a provider's prefix cache bill at the model's cache-read rate and are reported as `usage.prompt_tokens_details.cached_tokens`.

## Darkbloom Sandbox pricing

Sandbox CI jobs are priced per runner class and minute, then billed per second:

* A job holds the price of 60 minutes of its runner class when it starts.
* It settles on the seconds it actually ran, with a **one-minute minimum** and a **60-minute maximum**.
* The current price sheet keeps a **10% fee**; the provider receives **90%** of the job's time charge.
* Jobs that fail for infrastructure reasons are released and cost nothing.
* Jobs that run on the payer's own provider Mac are free.
* A job keeps the price in effect when it started, even if prices change while it runs.

Signed-in accounts read the current runner-class rates and fee from `GET /v1/sandbox/rates`. Before Darkbloom publishes a price sheet, that route returns `503 sandbox_billing_unavailable` and no job can start. The formulas and constants are in the coordinator's pricing reference; the customer-facing consent and charge routes are in [Add credits](https://docs.darkbloom.dev/billing/add-credits.md#pay-for-darkbloom-sandbox-jobs).

## Check your balance

```bash theme={null}
curl https://api.darkbloom.dev/v1/payments/balance \
  -H "Authorization: Bearer $DARKBLOOM_API_KEY"
```

The response includes your spendable balance and the withdrawable amount (provider earnings and referral rewards):

```json theme={null}
{
  "balance_micro_usd": 5000000,
  "balance_usd": "5.000000",
  "withdrawable_micro_usd": 0,
  "withdrawable_usd": "0.000000"
}
```

`balance_micro_usd` is the canonical integer value. `withdrawable_micro_usd` is the part you earned and can withdraw; deposits and invite credits are spendable but not withdrawable.

## Check usage history

```bash theme={null}
curl https://api.darkbloom.dev/v1/payments/usage \
  -H "Authorization: Bearer $DARKBLOOM_API_KEY"
```

Each entry in `usage` is a settled request:

```json theme={null}
{
  "usage": [
    {
      "job_id": "a3f1c2e7-84bb-4d9a-91f3-2b7e6d4a0c18",
      "model": "<model id>",
      "prompt_tokens": 412,
      "cached_tokens": 0,
      "completion_tokens": 187,
      "cost_micro_usd": 187400,
      "timestamp": "2026-11-16T14:22:01Z"
    }
  ]
}
```

`cached_tokens` is the part of `prompt_tokens` billed at the cache-read rate and is omitted when zero. `cost_micro_usd` is the cost in millionths of a dollar. Usage is a recent-history view, not a complete billing export.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.