{"uid":"cap_YlY1DXyrbOnfeFZez-D26","slug":"scanpay-chat-prompt-pay-per-call-llm-inference-b347a467","name":"ScanPay Chat Prompt — Pay-per-call LLM Inference","description":"Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.","url":"https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/chat-prompt?utm_source=zero.xyz","method":"GET","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":["GET"],"type":"string"},"queryParams":{"type":"object","required":["prompt"],"properties":{"prompt":{"type":"string","maxLength":4000,"minLength":1},"max_tokens":{"type":"integer","default":256,"maximum":512,"minimum":16}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"reply":"OK","product":"scanpay.chat_prompt"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WMJbwMkV28_7JTPWnWXLj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Sends a text prompt to an OpenAI-compatible LLM and returns a reply, billed per-call via x402 USDC micropayment with no signup or API key required.","exampleAgentPrompt":"Ask the ScanPay pay-per-call LLM: 'What are the top three reasons smart contracts get hacked?' — keep the answer under 256 tokens and charge 0.002 USDC via x402.","exampleUseCases":[{"title":"Autonomous agent sub-task reasoning","prompt":"My agent needs to answer the question 'Summarize the key risks of leveraged DeFi positions' using the ScanPay chat endpoint — cap the response at 300 tokens and pay with USDC on Base."},{"title":"No-signup LLM for one-off queries","prompt":"I don't want to manage API keys — just send the prompt 'Write a two-sentence pitch for a crypto payments startup' to the ScanPay LLM and give me the reply, spending no more than $0.002."},{"title":"Agent pipeline text generation step","prompt":"In my automated pipeline, generate a short market commentary from this prompt: 'Explain what a negative perpetual funding rate means for traders' — use the x402 pay-per-call LLM and limit output to 200 tokens."}],"resultDescription":"A JSON object containing a 'reply' field with the LLM-generated text response and a 'product' field identifying the service ('scanpay.chat_prompt'). The reply is capped at the requested max_tokens (default 256, max 512).","failureModes":["Payment not received or x402 header missing — returns 402 Payment Required","Prompt exceeds 4000 characters — validation error","max_tokens out of range (below 16 or above 512) — validation error","LLM provider timeout or upstream error — 502/503 response","Prompt is empty or missing — 400 Bad Request"],"whenToPreferThis":"Choose this endpoint when your AI agent needs on-demand LLM inference without managing API keys or subscriptions, especially in x402-enabled micropayment pipelines. Ideal for autonomous agents that need occasional text generation and want to pay per-call in USDC (Base or Solana) rather than committing to a monthly plan. Best for short single-turn prompts up to 4000 characters with replies up to 512 tokens.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-16T18:33:25.430Z","isFirstParty":false,"canonicalSlug":"scanpay-chat-prompt-pay-per-call-llm-inference-b347a467"}