# Cloud IaC Cost Estimator

> Cloud IaC Cost Estimator is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.04/call, status unknown (last checked 2026-10-12).

Estimates monthly cloud costs for Terraform, CloudFormation, or docker-compose configs, returning per-resource breakdowns, FinOps policy findings, and a budget verdict before deployment.

## Facts

- Endpoint: POST https://payai.agentstools.dev/cost/estimate?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cloud-iac-cost-estimator-e05b8be5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-u7Sm_NSncU6b_xZg0lwQ

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 cloud-iac-cost-estimator-e05b8be5 -d '<json body>'
```

Example prompt: Before I apply this Terraform plan, estimate the monthly AWS cost for me — here's the HCL config — and tell me if it'll pass my $300/month budget, including a breakdown by resource.

## When to prefer this

Choose this endpoint when you need a pre-deployment cost estimate for Terraform, CloudFormation, or docker-compose infrastructure targeting AWS or Azure, especially when you want FinOps policy analysis and budget enforcement before applying changes. Prefer this over general LLM cost estimation when you need structured per-resource breakdowns and authoritative pricing data with a pass/caution/block verdict.

## Known failure modes

- Unrecognized or malformed IaC config returns a parsing error
- Unsupported resource types may be omitted or estimated with assumptions
- Region not recognized may fall back to us-east-1 defaults
- Very large configs may time out or return partial results
- Usage-based resources (Lambda, S3, NAT) may have inaccurate estimates without usage hints

## How this service works

Estimate the monthly cloud cost of an infrastructure-as-code config before you apply it: Terraform (plan JSON or HCL), CloudFormation or docker-compose. Returns total monthly USD, a per-resource breakdown (unit price, quantity, assumptions), FinOps policy findings and a budget verdict (pass, caution, block) against an optional monthly budget. AWS and Azure common resources. Cost estimate, not a bill.

## Output

Returns a total estimated monthly USD cost, a per-resource breakdown including unit prices, quantities, and assumptions made, FinOps policy findings highlighting cost risks or inefficiencies, and a budget verdict of pass, caution, or block if a monthly budget is provided.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "usage": {
   "type": "object",
   "description": "Optional usage hints for usage-based items (s3_gb, lambda_requests, nat_gb, data_transfer_out_gb)"
  },
  "format": {
   "enum": [
    "auto",
    "terraform",
    "terraform-plan",
    "cloudformation",
    "docker-compose"
   ],
   "type": "string",
   "description": "Config format, or auto to detect from the content"
  },
  "region": {
   "type": "string",
   "description": "Cloud region for pricing (default us-east-1)"
  },
  "content": {
   "type": "string",
   "description": "The IaC config text to price (one or many resources)"
  },
  "budget_monthly": {
   "type": "number",
   "description": "Optional monthly USD budget for the verdict"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cloud-iac-cost-estimator-e05b8be5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
