{"uid":"cap_GvVnqjMGhkiqhqRtbCgj1","slug":"corpusai-cloud-pricing-spot-latest-instance-prices-cd812348","name":"corpusAI Cloud Pricing – Spot/Latest Instance Prices","description":"corpusAI Cloud Pricing: Price currently in force per zone and product for one instance type.","url":"https://cloud.trycorpus.ai/v1/spot/latest?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"},"provider":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8Z_rLz3OLj8O6kw1dTwjh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the latest spot/preemptible instance prices for a specific cloud provider, region, and instance type across AWS, GCP, and Azure.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Real-time spot cost before autoscaling","prompt":"Before I spin up new spot workers on AWS, check the current spot price for a c5.xlarge in us-east-1 so I can decide if it's worth it right now."},{"title":"GCP preemptible cost for ML training job","prompt":"I'm about to kick off a training job on GCP — what's the latest preemptible price for an n2-standard-8 in us-central1?"},{"title":"Azure spot pricing for budget alert","prompt":"Can you pull the current spot price for a D4s_v5 VM in Azure's eastus region? I want to know if it's gone above my $0.10/hr threshold."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:40:29.279Z","isFirstParty":false,"canonicalSlug":"corpusai-cloud-pricing-spot-latest-instance-prices-cd812348"}