Recost provides a drop‑in SDK that automatically instruments HTTP requests and popular third‑party SDKs to capture the real‑time cost of each API call, attributing spend to provider, model, and source file without code changes. The collected data feed a live dashboard showing cost, latency, and usage metrics, enabling developers to monitor and manage external API expenses proactively.
Funding
Funding not disclosed
Founders
Product
Problem
Developers often lack visibility into the real-time cost of third‑party API calls, leading to unexpected billing spikes and difficulty budgeting for services such as AI models, payment gateways, and messaging APIs.
Solution
Recost offers a drop‑in SDK that automatically instruments HTTP requests and SDK calls to capture the cost of each API interaction. By parsing the codebase with an AST, it attributes spend to the specific provider, model, and source file without adding runtime overhead. Collected data are aggregated instantly, providing developers with live dashboards and telemetry that break down spend by provider, endpoint, and usage pattern. The solution integrates with existing code unchanged, delivering immediate cost awareness and enabling proactive budgeting and optimization.
Target Audience
Primary users are software engineers and development teams building applications that rely on external APIs, particularly those managing AI, payment, messaging, or mapping services.
Features
- Automatic instrumentation of fetch/http and popular SDKs (e.g., OpenAI, Stripe, Twilio, Google Maps) via a single initialization call
- Provider‑level attribution that tags each request with provider, model, and source file for granular spend tracking
- Real‑time telemetry dashboard showing cost, latency, and token usage per call
- AST‑powered static analysis using Tree‑Sitter to map all API calls across imports, aliases, and wrappers with zero runtime impact
- Cloudflare‑hosted backend ensures low latency data collection and secure aggregation
- No code modifications required; existing API calls continue to function unchanged