{"uid":"cap_3gQH6oakaE0SnhWsnXacl","slug":"agent-exchange-ai-text-generation-llm-inference-d8522396","name":"Agent Exchange — AI Text Generation (LLM Inference)","description":"Machine-payable data APIs for AI agents across web search, on-chain reads, trading data, market judgment, and AI visibility. The canonical x402 catalog currently exposes 85 paid routes. Pay per call in USDC via x402 on Base. No API keys, no signup.","url":"https://store.agentexchange.work/api/generate","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"queryParams":{"type":"object","required":["prompt"],"properties":{"model":{"type":"string"},"prompt":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"response":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"model":"llama3","response":"Premium Fallback Node Active."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.09","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.09/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2IxbN_yBRXNn5pP4mfmdC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.09","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs a prompt through an LLM (e.g. Llama 3) and returns a generated text response, paid per-call in USDC via x402 with no API key required.","exampleAgentPrompt":"Use the Agent Exchange generate endpoint to answer this prompt with Llama 3: 'Summarize the key differences between proof-of-work and proof-of-stake blockchains in 3 bullet points.'","exampleUseCases":[{"title":"Agent-to-agent LLM inference pipeline","prompt":"My agent needs to call a language model on the fly without storing API keys — use the Agent Exchange generate endpoint with Llama 3 to answer: 'What are the top 3 risks of using stablecoins for cross-border payments?'"},{"title":"No-signup chatbot response generation","prompt":"Generate a friendly customer support reply using Agent Exchange's pay-per-call LLM — the prompt is: 'A user is asking why their Base transaction is pending after 10 minutes, what should I tell them?'"},{"title":"Automated content drafting for agents","prompt":"Draft a one-paragraph product description for a DeFi yield aggregator using the Agent Exchange text generation API with Llama 3 — prompt: 'Write a concise, professional description of a yield aggregator that auto-compounds stablecoin rewards on Base.'"}],"resultDescription":"A JSON object containing the model name used (e.g. 'llama3') and a 'response' string with the LLM-generated text output for the submitted prompt.","failureModes":["Payment not received or insufficient USDC balance — x402 payment required before response is served","Invalid or missing 'prompt' query parameter — request will be rejected","Unsupported model name — falls back to default or returns an error","Rate limiting or backend model unavailability — may return a fallback node message such as 'Premium Fallback Node Active'","Malformed input object — missing required 'type' or 'method' fields triggers schema validation error"],"whenToPreferThis":"Choose this endpoint when your agent needs on-demand LLM text generation with no API key, no subscription, and no signup — paying only per call in USDC on Base via x402. It is ideal for autonomous agent workflows where secret management is impractical, or for low-volume, intermittent inference needs where a monthly subscription is wasteful. Prefer this over OpenAI or Anthropic APIs when you need crypto-native micropayment access to open-source models like Llama 3.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:56:11.929Z","isFirstParty":false}