Skill / SKILL.md

Crestapps Core Ai Usage Metering

CrestApps/CrestApps.AgentSkills

Skill for AI usage metering in CrestApps.Core 2.0. Covers opting in with AddCoreAIUsageTracking or AddUsageTracking, how every client created by IAIClientFactory (chat, embedding, image, speech-to-text, text-to-speech and realtime) records one AICompletionUsageRecord per provider request, the recorded units (cached, cache-write, reasoning, audio and image tokens, web searches, audio duration and bytes, characters, voices) and AIUsageOperationTypes, labeling requests with UseUsageLabels, AIUsageScope and AIUsagePurposes, metering clients built outside the factory with AIUsageMetering Meter, IAICompletionUsageObserver and IAICompletionUsageStore, AIUsageReport and AIAudioUsageReport, and per-deployment prices with AIDeploymentPricing, AIUsageMeters and AIUsageCostEstimator. Use it when pricing or attributing AI usage, estimating cost, building a usage or audio usage dashboard, or troubleshooting missing usage records.
3 views 14 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Skill for AI usage metering in CrestApps.Core 2.0. Covers opting in with AddCoreAIUsageTracking or AddUsageTracking, how every client created by IAIClientFactory (chat, embedding, image, speech-to-text, text-to-speech and realtime) records one AICompletionUsageRecord per provider request, the recorded units (cached, cache-write, reasoning, audio and image tokens, web searches, audio duration and bytes, characters, voices) and AIUsageOperationTypes, labeling requests with UseUsageLabels, AIUsageScope and AIUsagePurposes, metering clients built outside the factory with AIUsageMetering Meter, IAICompletionUsageObserver and IAICompletionUsageStore, AIUsageReport and AIAudioUsageReport, and per-deployment prices with AIDeploymentPricing, AIUsageMeters and AIUsageCostEstimator. Use it when pricing or attributing AI usage, estimating cost, building a usage or audio usage dashboard, or troubleshooting missing usage records.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/CrestApps/CrestApps.AgentSkills' skill-source

Use the complete skill-source/plugins/crestapps-core/skills/crestapps-core-ai-usage-metering directory with your client’s skill installer.

  • plugins/crestapps-core/skills/crestapps-core-ai-usage-metering

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory plugins/crestapps-core/skills/crestapps-core-ai-usage-metering

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
46d0613a90f3b3e2b85d425ce0923ab84898331d89f6e6a5d53ee0bd3b97d0f0
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills