token based cost in Report API #213803
Unanswered
ashekar-apptio
asked this question in
Apps, API and Webhooks
Replies: 1 comment
|
Short answer: no, you cannot get that from the billing reports endpoint. It only returns the gross and net amounts, with no breakdown by token or by model. To work out the distributed cost across tokens, use the Copilot usage metrics API instead.
The docs page for the endpoints is https://docs.github.com/en/rest/copilot/copilot-usage-metrics Let me know if it works. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Question
💬 Feature/Topic Area
API
Body
We have Integration from our application to Copilot where we use the API api.github.com/enterprises/{enterprise}/settings/billing/reports/
In this API response we only get token direction and gross and net amount but our internal application required Distributed cost across tokens, Can we include this as a part of the report? as other AI SaaS providers are supporting this calculation
All reactions