AI Chat Interface
The conversational layer of Miko402. This is where natural language meets blockchain—where "get me weather data" becomes a signed on-chain transaction in under three seconds. Powered by Google Gemini 2.0 Flash, optimized for speed, and purpose-built for autonomous payments.
What Makes Miko's Chat Different
Traditional API access: You → Find API → Register → Get API key → Write integration code → Handle billing → Parse response
Miko402: You → "Get me weather for London" → Miko finds service → Pays automatically → Delivers data
No manual steps. No API keys. No payment forms. Just conversation.
Interface Components
Chat Area
Your messages appear on the right in a clean, minimal layout.
Miko's responses stream in real-time on the left:
Markdown formatted for readability
Live payment status updates
Service data displayed clearly
Clickable transaction links
Message Input
Type naturally—Miko understands plain language:
Press Enter or click Send.
Status Bar
Always visible at the bottom:
Wallet connected: Address and balance
Today's spending: Usage against daily limit
Rate limit: Ready or countdown timer
Full visibility into your spending at all times.
How Miko's AI Works
Natural Language Understanding
Miko doesn't require structured commands:
❌ GET /weather?city=London&apikey=xyz ✅ "What's the weather in London?"
Miko understands:
What service you need
Your preferences ("cheapest", "fastest")
Context from earlier messages
Your spending constraints
x402 Service Discovery
When you make a request, Miko:
Searches the x402 registry for compatible services
Filters by your requirements (price, speed, chain)
Checks availability (is the service online?)
Validates compatibility (works with your wallet and chain?)
Miko selects the optimal service based on your criteria and processes the payment automatically.
Autonomous Payment Processing
Once Miko identifies a service, the payment flow begins:
Pre-flight checks:
Wallet has sufficient balance
Daily, weekly, and monthly limits not exceeded
Service is online and verified
Transaction execution:
Construct blockchain transaction
Sign with your wallet
Broadcast to network
Wait for confirmation (~2 seconds on Solana)
Obtain transaction hash
Post-payment:
Retry service request with payment proof
Service verifies payment on-chain
Data delivered to you
Spending trackers updated
Total time: 3–5 seconds for most requests.
Response Transparency
Every payment shows complete details:
Cost breakdown:
Live transaction updates:
Formatted results:
100% transparent. Zero hidden fees.
Chat Features
Streaming Responses
Miko streams responses in real-time—you see progress as it happens:
No loading spinners. No "please wait." Real-time progress at every step.
Multi-Service Support
Miko works with all x402-compatible services:
Data APIs — Weather, financial data, sports scores, news feeds
AI Services — Image generation, text analysis, model inference
Storage — IPFS pinning, decentralized file hosting
Web3 Services — Contract deployment, blockchain data, NFT minting
One interface for unlimited services.
Conversation Context
Miko maintains context throughout your session:
Miko is also spending-aware:
Request Types
Direct Service Requests
Ask for what you need:
"Get me weather data for San Francisco"
"Generate an AI image of a dragon"
"Pin this IPFS hash: QmXyz..."
"Fetch Ethereum gas prices"
Service Discovery
Explore available services:
"What x402 services can you access?"
"Show me all weather APIs"
"Which image generation services work on Solana?"
"List data APIs under 0.001 SOL per request"
Price Comparison
Compare options before committing:
"What's the cheapest weather API?"
"Compare IPFS pinning services by price"
"Show me price differences for AI image generation"
Spending Management
Track your usage:
"How much have I spent today?"
"Show my transaction history"
"What's my remaining weekly budget?"
Preference Configuration
Set your defaults:
"Always use Solana over Ethereum for lower gas"
"Prefer speed over cost for AI services"
"Ask before payments over 0.005 SOL"
Best Practices
Crafting Effective Requests
Be specific:
❌ "Get me some data"
✅ "Get 7-day weather forecast for San Francisco with hourly data"
Specify budget:
❌ "Generate an image"
✅ "Generate an image, but only if it costs less than 0.002 SOL"
Indicate preferences:
❌ "Pin my file"
✅ "Pin my file using the fastest IPFS service available"
Optimizing Costs
Batch requests:
Set price limits:
Choose efficient chains:
Managing Spending
Monitor usage regularly: "How much have I spent today?"
Start with conservative limits while learning the system
Get estimates before committing: "How much would 5 AI images cost?"
Limitations
Payment Constraints
Spending limits are strictly enforced—Miko cannot bypass them under any circumstances
Sufficient balance is required for service fee + gas + buffer
Transactions are final once submitted on-chain
Service Availability
Only x402-compatible services are accessible
Service availability varies by region and time
Network conditions can affect confirmation speed
AI Capabilities
Miko processes payments—it does not provide financial advice
Service selection is algorithmic, based on your specified criteria
Miko relies on x402 registry data for service information
Rate Limiting
A 50-second cooldown applies between messages. This ensures fair access, system stability, and cost control.
Working within the cooldown:
Batch multiple requests in one message
Ask comprehensive questions
Use the wait time to review responses
Privacy & Security
Data Handling
Conversations:
Not stored on servers
Not logged or tracked
Exist only during your browser session
Cleared on page refresh
Transactions:
Public on blockchain (inherent to blockchain architecture)
Transaction hashes are permanent
Wallet addresses are visible on-chain
Wallet Security
Non-custodial design: you control your private keys
Miko never sees your seed phrase
Wallet access can be revoked at any time
Spending limits cap potential exposure
Advanced Features
Conditional Requests
Multi-Step Workflows
Miko chains actions and handles payments for each step.
Cost Optimization
Related Documentation
Autonomous Payments — How payments work under the hood
Spending Limits — Configure your safety net
Security Features — How your funds are protected
Rate Limiting — Cooldown mechanics
Best Practices — Usage optimization
Ready to chat with Miko?
Visit miko402.xyz, connect your wallet, and start making autonomous payment requests.
📧 Support: [email protected] 𝕏 Updates: @miko402xyz
Last updated
