EveryDev.ai
Subscribe
Home
Tools

3,697+ AI tools

  • New
  • Trending
  • Featured
  • Compare
  • Arena
Categories
  • Agents2189
  • Coding1574
  • Infrastructure698
  • Marketing534
  • Projects498
  • Research456
  • Design416
  • Analytics389
  • Testing296
  • MCP290
  • Security286
  • Data262
  • Integration197
  • Prompts189
  • Communication183
  • Extensions173
  • Learning170
  • Voice151
  • Commerce135
  • DevOps123
  • Web86
  • Finance26
AI Tools by Topic
  • AI Coding Assistants
  • Agent Frameworks
  • MCP Servers
  • AI Prompt Tools
  • Vibe Coding Tools
  • AI Design Tools
  • AI Database Tools
  • AI Website Builders
  • AI Testing Tools
  • LLM Evaluations
Follow Us
  • X / Twitter
  • LinkedIn
  • Reddit
  • Discord
  • Threads
  • Bluesky
  • Mastodon
  • YouTube
  • GitHub
  • Instagram
Get Started
  • About
  • Editorial Standards
  • Corrections & Disclosures
  • Community Guidelines
  • Advertise
  • Contact Us
  • Newsletter
  • Submit a Tool
  • Start a Discussion
  • Write A Blog
  • Share A Build
  • Terms of Service
  • Privacy Policy
Explore with AI
  • ChatGPT
  • Gemini
  • Claude
  • Grok
  • Perplexity
Agent Experience
  • llms.txt
Theme
With AI, Everyone is a Dev. EveryDev.ai © 2026
    1. Home
    2. Tools
    3. Marginal
    Marginal icon

    Marginal

    Performance Metrics
    Featured

    Marginal tracks the cost of every LLM call and slices it by fields you define — customer, feature, model — with server-side pricing and a live spend dashboard.

    Visit Website

    At a Glance

    Pricing
    Free

    Get started tracking LLM spend with core features.

    Engagement

    Available On

    Web
    API
    SDK
    CLI

    Resources

    WebsiteDocsllms.txt

    Topics

    Performance MetricsObservability PlatformsAI Infrastructure

    Alternatives

    UnitPayCodeBurnCostPerPrompt
    Developer
    MarginalBengaluru, IndiaEst. 2026

    Listed Aug 2026

    About Marginal

    Marginal is an AI cost observability tool that lets developers track, attribute, and analyze LLM spending across their applications. It integrates via a TypeScript SDK, Python SDK, or direct HTTP API, and computes costs server-side against a daily-synced model price catalog — so no token math lives in your codebase. The tool is built for teams who need to answer "why was the bill that high?" with a named cause rather than a raw total.

    What It Is

    Marginal is a cost-tracking and observability layer for LLM-powered applications. Developers send one event per LLM call — provider, model, and the raw usage object from the API response — and Marginal handles pricing, attribution, and visualization. The dashboard slices spend by any field the developer registers, such as customer ID or product feature, and charts every dimension automatically without requiring a query builder.

    How the Integration Works

    The integration is designed to be minimal and non-blocking:

    • TypeScript SDK (npm install marginal-sdk) — zero dependencies, fire-and-forget; track() never throws and never blocks the request path. Events buffer locally and flush in batches in the background.
    • Python SDK (pip install marginal-sdk) — same design; events flush automatically at exit or on explicit shutdown().
    • HTTP API — a single JSON POST to https://api.marginalhq.com/v1/events; no install required, works from any language.

    The track() call accepts provider, model, usage (pasted as-is from the LLM response), and a fields map of registered keys. Cost is computed server-side at ingest using prices frozen at that day's catalog rates.

    Field-Based Attribution

    Marginal's core concept is the registered field. Developers declare a vocabulary of keys — up to 20 — on the project's Fields page. Common conventions are customer (who the cost is attributable to) and feature (which part of the product made the call). Events carrying unregistered keys have those keys stripped and reported back, keeping dashboards clean. Any registered field can be used as a Group By or filter in the Explorer view, and saved views let teams bookmark the slices they check regularly.

    Dashboard and Observability Features

    • Insights — every model, provider, and registered field gets its own spend chart automatically; no setup or query builder needed.
    • Ingest log — every API request is logged with its outcome: accepted counts, rejected events with reasons, stripped keys, and unpriced models. Each entry is tagged success, warn, or error.
    • Unpriced model handling — if a model isn't in the catalog, the event still lands and is flagged as unpriced rather than silently averaged away. A custom price can be set and applies at ingest going forward.
    • Explorer — group and filter spend by any registered field or built-in dimension (model, provider); save views for recurring questions.
    • Overview — all-time total, daily cards, and a spend chart.

    Coding Agent Support

    Marginal publishes an llms.txt file at marginalhq.com/llms.txt that coding assistants such as Claude Code or Cursor can consume to wire up the integration automatically. The docs also include per-provider integration recipes covering OpenAI, Anthropic, Vercel AI SDK, Gemini, Bedrock, and streaming responses.

    Marginal - 1

    Community Discussions

    Be the first to start a conversation about Marginal

    Share your experience with Marginal, ask questions, or help others learn from your insights.

    Pricing

    FREE

    Free

    Get started tracking LLM spend with core features.

    • LLM cost tracking
    • Field-based attribution
    • Explorer dashboard
    • Ingest log
    • TypeScript and Python SDKs

    Capabilities

    Key Features

    • LLM cost tracking per API call
    • Server-side cost computation from daily-synced model price catalog
    • Custom field registration for spend attribution (customer, feature, etc.)
    • Explorer with group-by and filter on any registered field
    • Saved views for recurring spend queries
    • Automatic spend charts per model, provider, and registered field
    • Ingest log with per-request outcomes (accepted, rejected, stripped keys, unpriced models)
    • Unpriced model flagging with custom price override
    • TypeScript SDK (zero dependencies, fire-and-forget)
    • Python SDK (zero dependencies, auto-flush)
    • HTTP API (single JSON POST, no install required)
    • Per-project API keys
    • Timezone-aware daily charts
    • llms.txt for coding agent integration
    • Per-provider integration recipes (OpenAI, Anthropic, Vercel AI SDK, Gemini, Bedrock, streaming)

    Integrations

    OpenAI
    Anthropic
    Google Gemini
    AWS Bedrock
    Vercel AI SDK
    Claude Code
    Cursor
    API Available
    View Docs

    Ratings & Reviews

    No ratings yet

    Be the first to rate Marginal and help others make informed decisions.

    Developer

    Marginal Team

    Marginal builds AI cost observability tooling for developers shipping LLM-powered applications. The product tracks every LLM call, computes costs server-side against a daily-synced model price catalog, and lets teams slice spend by any field they define — customer, feature, model. Marginal provides TypeScript and Python SDKs alongside a direct HTTP API, making integration a single function call per LLM request.

    Founded 2026
    Bengaluru, India
    1 employees
    Read more about Marginal Team
    Website
    1 tool in directory

    Similar Tools

    UnitPay icon

    UnitPay

    UnitPay is a monetization and billing infrastructure platform built for AI-native companies, enabling usage metering, flexible pricing models, invoicing, and revenue intelligence in minutes.

    CodeBurn icon

    CodeBurn

    An open-source CLI and TUI dashboard that tracks AI coding token usage and costs across Claude Code, Codex, Cursor, OpenCode, Pi, and GitHub Copilot.

    CostPerPrompt icon

    CostPerPrompt

    Live AI API pricing tracker and cost calculator covering 232+ models from OpenAI, Anthropic, Google, and more, with workload-based calculators for chatbots, agents, RAG, and voice AI.

    Browse all tools

    Related Topics

    Performance Metrics

    Specialized tools for measuring, evaluating, and optimizing AI model performance across accuracy, speed, resource utilization, and other critical parameters.

    59 tools

    Observability Platforms

    Comprehensive platforms that combine metrics, logs, and traces with AI-powered analytics to provide deep insights into complex distributed systems and application behavior.

    117 tools

    AI Infrastructure

    Infrastructure designed for deploying and running AI models.

    364 tools
    Browse all topics
    Back to all toolsSuggest an edit
    ratings
    discussions