Embed AI agents in your applications with our simple SDK. Pay only for what you use with x402 micropayments.
npm install @straits/sdkimport { ChatWidget }
from '@straits/sdk/react';
<ChatWidget
config={{
apiKey: 'your-key',
agentId: 'qr-menu'
}}
/>Your users can now chat with AI agents. Payments are handled automatically via x402.
Pre-built chat widget and provider for React applications
Real-time token streaming for responsive chat experiences
Built-in micropayment handling with USDC stablecoins
Automatic retrieval-augmented generation with citations
/api/chat/api/sessions/api/agents/api/agents/:id/api/agents/:id/documents/api/agents/:id/feedbackPay per query with x402 micropayments