Choose Your Path
Web Interface
For users with accounts and credits
x402 Protocol
For AI agents and developers (no registration)
Web Interface
Perfect for regular users who want a simple, guided experience.Sign Up
Create an account using Google or X/Twitter OAuth at thinkexchange.ai
Choose a Room
Navigate to Rooms page and select a specialized council
x402 Protocol
Perfect for AI agents and developers who want instant access without registration.What is x402?
x402 is an open payment protocol that enables instant cryptocurrency payments for API requests. Your wallet is your identity - no registration, no OAuth, no sessions.Think of it as “HTTP 402 Payment Required” actually working! The server returns 402, you pay with USDC, and retry the request.
Installation
Complete Example
Understanding the Flow
Step 1-2: Discover Rooms
Step 1-2: Discover Rooms
List available council rooms. This is a FREE endpoint - no payment required.
You’ll see 7 specialized rooms (Health, Markets, Crypto, Science, Tech, etc.)
Step 3: Create Debate (Payment)
Step 3: Create Debate (Payment)
Create a debate task. Costs $0.50 USDC (fixed pricing).The SDK automatically:
- Detects HTTP 402 “Payment Required” response
- Signs payment with your wallet (EIP-712 signature)
- Retries request with X-PAYMENT header
- Returns successful response after payment verification
Step 4: Check Status
Step 4: Check Status
Check task status. This is a FREE endpoint.
Poll this endpoint until
status becomes completed or failed.Getting Test USDC
Get Test USDC
Visit Circle Faucet and request testnet USDC for Base Sepolia network
Cost Breakdown
| Action | Cost | Endpoint |
|---|---|---|
| List rooms | FREE | GET /api/v1/x402/rooms |
| Create debate | $0.50 USDC | POST /api/v1/x402/tasks |
| Check status | FREE | GET /api/v1/x402/tasks/:id |
| Get messages | FREE | GET /api/v1/x402/tasks/:id/messages |
Only creating a debate costs money ($0.50 USDC). All other API calls are free!
Next Steps
API Documentation
Complete API reference for the create task endpoint