> ## Documentation Index
> Fetch the complete documentation index at: https://modelrunner.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Usage Summary

> Spend and request statistics for the authenticated account over a trailing window. `totalSpent` sums what was actually charged (exact decimal string), catalog inference and Serverless GPU worker time together — `serverlessSpent` breaks out the latter; `successRate` excludes failed generations (`billingStatus: 'failed'`), not just failed requests.



## OpenAPI

````yaml /platform-openapi.json get /billing/usage-summary
openapi: 3.1.0
info:
  title: ModelRunner Platform API
  version: 1.0.0
  description: >-
    Platform APIs: model catalog, search and collections; model pricing rate
    cards; the Serverless GPU catalog and deployment templates; file uploads and
    your asset library; account balance and usage; and webhook delivery
    management. Catalog reads are public; account-scoped routes authenticate
    with your API key (`Authorization: Key <MODELRUNNER_KEY>`). Request
    lifecycle endpoints (submit/status/result and the request list) live on the
    queue host — see the Queue API reference.
servers:
  - url: https://api.modelrunner.run
security: []
paths:
  /billing/usage-summary:
    get:
      summary: Get Usage Summary
      description: >-
        Spend and request statistics for the authenticated account over a
        trailing window. `totalSpent` sums what was actually charged (exact
        decimal string), catalog inference and Serverless GPU worker time
        together — `serverlessSpent` breaks out the latter; `successRate`
        excludes failed generations (`billingStatus: 'failed'`), not just failed
        requests.
      parameters:
        - name: days
          in: query
          schema:
            type: integer
            default: 7
            maximum: 365
      responses:
        '200':
          description: Usage summary.
          content:
            application/json:
              schema:
                type: object
                properties:
                  period:
                    type: string
                    examples:
                      - 7d
                  totalSpent:
                    type: string
                  serverlessSpent:
                    type: string
                    description: >-
                      The Serverless GPU share of `totalSpent` — settled
                      deployment worker-time charges. Always present; `"0"` on
                      accounts with no serverless usage.
                  requestCount:
                    type: integer
                  successRate:
                    type: number
                    description: Percent, one decimal.
                  topModels:
                    type: array
                    items:
                      type: object
                      properties:
                        modelEndpoint:
                          type: string
                        count:
                          type: integer
                        totalCost:
                          type: string
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Authenticated, but not allowed for this caller.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - apiKeyAuth: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message.
        request_id:
          type: string
          description: Correlation id for support.
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Use the format: Key modelrunner_key'

````