Skip to content

Submit: AI Agent API — 24 pay-per-call AI services via x402 USDC (Base/Arbitrum/Optimism/Tron) #916

@AntoNYak0

Description

@AntoNYak0

Service URL

https://agent-api-ai.duckdns.org

Discovery Endpoints

Endpoint Description
/.well-known/openapi.json OpenAPI 3.1.0 spec with x-payment-info per path
/.well-known/x402 x402 v2 manifest with 24 resources
/.well-known/agent-card.json A2A Agent Card
/.well-known/mcp/server-card.json Smithery MCP server card
/.well-known/glama.json Glama auto-discovery
/.well-known/agent.json AP2 (Agent Payments Protocol)

Networks & Payment

Network Chain ID Token Wallet
Base eip155:8453 USDC 0xdE7eb04faE758055642f67f30D246CcB7136C95E
Arbitrum eip155:42161 USDC 0xdE7eb04faE758055642f67f30D246CcB7136C95E
Optimism eip155:10 USDC 0xdE7eb04faE758055642f67f30D246CcB7136C95E
Tron tron:0x2b6653dc USDT TADavZEHddjYMQcL2cnaFadFVKAUmP9wMw

24 Endpoints

AI Services (upto pricing — pay for actual token usage)

Path Price Description
/api/audit $0.01–$0.05 Security scan with OWASP Top 10 + SWC Registry taxonomy
/api/refactor $0.01–$0.05 Refactor legacy code — DRY, SOLID, modern patterns
/api/docs $0.005–$0.03 Generate technical docs with architecture, signatures, examples
/api/defi-analyze $0.01–$0.04 DeFi protocol analysis — risks, tokenomics, architecture
/api/trading-signal $0.005–$0.03 Crypto trading analytics — NOT financial advice
/api/solidity-scan $0.02–$0.08 Solidity vulnerability scanner — 36 SWC checks + DeFi exploits
/api/nl-to-sql $0.005–$0.03 Convert natural language to SQL query
/api/sql-to-nl $0.005–$0.02 Explain SQL query in plain English
/api/translate-code $0.01–$0.05 Translate code between languages (Python, TS, Rust, Go, Solidity)
/api/git-summarize $0.005–$0.02 Summarize git diff into PR description
/api/data-feed $0.005–$0.02 Structured data feed on any topic — machine-readable JSON
/api/debug-log $0.01–$0.03 CI/CD error log analysis — root cause and fix suggestions
/api/security-score $0.05–$0.10 Rapid security assessment — quick score and risk level
/api/price-feed $0.01–$0.02 AI-enhanced token price analysis with support/resistance levels
/api/smart-money $0.02–$0.05 Smart money wallet analysis — win rate, patterns
/api/whale-tracker $0.01–$0.03 Whale movement analysis — large USDC transfers
/api/agent-audit $0.10–$0.50 Full AI agent security audit — code, behavior, trust score
/api/contract-verify $0.50–$1.00 Smart contract formal verification — 36 SWC + DeFi exploits

Micro-tasks (exact pricing)

Path Price Description
/api/validate-json $0.0005 Validate JSON/YAML structure, schema, types
/api/classify-text $0.001 Classify text — sentiment, category, keywords
/api/extract-data $0.005 Extract structured data — names, emails, phones, URLs
/api/generate-regex $0.002 Generate regex pattern from description with tests
/api/format-data $0.003 Convert data between CSV, JSON, YAML formats
/api/summarize $0.002 Summarize text to N words, extract key points

MCP

20 MCP tools via SSE: https://agent-api-ai.duckdns.org/mcp/sse

Listed on Smithery.ai: https://smithery.ai/servers/antoNYak0/ai-agent-api

All endpoints return proper 402 responses with base64-encoded PAYMENT-REQUIRED header (x402 v2), include valid accepts with network/asset/amount/payTo, Bazaar-style extensions.bazaar with schema info, and discoverable: true. OpenAPI spec at /.well-known/openapi.json includes x-payment-info with price mode/amount per path.

I tried the /resources/register page but only Rabbit Wallet and Bitget are offered — I use Trust Wallet. Submitting via issue as an alternative (ref: #801).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions