zk3yOS
x402 PROTOCOL

NATIVE PAYMENT SYSTEM

x402 Protocol

HTTP 402 Payment Required—finally realized. Seamless micropayments for AI compute, right from your terminal.

No subscriptions. No monthly fees. Pay only for what you use, down to fractions of a cent.

HOW IT WORKS

The x402 Flow

1

Send Command

You type a query in zk3yOS

2

Price Quote

Receive HTTP 402 with cost

3

Approve

Auto or manual approval

4

Payment

SOL settles on Solana

5

Response

Receive AI response instantly

x402-flow.sh
> zk3y ask "Explain the theory of relativity"

[x402] Payment Required
  model: claude-3-sonnet
  tokens: ~500
  price: 0.0001 SOL ($0.02)

[x402] Auto-approved (within daily limit)
[x402] TX: 5Uh7kL9m... CONFIRMED

[RESPONSE] The theory of relativity, developed by
Albert Einstein, consists of two interrelated 
physics theories: special relativity and general
relativity...
FEATURES

Why x402?

Micropayments

Pay-per-query pricing down to fractions of a cent. Only pay for what you actually use.

Trustless Escrow

Smart contract escrow ensures fair exchange. Payment releases only after successful response.

Transparent Billing

Every transaction is on-chain. Full visibility into your AI spend with detailed analytics.

Configurable

Set daily limits, auto-approve thresholds, and spending caps. You're always in control.

PRICING

Transparent Costs

No hidden fees. No surprises. Every operation has a clear, upfront cost.

OPERATIONCOST (SOL)MODEL
Simple Query0.00001GPT-4o Mini
Standard Query0.0001Claude 3 Sonnet
Complex Analysis0.001Claude 3 Opus
Code Generation0.0001Any
ZK Private Query0.002Any + ZK
Image Analysis0.005GPT-4 Vision
CONFIGURATION

Take Control

x402-config.sh
# Enable x402 auto-payments
zk3y config set x402.auto true

# Set daily spending limit (SOL)
zk3y config set x402.limit 10

# Set auto-approve threshold (SOL)
zk3y config set x402.autoApproveMax 0.01

# Require confirmation for expensive queries
zk3y config set x402.confirmAbove 0.1

# View spending history
zk3y x402 history --days 7

# Export spending report
zk3y x402 export --format csv --month 2025-01