本文へ移動

Billing & usage

1 credit = $1 of usage. A plan (Pro / Team / Max / Ultra) includes monthly AI credits and storage, and you can top up any whole-dollar amount from $10 to $1000 (one-time, 12-month validity). Input / cached-input / output tokens are rated to micro-USD per provider receipt and debited in the same durable write. Automatic recharge is off by default and only runs if you turn it on.

Read the balance (a PAT works too)
GET https://api.mithril.fund/v1/billing/status
Authorization: Bearer $KOTOBA_API_TOKEN

→ {"status": "connected", "plan": "pro",
   "balances": [{"scope": "ai", "grantedMicroUSD": 12000000, "spentMicroUSD": 243,
                  "reservedMicroUSD": 0, "availableMicroUSD": 11999757}, ...]}
Rates
per million tokens: input $0.9 · cached input $0.225 · output $4.5
storage $0.2 per GiB-month · egress $0.09 per GiB

plans (USD / month): Pro $20 = 12 credits + 20 GiB · Team $150 = 60 credits + 50 GiB · Max $100 = 60 credits + 100 GiB · Ultra $200 = 120 credits + 250 GiB
top-ups (one-time, 12 months): AI Credits $25 · Storage Credits $25 · Credits 50 = 51 credits (+2%) · Credits 100 = 103 credits (+3%) · Credits 500 = 525 credits (+5%) · Credits 1000 = 1100 credits (+10%)
the billing page sells the SKUs a live price exists for (catalog purchasable)

Bulk credit packs carry a purchase-time bonus (50→51 / 100→103 / 500→525 / 1000→1100 credits) — either a pack or a free-form deposit ($10–$1,000) is all you need. Buy at admin.mithril.fund/billing/ (Stripe Checkout, USD, tax excluded). Allowances are granted only from the paid invoice's webhook; returning to the success URL grants nothing.