# corpusAI Cloud Pricing: Spot Price Snapshot

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

Returns the current spot/on-demand instance prices for all products in a given cloud provider region, with timestamps indicating when each price took effect.

## Facts

- Endpoint: GET https://cloud.trycorpus.ai/v1/spot/snapshot?utm_source=zero.xyz
- Price: $0.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-pricing-spot-price-snapshot-562a7f93
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C3WTfS488OlPdaAzkAXFw

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-pricing-spot-price-snapshot-562a7f93
```

Example prompt: What are the current spot instance prices for AWS in us-east-1? I want to see all the instance types and their USD-per-hour rates right now.

## When to prefer this

Use this endpoint when you need a real-time snapshot of all current spot/on-demand instance prices for a specific cloud provider region (AWS, GCP, or Azure). It is ideal for cost optimization agents, FinOps dashboards, autoscalers, and infra provisioning tools that need up-to-date per-instance pricing with timestamps. Prefer this over scraping cloud provider pricing pages or using stale static price lists. Best when you already know the provider and region and want a full set of prices in one call.

## Known failure modes

- Missing or invalid 'provider' query param returns an error (must be one of aws, gcp, azure)
- Missing or invalid 'region' slug returns an error — region must match the provider's catalog format (e.g. us-east-1 for AWS, not 'us-east')
- Payment of 0.1 USDC via x402 not included or fails — request is rejected with 402 Payment Required
- Region has no current pricing data — may return empty prices array
- Network timeout or service unavailability — no snapshot returned

## How this service works

corpusAI Cloud Pricing: Current price of every instance type, zone and product in a whole region, in one call.

## Output

A JSON object containing the provider name, region, a timestamp of the newest pricing event ('as_of'), a count of price entries, and an array of price records each with instance type, product name, availability zone, USD-per-hour price, the datetime the price took effect, and how many seconds ago that was.

## 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",
      "region"
     ],
     "properties": {
      "region": {
       "type": "string",
       "examples": [
        "us-east-1"
       ],
       "description": "Region slug as listed by /catalog (for example `us-east-1` for AWS, `us-central1` for GCP, `us-east` for Azure). Azure slugs map to `eastus`, `westus2`, `westeurope`."
      },
      "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": {
      "as_of": {
       "type": "string",
       "format": "date-time",
       "description": "Newest event in the region; the snapshot is current to this time."
      },
      "count": {
       "type": "integer"
      },
      "prices": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "az": {
          "type": "string"
         },
         "price": {
          "type": "number",
          "description": "USD per hour."
         },
         "since": {
          "type": "string",
          "format": "date-time",
          "description": "When this price took effect."
         },
         "product": {
          "type": "string"
         },
         "instance": {
          "type": "string"
         },
         "age_seconds": {
          "type": "integer",
          "description": "Seconds since `since`, at response time."
         }
        }
       }
      },
      "region": {
       "type": "string"
      },
      "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-pricing-spot-price-snapshot-562a7f93/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)
