Dung (Donny) Nguyen

Senior Software Engineer

Understanding GitHub Copilot Metrics in Visual Studio Code

When using GitHub Copilot in Visual Studio Code, you will come across several terms that describe how usage is measured and billed — such as premium requests, credits, tokens, and context windows. Understanding these metrics helps you work efficiently, control costs, and get the most out of your plan. Here is a clear breakdown of each.

Premium Requests

A premium request is the primary unit GitHub uses to meter advanced Copilot features. One premium request is consumed each time you send a prompt that uses a premium model or a premium capability (such as agent mode, or certain chat models beyond the included base model).

Key idea: A premium request is “one interaction,” but how much of your quota it consumes depends on the model’s multiplier.

Model Multipliers

The multiplier determines how many premium requests a single interaction costs, based on the model you choose:

Model tier Typical multiplier Best for
Lightweight (e.g., Haiku, mini models) ~0.25× Fast completions, simple tasks
Balanced (e.g., Sonnet, GPT-class) ~1× Everyday coding, the default workhorse
High-reasoning (e.g., Opus) ~1× and above Complex architecture, deep debugging

Choosing a cheaper model for routine work stretches your premium request allowance much further.

Credits

Credits are the monetary/billing layer that sits underneath premium requests. On some plans, usage beyond your included allowance is charged as credits (or a per-request dollar amount). You can think of it this way:

Credits matter most when you are on a paid plan and expect to go beyond the included quota.

Tokens

Tokens are the fundamental units of text that language models read and generate. A token is roughly ¾ of a word (about 4 characters) in English. For example, “VisualStudioCode” might be split into several tokens.

Tokens are relevant to Copilot in two ways:

  1. Input tokens — everything sent to the model: your prompt, open files, selected code, and other attached context.
  2. Output tokens — the response the model generates (code suggestions, explanations, etc.).

While you are usually billed by premium requests rather than per token in the VS Code experience, tokens still matter because they determine how much context fits into a single request and influence the quality of responses.

Context Window

The context window is the maximum number of tokens a model can consider at once — both the input you provide and the output it produces must fit inside it.

Starting a fresh chat or trimming attached files helps keep the most important context inside the window.

How These Metrics Fit Together

Here is the relationship between the terms:

Your prompt + context  →  measured in TOKENS
        ↓
Sent to a MODEL        →  must fit in the CONTEXT WINDOW
        ↓
Counts as 1 PREMIUM REQUEST × the model MULTIPLIER
        ↓
Drawn from your monthly allowance (then CREDITS / overage)

Practical Tips to Manage Usage

Where to Check Your Usage

You can monitor your Copilot usage in a few places:

Conclusion

GitHub Copilot’s metrics may look intimidating at first, but they follow a simple logic: your text is measured in tokens, which must fit in a model’s context window; each interaction counts as a premium request adjusted by a model multiplier; and usage beyond your allowance is covered by credits. By picking the right model and keeping your context lean, you can get powerful assistance while staying well within your plan.

References: