1
0
mirror of synced 2025-12-19 09:57:42 -05:00
Files
docs/content/copilot/reference/ai-models/model-comparison.md
Jenni C 0b02439cea tented 0008 (#58814)
Co-authored-by: sunbrye <sunbrye@github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2025-12-11 19:20:55 +00:00

16 KiB
Raw Blame History

title, shortTitle, allowTitleToDifferFromFilename, intro, versions, topics, category, redirect_from, contentType
title shortTitle allowTitleToDifferFromFilename intro versions topics category redirect_from contentType
AI model comparison Model comparison true Compare available AI models in {% data variables.copilot.copilot_chat_short %} and choose the best model for your task.
feature
copilot
Copilot
Learn about Copilot
/copilot/using-github-copilot/ai-models/choosing-the-right-ai-model-for-your-task
/copilot/reference/ai-models/choosing-the-right-ai-model-for-your-task
reference

Comparison of AI models for {% data variables.product.prodname_copilot %}

{% data variables.product.prodname_copilot %} supports multiple AI models with different capabilities. The model you choose affects the quality and relevance of responses by {% data variables.copilot.copilot_chat_short %} and {% data variables.product.prodname_copilot_short %} inline suggestions. Some models offer lower latency, while others offer fewer hallucinations or better performance on specific tasks. This guide helps you pick the best model based on your task, not just model names.

Note

  • Different models have different premium request multipliers, which can affect how much of your monthly usage allowance is consumed. For details, see AUTOTITLE.
  • {% data reusables.copilot.auto-model-selection %}

{% data reusables.copilot.grok-promo-period %}

Use this table to find a suitable model quickly, see more detail in the sections below.

Model Task area Excels at (primary use case) Additional capabilities Further reading
{% data variables.copilot.copilot_gpt_41 %} General-purpose coding and writing Fast, accurate code completions and explanations Agent mode, vision {% data variables.copilot.copilot_gpt_41 %} model card
{% data variables.copilot.copilot_gpt_52 %} Deep reasoning and debugging Multi-step problem solving and architecture-level code analysis Agent mode Not available
{% data variables.copilot.copilot_gpt_51 %} Deep reasoning and debugging Multi-step problem solving and architecture-level code analysis Agent mode Not available
{% data variables.copilot.copilot_gpt_5_codex %} General-purpose coding and writing Fast, accurate code completions and explanations Agent mode {% data variables.copilot.copilot_gpt_5_codex %} model card
{% data variables.copilot.copilot_gpt_5_mini %} General-purpose coding and writing Fast, accurate code completions and explanations Agent mode, reasoning, vision {% data variables.copilot.copilot_gpt_5_mini %} model card
{% data variables.copilot.copilot_gpt_5 %} Deep reasoning and debugging Multi-step problem solving and architecture-level code analysis Reasoning {% data variables.copilot.copilot_gpt_5 %} model card
{% data variables.copilot.copilot_claude_haiku_45 %} Fast help with simple or repetitive tasks Fast, reliable answers to lightweight coding questions Agent mode Not available
{% data variables.copilot.copilot_claude_sonnet_45 %} General-purpose coding and agent tasks Complex problem-solving challenges, sophisticated reasoning Agent mode {% data variables.copilot.copilot_claude_sonnet_45 %} model card
{% data variables.copilot.copilot_claude_opus_41 %} Deep reasoning and debugging Complex problem-solving challenges, sophisticated reasoning Reasoning, vision {% data variables.copilot.copilot_claude_opus_41 %} model card
{% data variables.copilot.copilot_claude_sonnet_40 %} Deep reasoning and debugging Performance and practicality, perfectly balanced for coding workflows Agent mode, vision {% data variables.copilot.copilot_claude_sonnet_40 %} model card
{% data variables.copilot.copilot_gemini_25_pro %} Deep reasoning and debugging Complex code generation, debugging, and research workflows Reasoning, vision {% data variables.copilot.copilot_gemini_25_pro %} model card
{% data variables.copilot.copilot_grok_code %} General-purpose coding and writing Fast, accurate code completions and explanations Agent mode {% data variables.copilot.copilot_grok_code %} model card
{% data variables.copilot.copilot_qwen_25 %} General-purpose coding and writing Code generation, reasoning, and code repair / debugging Reasoning {% data variables.copilot.copilot_qwen_25 %} model card
{% data variables.copilot.copilot_raptor_mini %} General-purpose coding and writing Fast, accurate code completions and explanations Agent mode Coming soon

Task: General-purpose coding and writing

Use these models for common development tasks that require a balance of quality, speed, and cost efficiency. These models are a good default when you don't have specific requirements.

Model Why it's a good fit
{% data variables.copilot.copilot_gpt_5_codex %} Delivers higher-quality code on complex engineering tasks like features, tests, debugging, refactors, and reviews without lengthy instructions.
{% data variables.copilot.copilot_gpt_5_mini %} Reliable default for most coding and writing tasks. Fast, accurate, and works well across languages and frameworks.
{% data variables.copilot.copilot_grok_code %} Specialized for coding tasks. Performs well on code generation, and debugging across multiple languages.
{% data variables.copilot.copilot_raptor_mini %} Specialized for fast, accurate inline suggestions and explanations.

When to use these models

Use one of these models if you want to:

  • Write or review functions, short files, or code diffs.
  • Generate documentation, comments, or summaries.
  • Explain errors or unexpected behavior quickly.
  • Work in a non-English programming environment.

When to use a different model

If you're working on complex refactoring, architectural decisions, or multi-step logic, consider a model from Deep reasoning and debugging. For faster, simpler tasks like repetitive edits or one-off code suggestions, see Fast help with simple or repetitive tasks.

Task: Fast help with simple or repetitive tasks

These models are optimized for speed and responsiveness. Theyre ideal for quick edits, utility functions, syntax help, and lightweight prototyping. Youll get fast answers without waiting for unnecessary depth or long reasoning chains.

Model Why it's a good fit
{% data variables.copilot.copilot_claude_haiku_45 %} Balances fast responses with quality output. Ideal for small tasks and lightweight code explanations.

When to use these models

Use one of these models if you want to:

  • Write or edit small functions or utility code.
  • Ask quick syntax or language questions.
  • Prototype ideas with minimal setup.
  • Get fast feedback on simple prompts or edits.

When to use a different model

If youre working on complex refactoring, architectural decisions, or multi-step logic, see Deep reasoning and debugging. For tasks that need stronger general-purpose reasoning or more structured output, see General-purpose coding and writing.

Task: Deep reasoning and debugging

These models are designed for tasks that require step-by-step reasoning, complex decision-making, or high-context awareness. They work well when you need structured analysis, thoughtful code generation, or multi-file understanding.

Model Why it's a good fit
{% data variables.copilot.copilot_gpt_5_mini %} Delivers deep reasoning and debugging with faster responses and lower resource usage than GPT-5. Ideal for interactive sessions and step-by-step code analysis.
{% data variables.copilot.copilot_gpt_5 %} Great at complex reasoning, code analysis, and technical decision-making.
{% data variables.copilot.copilot_claude_sonnet_40 %} Improves on 3.7 with more reliable completions and smarter reasoning under pressure.
{% data variables.copilot.copilot_claude_opus_41 %} Anthropics most powerful model. Improves on {% data variables.copilot.copilot_claude_opus %}.
{% data variables.copilot.copilot_gemini_25_pro %} Advanced reasoning across long contexts and scientific or technical analysis.

When to use these models

Use one of these models if you want to:

  • Debug complex issues with context across multiple files.
  • Refactor large or interconnected codebases.
  • Plan features or architecture across layers.
  • Weigh trade-offs between libraries, patterns, or workflows.
  • Analyze logs, performance data, or system behavior.

When to use a different model

For fast iteration or lightweight tasks, see Fast help with simple or repetitive tasks. For general development workflows or content generation, see General-purpose coding and writing.

Task: Working with visuals (diagrams, screenshots)

Use these models when you want to ask questions about screenshots, diagrams, UI components, or other visual input. These models support multimodal input and are well suited for front-end work or visual debugging.

Model Why it's a good fit
{% data variables.copilot.copilot_gpt_5_mini %} Reliable default for most coding and writing tasks. Fast, accurate, and supports multimodal input for visual reasoning tasks. Works well across languages and frameworks.
{% data variables.copilot.copilot_claude_sonnet_40 %} Improves on 3.7 with more reliable completions and smarter reasoning under pressure.
{% data variables.copilot.copilot_gemini_25_pro %} Deep reasoning and debugging, ideal for complex code generation, debugging, and research workflows.

When to use these models

Use one of these models if you want to:

  • Ask questions about diagrams, screenshots, or UI components.
  • Get feedback on visual drafts or workflows.
  • Understand front-end behavior from visual context.

Tip

If you're using a model in a context that doesnt support image input (like a code editor), you wont see visual reasoning benefits. You may be able to use an MCP server to get access to visual input indirectly. See AUTOTITLE.

When to use a different model

If your task involves deep reasoning or large-scale refactoring, consider a model from Deep reasoning and debugging. For text-only tasks or simpler code edits, see Fast help with simple or repetitive tasks.

Next steps

Choosing the right model helps you get the most out of {% data variables.product.prodname_copilot_short %}. If you're not sure which model to use, start with a general-purpose option like {% data variables.copilot.copilot_gpt_41 %}, then adjust based on your needs.

  • For detailed model specs and pricing, see AUTOTITLE.
  • For more examples of how to use different models, see AUTOTITLE.
  • To switch between models, refer to AUTOTITLE or AUTOTITLE.
  • To learn how {% data variables.copilot.copilot_chat_short %} serves different AI models, see AUTOTITLE.