Study FAQ
Why can similar Copilot prompts consume different amounts of AI credits?
Also asked as 2
- What drives the AI credit cost of a Copilot task beyond prompt length?
- How do tokens and model choice affect Copilot AI credit consumption?
Answer
A Copilot task's credit consumption depends on the model and the tokens used throughout the interaction, not just the visible prompt length. Input, generated output and cached context have model-dependent pricing that is converted into GitHub AI Credits.
Current pricing distinguishes input, cached input and output, with cache-write charges for applicable models and different context tiers for some models. Caching therefore does not imply free usage. Extended context and higher reasoning can also increase consumption, and available models depend on client, plan and administrative settings.
A short request to investigate inconsistent records may require far more reading and revision than a longer prompt that supplies one paragraph to summarize. To control avoidable consumption, bound the evidence the task needs, request the amount of output the decision requires, and define when investigation should stop or escalate. Preserve essential evidence; cutting it merely to shorten the prompt can leave the task unsuccessful.
Compare quality and consumption for comparable work. A model's lower rate or smaller prompt is not a universal promise of lower task cost, and a model-level spending increase alone does not establish why a particular task needed several attempts.
References: Models and pricing for GitHub Copilot - GitHub Docs, Choosing a model in the Copilot app - GitHub Docs, Supported AI models in GitHub Copilot - GitHub Docs.
Full explanation
GH-700: Control Copilot Consumption with AI Credits and Budgets
Study guide · GH-700
Read the full explanation