Developers often ask why they should pay for GitHub Copilot when they can call the same models directly via an API. The answer depends on whether you need a development environment or just a model endpoint.
In this article
Are you building a product feature with your own prompts, retrieval logic, and billing controls? Or are you trying to move from a GitHub Issue to a reviewed pull request using the editor, repository, and terminal policies already in place?
Cost is part of the equation. Copilot plans include a monthly allocation of GitHub AI Credits. Metered usage calculates input, output, and cached tokens at the rate for the selected model.
Raw API access and Copilot address different layers of the system. The right choice follows the work you need to own.
Copilot is development tooling around the model
Consider a common maintenance task. A developer starts from a GitHub Issue, inspects the repository, changes the affected files, runs the test suite in the terminal, and opens a pull request for review. The model call is one step in that workflow. The surrounding system needs the issue, the diff, repository instructions, permitted commands, and the organisation’s policies.
GitHub Copilot connects those surfaces across the editor, repository, pull request, issue, terminal, and organisation controls. That is what the plan covers alongside model access. The billing change makes the split easier to see: code completions and Next Edit Suggestions remain included in paid plans, while AI Credits apply to more resource-intensive chat and agentic work.
Cost per task therefore depends on more than the listed token rate. Context selection, tool use, retries, and the path from an issue to a reviewed pull request all affect the number of tokens spent and whether the work finishes.
The same billing model gives buyers visibility. Organisation plans pool AI Credits across the organisation, and admins can set budgets and track usage in the billing dashboard. Adoption stays measurable instead of scattering across individual API keys and untracked scripts.
Raw API access is for systems you own
Direct API access is the right foundation when you are building a product feature, an internal agent platform, an evaluation harness, or an automation pipeline. You control the prompts, retrieval, routing, retries, logs, security model, and billing.
Consider an internal agent that reads a tagged issue, retrieves company documentation, creates a change request in a separate system, and writes a complete audit record. That workflow needs its own data boundaries, event triggers, and approval points. An API gives the team the primitives to build those requirements into the product.
The engineering work is real. A production system needs to decide which repository files to retrieve, how to preserve instructions, when to retry a failed tool call, where to store traces, and which credentials an agent can use. Those are system design decisions made by developers. A model endpoint does not make them for you.
Agent SDKs sit between these layers. Handling orchestration, tool use, sessions and streaming, with some tradeoffs: some are tied to a single provider’s API while others work across providers. GitHub ships this layer. The Copilot SDK exposes the same agent’s runtime that powers the Copilot CLI, so you can embed a benchmarked, production tested harness instead of building one. Run it with your Copilot subscription or your own provider key.
BYOK keeps the workflow and changes the bill
Bring Your Own Key for Copilot, currently in public preview, lets developers make supported provider models available in Copilot Chat, Copilot CLI, and VS Code. Supported providers include Anthropic, AWS Bedrock, Google AI Studio, Microsoft Foundry, OpenAI, OpenAI-compatible providers, and xAI.
BYOK models run through the same harness and the same integrations GitHub builds and maintains. Your provider takes over the token bill. GitHub still develops the tooling.
Model access is a policy decision either way. Copilot supports more than 20 models, and enterprise and organisation admins choose which ones are enabled for their teams, whether GitHub-hosted or connected through BYOK.
A team with an existing provider contract or committed cloud spend can keep that commercial relationship while developers use Copilot in their normal workflow. Copilot CLI also supports local and external BYOK models, including OpenAI-compatible endpoints, Azure OpenAI, Anthropic, and local Ollama models.
Check the current documentation on using your own API keys with GitHub Copilot (enterprise) and using your own LLM models in Copilot CLI before making purchasing or architecture decisions because BYOK is still in public preview.
Choose the layer you need
Choose raw API access when you are building a system that requires custom behaviour, integrations, and controls. Choose GitHub Copilot when the work is software development inside the tools and repositories where a team already writes, reviews, secures, and ships code.
Shipping software is the work around the code: issues, pull requests, reviews, checks, actions, and security. GitHub is where teams do that work. Copilot helps them move through it faster.
See what each Copilot plan includes and how AI Credits work.




