Overview
x402 is zkTerm’s internal payment system that handles crypto payments for resource-consuming features like zkStorage (IPFS costs) and zkAI assistant (AI token usage). Status: In Development Note: All pricing shown below are examples only and subject to change before launch.Supported Services
| Service | What You Pay For | Cost Driver |
|---|---|---|
| zkStorage | IPFS file storage and pinning | Pinata API costs |
| zkAI | AI assistant responses | OpenAI token usage |
Payment Methods
x402 accepts cryptocurrency payments:| Token | Network | Status |
|---|---|---|
| ZKTR | Solana | Primary |
| SOL | Solana | Supported |
| USDC | Solana | Supported |
How It Works
zkStorage Payments
When you upload files to zkStorage, x402 handles the payment:- File encrypted client-side
- x402 checks your credit balance
- Upload processed via Pinata
- Credits deducted based on file size
| File Size | Cost |
|---|---|
| Up to 10 MB | Free |
| 10 MB - 100 MB | 0.1 ZKTR |
| 100 MB - 1 GB | 1 ZKTR |
| 1 GB+ | 10 ZKTR |
zkAI Payments
AI assistant usage is metered by token consumption:- You send a message to zkAI
- x402 checks your credit balance
- Request sent to AI provider
- Credits deducted based on tokens used
| Usage | Cost |
|---|---|
| Simple query | 0.01 ZKTR |
| Code generation | 0.05 ZKTR |
| Long conversation | 0.1 ZKTR |
Terminal Commands
Check Balance
Add Credits
View Usage History
API Reference
Get Balance
Add Credits
Get Usage History
Credit System
How Credits Work
- Deposit - Send ZKTR/SOL/USDC to your zkTerm account
- Internal Balance - Credits tracked in zkTerm database
- Usage Deduction - Automatic deduction when using paid services
- Withdraw - Withdraw unused credits back to wallet
Free Tier
New users get free credits to try zkTerm:| Service | Free Allowance |
|---|---|
| zkStorage | 10 MB total |
| zkAI | 100 queries |
ZKTR Benefits
Paying with ZKTR provides:- 10% Discount - Lower rates vs SOL/USDC
- Priority Processing - Faster uploads and AI responses
- Governance Rights - Vote on zkTerm features
Security
- Non-Custodial - You control your wallet, we only track credits
- Transparent Pricing - All costs shown before confirmation
- Audit Trail - Full transaction history available
- Refunds - Unused credits can be withdrawn anytime
Future Features
- Subscription Plans - Monthly unlimited tiers
- Team Accounts - Shared credit pools
- Staking Rewards - Earn credits by staking ZKTR
- Referral Program - Earn credits for inviting users