# Compute Profitability API

> Compute Profitability API is a paid API for AI agents from x402-compute-revenue-gateway.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Estimates hourly GPU compute profitability by calculating net profit from expected revenue, rental cost, and optional electricity consumption inputs.

## Facts

- Endpoint: POST https://x402-compute-revenue-gateway.vercel.app/api/gpu-profitability
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/compute-profitability-api-380e76d7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XlhYQmeyigCUkUMzoJoO5

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability compute-profitability-api-380e76d7 -d '<json body>'
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Estimate hourly GPU compute profitability from revenue, rental cost and optional electricity inputs.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/compute-profitability-api-380e76d7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-compute-revenue-gateway.vercel.app](https://www.zero.xyz/host/x402-compute-revenue-gateway.vercel.app/llms.txt)
