Transform your valuable data and services into revenue streams. Our payment infrastructure connects your APIs with a growing ecosystem of AI agents ready to pay for access.
Built with platform-agnostic technologies like Node.js and React, ensuring flexibility and wide compatibility.
Implement granular control with our policy engine, allowing for human oversight and budget management for AI agent transactions.
Leverage the L402 protocol for efficient and secure micro-payments, optimized for AI agent interactions.
Benefit from a well-structured monorepo for streamlined development, maintainability, and scalability.
Security is paramount. API key hashing, PCI compliance (via Stripe or similar), rate limiting, and comprehensive audit logging.
Easy-to-use SDKs for seamless integration of our payment infrastructure into your AI agents and services.
Transform your valuable data and services into revenue streams with our end-to-end payment infrastructure built for the AI agent economy.
Unlock new revenue streams by making your APIs and data accessible to AI agents with built-in payment processing, metering, and access control.
Implement per-call, subscription, tiered, or usage-based pricing with our adaptable payment infrastructure designed for high-volume, low-latency agent interactions.
Gain real-time insights into API usage, revenue trends, and customer analytics with our comprehensive provider dashboard and reporting tools.
Connect your API to our payment infrastructure
Configure pricing models and access policies
AI agents automatically discover and pay for access
Monitor usage and receive payouts automatically
Join thousands of API providers already generating revenue through our platform.
Become a ProviderIntegrate our lightweight SDK to enable your AI agents to discover, access, and pay for valuable services across the web.
A lightweight client library that handles payment tokens, API authentication, and service discovery.
npm install @agent-payment-sdk/client
Set up budget controls, authorization policies, and preferred payment methods.
const paymentConfig = {
budgetLimit: 50.00, // Monthly limit in USD
perRequestLimit: 0.50, // Max cost per API call
approvalPolicy: 'automatic', // or 'manual', 'threshold'
paymentMethod: 'default', // Connect to dashboard settings
};
Let your agent discover and access paid APIs with just a few lines of code.
import { AgentPaymentClient } from '@agent-payment-sdk/client';
// Initialize the client
const paymentClient = new AgentPaymentClient({
agentId: 'your-agent-id',
apiKey: process.env.PAYMENT_API_KEY,
...paymentConfig
});
// Use in your agent's API calls
async function fetchDataWithAgent() {
// The SDK handles discovery, authentication and payment
const financialData = await paymentClient.fetch(
'https://api.provider.com/v1/financial-data',
{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ query: 'market trends' })
}
);
return financialData;
}
// Complete AI Agent Implementation Example
import { AgentPaymentClient } from '@agent-payment-sdk/client';
import { OpenAI } from 'openai';
// Initialize the OpenAI client
const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY });
// Initialize the payment client
const paymentClient = new AgentPaymentClient({
agentId: 'finance-assistant-001',
apiKey: process.env.PAYMENT_API_KEY,
budgetLimit: 100.00,
perRequestLimit: 1.00,
approvalPolicy: 'automatic'
});
async function runFinancialAssistant(userQuery) {
// Step 1: Analyze the user's query with the LLM
const analysis = await openai.chat.completions.create({
model: 'gpt-4',
messages: [
{
role: 'system',
content: 'You are a financial assistant. Analyze what data is needed.'
},
{ role: 'user', content: userQuery }
]
});
// Step 2: Determine what external data is needed
const dataNeeded = analysis.choices[0].message.content;
console.log(`Data needed: ${dataNeeded}`);
// Step 3: Discover and access paid API
try {
const financialData = await paymentClient.fetch(
'https://api.financial-provider.com/v1/market-data',
{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ query: dataNeeded })
}
);
// The SDK automatically:
// - Negotiates pricing with the API provider
// - Handles payment token generation
// - Manages budget constraints
// - Maintains a transaction record
// Step 4: Generate response with the external data
const response = await openai.chat.completions.create({
model: 'gpt-4',
messages: [
{
role: 'system',
content: 'You are a financial assistant. Use the data provided.'
},
{ role: 'user', content: userQuery },
{
role: 'assistant',
content: `I've retrieved the following financial data: ${JSON.stringify(financialData)}`
}
]
});
return response.choices[0].message.content;
} catch (error) {
if (error.code === 'BUDGET_EXCEEDED') {
return "I'm unable to access this data because your budget has been reached.";
} else if (error.code === 'PAYMENT_REQUIRED') {
return "This data requires payment. Would you like to authorize this purchase?";
} else {
console.error("API error:", error);
return "I encountered an error retrieving the data. Please try again later.";
}
}
}
Implement granular budget limits and approval workflows to maintain complete control over your agent's spending.
Agents can dynamically discover relevant paid APIs based on capability requirements without hardcoded integrations.
SDK supports Node.js, Python, and browser environments, making it compatible with all major agent frameworks.