# corpusAI Cloud Pricing – Spot/Latest Instance Prices

> corpusAI Cloud Pricing – Spot/Latest Instance Prices is a paid API for AI agents from cloud.trycorpus.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Returns the latest spot/preemptible instance prices for a specific cloud provider, region, and instance type across AWS, GCP, and Azure.

## Facts

- Endpoint: GET https://cloud.trycorpus.ai/v1/spot/latest?utm_source=zero.xyz
- Price: $0.01/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-latest-instance-prices-cd812348
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GvVnqjMGhkiqhqRtbCgj1

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-latest-instance-prices-cd812348
```

Example prompt: What's the current spot price for a c5.large instance in us-east-1 on AWS? I need the latest per-hour rate across all availability zones.

## When to prefer this

Use this endpoint when you need the current spot/preemptible instance price for a specific cloud provider, region, and instance type in real time. Prefer this over static pricing pages or manual lookups when building cost-optimization agents, autoscaling logic, or budget alerting. It covers AWS, GCP, and Azure in a single unified API and charges only $0.01 USDC per call via x402, making it cost-effective for frequent programmatic queries.

## Known failure modes

- Missing or invalid provider enum (must be aws, gcp, or azure) returns a validation error
- Invalid or unrecognized region slug (must match /catalog slugs exactly) returns no results or 404
- Invalid instance type name (must match /instances exactly, case-sensitive) returns empty prices array
- Payment failure or insufficient USDC balance returns HTTP 402
- Rate limiting may occur for high-frequency polling

## How this service works

corpusAI Cloud Pricing: Price currently in force per zone and product for one instance type.

## Output

A JSON object containing the provider and region, the as_of timestamp (newest price event in the region), a count of records, and an array of price entries — each with availability zone, instance type, product name, USD-per-hour price, the datetime the price took effect, and age in seconds since that price change.

## 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",
      "instance"
     ],
     "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`."
      },
      "instance": {
       "type": "string",
       "examples": [
        "c5.large"
       ],
       "description": "Instance / machine / SKU type name exactly as listed by /instances (for example `c5.large`, `n2-standard-4`, `D2s_v5`)."
      },
      "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"
  
… (truncated)
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/corpusai-cloud-pricing-spot-latest-instance-prices-cd812348/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)
