{"uid":"cap_kj5We23UBQp1Pej03Z2xU","slug":"polyform-ai-chat-a7df0249","name":"Polyform AI Chat","description":"Pay-per-call data endpoints for AI agents. USDC on Base via x402. No account, no API key — one micropayment per call.","url":"https://api.polyform.org/v1/ai/chat","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"model":"llama-3.1-8b-instruct","reply":"…"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.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_2LLUJug-9A5gEHQDn0ctA","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":"Send a message to a hosted LLM (Llama 3.1 8B Instruct) and receive a conversational reply, paid per-call with USDC on Base via x402.","exampleAgentPrompt":"Ask the Polyform Llama 3.1 model: 'What are the key differences between REST and GraphQL?' and give me back whatever it says.","exampleUseCases":[{"title":"Agent-to-LLM one-shot reasoning","prompt":"I need you to send this question to a Llama 3.1 model and return its answer: 'Explain the concept of zero-knowledge proofs in two paragraphs for a software engineer.'"},{"title":"Autonomous agent sub-task delegation","prompt":"My pipeline needs a quick language model call — send the following text to the Polyform AI chat endpoint and return the reply: 'Summarize this contract clause in plain English: The party of the first part agrees to indemnify...'"},{"title":"Pay-per-use LLM without API subscription","prompt":"I don't want to set up an OpenAI account — can you use the Polyform pay-per-call chat API to ask Llama 3.1 what the best programming languages are for data science and tell me what it says?"}],"resultDescription":"A JSON object containing the model identifier (e.g. 'llama-3.1-8b-instruct') and a 'reply' string with the model's generated response to the input prompt.","failureModes":["Payment not provided or insufficient USDC — 402 Payment Required returned","Malformed input body missing required 'type', 'method', or 'bodyType' fields — 400 Bad Request","Model unavailable or overloaded — 503 or timeout","Empty or null body content causing no meaningful reply","Network latency spikes if Base blockchain confirmation is slow"],"whenToPreferThis":"Choose this endpoint when your agent needs a single, stateless LLM inference call without committing to a subscription or managing API keys — ideal for low-frequency, pay-as-you-go usage patterns, autonomous agents with USDC wallets, or pipelines that need to call a language model on demand without prior account setup. Prefer alternatives (OpenAI, Anthropic) when you need persistent conversation history, higher model capacity, or guaranteed SLAs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:47:57.392Z","isFirstParty":false}