<!-- TokenOS docs · x402 & payments · Markdown mirror of https://tokenos.ai/docs/credits · HTML: https://tokenos.ai/docs/credits · index: https://tokenos.ai/llms.txt -->

# Credits & pricing

Credits are platform usage credits that meter the build tools, Agent Builder evals, harness runs and Autopilots. They are not a token and not a distribution. Packages are priced in USD and re-priced twice a day against live SOL, USDC and $TOS prices; paying with $TOS is always 20% cheaper.

### Packages

| Package | Bonus | You receive | SOL / USDC | $TOS (−20%) | Per credit |
| --- | --- | --- | --- | --- | --- |
| 100 credits | — | 100 | $12 | $9.60 | $0.12 |
| 500 credits · most popular | +4% | 520 | $54 | $43.20 | $0.104 |
| 1,000 credits | +6% | 1,060 | $100 | $80 | $0.094 |
| 2,500 credits | +8% | 2,700 | $250 | $200 | $0.093 |

- Token amounts are recomputed at **00:00 and 12:00 UTC** (platform cron); if a reprice is missed the next quote reprices inline after 13 hours. Live sheet: `GET /api/credits/pricing`.
- The on-chain amount may be up to 3% under the sheet (fees / rounding) and is matched against the sheet in force at purchase time.
- Bigger packs simply hold more credits per dollar: the bonus credits are added to the wallet with the purchase (`bonus_credits` / `granted_credits` on the sheet and in the purchase response).
- New wallets receive a one-time **40-credit signup bonus** (global cap of 500 bonuses per day; blocklisted wallets excluded).

### Buying credits

1. **Open the credit modal** — From the workspace header or /dashboard. Pick a package and a method: SOL, USDC or $TOS.
2. **Pay** — The modal reads the pay-to treasury and exact token amount from the pricing quote and builds the transfer; Phantom signs it.
3. **Confirm** — `POST /api/purchase-credits` with `{wallet_address, credits, payment_method, transaction_signature, amount}`. The server verifies the transaction on chain (recipient, amount against the sheet) and credits the wallet. Idempotent on the signature.

**GET /api/credits/pricing (excerpt)**

```json
{
  "packages": [ { "id": "500_credits", "credits": 500, "bonus_pct": 4, "bonus_credits": 20, "granted_credits": 520, "usd": 54.0, "sol": 0.2731, "tos": 1174, "usdc": 54.0, "tos_usd": 43.2, "popular": true } ],
  "prices": { "SOL": 197.7, "TOS": 0.0368, "USDC": 1.0 }, "source": "jupiter",
  "as_of": "2026-10-01T00:00:03Z", "next_reprice_at": "2026-10-01T12:00:03Z", "stale": false,
  "treasury": "<credits pay-to address>", "mints": { "TOS": "Hmj…pump", "USDC": "EPjF…Dt1v" },
  "methods": ["SOL", "TOS", "USDC"], "tolerance": 0.97, "tos_discount": 0.2
}
```

### What things cost

| Action | Credits | Notes |
| --- | --- | --- |
| New build | max(5, round(7.5 × model multiplier × effort)) × prompt tier (×2 / ×4 / ×8 / ×15) | e.g. 64 for a short prompt on claude-fable-5-1 at Auto, 54 on gpt-5.6-sol — see [Models](https://tokenos.ai/docs/models) |
| Iterate (Update chat) | round(10 × multiplier ÷ 3.4), min 4 | e.g. 12 on Claude Fable 5.1, 10 on Sonnet 5, 5 on GPT-5.4 Mini; refunded if the model call fails |
| Publish changelog | 10 | Refunded on failure |
| Harness | plan 10 · sprint 15 · eval 5 | Budget = 60 × max_sprints; max 6 sprints |
| Best-of-N | 20 per model | 2 – 3 models |
| Autopilot run | 10 base + 5 per agent call | Plus Autopilot Computer time at cost + 20%, $0.10 / credit |
| Agent Builder eval | 1 per eval case | 3 – 5 cases per spec |
| Agent Builder test run | 1 | 5 per hour per wallet |
| Deploy contract | 0 | You pay gas only |
| Go Live (TokenOS hosting) | 0 | Free, republish any time |
| Agent publish / version / promote | USDC, not credits | $5 / $5 / $25 via the x402 facilitator |

> **Tip — Refunds**
> Credits are deducted atomically when work starts and refunded automatically when generation fails (build, iterate, changelog). Refund failures are logged for reconciliation; contact support with your task id if a refund is missing.

### Balances and history

- **GET** `/api/user-credits/{wallet}` · Public
  Current balance.

- **GET** `/api/dashboard/{wallet}` · Wallet session
  Projects, tokens, credits and transactions for your own wallet.

- **POST** `/api/purchase-credits` · Public
  Confirm an on-chain purchase (idempotent on signature).

Every grant, deduction and refund is a row in the immutable `credit_transactions` ledger with an idempotency key. Admin grants and deductions are admin-session gated and audited.

### Referrals and share bonus

Usage credits for growing the platform — platform credits, not tokens and not distributions.

| Program | Credits | How |
| --- | --- | --- |
| Referral invites | 20 per invite | Your code `tos-XXXXXXXX` is auto-provisioned at `/refer`; `GET /api/referrals/stats/{wallet}` |
| Tier milestones | 5 invites → +50 credits · 25 → Referral Champion badge · 100 → priority LLM queue | `GET /api/referrals/rewards` |
| Share bonus | 20 per verified tweet | Tweet your build with your referral link; the backend verifies the tweet mentions @TokenOS_AI or links to tokenos.ai |
| Leaderboard | — | `/referrals` · `GET /api/referrals/leaderboard` |

Tracking is rate-limited (6 / minute per IP, 8 / minute per code, 50 lifetime per code) and each invited wallet is counted once.

---

*x402 & payments · TokenOS documentation. Canonical page: https://tokenos.ai/docs/credits. All docs as Markdown: https://tokenos.ai/llms.txt. Payments on TokenOS are for metered usage only; nothing on this page is investment advice or a promise of income.*
