Know Your Cloud Costs Before You Deploy

Real-time cloud cost estimation API for AWS infrastructure. Integrate pricing intelligence directly into your CI/CD pipeline, IaC tools, and applications.

No credit card required
1,000 API calls/month free
Deploy in minutes
estimate_cost.sh
curl -X POST https://api.costhog.com/graphql \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"query": "{ products(filter: {...}) { prices { usd } } }"}'

# Response: Real-time AWS pricing data
{
  "data": {
    "products": [{
      "prices": [{ "usd": "0.0416" }]
    }]
  }
}

Everything You Need for Cost Intelligence

Powerful APIs and tools to help you understand, predict, and optimize your cloud spending.

Real-Time Pricing

Always up-to-date AWS pricing data. No more outdated spreadsheets or manual lookups. Query 100+ AWS services instantly.

CloudFormation Estimates

Upload your CloudFormation templates and get instant cost estimates. Perfect for pre-deployment validation.

GraphQL API

Flexible GraphQL interface for complex queries. Request exactly the data you need, nothing more.

Usage Analytics

Track your API usage, monitor trends, and stay within your quotas. Detailed dashboards and reporting.

Multiple API Keys

Manage multiple API keys per organization. Track usage by key, revoke anytime, and keep your workflows secure.

Enterprise SSO

SAML 2.0 authentication with Okta, Azure AD, and more. Your infosec team will finally stop bothering you about password policies.

Get Started in Minutes

Simple integration. Powerful results. Start estimating costs today.

1

Sign Up

Create your free account in seconds. No credit card required. Start with 1,000 API calls per month.

2

Get Your API Key

Generate your API keys from the dashboard. Name them, track usage, and manage access with ease.

3

Start Building

Integrate with your CI/CD, IaC tools, or applications. Use our GraphQL API or REST endpoints.

Use with Infracost CLI

Drop-in replacement for Infracost Cloud. Use the battle-tested Infracost CLI with Costhog's pricing API.

1

Install Infracost CLI

If you haven't already, install the Infracost CLI:

terminal
# macOS
brew install infracost

# Linux/WSL
curl -fsSL https://raw.githubusercontent.com/infracost/infracost/master/scripts/install.sh | sh
2

Configure Costhog API Key

Set your Costhog API key and endpoint:

terminal
export INFRACOST_API_KEY="your_costhog_api_key"
export INFRACOST_PRICING_API_ENDPOINT="https://costhog.com/graphql"

Tip: Add to your ~/.bashrc or ~/.zshrc

Make these environment variables permanent by adding them to your shell profile.

3

Run Infracost

Use Infracost normally - it will now use Costhog for pricing data:

terminal
# Generate cost estimate for Terraform
infracost breakdown --path .

# Compare cost difference between branches
infracost diff --path .

# Post comment to GitHub PR
infracost comment github --path infracost.json \
  --github-token $GITHUB_TOKEN \
  --pull-request 123 \
  --repo owner/repo

Example Output

Project: main

 Name                                    Monthly Qty  Unit   Monthly Cost

 aws_instance.web
 ├─ Instance usage (Linux/UNIX, on-demand, t3.micro)  730  hours      $7.59
 └─ root_block_device
    └─ Storage (general purpose SSD, gp2)              8  GB         $0.80

 aws_db_instance.postgres
 └─ Database instance (on-demand, db.t3.micro)        730  hours     $12.41

 OVERALL TOTAL                                                      $20.80 

Why Use Costhog with Infracost?

Self-Hosted

Keep your infrastructure private. No data sent to third parties.

Drop-in Replacement

Works with existing Infracost workflows. No changes needed.

Real-Time Pricing

Always up-to-date AWS pricing. No stale data.

Flexible Deployment

Use our hosted API or self-host your own instance.

Built for DevOps & FinOps Teams

From CI/CD pipelines to internal tools, Costhog fits your workflow.

Pre-Deployment Cost Checks

Validate infrastructure costs before merging PRs. Catch expensive changes early in your CI/CD pipeline.

Cost Optimization Tools

Build internal dashboards and tools to help teams understand and optimize their cloud spending.

Budget Forecasting

Project future costs based on planned infrastructure changes. Stay within budget and avoid surprises.

IaC Integration

Integrate with Terraform, CloudFormation, and other IaC tools to add cost awareness to your workflows.

Simple, Transparent Pricing

Start free. Scale as you grow. No hidden fees.

Free

$0 /month
  • 1,000 API calls/month
  • SSO/SAML authentication
  • Multiple API keys
  • Basic support
Register Interest
Estimated Popular

Pro

$49 /month
  • 50,000 API calls/month
  • SSO/SAML authentication
  • Advanced analytics
  • Priority support
Register Interest

Enterprise

$100 /month
  • 500,000 API calls/month
  • SSO/SAML authentication
  • Dedicated support
  • Additional requests: $50 per 500k
Register Interest

Ready to Take Control of Your Cloud Costs?

Join teams who are already saving time and money with Costhog.

Start Your Free Trial

No credit card required • 1,000 free API calls/month