# AgentsTools Cloud Cost Estimator

> AgentsTools Cloud Cost Estimator is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.04/call, status unknown (last checked 2026-09-15).

Estimates monthly cloud infrastructure costs from Terraform, CloudFormation, or docker-compose configs before deployment, with per-resource breakdown and budget verdict.

## Facts

- Endpoint: POST https://api.agentstools.dev/cost/estimate
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentstools-cloud-cost-estimator-ec7c3c1d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OalCKo5EbK1OMGtWzXPv9

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

Example prompt: Before I run terraform apply, estimate the monthly AWS cost for this Terraform plan JSON and check it against a $300/month budget — give me the total, a per-resource breakdown, and tell me if it passes, needs caution, or should be blocked.

## When to prefer this

Choose this endpoint when you need a cost estimate before deploying infrastructure-as-code (Terraform, CloudFormation, docker-compose) to AWS or Azure, especially when enforcing budget gates in a CI/CD pipeline or agentic workflow. Prefer this over manual cost-calculator tools when you need programmatic, per-resource breakdowns with FinOps policy verdicts integrated into an automated decision loop.

## Known failure modes

- Unsupported resource types not priced (returned with zero or unknown cost)
- Malformed or unparseable IaC config returns an error
- Azure/AWS resources outside supported set may be omitted from estimate
- Budget verdict only returned when budget parameter is supplied
- Estimate may differ from actual bill due to usage-based pricing assumptions

## 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 total estimated monthly USD cost, a per-resource breakdown including unit price, quantity, and assumptions made, FinOps policy findings highlighting potential waste or risk, and a budget verdict (pass, caution, or block) compared against an optional monthly budget ceiling. Covers common AWS and Azure resource types.

## 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/agentstools-cloud-cost-estimator-ec7c3c1d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
