Api Endpoint

cost-estimate

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.

Open interactive test console

Offering

Provider
payai.agentstools.dev
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Infrastructure
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://payai.agentstools.dev/cost/estimate
MIME type
application/json
First seen
2026-10-16T02:01:07.550Z
Last seen
Tags
cost, finops, cloud, aws, azure

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.04 USDC
Atomic price: 40000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "40000",
    "payTo": "AytHnvc6bZx1ALTy7b5Px7hcavoSYszG9aeKvDcZ8R1u"
  }
]

Observed health

Status
Reachable
Latest latency
371 ms
Average latency
904 ms
HTTP status
405
Last checked
Reachability
100% over 10 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "body": {
    "format": "terraform-plan",
    "region": "us-east-1",
    "content": "{\"planned_values\":{\"root_module\":{\"resources\":[{\"type\":\"aws_instance\",\"name\":\"web\",\"values\":{\"instance_type\":\"m5.large\"}}]}}}",
    "budget_monthly": 200
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
}

Output schema

{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "required": [
    "input"
  ],
  "properties": {
    "input": {
      "type": "object",
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "properties": {
        "body": {
          "required": [
            "content"
          ],
          "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"
            }
          }
        },
        "type": {
          "type": "string",
          "const": "http"
        },
        "method": {
          "enum": [
            "POST",
            "PUT",
            "PATCH"
          ],
          "type": "string"
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "output": {
      "type": "object",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "type": "string"
        },
        "example": {
          "type": "object"
        }
      }
    }
  }
}