Model Cost Compare logo

Model Cost Compare

CommunityPopular
mergisi
model-cost-compare

Trigger when the user asks which model to use, wants to compare model costs, says "what's cheapest for this task", "should I use Opus or Sonnet", "can a smaller model handle this", or "/model-cost-compare". Estimates token cost across Opus 4.6, Sonnet 4.6, GLM-5.1, Minimax M2.7, and local Gemma 4, then recommends the cheapest model capable of the task.

Overview

Publishermergisi
Repositoryawesome-openclaw-agents
Skill namemodel-cost-compare
Stars
4K
Forks
649
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by mergisi on GitHub. Read the source before you install it.

Installation

Install the Model Cost Compare AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mergisi/awesome-openclaw-agents.git /tmp/awesome-openclaw-agents
mkdir -p .claude/skills
cp -r /tmp/awesome-openclaw-agents/skills/claude/model-cost-compare .claude/skills/model-cost-compare
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Model Cost Compare in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Model Cost Compare on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Model Cost Compare is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Model Cost Compare

Given a task description (and optionally a rough prompt / input size), estimate the cost of running it on each available model tier and recommend the cheapest one that can actually do the job.

When to use

  • "Which model should I use for X?"
  • "Is it worth running this on Opus or will Sonnet do?"
  • "Can I offload this to a local model?"
  • "/model-cost-compare — classify 10k support tickets"

Pricing table (indicative — always flag as "check provider docs")

Use these rough figures. They are not exact; confirm before quoting real numbers to the user.

ModelTierInput ($/1M tok)Output ($/1M tok)ContextStrengths
Opus 4.6 (1M)Frontier~$15~$751MAgentic, long-context, hard reasoning
Sonnet 4.6Mid~$3~$15400kEveryday coding, agents, drafting
GLM-5.1Budget hosted~$0.60~$2.20256kCheap bulk work, decent reasoning
Minimax M2.7Budget hosted~$0.40~$1.80256kVery cheap, OK for templated output
Gemma 4 (local)On device$0 marginal$0 marginal32kFree but slow, weak at multi-step logic

Indicative pricing as of OpenClaw 2026.4.11. Check the provider docs before billing decisions.

Instructions

  1. Parse the user's task. Extract:
    • Task type: reasoning, extraction, classification, drafting, translation, agentic tool use, long-context synthesis.
    • Input size estimate: in tokens. If the user says "10k tickets averaging 500 tokens", that's 5M input tokens. If unknown, ask for a rough size.
    • Output size estimate: short label? full essay? JSON record?
    • Volume: one-off or batch?
  2. Rule out incapable models. Use this capability floor:
    • Agentic multi-tool flows with long reasoning → Opus or Sonnet only.
    • Structured extraction / classification with clear schema → any tier, including Gemma 4 local.
    • Long-context synthesis (>400k tokens) → Opus only.
    • Privacy-sensitive data that cannot leave the machine → Gemma 4 local only.
  3. For each surviving model, compute:
    cost = (input_tokens / 1_000_000) * input_price
         + (output_tokens / 1_000_000) * output_price
    Multiply by volume. Show your arithmetic so the user can sanity-check.
  4. Print the comparison as a Markdown table sorted cheapest first. Bold the recommended row.
  5. End with a one-line recommendation: Recommended: <model> — <1-sentence reason>.

Output example

Input: "Classify 10,000 customer support emails into 5 categories. Avg 400 input tokens, 20 output tokens."

Total tokens: 4M input, 200k output

| Model       | Input cost | Output cost | Total   | Capable? |
|-------------|-----------:|------------:|--------:|---------:|
| **Gemma 4** |     $0.00  |      $0.00  |  $0.00  |   yes    |
| Minimax M2.7|     $1.60  |      $0.36  |  $1.96  |   yes    |
| GLM-5.1     |     $2.40  |      $0.44  |  $2.84  |   yes    |
| Sonnet 4.6  |    $12.00  |      $3.00  | $15.00  |   yes    |
| Opus 4.6    |    $60.00  |     $15.00  | $75.00  |   overkill |

Recommended: Gemma 4 local — classification with a fixed 5-label schema is trivial for on-device models and costs nothing.

Anti-patterns

  • Don't recommend Opus by default "just to be safe". If Sonnet can do it, say so.
  • Don't recommend a local model for agentic tool-use loops — they spiral.
  • Always flag prices as approximate.

Example invocations

  • /model-cost-compare classify 10k support tickets into 5 buckets
  • "What's the cheapest model that can draft 200 SEO meta descriptions a day?"
  • "Should I use Opus or Sonnet for this 800k-token codebase review?"

Frequently asked questions

What does the Model Cost Compare AI skill do?

Trigger when the user asks which model to use, wants to compare model costs, says "what's cheapest for this task", "should I use Opus or Sonnet", "can a smaller model handle this", or "/model-cost-compare". Estimates token cost across Opus 4.6, Sonnet 4.6, GLM-5.1, Minimax M2.7, and local Gemma 4, then recommends the cheapest model capable of the task.

Why use Model Cost Compare on TypingMind?

Because you install it once and use it with any model. Model Cost Compare is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Model Cost Compare in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/mergisi/awesome-openclaw-agents/tree/main/skills/claude/model-cost-compare. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Model Cost Compare?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Model Cost Compare?

As many as you like. As long as a model supports skills, you can use Model Cost Compare with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Model Cost Compare AI skill free?

Yes. It is published on GitHub by mergisi under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇