# BYOK and enterprise custom models in the Copilot usage API

DevFeed: [BYOK and enterprise custom models in the Copilot usage API](<https://devfeed.tech/articles/byok-and-enterprise-custom-models-in-the-copilot-usage-api-115827.md>)

Original publisher: [Read original article](<https://github.blog/changelog/2026-11-03-byok-and-enterprise-custom-models-in-the-copilot-usage-api>)

Author: Allison

Published: 2026-11-04T00:32:19Z

Content type: release

Language: en

Sources: [GitHub Changelog](<https://devfeed.tech/sources/github-changelog.md>)

Topics: [API Monetization](<https://devfeed.tech/topics/api-monetization.md>), [SaaS Management](<https://devfeed.tech/topics/saas-management.md>), [Ollama](<https://devfeed.tech/topics/ollama.md>)

Tags: [account-management](<https://devfeed.tech/tags/account-management.md>), [aggregate](<https://devfeed.tech/tags/aggregate.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-usage](<https://devfeed.tech/tags/ai-usage.md>), [api](<https://devfeed.tech/tags/api.md>), [api-documentation](<https://devfeed.tech/tags/api-documentation.md>), [billing](<https://devfeed.tech/tags/billing.md>), [boolean](<https://devfeed.tech/tags/boolean.md>), [bring-your-own-key](<https://devfeed.tech/tags/bring-your-own-key.md>), [byok](<https://devfeed.tech/tags/byok.md>), [cli](<https://devfeed.tech/tags/cli.md>), [copilot](<https://devfeed.tech/tags/copilot.md>), [custom](<https://devfeed.tech/tags/custom.md>), [enterprise](<https://devfeed.tech/tags/enterprise.md>), [enterprise-management-tools](<https://devfeed.tech/tags/enterprise-management-tools.md>), [github](<https://devfeed.tech/tags/github.md>), [github-copilot](<https://devfeed.tech/tags/github-copilot.md>), [improvement](<https://devfeed.tech/tags/improvement.md>), [key](<https://devfeed.tech/tags/key.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [model](<https://devfeed.tech/tags/model.md>), [models](<https://devfeed.tech/tags/models.md>), [reports](<https://devfeed.tech/tags/reports.md>)

## AI overview

The Copilot usage metrics API now separates local BYOK from enterprise custom model requests. Local BYOK is configured by developers and sent directly to their provider key or local model; client telemetry reports it through `used_local_byok`, `totals_by_local_byok`, and active-user counts, but may undercount activity or tokens. Enterprise custom models are configured by admins and routed through GitHub; server-side `is_custom_enterprise_model` flags their entries in `totals_by_client`, including requests from IDEs. When a model is both Copilot-hosted and custom, it appears in separate entries. The fields are available in enterprise and organization reports at user and aggregate levels, with 1-day and 28-day reports; there is no backfill for earlier days. Existing totals are unchanged. Access requires the Copilot usage metrics policy to be enabled and a role with `View Copilot Metrics` permission.

## Source excerpt

The Copilot usage metrics API now shows bring your own key (BYOK) usage across GitHub Copilot, so you can separate it from Copilot-hosted model usage. Reports cover two kinds of... The post BYOK and enterprise custom models in the Copilot usage API appeared first on The GitHub Blog.