AIToday
Large Language ModelsAI Business & IndustryGitHub Blog (AI)Published: Jul 23, 2026, 04:01 JST

Copilot vs. API: GitHub explains what you're paying for

Copilot vs. API: GitHub explains what you're paying for

3 Key Points

  1. What happened

    GitHub clarified the difference between GitHub Copilot (a managed service integrated with the editor, repository, and pull request workflows) and raw API access to the same underlying models. Copilot plans include monthly GitHub AI Credits that cover metered usage of input, output, and cached tokens; code completions and Next Edit Suggestions remain included in paid plans, while AI Credits apply to chat and agentic work.

  2. Why it matters

    The choice between Copilot and raw API access depends on what work you need to own. Copilot connects the entire software development workflow—issues, diffs, tests, pull requests, organization policies—so you pay for the integrated system, not just model tokens. Raw API access is right when you're building a custom product feature, internal agent, or automation pipeline with your own prompts, routing, security, and billing controls.

  3. What to watch

    GitHub's Bring Your Own Key (BYOK) feature, currently in public preview, lets teams use supported provider models (including Anthropic, AWS Bedrock, Google AI Studio, OpenAI, and others) within Copilot Chat, Copilot CLI, and VS Code while the provider handles the token bill. Teams can check current documentation before making purchasing decisions, since BYOK is still in preview.

Not sure about something? Ask the AI

Summaries like this, in your inbox every morning.

Context & Analysis

GitHub's post addresses a genuine tension in AI pricing: why pay for Copilot when you can call Claude, GPT, or other models directly through their APIs? The answer turns on scope. Copilot is not just a model endpoint—it is a workflow system. When a developer starts from a GitHub Issue, inspects the repository, edits files, runs tests in the terminal, and opens a pull request, the model call is one small step embedded in a larger system that already knows the repo's context, permitted commands, and organization policies. GitHub's billing change (splitting code completions from resource-intensive chat and agentic work via AI Credits) makes this split concrete and visible.

Raw API access remains the right choice for teams building their own systems—internal agents, evaluation harnesses, automation pipelines—where they must own the prompts, routing logic, retries, audit trails, and security boundaries. The engineering work is real and non-trivial. A production agent that reads a tagged issue, retrieves company documentation, creates change requests, and writes audit records needs custom data boundaries, event triggers, and approval points that a model endpoint alone does not provide.

GitHub's introduction of Bring Your Own Key (BYOK) in public preview offers a middle path: teams with existing provider contracts can keep their commercial relationships while developers use Copilot's integrated workflow, shifting only the token bill to the provider. This flexibility suggests GitHub is competing less on model access (where the underlying providers are commoditized) and more on the tooling and integrations that make development faster within the environments where teams already work.

FAQ
What's included in GitHub Copilot plans?
Copilot plans include a monthly allocation of GitHub AI Credits covering metered usage of input, output, and cached tokens. Code completions and Next Edit Suggestions remain included in paid plans, while AI Credits apply to more resource-intensive chat and agentic work.
Can I use my own API keys with Copilot instead of GitHub's AI Credits?
Yes, through Bring Your Own Key (BYOK), currently in public preview. Supported providers include Anthropic, AWS Bedrock, Google AI Studio, Microsoft Foundry, OpenAI, OpenAI-compatible providers, and xAI. When you use BYOK, your provider takes over the token bill while GitHub maintains the tooling and integrations.
When should I use raw API access instead of Copilot?
Choose raw API access when building a system that requires custom behavior, integrations, and controls—such as a product feature, internal agent platform, evaluation harness, or automation pipeline where you need to own the prompts, retrieval, routing, retries, logs, security model, and billing.
GitHub Blog (AI)Read Original Article

Get the latest Large Language Models news every morning

For example, today's edition would include:

  • Oracle shifts security to data layer ahead of Sept. 22 eventSiliconANGLE AI · 20m ago
  • Meta says Muse gave "incorrect" answer on message accessThe Verge AI · 20m ago
  • Salesforce bets on Headless 360 beyond its own UISiliconANGLE AI · 2h ago

AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. Q&As are published on this page for other readers too.

Related Articles

Next articleReddit user critiques Google's fragmented AI product strategy