{"uid":"cap_M8Jpk4Yv9CdXBtjWu8_60","slug":"three-ws-llm-proxy-x402-a8a97afd","name":"three.ws LLM Proxy (x402)","description":"Make a 3D AI agent from a selfie in 60 seconds. Drop one HTML tag to embed it on any website. Agents think on IBM watsonx.ai (Granite); optionally charge per chat with built-in micropayments.","url":"https://three.ws/api/x402/llm-proxy?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","default":"fast","description":"\"fast\" (default, Groq), \"smart\" (Anthropic Haiku), or a specific model string."},"prompt":{"type":"string","maxLength":4000,"minLength":1,"description":"The user prompt to complete."},"max_tokens":{"type":"integer","default":256,"maximum":2048,"minimum":1,"description":"Maximum tokens to generate."}}},"responseSchema":{"type":"json","example":{"model":"llama-3.3-70b-versatile","job_id":"9b2f1c4e-…","content":"1, 2, 3.","metering":{"type":"three-inference-response/v1","jobId":"9b2f1c4e-…","model":"llama-3.3-70b-versatile","route":"/api/x402/llm-proxy","provider":"groq","latencyMs":312,"tokensUsed":11,"inputTokens":5,"outputTokens":6,"promptSha256":"a1b2…","responseSha256":"c3d4…"},"provider":"groq","latency_ms":312,"tokens_used":11,"input_tokens":5,"output_tokens":6,"response_signer":"NodePub…","inferenceReceipt":{"receiptType":"three-inference-receipt/v1"},"response_signature":"4xY…"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rv2uIV2e-0Q7laRZHty9_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Routes a text prompt to a fast or smart LLM model and returns a signed inference response with metering metadata, billed per call via x402 micropayments.","exampleAgentPrompt":"Using the three.ws LLM proxy, send this prompt to the fast Groq model with up to 512 tokens: 'Summarize the key differences between REST and GraphQL in three bullet points.'","exampleUseCases":[{"title":"Pay-per-call AI chatbot backend","prompt":"Call the three.ws LLM proxy with the smart Anthropic Haiku model, max 1024 tokens, and answer this user question: 'What are the top five causes of climate change and what can individuals do about them?'"},{"title":"Verifiable inference for audit trail","prompt":"Send this compliance question to the three.ws fast LLM proxy and give me back the signed inference receipt and job ID so I can log it: 'Does this privacy policy clause comply with GDPR Article 13?'"},{"title":"Low-cost bulk prompt processing","prompt":"Run this classification prompt through the three.ws fast Groq model with max 64 tokens and tell me the result: 'Label the following customer message as complaint, inquiry, or compliment: I waited 45 minutes and nobody helped me.'"}],"resultDescription":"A JSON object containing the generated text content, the model used, a unique job ID, detailed token usage (input/output/total), latency in milliseconds, the provider name, a SHA-256 hash of the prompt and response, a cryptographic response signature, and a structured inference receipt object for auditability.","failureModes":["Payment not provided or invalid x402 header — returns 402 Payment Required","Prompt exceeds 4000 character limit — validation error","max_tokens out of range (must be 1-2048) — validation error","Model string unrecognized — may fall back to default or return error","Groq or Anthropic upstream timeout — latency spike or 503","Empty or missing prompt field — returns 400 Bad Request"],"whenToPreferThis":"Choose this endpoint when you need per-call metered LLM inference billed via USDC micropayments (x402 protocol), especially when you require a cryptographically signed and auditable inference receipt. Prefer the 'fast' (Groq) option for low-latency tasks and 'smart' (Anthropic Haiku) for higher reasoning quality. Best suited for agents that need to pay only for what they use without a subscription, or that need verifiable proof of inference for compliance or logging purposes.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T14:34:47.321Z","isFirstParty":false,"canonicalSlug":"three-ws-llm-proxy-x402-a8a97afd"}