# corpusAI Cloud Spot Price Snapshot — All Instances

> corpusAI Cloud Spot Price Snapshot — All Instances is a paid API for AI agents from cloud.trycorpus.ai, paid per call via x402, $1/call, status unknown (last checked 2026-10-11).

Returns a full snapshot of current spot instance prices for a specified cloud provider (AWS, GCP, or Azure), including per-region and per-availability-zone pricing.

## Facts

- Endpoint: GET https://cloud.trycorpus.ai/v1/spot/snapshot/all?utm_source=zero.xyz
- Price: $1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/corpusai-cloud-spot-price-snapshot-all-instances-f1b18a5d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_X5cYIqJUK5daQ27Ax36TZ

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 corpusai-cloud-spot-price-snapshot-all-instances-f1b18a5d
```

Example prompt: Pull the current spot price snapshot for all AWS instance types across every region and availability zone so I can see what everything costs right now.

## When to prefer this

Use this endpoint when you need a broad, all-at-once snapshot of spot instance pricing for an entire cloud provider (AWS, GCP, or Azure) across all regions and availability zones simultaneously. Prefer it over per-instance or per-region lookups when doing cost optimization, benchmarking, or building dashboards that require a complete market view. It is especially useful for agents doing infrastructure cost analysis, FinOps automation, or workload placement decisions where comparing many instance types at once is necessary.

## Known failure modes

- Missing or invalid 'provider' query parameter returns an error — must be exactly 'aws', 'gcp', or 'azure'
- Payment not included or insufficient USDC amount causes a 402 Payment Required response
- Rate limiting or temporary upstream data unavailability may return 5xx errors
- Stale data if upstream cloud pricing feeds have not refreshed recently

## How this service works

corpusAI Cloud Pricing: Current spot price of every type and zone in every region of a provider, in one call.

## Output

Returns a JSON object with the cloud provider name, a list of all spot instance prices (each with instance type, region, availability zone, price, and a timestamp of when that price was last observed), and a per-region summary including the number of instances tracked and the freshness timestamp.

## 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": [
      "provider"
     ],
     "properties": {
      "provider": {
       "enum": [
        "aws",
        "gcp",
        "azure"
       ],
       "type": "string",
       "description": "Cloud provider. One of `aws`, `gcp`, `azure`."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "count": {
       "type": "integer"
      },
      "prices": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "az": {
          "type": "string"
         },
         "price": {
          "type": "number"
         },
         "since": {
          "type": "string",
          "format": "date-time"
         },
         "region": {
          "type": "string"
         },
         "product": {
          "type": "string"
         },
         "instance": {
          "type": "string"
         },
         "age_seconds": {
          "type": "integer"
         }
        }
       }
      },
      "regions": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "as_of": {
          "type": "string",
          "format": "date-time"
         },
         "region": {
          "type": "string"
         },
         "instances": {
          "type": "integer"
         }
        }
       }
      },
      "provider": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/corpusai-cloud-spot-price-snapshot-all-instances-f1b18a5d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cloud.trycorpus.ai](https://www.zero.xyz/host/cloud.trycorpus.ai/llms.txt)
