Pay-per-use API access with instant Solana micropayments.
No subscriptions. No minimums. Just $0.01-$0.10 per request.
Call API endpoint
Payment required
Solana micropayment
Access granted
| ENDPOINT | COST | PAID | ||
|---|---|---|---|---|
| No requests yet. Try the API sandbox above. | ||||
import { x402 } from '@robrix/sdk'
const client = new x402({
wallet: solanaWallet,
network: 'devnet'
})
// Make paid API call
const result = await client.call({
endpoint: '/api/x402/vision',
method: 'POST',
body: { image: imageData },
maxCost: 0.10 // USDC
})
console.log(result.data)
console.log('Cost:', result.cost)from robrix import X402Client
client = X402Client(
wallet=solana_wallet,
network='devnet'
)
# Make paid API call
result = client.call(
endpoint='/api/x402/vision',
method='POST',
body={'image': image_data},
max_cost=0.10 # USDC
)
print(result.data)
print(f'Cost: {result.cost}')Integrate x402 micropayments into your robot.
Pay only for what you use.