本文へ移動
cccskills
無料GitHub で公開

llm-price-lookup

look up and explain llm api pricing across models.dev, openrouter, and official provider pages. use when the user asks for model prices, input/output token costs, cached-token costs, openrouter aliases such as :free, provider-specific pricing, official versus third-party prices, or wants to verify an api call cost log.

インストール方法を見る

含まれるファイル(5)

  • SKILL.md4.1 KB
  • agents/openai.yaml185 B
  • references/jq-recipes.md2.1 KB
  • references/source-priority.md2.0 KB
  • scripts/lookup_price.py12.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

LLM Price Lookup

Overview

Use this skill to look up, compare, and explain LLM pricing. Always bind a price to its source and provider; the same model family can have many prices depending on the serving provider.

Core Workflow

  1. Identify the query. Determine whether the user gave a broad model name such as glm-5.1, an exact provider/model id such as z-ai/glm-5.1, an OpenRouter id such as z-ai/glm-4.5-air:free, or a provider intent such as "Z.AI official".
  2. Query Models.dev for broad coverage. Prefer the bundled script:
    python scripts/lookup_price.py "<query>"
    
    Use its models_dev rows to preserve provider, provider_id, model_key, model_id, costs, and limits.
  3. Query OpenRouter exactly when relevant. If the id looks like an OpenRouter id or includes suffixes such as :free, :online, :beta, :extended, or :thinking, check OpenRouter exact ids before fuzzy matches. Never strip suffixes unless explicitly comparing variants.
  4. Check official provider pages when the user asks for official prices or when aggregator data conflicts. Treat official pricing pages as source of truth for billing, especially for OpenAI, Anthropic, Google, Z.AI, DeepSeek, Mistral, xAI, and other first-party APIs.
  5. Explain ambiguity. Missing Models.dev data does not mean a model is free or unavailable. A third-party provider price is not the same thing as the model vendor's official direct-API price.

Source Priority

Use this order for conclusions:

  1. Official provider pricing page or official billing docs.
  2. Exact OpenRouter /api/v1/models match for OpenRouter ids and aliases.
  3. Models.dev provider-specific entry with provider context preserved.
  4. LiteLLM or other community price registries as secondary corroboration.

If sources disagree, state the discrepancy and say which source you are using for the final conclusion.

Required Output Fields

For price lookups, include at least:

  • model or query
  • source
  • provider and provider_id
  • model_id or model_key
  • input cost per 1M tokens
  • output cost per 1M tokens
  • cache read and cache write cost per 1M tokens when available
  • context window and output limit when available
  • notes about free aliases, previews, batch discounts, cache behavior, or tool pricing when relevant

Preferred table:

sourceproviderprovider_idmodel_idinput $/1Mcache read $/1Mcache write $/1Moutput $/1Mcontext

Important Rules

  • Do not answer from a raw recursive .id search alone. Recursive search loses the parent provider, which is essential for pricing.
  • Do not conflate model vendor and serving provider. For example, GLM-5.1 can appear under Z.AI, Hugging Face, DeepInfra, OpenRouter, 302.AI, and other providers with different prices.
  • For OpenRouter aliases, match the full id first. z-ai/glm-4.5-air:free and z-ai/glm-4.5-air can have different prices.
  • Do not default unknown prices to zero. Only say zero when the matched source explicitly lists zero.
  • For official prices, prefer rows whose provider_id is the official provider, or verify against the official pricing page. For Z.AI/智谱, look for provider ids such as zai or z-ai and verify official docs when available.
  • For cost logs, recompute using the exact model id, input tokens, output tokens, cache read tokens, and cache write tokens. Mention any fields not priced by the selected source.

Bundled Resources

  • scripts/lookup_price.py: deterministic lookup against Models.dev and OpenRouter, preserving provider context.
  • references/source-priority.md: guidance for interpreting official, aggregator, and routing-platform prices.
  • references/jq-recipes.md: jq commands for manual inspection of Models.dev without losing provider context.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.

日本語の概要は準備中です。原文の説明を表示しています。

Scoheart/agentskills22026年8月4日 更新

ant-bank

無料

蚂蚁银行开户

日本語の概要は準備中です。原文の説明を表示しています。

Scoheart/agentskills22026年8月4日 更新

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

日本語の概要は準備中です。原文の説明を表示しています。

Scoheart/agentskills22026年8月4日 更新

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, or extract information from web pages.

日本語の概要は準備中です。原文の説明を表示しています。

Scoheart/agentskills22026年8月4日 更新

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

日本語の概要は準備中です。原文の説明を表示しています。

Scoheart/agentskills22026年8月4日 更新

cloud-aws

無料

仅使用 AWS CLI 操作 AWS。Agent 直接执行 aws 命令(无需脚本)。仅在用户提到 AWS、S3、EC2、Lambda 等时激活。

日本語の概要は準備中です。原文の説明を表示しています。

Scoheart/agentskills22026年8月4日 更新

Scoheart のスキルをすべて見る

このスキルの問題を報告する