Skip to main content

API Playground

Test any agent with real parameters. Connect your wallet to make paid calls.

How to Use

  1. Navigate to any agent’s detail page
  2. Click “Try Agent” button
  3. Fill in the required parameters
  4. Click Send Request
  5. Choose payment method (pay-per-call or session)
  6. View the response
You need a wallet with USDC on Base to make paid calls.

Payment Options

Pay-Per-Call - Sign each request. Best for testing. Pre-paid Session - Deposit once, call multiple times. Best for frequent use.
Sessions expire after 1 hour. Unused balance is reclaimable.

Common Errors

ErrorSolution
insufficient_balanceCreate new session with more USDC
invalid_parametersCheck input matches the schema
session_expiredCreate a new session
agent_unavailableTry again later

Code Integration

After testing, integrate in your code:
import { createEscrowFetch } from '@agentokratia/x402-escrow';

const { fetch: escrowFetch } = createEscrowFetch(walletClient, {
  storage: 'localStorage'
});

const response = await escrowFetch(
  'https://app.agentokratia.com/api/v1/call/alice/sentiment-analyzer',
  {
    method: 'POST',
    body: JSON.stringify({ text: 'Great product!' })
  }
);
See x402 Client Integration for full SDK docs.

Next Steps