{"uid":"cap_IX_mzsLPmShANbJnFTmXX","slug":"api-pricing-engine-calculate-optimal-pricing-d7f9ed5b","name":"API Pricing Engine - Calculate Optimal Pricing","description":"Calculate optimal per-call and subscription pricing for an API","url":"https://api-pricing-engine.johntaylor1online.workers.dev/calculate","method":"POST","headers":{},"bodySchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"body":{},"enum":["POST"],"type":"string","bodyType":"json"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_V8w0XqP1LtiHSpF7QsN6c","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":"Calculates optimal per-call and subscription pricing for an API based on provided input and output specifications","exampleAgentPrompt":"Can you calculate the optimal per-call and subscription pricing for my HTTP POST API that takes structured input and returns JSON output with pricing recommendations?","exampleUseCases":[{"title":"Pricing a new data enrichment API","prompt":"I'm launching a new HTTP POST API that enriches business contact data and returns structured JSON profiles — can you calculate what I should charge per call and as a monthly subscription?"},{"title":"Optimizing pricing for a machine learning inference API","prompt":"I have a POST endpoint that runs ML inference and returns a JSON confidence score — help me figure out the optimal per-call price and a fair subscription tier for developers."},{"title":"Setting prices for a content generation API","prompt":"I'm building an API that accepts a text prompt via POST and returns generated content as JSON — what's the optimal per-call pricing and subscription rate I should offer?"}],"resultDescription":"Returns a computed pricing recommendation including optimal per-call price and subscription pricing figures based on the API's input/output characteristics and method type.","failureModes":["Missing required 'input' or 'output' fields returns a validation error","Input type not set to 'http' or method not set to 'POST' may cause rejection due to const/enum constraints","Malformed JSON body returns a parsing error","Service unavailability on the Cloudflare Workers edge may return a 5xx error","Payment failure via x402 protocol may block access before computation"],"whenToPreferThis":"Choose this endpoint when you need a quick, automated computation of API pricing — specifically per-call and subscription rates — based on your API's structural characteristics. It is best suited for API developers and product teams monetizing HTTP APIs who want a data-driven starting point rather than guessing or manually researching market rates. Prefer this over general market comparison tools when you need a concrete price recommendation for a specific endpoint configuration.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:33:58.460Z","isFirstParty":false}