v1
Northflank docs for LLMs
API
CLI
JS Client

Team / Billing /

Get usage

Gets usage details for a given billing hour.

Required permission

Account > Billing > General > Read

Path parameters

    • timestamp

      string required
      Unix timestamp of the billing hour

Query parameters

    • teamId

      string
      The ID of the team to filter by.
    • projectId

      string
      The ID of the project to filter by.
    • resourceType

      string
      The resource type to filter by (e.g. service, job, addon, volume).
      one of
      job, service, addon, volume, opentofu-job, llm-model-deployment, external-addon

Response body

  • {object}
    Response object.
    • data

      {object} required
      Result data.
      • timestamp

        number
        The Unix timestamp of the billing hour.
      • paasUsage

        {object}
        The PaaS usage breakdown for this hour. The drill-down depth depends on the active filters.
        • price

          {object}
          • total

            number
            The total PaaS price, in cents.
          • cpu

            number
            The CPU usage price, in cents.
          • memory

            number
            The memory usage price, in cents.
          • storage

            number
            The storage usage price, in cents.
          • gpu

            number
            The GPU usage price, in cents.
        • teams

          [array] required
          An array of teams with price totals. Projects are included when a teamId or projectId filter is applied, or when there is only one team. Resources are included when a projectId or resourceType filter is applied.
          • {object}
            • id

              string
              Identifier for the team.
            • name

              string
              The name of the team.
            • price

              {object}
              The team's PaaS price. When a projectId or resourceType filter is applied, this reflects only the filtered slice (e.g. one project, or one resource type across the team).
              • total

                number
                The total PaaS price, in cents.
              • cpu

                number
                The CPU usage price, in cents.
              • memory

                number
                The memory usage price, in cents.
              • storage

                number
                The storage usage price, in cents.
              • gpu

                number
                The GPU usage price, in cents.
            • projects

              [array]
              An array of projects for this team. Present when a teamId or projectId filter is applied, or when the response contains only one team.
              • {object}
                • id

                  string
                  Identifier for the project.
                • name

                  string
                  The name of the project.
                • price

                  {object}
                  The project's PaaS price. When a resourceType filter is applied, this reflects only that resource type's spend within the project.
                  • total

                    number
                    The total PaaS price, in cents.
                  • cpu

                    number
                    The CPU usage price, in cents.
                  • memory

                    number
                    The memory usage price, in cents.
                  • storage

                    number
                    The storage usage price, in cents.
                  • gpu

                    number
                    The GPU usage price, in cents.
                • resourceTypes

                  [array]
                  An array of resource types. Present when a projectId or resourceType filter is applied.
                  • {object}
                    • resourceType

                      string
                      The type of the resource (service, job, addon, volume, etc.).
                    • price

                      {object}
                      • total

                        number
                        The total PaaS price, in cents.
                      • cpu

                        number
                        The CPU usage price, in cents.
                      • memory

                        number
                        The memory usage price, in cents.
                      • storage

                        number
                        The storage usage price, in cents.
                      • gpu

                        number
                        The GPU usage price, in cents.
                    • resources

                      [array]
                      An array of resources of this type.
                      • {object}
                        • id

                          string
                          Identifier for the resource.
                        • name

                          string
                          The name of the resource.
                        • price

                          {object}
                          • total

                            number
                            The total PaaS price, in cents.
                          • cpu

                            number
                            The CPU usage price, in cents.
                          • memory

                            number
                            The memory usage price, in cents.
                          • storage

                            number
                            The storage usage price, in cents.
                          • gpu

                            number
                            The GPU usage price, in cents.
      • byocUsage

        {object}
        • price

          {object}
          The customer-level BYOC price total. Always reflects the full customer total, regardless of drill-down filters.
          • total

            number
            The total BYOC price, in cents.
          • vcpu

            number
            The vCPU usage price, in cents.
          • memory

            number
            The memory usage price, in cents.
          • gpuMemory

            number
            The GPU memory usage price, in cents.
          • cluster

            number
            The cluster usage price, in cents.
API
CLI
JS Client

GET /v1/billing/usage/{timestamp}

GET /v1/teams/{teamId}/billing/usage/{timestamp}

Example response

200 OK

Hourly usage detail.

JSON

© 2026 Northflank Ltd. All rights reserved.

northflank.com / Terms / Privacy / feedback@northflank.com