{"uid":"cap_epsF-NhTX9ArWtsNWz0pf","slug":"delx-commerce-factorial-f0b47e0f","name":"Delx Commerce Factorial","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/factorial?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"n":{"type":"integer","description":"Integer input (see tool summary for allowed range)."}}},"responseSchema":{"type":"json","example":{"n":12,"value":479001600,"schema":"delx/factorial/v1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qOHpL1U5XoeNm_ewfjd02","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the factorial of a non-negative integer, returning the exact result, paid per-call via USDC microtransaction.","exampleAgentPrompt":"Can you calculate the factorial of 12 for me using a pay-per-result API?","exampleUseCases":[{"title":"Combinatorics count in agent pipeline","prompt":"I need to know how many ways I can arrange 8 items — can you compute 8 factorial for me?"},{"title":"Verifying large factorial in crypto workflow","prompt":"Compute the factorial of 20 and give me the exact value — I need it verified and delivered on-chain."},{"title":"Quick math check for a student","prompt":"What is 15 factorial? Just give me the exact number."}],"resultDescription":"A JSON object containing the input integer n, the computed factorial value as an integer, and a schema identifier string (e.g. 'delx/factorial/v1') confirming the result format and provenance.","failureModes":["n is negative — factorial undefined for negative integers","n is too large — integer overflow or out-of-range for allowed input","n is not an integer — type validation error","payment failure — insufficient USDC balance or x402 payment not accepted","missing required field n — request body validation error"],"whenToPreferThis":"Choose this endpoint when you need a trustless, pay-per-result factorial computation with no signup, verifiable delivery, and micropayment via USDC on Base or Solana. Ideal for AI agent pipelines that need auditability and on-chain payment receipts rather than a free, unverifiable computation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:38.930Z","isFirstParty":false,"canonicalSlug":"delx-commerce-factorial-f0b47e0f"}