{"uid":"cap_XlhYQmeyigCUkUMzoJoO5","slug":"compute-profitability-api-380e76d7","name":"Compute Profitability API","description":"Estimate hourly GPU compute profitability from revenue, rental cost and optional electricity inputs.","url":"https://x402-compute-revenue-gateway.vercel.app/api/gpu-profitability","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"powerWatts":{"type":"number","minimum":0,"description":"Power draw in watts"},"hourlyRentalUsd":{"type":"number","minimum":0,"description":"GPU rental cost per hour in USD"},"hourlyRevenueUsd":{"type":"number","minimum":0,"description":"Expected gross revenue per GPU-hour in USD"},"electricityUsdPerKwh":{"type":"number","minimum":0,"description":"Electricity price in USD per kWh"}}},"responseSchema":null,"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_T0Dy2hS_d2x5YYCxCg-Ui","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":"Estimates hourly GPU compute profitability by calculating net profit from expected revenue, rental cost, and optional electricity consumption inputs.","exampleAgentPrompt":"Can you estimate the hourly profitability of renting a GPU that draws 300 watts, costs $0.50 per hour to rent, and is expected to generate $0.80 per hour in revenue, assuming electricity is $0.10 per kWh?","exampleUseCases":[{"title":"GPU mining break-even analysis","prompt":"I'm thinking about renting an H100 GPU for crypto mining — it pulls 700 watts, costs $2.20 per hour to rent, and I expect to earn about $2.80 per hour in mining revenue. Electricity is $0.12 per kWh. Is it actually profitable per hour?"},{"title":"AI inference compute ROI check","prompt":"I'm running AI inference jobs on a rented GPU that draws 250 watts and costs $1.00/hour. I'm charging clients $1.35 per GPU-hour and paying $0.09/kWh for electricity. What's my net hourly profit?"},{"title":"Electricity cost sensitivity for GPU farm","prompt":"Help me figure out how much my GPU profitability changes — each card draws 400 watts, rents for $0.75/hour, and earns $1.10/hour in revenue. Calculate profitability at $0.08 per kWh electricity."}],"resultDescription":"Returns an estimated hourly profitability figure for a GPU, accounting for gross revenue, rental cost, and optional electricity expense (derived from power draw in watts and electricity price per kWh). Typically includes net profit per hour and a cost breakdown.","failureModes":["Missing required fields (hourlyRentalUsd or hourlyRevenueUsd) result in validation errors","Negative or non-numeric input values rejected due to minimum:0 constraints","Service unavailable or timeout if the Vercel deployment is cold-starting","Payment failure if x402 USDC micropayment ($0.001) is not properly handled by the client"],"whenToPreferThis":"Choose this endpoint when you need a quick, on-demand calculation of GPU compute profitability that factors in rental cost, expected revenue, and optionally electricity consumption. It is ideal for agents making real-time GPU rental decisions, comparing multiple GPU options, or running sensitivity analyses on energy costs. Prefer it over manual spreadsheet calculations or general-purpose LLM math when a structured, consistent, cost-aware computation is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:32:41.042Z","isFirstParty":false}