· github copilot · billing · cost control · june 2026 ·

GitHub Copilot token billing calculator: project your June bill

// figure AI Credits consumed per workflow type — Copilot Pro plan, representative monthly usage
Copilot AI Credits consumed by workflow type Horizontal bar chart showing AI Credit consumption per workflow category: code completions (0 — free), chat sessions on cheap models (low), agentic sessions on Sonnet (high), and agentic sessions on Opus (very high). The Copilot Pro 1000-credit monthly allotment is marked as a threshold line. PRO PLAN LIMIT · 1000 CREDITS CODE COMPLETIONS FREE — 0 credits always CHAT · GPT-5 MINI · 150/MO ~15 credits ($0.15) CHAT · SONNET 4 · 200/MO ~95 credits ($0.95) AGENTIC · SONNET 4 · 22/MO ~1160 credits (+overage) BRAINSTORM · OPUS 4.7 · 6/MO ~132 credits ($1.32)
// FILED GitHub Copilot · Billing // SOURCE Septim Labs · Septim Meter CLI // PERMALINK /blog/github-copilot-token-billing-calculator-2026.html cite this →
S
By the Septim Labs team
Published April 28, 2026 · 12 min read
TL;DR
  • GitHub Copilot switches to token-based billing on June 1, 2026 — announced April 27 at github.blog. The currency is AI Credits; 1 credit = $0.01 USD.
  • Code completions remain free. You only pay for premium model usage in chat and agentic sessions that exceed your plan's included credits.
  • This post has the full per-model rate table, the exact formula, and three usage profiles with projected June bills — calculated from published GitHub rates.

What is actually changing on June 1

GitHub's current billing counts "Premium Requests" — a flat unit that varies by model but doesn't expose the underlying token math to the user. After June 1, that system disappears. In its place: AI Credits, where 1 credit costs $0.01 USD, and each model consumes a different number of credits per million tokens.

The plan prices do not change. Copilot Pro stays at $10/month. Business at $19. Enterprise at $39. What changes is how overages accumulate: instead of hitting a request cap and getting blocked, your token usage now runs a tab. If the tab exceeds your plan's included credits, you're charged for the overage at $0.01 per credit.

Each plan includes a matching credit allotment: Pro gets 1,000 credits ($10 of token value), Business gets 1,900, Enterprise gets 3,900. That math is intentional — the included credits equal the plan's dollar value, so a pure-token user breaks even. The question is whether your usage patterns push you past that threshold.

Code completions and Next-Edit Suggestions are not affected. They remain free on all paid plans. The metering applies only to chat interactions, inline edits that invoke a premium model, and agentic sessions. This is the distinction GitHub has been careful to preserve — the tab-completion feature that most people associate with Copilot doesn't change in cost.

The rates are published at docs.github.com/en/copilot/reference/copilot-billing/models-and-pricing. They are per-million tokens, denominated in USD, and split between input (what you send) and output (what the model returns). Anthropic models also carry a cached-read rate and a cache-write rate — more on those below.

One thing the announcement doesn't emphasize: the per-million rates GitHub publishes equal the underlying providers' listed API rates as of April 28, 2026. You are not paying a markup on the tokens. You are paying for the IDE integration, the tab-completion, and the included credit allotment — and then raw API rates on top of that if you go over.

Per-model token pricing — full rate table

All rates are per million tokens, in USD, sourced from docs.github.com/.../models-and-pricing, effective June 1, 2026. The Cache Write column applies to Anthropic models only — for OpenAI, Google, and xAI, cache writes are billed at the standard input rate.

Model Input $/M Cached $/M Cache Write $/M Output $/M
Anthropic
Claude Haiku 4.5anthropic $1.00 $0.10 $1.25 $5.00
Claude Sonnet 4anthropic $3.00 $0.30 $3.75 $15.00
Claude Sonnet 4.5anthropic $3.00 $0.30 $3.75 $15.00
Claude Sonnet 4.6anthropic $3.00 $0.30 $3.75 $15.00
Claude Opus 4.5anthropic $5.00 $0.50 $6.25 $25.00
Claude Opus 4.6anthropic $5.00 $0.50 $6.25 $25.00
Claude Opus 4.7anthropic $5.00 $0.50 $6.25 $25.00
OpenAI
GPT-4.1openai $2.00 $0.50 $8.00
GPT-5 miniopenai $0.25 $0.025 $2.00
GPT-5.2openai $1.75 $0.175 $14.00
GPT-5.4openai $2.50 $0.25 $15.00
GPT-5.5openai $5.00 $0.50 $30.00
Google
Gemini 2.5 Progoogle $1.25 $0.125 $10.00
Gemini 3 Flashgoogle $0.50 $0.05 $3.00
xAI
Grok Code Fast 1xai $0.20 $0.02 $1.50

The output-to-input ratio varies by provider. Anthropic's Sonnet line is 5:1 (output costs 5x input). GPT-5 mini is 8:1. Grok Code Fast 1 is 7.5:1. For agentic work, which tends to generate long outputs, the output rate is the number that matters most.

The formula — how credits are calculated

GitHub's credit math is straightforward. Every workflow event (a chat turn, an agentic step, a code review) consumes some number of input tokens and output tokens. Anthropic models may also read from cache or write to it. Add up the costs, divide by the credit value, and you have your credit burn for that event.

// credit calculation formula
credits = (
    input_tokens  × input_$/M
  + output_tokens × output_$/M
  + cached_tokens × cached_$/M
  + cache_write_tokens × cache_write_$/M   ← Anthropic only
) ÷ 1,000,000 ÷ $0.01

The division by 1,000,000 converts raw tokens to millions. The division by $0.01 converts the USD cost to credits. Everything else is multiplication by the model's published rate.

Worked example: Claude Sonnet 4 agentic session

A moderately complex agentic session on Claude Sonnet 4 — opening a codebase, writing a feature, running a review pass:

50,000 input × $3.00/M $0.1500
20,000 output × $15.00/M $0.3000
30,000 cached × $0.30/M $0.0090
10,000 cache-write × $3.75/M $0.0375
Total cost in USD $0.4965
÷ $0.01 per credit 49.65 credits

That single agentic session costs 49.65 credits — roughly 5% of the 1,000 credits included in a Copilot Pro plan. Run that session 20 times in a month and you've consumed 993 credits, nearly the full allotment. The 21st session starts triggering overages.

Notice that output tokens dominate: $0.30 of the $0.4965 total, or 60%, comes from the 20k output tokens — even though input was 2.5x more tokens. This is the math that makes agentic work expensive relative to chat.

Bill already spiking?

If you're already seeing unexpected charges — or you're managing a team whose Copilot usage is climbing — Septim Rescue is a $299 one-session audit that finds the sessions burning your budget and gives you a concrete fix plan. Booked by Friday, delivered Monday.

Book Septim Rescue →

What workflows cost the most

Not all Copilot usage is equal under token billing. The difference between a $10 month and a $35 month is mostly workflow selection, not volume.

The practical takeaway: if your Copilot usage is predominantly tab completion and occasional chat, you're unlikely to see any bill change. If you've been running agentic sessions — especially multi-step, tool-using sessions with Sonnet or Opus — run the math before June 1.

Three usage profiles — projected June bills

These projections come from the Septim Meter CLI, built against the rates published at docs.github.com/.../models-and-pricing as of April 28, 2026. All profiles use the Copilot Pro plan ($10/mo, 1,000 credits included).

// LIGHT
$10.00
no overage — 15 of 1,000 credits used
// MODERATE
$10.00
no overage — 191.82 of 1,000 credits used
// HEAVY
$21.78
1,177.58 overage credits · +$11.78

Light — ~150 chats/month on GPT-5 mini

This is the developer who uses Copilot primarily for tab completion and occasional short questions. 150 chat sessions per month, 800 input tokens and 400 output tokens each, all on GPT-5 mini.

150 chat sessions × GPT-5 mini15.00 credits
Code completions0.00 credits (free)
Events total$0.15 USD value
Included credits used15 of 1,000
Overage0 credits
Projected June bill$10.00

For this profile, the June change is invisible. The entire token value for a month of chatting — $0.15 — is covered by the plan's included credits with 985 credits to spare. The $10 base plan charge is the only cost.

Moderate — chat + 1 agentic session/week + occasional code review

This developer mixes chat with four agentic sessions per month on Claude Sonnet 4, plus eight code reviews per month on Sonnet. Typical of a developer who uses Copilot in their daily workflow but doesn't have agentic sessions running continuously.

Session parameters: 150 chat sessions (GPT-5 mini, 1,200 in / 600 out), 4 agentic sessions (Sonnet 4, 30k in / 12k out / 18k cached / 6k cache-write), 8 code reviews (Sonnet 4, 8k in / 2.5k out / 4k cached).

150 chat sessions (GPT-5 mini)18.00 credits
4 agentic sessions (Sonnet 4)129.30 credits
8 code reviews (Sonnet 4)44.52 credits
Events total191.82 credits ($1.92 USD value)
Included credits used191.82 of 1,000
Overage0 credits
Projected June bill$10.00

The moderate profile uses 19% of the included credits and never triggers an overage. Even with weekly agentic sessions and regular code reviews, the Pro plan's 1,000 credits provide significant headroom — as long as the session sizes stay in this range.

Heavy — daily agentic sessions + Opus brainstorms + code review

This is the developer running Copilot as a primary engineering partner: 200 chat sessions on Sonnet 4, 22 agentic sessions per month on Sonnet 4 (roughly daily), 6 brainstorm sessions on Opus 4.7, 16 code reviews on Sonnet 4. This is the profile that crosses the overage threshold.

Session parameters: 200 chat (Sonnet 4, 2.5k in / 1.5k out / 1k cached), 22 agentic (Sonnet 4, 60k in / 25k out / 35k cached / 12k cache-write), 6 brainstorms (Opus 4.7, 8k in / 4k out), 16 reviews (Sonnet 4, 12k in / 3.5k out / 6k cached).

200 chat sessions (Sonnet 4)95.00 credits
22 agentic sessions (Sonnet 4)1,749.42 credits
6 brainstorm sessions (Opus 4.7)132.00 credits
16 code reviews (Sonnet 4)201.16 credits
Events total2,177.58 credits ($21.78 USD value)
Included credits (Pro)1,000 credits
Overage credits1,177.58 credits
Overage charge$11.78
Projected June bill$21.78

The 22 agentic sessions dominate. They account for 80% of the total credit consumption. If this developer cut agentic sessions from 22 to 10 per month — roughly 2-3 per week — the monthly bill would drop from $21.78 to approximately $10.36, eliminating most of the overage.

Want the interactive version of this calculator?

Septim Meter ships May 12 — $29 one-time. Enter your own session counts, model choices, and token estimates. Get a projected bill breakdown and a direct API comparison in seconds. Runs offline, no account required.

Get notified when it launches →

The angle nobody is talking about: Copilot vs. direct API

GitHub's per-million rates equal the underlying providers' listed API rates as of April 28, 2026. There is no markup on the tokens. This means the math for "should I just call Anthropic directly?" is unusually clean.

Take the heavy user profile: $21.78 in projected token costs inside Copilot. The token value consumed — 2,177.58 credits — represents $21.78 of API calls at published rates. Calling Anthropic and OpenAI directly would cost the same $21.78 in token charges, but there would be no $10 base plan on top.

Except there is no base plan on direct API. You pay exactly what you use. No credits included, no plan fee.

// Copilot Pro · heavy user
$21.78
$10 base + $11.78 overage · includes free completions
// Direct API · same token volume
$21.78
pure token cost · no completions · no IDE integration

For the heavy user, the numbers are identical — because the $10 base plan is exactly offset by the 1,000 included credits. The formula is: if your token value exceeds $10, Copilot and direct API cost the same. If it's under $10, you're paying the $10 base for something you're not using fully, and direct API is cheaper.

But the comparison requires a caveat: Copilot Pro is not just token access. It includes:

For the light user — $0.15 in token value for the month — Copilot Pro costs $9.85 more than direct API calls alone. Whether that's worth it depends almost entirely on how much tab completion they use. If they're opening the IDE every day and accepting suggestions, the $10 fee is reasonable. If they're using Copilot only for occasional chat from the command line, direct API is significantly cheaper.

For the moderate user, the analysis is similar: $1.92 in token value, $10 base plan, $8.08 of the bill is paying for tab completion and IDE features. Still a reasonable trade for active developers.

The break-even point, where Copilot Pro and direct API cost exactly the same in token charges, is $10 of token value per month. Above that, both options cost the same — and Copilot gives you free completions on top. Below that, direct API is cheaper but loses the tab-completion feature.

See also: Anthropic API pricing 2026 — cost calculator and per-model breakdown and The Tokenocalypse — what a runaway agentic session actually costs.

What to do before June 1

Septim Meter — the calculator

We're shipping Septim Meter on May 12: $29, one-time, runs offline. You enter your session counts and token estimates; it projects your Copilot bill and runs the direct API comparison side-by-side, across all plans. The formula is the same one in this post — no account required, no data leaves your machine.

The CLI is already functional at the command line. The May 12 release adds the HTML report output and the interactive model-switching comparison. If you want early access or want to be notified when it ships:

Septim Meter — ships May 12

$29 one-time. Project your June Copilot bill, compare to direct API, choose the cheapest path. Built on the published GitHub rates — updates with a single JSON file when rates change.

Get notified at launch →

FAQ

When does the change take effect?
June 1, 2026. GitHub announced the transition on April 27, 2026. The existing Premium Request Unit system continues until that date. After June 1, all usage-based billing on premium models switches to AI Credits.
Do code completions count against AI Credits?
No. Code completions (tab suggestions) and Next-Edit Suggestions are free on all paid Copilot plans — Free, Pro, Pro+, Business, and Enterprise. They do not consume AI Credits before or after June 1. The metering applies only to chat, inline edits that invoke a premium model, and agentic sessions.
What model is cheapest for agentic work?
For raw cost: xAI Grok Code Fast 1 at $0.20/M input and $1.50/M output. If you need a model from a major provider with broad capability, GPT-5 mini at $0.25/M input and $2.00/M output is the next cheapest. Claude Sonnet 4 — the default agentic choice for most Copilot users — costs 12x more per input token than GPT-5 mini. For agentic sessions with large input context, that difference is substantial.
Will my Pro plan cost more after June 1?
The base price does not change. Copilot Pro stays at $10/month. Each plan includes AI Credits equal to its base price: 1,000 credits = $10 of token value. If your token usage stays within the included credits, your bill is identical. You only pay more if your monthly token consumption exceeds the allotment — and even then, only for the excess.
Can I disable usage-based billing so I never pay overages?
Yes. In GitHub Settings → Billing and plans → Spending limits, set your Copilot spending limit to $0. When your included credits are exhausted, premium model access is blocked until the next billing cycle. Code completions continue working. This is the safest option if you want a hard ceiling on Copilot costs.
How do I find my current usage before estimating June costs?
Go to github.com/settings/copilot — the dashboard shows interaction counts and model usage. For organization-level data, check Settings → Billing → GitHub Copilot in your organization. Neither view will show per-token counts before June 1, but interaction volume gives you a starting estimate to plug into the formula above.