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

# Get Llm Costs

> Return every supported LLM with its base pricing and the authenticated
user's all-time usage on that model in a single response.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/billing/llm-costs
openapi: 3.1.0
info:
  title: faces
  version: 0.101.0
servers: []
security: []
paths:
  /v1/billing/llm-costs:
    get:
      tags:
        - Billing
      summary: Get Llm Costs
      description: |-
        Return every supported LLM with its base pricing and the authenticated
        user's all-time usage on that model in a single response.
      operationId: get_llm_costs_v1_billing_llm_costs_get
      parameters:
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/LLMCostRow'
                title: Response Get Llm Costs V1 Billing Llm Costs Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    LLMCostRow:
      properties:
        llm_model:
          type: string
          title: Llm Model
        lab:
          anyOf:
            - type: string
            - type: 'null'
          title: Lab
        input_cost_per_million:
          type: number
          title: Input Cost Per Million
        output_cost_per_million:
          type: number
          title: Output Cost Per Million
        markup_rate:
          type: number
          title: Markup Rate
          default: 0
        prices_include_markup:
          type: boolean
          title: Prices Include Markup
          default: false
        billing_unit:
          anyOf:
            - type: string
            - type: 'null'
          title: Billing Unit
        unit_cost_usd:
          anyOf:
            - type: number
            - type: 'null'
          title: Unit Cost Usd
        billing_applies_to:
          anyOf:
            - type: string
            - type: 'null'
          title: Billing Applies To
        user_input_tokens:
          type: integer
          title: User Input Tokens
        user_output_tokens:
          type: integer
          title: User Output Tokens
        user_total_cost_usd:
          type: number
          title: User Total Cost Usd
        user_request_count:
          type: integer
          title: User Request Count
      type: object
      required:
        - llm_model
        - input_cost_per_million
        - output_cost_per_million
        - user_input_tokens
        - user_output_tokens
        - user_total_cost_usd
        - user_request_count
      title: LLMCostRow
      description: One row in the GET /v1/billing/llm-costs response.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.