{"uid":"cap_4GvyYp0hu5r_ewkj8D2ic","slug":"x402-tanship-dev-llm-chat-completion-97caaabb","name":"x402.tanship.dev LLM Chat Completion","description":"Payment-gated AI and browser automation API using the x402 protocol. All /v1/* endpoints require USDC payment on Base (eip155:8453) via x402 v2 exact scheme.","url":"https://x402.tanship.dev/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}}},"responseSchema":null,"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_dATTAfuJ1jcoUK7Us-KNR","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":"Performs LLM chat completion using Cloudflare Workers AI with Llama 3.3 70B as the default model, payable per call via x402.","exampleAgentPrompt":"Send the following conversation to the Llama 3.3 70B chat model and get a response: 'You are a helpful assistant. User: What are the main differences between supervised and unsupervised learning?'","exampleUseCases":null,"resultDescription":"Returns a chat completion response generated by Llama 3.3 70B (via Cloudflare Workers AI), typically containing the assistant's reply text in a standard chat completion format.","failureModes":["Missing or malformed 'input' field returns a validation error","Payment not provided or insufficient USDC (x402 payment required, $0.005 per call)","Upstream Cloudflare Workers AI model unavailability or timeout","Invalid bodyType enum value causes request rejection","Overly long prompt exceeds model context window"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call LLM chat completion without a subscription, want to leverage Llama 3.3 70B via Cloudflare's inference infrastructure, or are building an agent that uses x402 micropayments to access AI capabilities on demand.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:34:55.906Z","isFirstParty":false}