Find the cheapest AWS region for any service. One API call, 30+ regions compared.
$0.01/query · x402 · API Key · Free tier from this page
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { createWalletClient, http } from "viem";
import { privateKeyToAccount } from "viem/accounts";
import { base } from "viem/chains";
const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const wallet = createWalletClient({ account, chain: base, transport: http() });
const client = new x402Client().register("eip155:8453", new ExactEvmScheme({
address: account.address,
signTypedData: (msg) => wallet.signTypedData(msg)
}));
const fetch402 = wrapFetchWithPayment(fetch, client);
const res = await fetch402("https://costpulse.waltsoft.net/v1/cheapest?service=ec2&instance=m5.xlarge");
console.log(await res.json());GET /v1/cheapest?service=ec2&instance=m5.xlargeRanked list of all regions by price for a service/SKU
GET /v1/compare?service=lambda®ions=us-east-1,eu-west-1,ap-southeast-1Side-by-side pricing for specific regions
GET /v1/workload?services=ec2:m5.xlarge,rds:db.r5.large,lambda:requestOptimal region for a full stack (sums costs across services)
GET /v1/savings?service=ec2&instance=m5.xlarge&from=eu-west-1How much you'd save by moving to the cheapest region
GET /v1/badge/{service} (free)SVG badge showing cheapest region — embed in READMEs
Powered by Waltsoft · x402 on Base + Solana · Data refreshed every 6 hours