1. Usage
Power Guard AI
  • Getting Started
    • hello-powerguard (starts here!)
    • ai-controller-guide
    • chat-controller-guide
    • health-controller-guide
    • models-controller-guide
    • usage-controller-guide
  • AI
    • Generate AI responses for form fields
      POST
    • Generate AI text completion
      POST
    • Generate embeddings for input text
      POST
  • Chat
    • Process chat completions
      POST
    • Process chat completions
      POST
  • Health
    • Check API health status
      GET
  • Models
    • List all available models
      GET
    • Get specific model information
      GET
  • Usage
    • Get API usage statistics
      GET
    • Get API usage statistics
      POST
  • Esquemas
    • Schemas
    • CompletionRequest
    • ChatCompletionChoice
    • EmbeddingRequest
    • ChatCompletionFunction
    • FunctionParameters
    • ChatCompletionMessage
    • Message
    • ChatCompletionResponse
    • QuestionModel
    • ChatCompletionToolCall
    • QuestionRequest
    • ChatCompletionUsage
    • Choice
    • QuestionValidationRules
    • Tool
    • ChoiceMessage
    • ToolFunction
    • CompletionResponse
    • DataItem
    • EmbeddingResponse
    • HealthResponseModel
    • ModelCapabilities
    • ModelInfo
    • ResponseModel
    • Role
    • SingleReadOnlyMemory
    • SingleReadOnlySpan
    • Usage
    • UsageModel
    • UsageRequest
  1. Usage

Get API usage statistics

POST
/api/Usage
Returns detailed usage statistics for the API

Requisição

Parâmetros Bodyapplication/json

Examples

Respostas

🟢200OK
text/plain
Usage statistics returned successfully
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://ai.thrust.com.br/api/Usage' \
--header 'Content-Type: application/json' \
--data-raw '{
    "TotalTokenCount": 0,
    "Model": "string",
    "Endpoint": "string"
}'
Response Response Example
{
    "MonthYear": "string",
    "Model": "string",
    "TotalRequests": 0,
    "TotalTokens": 0,
    "AverageTokensPerRequest": 0,
    "Customer": "string"
}
Modificado em 2026-03-30 20:59:39
Página anterior
Get API usage statistics
Próxima página
CompletionRequest
Built with