{"uid":"cap_DMaxAXHEULCqX7uNXfnvL","slug":"whatchuneed-llm-chat-54d272fa","name":"WhatChUNeed LLM Chat","description":"320+ pay-per-call API endpoints across accommodation, LLM, code execution, crypto, medical, finance, and more. One API, one payment. Powered by x402 protocol.","url":"https://whatchuneed.vercel.app/api/llm/chat","method":"POST","headers":{},"bodySchema":{"type":"object","required":["prompt"],"properties":{"model":{"type":"string","description":"Model override"},"prompt":{"type":"string","description":"The user message"},"system":{"type":"string","description":"System prompt"},"max_tokens":{"type":"integer"}}},"responseSchema":{"type":"object","properties":{"model":{"type":"string"},"response":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lC8DSu_midKl9itp1YjDA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Send a prompt to a hosted LLM and receive a text response, with optional model override and system prompt, via pay-per-call API.","exampleAgentPrompt":"Ask the WhatChUNeed LLM chat endpoint this question as the user: 'What are the top three causes of the French Revolution?' — use a system prompt that says 'You are a concise historian' and limit the response to 300 tokens.","exampleUseCases":[{"title":"On-demand AI answer for autonomous agent","prompt":"I need you to query the WhatChUNeed LLM with this prompt: 'Summarize the key risks of investing in emerging markets in 2025' using the system message 'You are a seasoned financial analyst' and cap the response at 500 tokens."},{"title":"Dynamic content generation for app","prompt":"Use the WhatChUNeed chat API to generate a short product description for 'wireless noise-cancelling headphones' — set the system prompt to 'You are a creative marketing copywriter' and keep it under 150 tokens."},{"title":"Code explanation for developer tool","prompt":"Send this to the WhatChUNeed LLM: 'Explain what this Python function does: def fib(n): return n if n <= 1 else fib(n-1)+fib(n-2)' with a system prompt of 'You are a senior software engineer who explains code clearly to beginners', max 200 tokens."}],"resultDescription":"A JSON object containing the name of the model that processed the request and the generated text response to the provided prompt.","failureModes":["Payment failure or insufficient USDC balance causes 402 error before the request is processed","Missing required 'prompt' field returns a 400 validation error","Invalid or unsupported model identifier in the 'model' override field may cause a 422 or fallback to default model","max_tokens value too large may be capped or rejected depending on underlying model limits","Prompt triggering content policy violations may return a filtered or empty response"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call LLM text generation capability without committing to a monthly subscription, especially if your agent operates in a crypto-native or x402-compatible payment environment. It is well-suited for sporadic or bursty LLM usage where per-call USDC micropayments are more economical than a flat-rate plan.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:55:22.893Z","isFirstParty":false}