Get-GitHubBillingGithubBillingAiCreditUsageReportUser
SYNOPSIS
Get billing AI credit usage report for a user
SYNTAX
__AllParameterSets
Get-GitHubBillingGithubBillingAiCreditUsageReportUser [-Username] <string> [-Year <long>]
[-Month <long>] [-Day <long>] [-Model <string>] [-Product <string>] [-Accept <string>]
ALIASES
This cmdlet has the following aliases,
- Get-GHBillingGithubBillingAiCreditUsageReportUser
DESCRIPTION
The Get-GitHubBillingGithubBillingAiCreditUsageReportUser cmdlet invokes the GET method of the /users/{username}/settings/billing/ai_credit/usage endpoint (Get billing AI credit usage report for a user)
Gets a report of AI credit usage for a user.
Note: Only data from the past 24 months is accessible via this endpoint.
Endpoint: GET /users/{username}/settings/billing/ai_credit/usage API version: 2026-03-10
EXAMPLES
EXAMPLE 1
Get-GitHubBillingGithubBillingAiCreditUsageReportUser -Username 'octocat'
Invokes GET /users/{username}/settings/billing/ai_credit/usage
PARAMETERS
-Accept
The Accept header (media type) of the request Default value: application/vnd.github+json
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Day
If specified, only return results for a single day. The value of ‘day’ is an integer between ‘1’ and ‘31’. If no ‘year’ or ‘month’ is specified, the default ‘year’ and ‘month’ are used.
Query parameter [ day ]
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Model
The model name to query usage for. The name is not case sensitive.
Query parameter [ model ]
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Month
If specified, only return results for a single month. The value of ‘month’ is an integer between ‘1’ and ‘12’. Default value is the current month. If no year is specified the default ‘year’ is used.
Query parameter [ month ]
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Product
The product name to query usage for. The name is not case sensitive.
Query parameter [ product ]
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Username
The handle for the GitHub user account.
Path parameter [ username ]
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Year
If specified, only return results for a single year. The value of ‘year’ is an integer with four digits representing a year. For example, ‘2025’. Default value is the current year.
Query parameter [ year ]
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
Objects with properties named like the path parameters can be piped to this function
{{ Fill in the Description }}
System.String
{{ Fill in the Description }}
OUTPUTS
The response of the GitHub API (objects
{{ Fill in the Description }}
NOTES
OperationId: billing/get-github-billing-ai-credit-usage-report-user Category: billing / usage