Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    LLM Cost and Token Economics Modeler

    1

    Most teams ship an LLM feature and meet its true cost on the invoice.

    $14

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    2 usesSecurity scanned
    LLM Cost and Token Economics Modeler

    LLM Cost and Token Economics Modeler

    Example session with this skill installed

    Model the cost of our support agent. It runs on gpt-4o (assume $2.50 per 1M input tokens, $10 per 1M output tokens). A typical task takes about 5 turns; the system prompt is ~1,000 tokens, the user message ~500 tokens, and each turn re-sends the prior context and produces ~200 output tokens. We expect 1,000 users doing 10 tasks per day. Give me per-task and monthly cost, the top cost drivers, an optimization plan with estimated savings, and the unit economics against a $20/month plan — and show the arithmetic and assumptions.

    • Read your context and instructions
    • Compiled the llm cost

    Cost model for the gpt-4o support agent (estimate — calibrate against your own metering)

    Assumptions used: gpt-4o at $2.50 / 1M input tokens and $10 / 1M output tokens (your figures); 5 turns per task; context re-sent each turn, so input grows by the prior 200-token output.

    Per-request arithmetic

    • Turn 1 input 1,500; turn 2 1,700; turn 3 1,900; turn 4 2,100; turn 5 2,300 → 9,500 input tokens
    • Output: 5 × 200 = 1,000 tokens
    • Input cost: 9,500 / 1,000,000 × $2.50 = $0.0238
    • Output cost: 1,000 / 1,000,000 × $10 = $0.0100
    • Per-task cost ≈ $0.034

    Monthly projection

    • Volume: 1,000 users × 10 tasks/day × 30 days = 300,000 tasks/month
    • 300,000 × $0.034 ≈ $10,200 / month

    Top cost drivers (ranked):

    1. Re-sent context — turns 2–5 resend the system prompt and history, making input ~70% of spend.
    2. Output tokens — $10/1M dominates per-token, ~29% of spend at this length.
    3. System-prompt overhead — the 1,000-token prompt is billed on every turn.

    Optimization plan (each an estimate; test quality before shipping):

    • Prompt caching on the static system prompt → est. ~$2,000–2,500/mo saved; low quality risk.
    • Route turns 1–3 to a cheaper model (e.g., gpt-4o-mini) → est. ~$4,000–5,000/mo saved; test answer quality.
    • Trim/summarize re-sent history after turn 2 → est. ~$1,500/mo saved; watch for lost context.
    • Cap output length where full detail isn't needed → est. ~$800/mo saved.

    Unit economics vs. a $20/month plan:

    • Cost per user/month: 10 tasks/day × 30 × $0.034 ≈ $10.20
    • Gross margin at $20: ($20 − $10.20) / $20 ≈ 49%
    • Break-even usage: a flat $20 plan turns unprofitable above ~588 tasks/user/month (≈ 19–20/day).

    Figures are estimates from the inputs you provided; the skill does not read your billing or meter live traffic.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Most teams ship an LLM feature and meet its true cost on the invoice. Token spend is knowable in advance and controllable after — but only if someone models the actual call pattern instead of eyeballing a per-token price. A single agent task can fan out into dozens of calls, each dragging a growing context; a feature that's cheap per request can be ruinous per user. LLM Cost and Token Economics Modeler builds the model. Give it your architecture — models and prices, prompt and context sizes, the call pattern per user action including the hidden calls (tool loops, retries, subagents, re-sent history), and your volume — and it produces a per-request and monthly cost projection with the formula and assumptions shown, a ranking of what actually drives the bill, an optimization plan applying model routing, prompt-context trimming, caching, call-count reduction, and output discipline (each lever with an estimated saving and the quality trade-off to test), and the unit economics: cost per user versus your pricing, gross margin, and the usage level where a flat plan loses money. The download includes three reference files: the cost-model worksheet, the optimization-levers guide, and a complete worked example. Every figure is an estimate you can calibrate — it does the economics, it does not access your billing or meter live traffic, and model prices are yours to supply since they change. Works with Claude Code, Cursor, Codex CLI, Gemini CLI, and any SKILL.md agent.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.

    Every figure is an estimate whose accuracy depends on the token counts, call pattern, and model prices you provide. The skill does not access your billing or provider dashboards, connect to any API, meter or observe live traffic, or fetch current model prices — you supply prices, since they change. It does not automatically discover hidden calls; you describe the call pattern (tool loops, retries, subagents, re-sent history) and it models what you give it. Optimization savings are projected estimates, and each lever's quality trade-off must be tested in your own product. It does not modify your application code or implement the optimizations for you.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    2 uses

    Times used to date

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 4 months ago

    Permissions

    Read Files
    Write Files

    This skill only reads the architecture details you provide and writes cost-model, optimization, and unit-economics documents plus the three reference files under references/**. It performs no network access: it does not call model providers, connect to billing or analytics APIs, fetch live prices, or meter traffic. The auto-detected host pubsprotoolkit.com was removed because the skill makes no external connections.

    Listed4 months ago

    What's inside

    Frequently Asked Questions

    This skill analyzes your agent's architecture—including hidden tool loops, context growth, and retries—to provide detailed per-request and monthly cost projections, identifying exactly which calls are driving your bill.

    The skill is compatible with Claude Code, Cursor, Codex, and Gemini CLI, and it works with any AI agent capable of reading SKILL.md files to process cost modeling logic.

    No, this tool does not require access to your private billing accounts; it uses the architecture and pricing data you provide to build an offline economic model.

    You receive the core modeling logic, a cost-model worksheet, a guide to optimization levers (like caching and model routing), and a fully worked reference example.

    The skill includes an optimization plan that ranks specific levers—such as prompt trimming or output discipline—and provides estimated savings alongside potential quality trade-offs for each.

    Since model prices fluctuate frequently, this skill is designed for you to supply your own current pricing, ensuring your projections remain accurate regardless of provider updates.

    New in Agents & Orchestration