Copilot usage API separates BYOK and enterprise custom models
The Copilot usage metrics API now shows bring-your-own-key usage separately from Copilot-hosted models. Local BYOK covers developer keys and local models such as Ollama, Foundry Local, LM Studio and llama-server, while enterprise custom models are configured by admins and routed through GitHub. Both appear in enterprise and organization 1-day and 28-day reports at user and aggregate level.
- Local BYOK is reported via used_local_byok and totals_by_local_byok.
- Enterprise custom models are marked with is_custom_enterprise_model.
- Covers user and aggregate levels in 1-day and 28-day reports.
APIPricing
Original evidence · 2026-11-03 16h
GitHub Copilot Changelog ↗Based on original textWhy it matters
Separating BYOK and enterprise custom models from hosted usage is a prerequisite for enterprise cost accounting.