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

# Get Pricing

> List unit prices from Croesus, optionally filtered to one resource.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v2/external/pricing
openapi: 3.1.0
info:
  title: Lyceum Cloud API
  version: 0.1.0
servers:
  - url: https://api.lyceum.technology
    description: Production
security:
  - bearerAuth: []
paths:
  /api/v2/external/pricing:
    get:
      tags:
        - Pricing
      summary: Get Pricing
      description: List unit prices from Croesus, optionally filtered to one resource.
      operationId: get_pricing_api_v2_external_pricing_get
      parameters:
        - name: resource
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/Resource'
              - type: 'null'
            description: Filter to a single resource, e.g. vm.
            title: Resource
          description: Filter to a single resource, e.g. vm.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PricingResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Resource:
      type: string
      enum:
        - vm
        - serverless_execution
        - dedicated_inference
        - serverless_inference
        - serverless_image
        - serverless_video
      title: Resource
      description: Public-facing pricing resource — decoupled from Croesus meter slugs.
    PricingResponse:
      properties:
        prices:
          items:
            $ref: '#/components/schemas/PriceEntry'
          type: array
          title: Prices
        count:
          type: integer
          title: Count
      type: object
      required:
        - prices
        - count
      title: PricingResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PriceEntry:
      properties:
        meter_slug:
          type: string
          title: Meter Slug
        resource:
          anyOf:
            - $ref: '#/components/schemas/Resource'
            - type: 'null'
        applies_to:
          additionalProperties:
            type: string
          type: object
          title: Applies To
        unit:
          anyOf:
            - type: string
            - type: 'null'
          title: Unit
        unit_price:
          type: string
          title: Unit Price
        unit_price_per_hour:
          anyOf:
            - type: string
            - type: 'null'
          title: Unit Price Per Hour
      type: object
      required:
        - meter_slug
        - applies_to
        - unit_price
      title: PriceEntry
      description: >-
        One unit price; ``unit_price_per_hour`` is set only for per-second
        meters.
    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
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Pass an API key (prefixed `lk_`) or a JWT access token as a bearer
        token. Generate API keys in the dashboard at
        https://dashboard.lyceum.technology/api-keys.

````