{"uid":"cap_hJuKGtHKGFvXT3SxBl5_5","slug":"alfred-x402-long-reasoning-4f2fa0ff","name":"ALFRED x402 Long Reasoning","description":"Self-hosted personal-assistant paid tools via Lightning. Uses x402-shaped protocol (L402 lineage): HTTP 402 with a Lightning invoice in the response body + WWW-Authenticate header, retry with X-Payment-Hash: <hex> once paid. Results cached per payment_hash so legitimate retries don't cost twice.","url":"https://x402.wallace.us/x402/reason-long","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"prompt":{"type":"string"},"context":{"type":"string"},"temperature":{"type":"string","description":"(optional, 0-2)"},"max_output_tokens":{"type":"string","description":"(optional, cap 8000)"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.5","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.5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__2635K9_EaqZem8U_BX4E","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.5","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs a long-form AI reasoning task on a prompt with extended context, paid per-call via x402/Lightning HTTP 402 micropayment protocol","exampleAgentPrompt":"Use ALFRED's paid long-reasoning service to think through this for me: given the context 'We are a 10-person startup debating whether to build in-house or outsource our data pipeline,' answer the question 'What are the key trade-offs and which approach do you recommend?' — allow up to 4000 tokens and use a temperature of 0.7.","exampleUseCases":null,"resultDescription":"A JSON object containing the AI-generated long-form reasoning response to the submitted prompt. The result is cached per payment hash, so retrying with the same X-Payment-Hash after paying the Lightning invoice returns the same result without double-charging.","failureModes":["HTTP 402 returned on first call with a Lightning invoice — agent must pay and retry with X-Payment-Hash header","Invalid or expired payment hash results in re-challenge (another 402)","max_output_tokens exceeds 8000 cap — response may be truncated or rejected","temperature value outside 0-2 range may cause validation error","Prompt or context too large for model context window — may return an error","Service unavailable if self-hosted instance is offline — no SLA guarantee"],"whenToPreferThis":"Choose this endpoint when you need long-form, extended AI reasoning (up to 8000 tokens) from a self-hosted personal assistant service, and you are comfortable with the x402/L402 Lightning micropayment flow ($0.50 per call). Prefer this over cloud AI APIs when you want pay-per-use with no subscription, Lightning-native billing, or a self-sovereign hosted model. Use the sibling /reason-short endpoint for shorter, cheaper responses.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:31:02.137Z","isFirstParty":false}