{"meta":{"title":"Hosting of models for GitHub Copilot","intro":"Learn how different AI models are hosted for GitHub Copilot.","product":"GitHub Copilot","breadcrumbs":[{"href":"/en/copilot","title":"GitHub Copilot"},{"href":"/en/copilot/reference","title":"Reference"},{"href":"/en/copilot/reference/ai-models","title":"AI models"},{"href":"/en/copilot/reference/ai-models/model-hosting","title":"Model hosting"}],"documentType":"article"},"body":"# Hosting of models for GitHub Copilot\n\nLearn how different AI models are hosted for GitHub Copilot.\n\nGitHub Copilot can use a variety of AI models. This article explains how these models are hosted and served.\n\n## OpenAI models\n\nUsed for:\n\n* GPT-5 mini\n* GPT-5.3-Codex\n* GPT-5.4\n* GPT-5.4 mini\n* GPT-5.4 nano\n* GPT-5.5\n* GPT-5.6 Luna\n* GPT-5.6 Sol\n* GPT-5.6 Terra\n\nThese models are hosted by OpenAI and GitHub's Azure infrastructure.\n\nOpenAI makes the [following data commitment](https://openai.com/enterprise-privacy/): *We \\[OpenAI] do not train models on customer business data*. Data processing follows OpenAI's enterprise privacy comments.\n\nGitHub maintains a [zero data retention agreement](https://platform.openai.com/docs/guides/your-data) with OpenAI.\n\nAll input requests and output responses processed by GitHub Copilot's models continue to pass through GitHub Copilot's, content filtering systems. These filters include checks for public code matches (when applied) as well as mechanisms to detect and block harmful or offensive content.\n\n## Anthropic models\n\nUsed for:\n\n* Claude Haiku 4.5\n* Claude Sonnet 4.5\n* Claude Sonnet 4.6\n* Claude Sonnet 5\n* Claude Opus 4.5\n* Claude Opus 4.6\n* Claude Opus 4.7\n* Claude Opus 4.8\n* Claude Opus 4.8 (fast mode) (preview)\n* Claude Opus 5\n* Claude Fable 5\n* Claude Fable 5.1\n\n> \\[!WARNING]\n> When Claude Fable 5 or Claude Fable 5.1 is used, Anthropic retains data, including prompts and outputs, by default to operate safety classifiers that detect harmful use.\n>\n> Customers can request to use Claude Fable 5 or Claude Fable 5.1 with zero data retention (ZDR) through the end of 2026 under a time-bound exemption while Anthropic rolls out Enterprise Frontier Safeguards (EFS). After that point, continued use of these models would require EFS, which will enable eligible customers to keep their data under their own control while also enabling automated safety monitoring. For an enterprise that has been approved and configured for this type of access, Claude Fable 5 and Claude Fable 5.1 requests will use the ZDR endpoint through the end of 2026 when the models are enabled.\n>\n> To learn whether your enterprise is eligible and request access, contact your GitHub account team.\n>\n> Approval for access does not automatically enable Claude Fable 5 or Claude Fable 5.1. An enterprise or organization administrator must still enable each model before users can access it. Other Claude models, except for Claude Fable 5 and Claude Fable 5.1, continue to operate under ZDR.\n>\n> Customers who enable a Fable model with ZDR agree to use this model only for internal operations, including to develop and evaluate products for their own customers. They may not make the model endpoints or outputs available externally.\n\nThese models are hosted by Amazon Web Services, Anthropic PBC, and Google Cloud Platform. GitHub has provider agreements in place to ensure data is not used for training. Additional details for each provider are included below:\n\n* Amazon Bedrock: Amazon makes the [following data commitments](https://docs.aws.amazon.com/bedrock/latest/userguide/data-protection.html): *Amazon Bedrock doesn't store or log your prompts and completions. Amazon Bedrock doesn't use your prompts and completions to train any AWS models and doesn't distribute them to third parties*.\n\n<!-- markdownlint-disable GHD046 -->\n\n* Anthropic PBC: GitHub maintains a [zero data retention agreement](https://privacy.anthropic.com/en/articles/8956058-i-have-a-zero-retention-agreement-with-anthropic-what-products-does-it-apply-to) with Anthropic for generally available Anthropic features in GitHub Copilot. Claude Fable 5 and Claude Fable 5.1 are not covered by this agreement by default. Enterprises that meet eligibility requirements can use Claude Fable 5 and Claude Fable 5.1 with zero data retention through the end of 2026 under a separate time-bound exemption; contact your account manager to learn more. Some Anthropic features in beta or public preview—including tool search via the Messages API—are also not covered by this agreement. For these features, data may be retained by Anthropic in accordance with [Anthropic's ZDR documentation](https://platform.claude.com/docs/en/build-with-claude/zero-data-retention). GitHub will update this page as ZDR coverage changes.\n\n<!-- markdownlint-enable GHD046 -->\n\n* Google Cloud: [Google commits to not training on GitHub data as part of their service terms](https://cloud.google.com/vertex-ai/generative-ai/docs/data-governance). GitHub is additionally not subject to prompt logging for abuse monitoring.\n\nTo provide better service quality and reduce latency, GitHub uses [prompt caching](https://platform.claude.com/docs/en/build-with-claude/prompt-caching). You can read more about prompt caching on [Anthropic PBC](https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching), [Amazon Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-caching.html), and [Google Cloud](https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/claude-prompt-caching).\n\nWhen using Claude, input prompts and output completions continue to run through GitHub Copilot's content filters for public code matching, when applied, along with those for harmful or offensive content.\n\n## Google models\n\nUsed for:\n\n* Gemini 3.1 Pro\n* Gemini 3.5 Flash\n* Gemini 3.6 Flash\n* Gemini 3.7 Flash\n* Gemini 3.8 Flash\n\nGitHub Copilot uses Gemini models hosted on Google Cloud Platform (GCP). When using Gemini models, prompts and metadata are sent to GCP, which makes the [following data commitment](https://cloud.google.com/vertex-ai/generative-ai/docs/data-governance): *Gemini doesn't use your prompts, or its responses, as data to train its models.*\n\nTo provide better service quality and reduce latency, GitHub uses [prompt caching](https://cloud.google.com/vertex-ai/generative-ai/docs/data-governance#customer_data_retention_and_achieving_zero_data_retention).\n\nWhen using Gemini models, input prompts and output completions continue to run through GitHub Copilot's content filters for public code matching, when applied, along with those for harmful or offensive content.\n\n## xAI models\n\nUsed for:\n\n* Grok 4.5\n* Grok 4.6\n\nThese models are hosted on xAI. xAI operates these models in GitHub Copilot under a zero data retention API policy. This means xAI commits that user content (both inputs sent to the model and outputs generated by the model):\n\nWill **not** be:\n\n* Logged for any purpose, including human review\n* Saved to disk or retained in any form, including as metadata\n* Accessible by xAI personnel\n* Used for model training\n\nWill **only**:\n\n* Exist temporarily in RAM for the minimum time required to process and respond to each request\n* Be immediately deleted from memory once the response is delivered\n\nWhen using xAI, input prompts and output completions continue to run through GitHub Copilot's content filters for public code matching, when applied, along with those for harmful or offensive content.\n\nFor more information, see [xAI's enterprise terms of service](https://x.ai/legal/terms-of-service-enterprise) on the xAI website.\n\n## Microsoft models\n\nUsed for:\n\n* MAI-Code-1-Flash\n* MAI-Code-1.1-Flash\n* Raptor mini\n\nMAI-Code-1-Flash and MAI-Code-1.1-Flash are first-party Microsoft models hosted on Azure in GitHub's tenant.\n\nGitHub does not use Copilot Business or Copilot Enterprise customer data to train AI models. For individual subscribers—Copilot Free, Copilot Pro, Copilot Pro+, and Copilot Max users—GitHub may use Copilot interaction data, including prompts (inputs), suggestions (outputs), and code snippets generated during Copilot sessions to train and improve AI models, in accordance with our [GitHub General Privacy Statement](/en/site-policy/privacy-policies/github-general-privacy-statement) and applicable user settings. Individual subscribers can opt out of having their data used for AI model training. To manage this setting, see [Managing GitHub Copilot policies as an individual subscriber](/en/copilot/how-tos/manage-your-account/manage-policies#model-training-and-improvements).\n\nMAI-Code-1-Flash and MAI-Code-1.1-Flash are served on Microsoft Azure AI Foundry within GitHub's tenant and are subject to GitHub's data handling configuration for that deployment. For details about how data is processed, retained, and secured for models served on Azure AI Foundry, see [Data, privacy, and security for Foundry Models sold by Azure](https://learn.microsoft.com/en-us/azure/foundry/responsible-ai/openai/data-privacy?tabs=azure-portal) in the Microsoft documentation.\n\nWhen using MAI-Code-1-Flash or MAI-Code-1.1-Flash, input prompts and output completions continue to run through GitHub Copilot's content filters for public code matching, when applied, along with those for harmful or offensive content.\n\n## Open-weight models\n\nOpen-weight models have publicly available weights. Hosting differs by model and is described in the sections below. Customer prompts and responses are not sent to the original model developers.\n\n### Moonshot AI models\n\nUsed for:\n\n* Kimi K2.7 Code\n* Kimi K3\n\nKimi K2.7 Code and Kimi K3 were developed by Moonshot AI. They are open-weight models that may be less aligned than other Copilot models, with an elevated risk of geographic bias. Before you enable either model, review the [Kimi K2.7 Code model card](https://huggingface.co/moonshotai/Kimi-K2.7-Code) or the [Kimi K3 model card](https://huggingface.co/moonshotai/Kimi-K3) and run your own evaluations before enabling.\n\nKimi K2.7 Code is hosted on Azure AI Foundry infrastructure managed by GitHub and Microsoft.\n\nKimi K3 is hosted by GitHub on Fireworks AI.\n\nBoth models are covered by zero data retention agreements with the hosting providers. Fireworks AI and Azure AI Foundry do not use prompts or completions to train models, and prompts and completions are not sent to Moonshot AI.\n\nGitHub does not use Copilot Business or Copilot Enterprise customer data to train AI models. For individual subscribers—Copilot Free, Copilot Pro, Copilot Pro+, and Copilot Max users—GitHub may use Copilot interaction data, including prompts (inputs), suggestions (outputs), and code snippets generated during Copilot sessions to train and improve AI models, in accordance with our [GitHub General Privacy Statement](/en/site-policy/privacy-policies/github-general-privacy-statement) and applicable user settings. Individual subscribers can opt out of having their data used for AI model training. To manage this setting, see [Managing GitHub Copilot policies as an individual subscriber](/en/copilot/how-tos/manage-your-account/manage-policies#model-training-and-improvements).\n\nWhen using Kimi K2.7 Code or Kimi K3, input prompts and output completions continue to run through GitHub Copilot's content filters.\n\n## Inline suggestions\n\nInline suggestions, including ghost text and next edit suggestions, are powered by models hosted on Azure for Copilot Business and Copilot Enterprise plans. Copilot Free and Copilot Student user models are hosted on Fireworks AI."}