Pay-As-You-Go APIs for Autonomous AI Agents
Equip your LLM agents and workflows with on-demand access to 1,400+ public API integrations. Define prices, manage developer credits, and cash out instantly with Pakistan's native Easypaisa checkout.
Every API request from your AI agents is routed through our low-latency gateway. It checks API keys, validates balances, routes requests, and deducts credits in real-time.
Fully integrated checkout enabling Pakistani developers to fund accounts using Easypaisa Mobile Wallet. Supports secure hash checking and server-to-server callbacks.
Administrative portal to view entire call histories, track individual API popularity, configure profit margins, and update prices per call in real time.
API Catalog
Search and view pricing for all active API integrations connected to the proxy gateway.
Welcome to AgentAPIs
Register or log in to manage your AI agent keys and top up credits.
Developer Portal
Configure credentials, test API endpoints, and view logs.
Gateway Authorization
Use this key inside your LLM agent's HTTP request header to authenticate proxy routing.
🔒 Safety Instruction for Agents
Instruct your AI Agents to check their remaining wallet balance using metadata response headers. If the headers contain X-Agent-Remaining-Balance and the amount drops below 5 PKR, direct the agent to notify the user via chat dialog to avoid runtime failures.
Interactive Code Sandbox
Perform real API tests through the proxy and watch the balance decrement instantly.
// Run a test request on the left to see the output format...
Recent Proxy Logs
Audit log for your API keys detailing request types, responses, and charges.
| API Called | Status Code | Charged Cost | Time (UTC) |
|---|
Account Settings
Update your login credentials for this developer account.
✉️ Change Email Address
Update the email linked to your account. You will need to log in again after changing it.
🔒 Change Password
Choose a strong password. Min 8 characters recommended.
Admin Catalog Manager
Adjust individual prices per call, view overall transaction metrics, and manage user limits.
Set Cost per API Call
| API Integration | Cost per Call | Actions |
|---|
Global System Usage Log
| User | API | Status | Cost | Date |
|---|
Control Center
Authenticate with your Super Admin credentials to access the full platform control panel.
Platform Control Center
Full system access: manage payments, agents, APIs, and platform configuration.
📱 Active Easypaisa Account
Agents send USD API fees to this number. Keep it current.
⚡ Quick Actions
Common administrative operations.
Payment Approval Queue
Agents send USD payments to your Easypaisa number. Approve to credit their wallet.
➕ Log Incoming Payment
When an agent sends payment to your Easypaisa number, record it here for approval.
Agent Dashboard
All registered developer accounts and their USD API usage stats.
| Agent Email | API Key | Balance (USD) | Total Calls | Spent (USD) | Status | Actions |
|---|
Transaction Management
Complete audit trail of all API proxy calls across all agents.
| Agent | API Called | Status | Cost (USD) | Cost (PKR) | Timestamp |
|---|
API Catalog Manager
Set per-call pricing in USD. PKR equivalent shown at current exchange rate.
| API Name | Category | Price (USD / call) | ≈ PKR equiv. | Status | Save |
|---|
Platform Settings
📱 Easypaisa Collection Number
This is the Easypaisa number agents must send their USD API payment to. It is displayed on every payment instruction screen. Update whenever you switch your receiving account.
✉️ Change Super Admin Email
Update the Super Admin login email. You will be signed out after saving.
🔒 Change Super Admin Password
Use a strong unique password. Min 8 characters recommended.
💵 Default USD Pricing
Platform-wide default price for new API entries (USD per call). Individual overrides set in API Catalog Manager.
Integration Guide
Configure your LLMs, LangChain agents, or custom backend services to query the marketplace proxy.
1. Base URL & Header Credentials
All proxy endpoints use the standard marketplace host base. You must attach your custom developer key as an HTTP header name: X-Agent-API-Key.
2. Error Handlers
If an API request fails, the proxy forwards the original error status code where possible. However, if the agent runs out of wallet balance, the proxy returns a specific 402 Payment Required code.
| Status Code | Error Description | Remediation Step |
|---|---|---|
| 401 | Unauthorized: API Key is invalid or missing. | Ensure the header X-Agent-API-Key matches the key in your developer dashboard. |
| 402 | Payment Required: Wallet balance is below the per-call price of target API. | Prompt user to top up credits in PKR using Easypaisa. |
| 404 | Not Found: Target API name does not exist in seed. | Open the explore tab and double check spelling of API name. |
3. LangChain Example Integration
Implement a custom python function inside LangChain tools or custom tools to make the call:
from langchain.agents import tool
import requests
@tool
def call_marketplace_api(api_name: str, query_params: dict = None) -> str:
"""Call a marketplace public API and pay per use. api_name should match explore catalog."""
url = f"http://127.0.0.1:8000/api/proxy/{api_name}"
headers = {
"X-Agent-API-Key": "YOUR_DEVELOPER_API_KEY"
}
try:
response = requests.get(url, headers=headers, params=query_params)
if response.status_code == 402:
return "Payment Required: Please notify user to top up their Easypaisa wallet."
return response.text
except Exception as e:
return f"Error connecting to proxy: {str(e)}"