{"uid":"cap_m3aaDRSneaQf_6KUjNL4W","slug":"agentbanks-inference-api-9c00a9e7","name":"AgentBanks Inference API","description":"Register agents, route swaps, earn fees. The lowest-fee protocol for autonomous AI agents on Base.","url":"https://agentbanks.vercel.app/api/inference","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string"},"prompt":{"type":"string","description":"Simple string prompt (alternative to messages)"},"messages":{"type":"array","description":"OpenAI-format messages array"},"max_tokens":{"type":"integer"}}},"responseSchema":{"type":"object","properties":{"model":{"type":"string"},"usage":{"type":"object"},"content":{"type":"string"},"privacy":{"type":"string"},"provider":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YVG1skxYyTWJTu7A51ovQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs LLM inference via a paid AI gateway optimized for autonomous AI agents on the Base blockchain network","exampleAgentPrompt":"Ask AgentBanks to generate a response using the gpt-4o model — send this prompt: 'Summarize the risks of DeFi lending in 3 bullet points' with a max of 200 tokens, and bill my agent wallet the $0.01 USDC fee.","exampleUseCases":[{"title":"Autonomous trading agent market analysis","prompt":"My agent needs to analyze upcoming token launches on Base and provide buy/sell signals. Have it call AgentBanks to run gpt-4o on the latest market conditions, keep it under 150 tokens, and charge the inference to my agent's wallet."},{"title":"On-chain AI assistant for smart contracts","prompt":"Set up my autonomous contract auditor to use AgentBanks for real-time vulnerability detection. Send each contract snippet through gpt-4o with a 300-token limit, pay the USDC fee per call, and stream back the security assessment."},{"title":"Cross-chain LLM reasoning for yield farming","prompt":"Configure my agent to query AgentBanks whenever it needs to evaluate new yield opportunities on Base. Use gpt-4o to compare APYs and risk profiles in under 200 tokens, bill my agent account the micropayment, and return structured recommendations."}],"resultDescription":"Returns a JSON object containing the generated text content, the model name used, token usage statistics, the underlying provider name, and a privacy label indicating data handling.","failureModes":["Payment not provided or insufficient USDC (402 Payment Required)","Invalid or unsupported model name returns an error","Neither prompt nor messages array provided results in a validation error","max_tokens exceeds model limit causes truncation or error","Underlying provider outage causes inference failure","Rate limiting if too many concurrent requests from same agent"],"whenToPreferThis":"Choose this endpoint when your AI agent needs LLM inference and operates on the Base blockchain, requires micropayment billing per call via x402/USDC, or needs a crypto-native AI gateway without monthly subscription commitments. Ideal for autonomous agents that self-fund inference costs from an on-chain wallet.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:36:02.469Z","isFirstParty":false}