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

# Usage



## OpenAPI

````yaml /api-reference/openapi.json get /v1/usage
openapi: 3.1.0
info:
  description: >-
    Account-isolated orchestration and metering. Only the non-executing mock
    provider is available; no GPU resources are provisioned.
  title: Lunar Neo Cloud Control Plane
  version: 0.1.0
servers: []
security: []
paths:
  /v1/usage:
    get:
      tags:
        - Usage and billing
      summary: Usage
      operationId: usage_v1_usage_get
      parameters:
        - in: query
          name: limit
          required: false
          schema:
            default: 50
            maximum: 100
            minimum: 1
            title: Limit
            type: integer
        - in: query
          name: cursor
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Cursor
        - in: query
          name: period_start
          required: false
          schema:
            anyOf:
              - format: date-time
                type: string
              - type: 'null'
            title: Period Start
        - in: query
          name: period_end
          required: false
          schema:
            anyOf:
              - format: date-time
                type: string
              - type: 'null'
            title: Period End
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageSummary'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The request did not pass validation.
      security:
        - HTTPBearer: []
components:
  schemas:
    UsageSummary:
      properties:
        allocated_seconds:
          title: Allocated Seconds
          type: integer
        concurrency_limit:
          title: Concurrency Limit
          type: integer
        currency:
          const: USD
          default: USD
          title: Currency
          type: string
        execution_seconds:
          title: Execution Seconds
          type: integer
        items:
          items:
            $ref: '#/components/schemas/UsageRead'
          title: Items
          type: array
        job_count:
          title: Job Count
          type: integer
        monthly_budget_usd:
          anyOf:
            - type: string
            - type: 'null'
          title: Monthly Budget Usd
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
        period_end:
          format: date-time
          title: Period End
          type: string
        period_start:
          format: date-time
          title: Period Start
          type: string
        total_cost_usd:
          title: Total Cost Usd
          type: string
      required:
        - period_start
        - period_end
        - total_cost_usd
        - allocated_seconds
        - execution_seconds
        - job_count
        - monthly_budget_usd
        - concurrency_limit
        - items
        - next_cursor
      title: UsageSummary
      type: object
    ErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Request Id
      required:
        - error
        - request_id
      title: ErrorResponse
      type: object
    UsageRead:
      properties:
        allocated_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Allocated At
        allocated_seconds:
          title: Allocated Seconds
          type: integer
        attempt:
          title: Attempt
          type: integer
        billable:
          title: Billable
          type: boolean
        cost_usd:
          title: Cost Usd
          type: string
        created_at:
          format: date-time
          title: Created At
          type: string
        execution_ended_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Execution Ended At
        execution_seconds:
          title: Execution Seconds
          type: integer
        execution_started_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Execution Started At
        id:
          title: Id
          type: string
        job_id:
          title: Job Id
          type: string
        pricing_snapshot:
          additionalProperties: true
          title: Pricing Snapshot
          type: object
        ready_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Ready At
        released_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Released At
      required:
        - id
        - job_id
        - attempt
        - allocated_at
        - ready_at
        - execution_started_at
        - execution_ended_at
        - released_at
        - allocated_seconds
        - execution_seconds
        - cost_usd
        - billable
        - pricing_snapshot
        - created_at
      title: UsageRead
      type: object
    ErrorBody:
      properties:
        code:
          title: Code
          type: string
        details:
          anyOf:
            - items:
                $ref: '#/components/schemas/ValidationErrorDetail'
              type: array
            - type: 'null'
          title: Details
        message:
          title: Message
          type: string
      required:
        - code
        - message
      title: ErrorBody
      type: object
    ValidationErrorDetail:
      properties:
        field:
          title: Field
          type: string
        type:
          title: Type
          type: string
      required:
        - field
        - type
      title: ValidationErrorDetail
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http

````

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