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

# Get usage

> Get detailed usage history for a specific date range.



## OpenAPI

````yaml /api-reference/openapi.json get /billing/usage
openapi: 3.1.0
info:
  title: Nova Cloud API
  description: >-
    REST API for the Nova Cloud GPU rental platform. Manage virtual machines,
    SSH keys, billing, and more.
  version: 1.0.0
  contact:
    name: Nova Cloud Support
    email: support@nova-cloud.ai
    url: https://nova-cloud.ai
servers:
  - url: https://api.nova-cloud.ai
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Authentication
    description: User registration, login, and token management
  - name: API Keys
    description: Create and manage API keys for programmatic access
  - name: SSH Keys
    description: Upload and manage SSH public keys for VM access
  - name: Virtual Machines
    description: Create, manage, and monitor GPU-powered VMs
  - name: Search & Pricing
    description: Browse available GPU offers and current pricing
  - name: Billing
    description: Balance, usage, transactions, and payment management
  - name: Reservations
    description: Reserved instance pricing and management
paths:
  /billing/usage:
    get:
      tags:
        - Billing
      summary: Get usage
      description: Get detailed usage history for a specific date range.
      operationId: get_usage
      parameters:
        - name: start_date
          in: query
          schema:
            type: string
            format: date
          description: 'Start date (ISO 8601: YYYY-MM-DD)'
        - name: end_date
          in: query
          schema:
            type: string
            format: date
          description: 'End date (ISO 8601: YYYY-MM-DD)'
      responses:
        '200':
          description: Usage details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageResponse'
components:
  schemas:
    UsageResponse:
      type: object
      properties:
        logs:
          type: array
          items:
            $ref: '#/components/schemas/UsageLogResponse'
        total_cost:
          type: number
        total_hours:
          type: number
        period_start:
          type: string
        period_end:
          type: string
        vm_breakdown:
          type: array
          items:
            $ref: '#/components/schemas/VMBreakdown'
    UsageLogResponse:
      type: object
      properties:
        id:
          type: string
        vm_id:
          type: string
        timestamp:
          type: string
          format: date-time
        gpu_seconds:
          type: integer
        storage_gb:
          type: integer
        network_bytes:
          type: integer
        gpu_cost:
          type: number
        storage_cost:
          type: number
        network_cost:
          type: number
        total_cost:
          type: number
    VMBreakdown:
      type: object
      properties:
        vm_id:
          type: string
        vmid:
          type: integer
        gpu_model:
          type: string
        hours:
          type: number
        cost:
          type: number
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or API Key
      description: Use a JWT access token or API key (prefixed with nv_)

````