GitHub Copilot API Key Pricing vs Pay Per Token
There is no standalone price for a GitHub Copilot API key. Copilot is billed as a plan, while an API is billed per token. This guide shows how to compare the two for your own coding workload.
Last updated

Summary
- Copilot pricing is set by GitHub; check its current plans and do not assume a per-token rate.
- Here: $0.15 per 1M input and $0.50 per 1M output tokens, prepaid.
- A heavy coding day of 200 requests costs about $0.38 at these rates.
- A subscription wins on predictability and bundled features; tokens win on light or bursty use.
Two different kinds of price
People searching github copilot api key pricing often expect a per-token price list. Copilot does not work like that: GitHub sells it as a plan for people or organisations, with features and limits that GitHub defines and changes. Check GitHub's current plan page for the numbers. This article does not quote them.
A token-billed API is the other model. You pay for what you send and receive. That makes the comparison a break-even exercise: how many requests does a monthly fee buy at the usage-based rate? Our rates are the part we can state exactly: $0.15 per 1M input tokens and $0.50 per 1M output tokens.
Two things to keep apart. First, "API key" in this context is not a Copilot product. Second, a token price tells you the cost of work, while a plan price tells you the cost of access. They only become comparable once you estimate how much work you do.
What coding requests cost
Coding requests are input-heavy, since each one carries file contents. The table uses typical shapes of request. Replace the token counts with your own from the usage field.
| Request | Input / output | Input cost | Output cost | Total |
|---|---|---|---|---|
| Short completion-style prompt | 3,000 / 300 | $0.00045 | $0.00015 | $0.0006 |
| Chat edit with a file | 12,000 / 1,500 | $0.0018 | $0.00075 | $0.00255 |
| Agent step with context | 30,000 / 1,000 | $0.0045 | $0.0005 | $0.005 |
| Review of a large diff | 60,000 / 2,000 | $0.009 | $0.001 | $0.01 |
The context window is 100,000 tokens for prompt plus completion, so the largest request in the table fits with room to spare.
Take the second row by hand. 12,000 input tokens at $0.15 per 1M is 12,000 / 1,000,000 x 0.15 = $0.0018. 1,500 output tokens at $0.50 per 1M is $0.00075. Together, $0.00255. A hundred chat edits cost $0.255, which is about 25 cents, and a thousand cost $2.55.
From requests to a monthly bill
Take three developers.
- Light: 30 chat edits a week at $0.00255 is about 130 a month, or roughly $0.33.
- Typical: 200 requests a day averaging 10,000 input and 800 output tokens. One request is 0.0015 + 0.0004 = $0.0019, a day is $0.38, and 22 working days are $8.36.
- Agent-heavy: 40 agent steps a day at $0.005 is $0.20 a day. Raise that to 400 steps and it is $2.00 a day, $44 over 22 days.
Light use costs cents, typical use costs single dollars, and only agent loops with large contexts push the bill into the tens of dollars. Context growth is the main driver: a loop that resends 60,000 tokens forty times is much dearer than one that trims history.
The agent-heavy line deserves a second look, because it is where estimates go wrong. An agent step often repeats the whole context plus new tool output, so step ten costs more than step one. A task that takes twelve steps with the context growing from 10,000 to 60,000 tokens averages about 35,000 input tokens, or $0.00525 per step before output. Watch the first few real runs and update the table with what you see.
Break-even against a subscription
Use this formula: break_even_requests = monthly_fee / cost_per_request. Suppose a plan costs a hypothetical $10 a month (substitute the real current price). At the typical $0.0019 per request, $10 buys 5,263 requests, or about 239 a day over 22 days. If you send fewer than that, tokens cost less. At the $0.005 agent step, the same $10 buys 2,000 steps, about 91 a day.
So the break-even is high for chat-style use and lower for agent-style use. If you are right at the line, a subscription's predictability may be worth more than a small saving.
Make the comparison honest by including time. A subscription that works in your editor in two minutes has a setup cost of nearly zero. A pay-per-token route takes some minutes of configuration and, for agent use, some attention to prompts. Count that as a small one-time cost against the monthly saving.
What a subscription includes that tokens do not
Be honest about the comparison. A plan bundles an editor integration with inline suggestions, which this API does not provide by itself. An API gives you a model endpoint, nothing more. You add the editor tool, such as Continue or Aider, and our setup guide for custom keys shows how. If you want zero setup and inline completions, a subscription is the easier path.
Where the API fits: scripts, batch refactors, code explanation bots, internal tools, or a second assistant with no content refusals for lawful adult use. It is text only and one open-weight model run by an independent provider, not an official API of any vendor.
Governance is another difference. Organisations often pick a plan because it comes with administrative controls over who can use what. A key-based setup puts that on you: you decide who gets a key, how many keys exist, and when one is revoked. Accounts that have topped up can hold up to 5 keys, label them and revoke any of them from the key page, which covers a small team but is not a seat-management system.
Cutting token spend in coding tools
- Send less of the repository. Most of a coding prompt is file content. Include the function and its callers, not the whole module.
- Start fresh conversations. An agent that keeps one thread for a whole day resends everything each step. A new thread per task keeps input small.
- Cap output. A
max_tokenslimit stops runaway explanations. Output costs $0.50 per 1M, over three times the input rate. - Ask for diffs, not full files. Returning 200 changed lines instead of a 1,500-line file saves output tokens on every edit.
Take the diff habit alone. A 1,500-line file is roughly 15,000 tokens, which costs $0.0075 as output. A 200-line change is about 2,000 tokens, or $0.001. That is a saving of $0.0065 per edit, $6.50 per thousand edits.
Log the numbers before you decide
A week of real data beats any estimate. Wrap your calls so each prints its cost:
from openai import OpenAI
client = OpenAI(base_url="https://api.githubcopilotapikey.com/v1", api_key="YOUR_KEY")
def cost_of(r):
u = r.usage
return u.prompt_tokens * 0.15 / 1e6 + u.completion_tokens * 0.50 / 1e6
r = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Write a unit test for a function that parses ISO dates."}],
)
print(f"${cost_of(r):.5f}")
Multiply your average by your daily request count and by 22, then compare with the plan fee you are weighing.
Paying and top-ups
Billing is prepaid. Top up any whole amount from $20 to $500 in USDT on TRC20 or USDC on Base. Bonuses: +5% from $50, +10% from $100, +15% from $200. Credit never expires and failed or refused requests are not charged. A $20 top-up covers about 10,526 typical requests (20 / 0.0019). See the pricing page and the docs, or claim the free $0.50 trial on the API key page to measure your own token counts first.
More guides
Frequently asked questions
Does this site sell GitHub Copilot keys?
No. We are independent and not affiliated with GitHub. We provide an OpenAI-compatible API with its own keys and billing.
How do I find my real cost per request?
Read prompt_tokens and completion_tokens from the usage field and apply $0.15 and $0.50 per 1M.
Do unused credits expire?
No. Credit never expires.
Can I limit spending?
Billing is prepaid, so spending cannot exceed the credit you added. The X-Balance-USD header shows what is left.
Get your key in one step
Sign up, copy the key, update your base URL. That’s it.
Provide email and password. Key displayed immediately.