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

# The published rate card

> Generated from the same constants that charge a request, so the page a customer reads and the amount they are billed cannot drift apart.



## OpenAPI

````yaml /api-reference/billing.json get /api/billing/pricing
openapi: 3.1.0
info:
  title: truscan billing
  version: 1.0.0
  description: >-
    Credits, metering and top-ups. Money is counted in MICRO-DOLLARS (millionths
    of a dollar) as integers everywhere, so $7.00 per 1,000 requests is exactly
    7,000 micros per request. Floats drift, and a billing system that drifts
    gets disputed. Every amount is accompanied by a pre-formatted display string
    so no client reimplements money formatting. All responses use the {success,
    result, message} envelope except health and the webhook.
servers:
  - url: https://api.truscan.co
    description: Production
security: []
paths:
  /api/billing/pricing:
    get:
      summary: The published rate card
      description: >-
        Generated from the same constants that charge a request, so the page a
        customer reads and the amount they are billed cannot drift apart.
      responses:
        '200':
          description: Rate card
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                  result:
                    $ref: '#/components/schemas/RateCard'
        '401':
          $ref: '#/components/responses/Failure'
components:
  schemas:
    RateCard:
      type: object
      properties:
        tiers:
          type: array
          items:
            $ref: '#/components/schemas/TierCard'
        free_grant_micros:
          type: integer
        free_grant_display:
          type: string
        included_results:
          type: integer
          example: 10
    TierCard:
      type: object
      properties:
        tier:
          $ref: '#/components/schemas/Tier'
        label:
          type: string
          example: Instant, Fast, Auto
        lines:
          type: array
          items:
            type: object
            properties:
              label:
                type: string
              amount:
                type: string
                example: $7.00
              unit:
                type: string
                example: / 1k requests (1-10 results)
    Failure:
      type: object
      properties:
        success:
          type: boolean
          const: false
        message:
          type: string
          description: Written for a person.
        result:
          type: object
          properties:
            code:
              type: string
              enum:
                - insufficient_credits
                - payments_unavailable
                - invalid_amount
                - unauthorized
                - validation_failed
                - internal_error
                - upstream_unavailable
    Tier:
      type: string
      enum:
        - instant
        - fast
        - auto
        - deep
        - deep_reasoning
      description: instant, fast and auto share a price because they share a recall budget.
  responses:
    Failure:
      description: >-
        The envelope with success false. result carries the machine-readable
        code and nothing else.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Failure'

````