What is Chat402?
The first LLM API gateway built for x402. Pay-per-prompt in USDC on Solana. Access GPT-4, Claude, Gemini, Grok, DeepSeek and more. No subscriptions, just pay for what you use.User Guide
Learn how to use Chat402, fund your wallet, and start chatting with AI models.
Integration Guide
Code examples in Python, JavaScript, Go, Rust, and more. Get started in minutes.
Why Chat402?
Pay-Per-Use
Pay-Per-Use
Only pay for what you use. No monthly subscriptions, no commitments. Start with as little as $1 USDC.
Instant Payments
Instant Payments
Powered by x402 protocol. Pay automatically with USDC on Solana. Sub-second confirmations.
Self-Custodial
Self-Custodial
Your keys, your crypto. Use custodial API keys for convenience or pay directly from your own wallet.
Multi-Model Access
Multi-Model Access
Access OpenAI (GPT-3.5, GPT-4), Anthropic (Claude 4.5), Google (Gemini), xAI (Grok), and DeepSeek through one unified API.
Quick Start
Get up and running in 3 steps:1
Generate API Key
Connect your wallet, custodial wallets are auto-created. Generate an API key on the API Keys page.
2
Fund Your Wallet
Send USDC to your deposit address on Solana. Minimum: $1 USDC.
3
Make Your First Request
Send a POST request to the API or use the web chat interface.
Example cURL Request
Example JavaScript
Supported Models
Access 10+ premium AI models through one unified API:GPT-3.5 Turbo
Fast, general-purpose$0.0005/1K tokens
GPT-4 Turbo
Advanced reasoning$0.010/1K tokens
Claude 4.5 Sonnet
Best for analysis$0.003/1K tokens
Gemini 2.5 Flash
Fast & affordable$0.0001/1K tokens
Grok
xAI’s latest$0.005/1K tokens
DeepSeek Chat
Best for code$0.0001/1K tokens
Payment Networks
Pay with USDC on your preferred network:Solana
- Ultra-low fees (~$0.0001)
- Fastest transactions
- ~30 second confirmations