# AWS EC2 Prices

> AWS EC2 Prices is a paid API for AI agents from bess-x402.onrender.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-27).

Returns AWS EC2 on-demand hourly and monthly prices for Linux or Windows instances across 21 regions, filtered by instance type, family, vCPUs, and memory.

## Facts

- Endpoint: GET https://bess-x402.onrender.com/v1/cloud/aws-prices?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aws-ec2-prices-e0ec7072
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mF2u3Vy_3w4Pyqrj2Yu7U

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 aws-ec2-prices-e0ec7072
```

Example prompt: What's the cheapest Linux EC2 instance with at least 8 vCPUs and 16 GB of memory in us-east-1? Show me the top 5 options.

## When to prefer this

Use this endpoint when you need current AWS EC2 on-demand pricing for specific instance types or want to find the cheapest instances meeting minimum compute/memory requirements across AWS regions. Prefer this over manual AWS pricing page lookups or Infracost-style tools when you need quick, filterable, agent-readable price data without setting up AWS SDKs or parsing the full AWS pricing API.

## Known failure modes

- Invalid region code returns an error or empty result
- Unsupported instance type string returns no matches
- min_vcpu or min_memory_gb values too high return empty result set
- OS value other than 'linux' or 'windows' may return error
- limit out of range 1-100 may return validation error
- Payment failure (x402) if USDC balance is insufficient

## How this service works

AWS EC2 on-demand hourly and monthly prices in 21 regions: one instance type, or the cheapest types with at least N vCPUs and GB of memory in a family (GPU, m7i, Compute optimized...). Linux or Windows.

## Output

A list of EC2 instance types matching the query criteria, each with instance name, family, region, OS, vCPU count, memory in GB, on-demand hourly price, and estimated monthly price, sorted from cheapest to most expensive.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "os": {
       "type": "string",
       "description": "linux or windows"
      },
      "limit": {
       "type": "integer",
       "description": "Rows (1-100)"
      },
      "family": {
       "type": "string",
       "description": "Family or type prefix, e.g. GPU, g6, Memory optimized"
      },
      "region": {
       "type": "string",
       "description": "Region code, e.g. us-east-1"
      },
      "min_vcpu": {
       "type": "integer",
       "description": "Minimum vCPUs"
      },
      "instance_type": {
       "type": "string",
       "description": "Exact type, e.g. m7i.large"
      },
      "min_memory_gb": {
       "type": "number",
       "description": "Minimum memory GB"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aws-ec2-prices-e0ec7072/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bess-x402.onrender.com](https://www.zero.xyz/host/bess-x402.onrender.com/llms.txt)
