NexGen Cloud Billing API

Billing endpoints expose your account's billing history, current credit balance, payment history, and usage costs. Use these to reconcile spend, build internal cost reports, or trigger alerts when balances drop below a threshold.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/nexgen-cloud-billing-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

nexgen-cloud-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nexgen Cloud Billing API
  version: '1.0'
  description: 'Operations tagged Billing across 2 of this provider''s published API definitions: nexgen-cloud-hyperstack-openapi.json, nexgen-cloud-infrahub-api-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://infrahub-api.nexgencloud.com/v1
tags:
- name: Billing
  description: Billing endpoints expose your account's billing history, current credit balance, payment history, and usage costs. Use these to reconcile spend, build internal cost reports, or trigger alerts when balances drop below a threshold.
paths:
  /billing/billing/history:
    get:
      tags:
      - Billing
      summary: Retrieve Billing History for a specific Billing Cycle
      description: Returns billing history for the specified billing cycle. The response includes 'incurred_bill', 'non_discounted_bill', 'vm_cost', 'volume_cost'.
      operationId: Get_User_Billing_History
      parameters:
      - name: start_date
        in: query
        required: true
        description: Date should be formatted in YYYY-MM-DDTHH:MM:SS
        schema:
          type: string
        example: '2026-05-01T00:00:00'
      - name: end_date
        in: query
        required: true
        description: Date should be formatted in YYYY-MM-DDTHH:MM:SS
        schema:
          type: string
        example: '2026-05-07T17:48:42'
      - name: graph
        in: query
        description: Set this value to "true" for getting graph value
        schema:
          type: boolean
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationLevelBillingHistoryResponseModel'
              example:
                status: true
                message: Biling History Retrieved Successfully.
                billing_history:
                  org_id: 5341
                  billing_history:
                  - attributes:
                      id: 9d8a4f10-2c5d-4b14-8f5a-1e6c8e8b2d3f
                    metrics:
                      incurred_bill: 1.8618369809542292
                      non_discounted_bill: 3.0973724763553148
                      vm_cost: 1.8323197487221545
                      volume_cost: 0.013217769698367875
                      contract_cost: 0
                      snapshot_cost: 0.0017161291466639998
                      bucket_cost: 1.4799118041992184e-11
                      ais_token_cost: 0
                      ais_workload_cost: 0
                  total_count: 1
              examples:
                default:
                  summary: Successful response
                  value:
                    status: true
                    message: Biling History Retrieved Successfully.
                    billing_history:
                      org_id: 5341
                      billing_history:
                      - attributes:
                          id: 9d8a4f10-2c5d-4b14-8f5a-1e6c8e8b2d3f
                        metrics:
                          incurred_bill: 1.8618369809542292
                          non_discounted_bill: 3.0973724763553148
                          vm_cost: 1.8323197487221545
                          volume_cost: 0.013217769698367875
                          contract_cost: 0
                          snapshot_cost: 0.0017161291466639998
                          bucket_cost: 1.4799118041992184e-11
                          ais_token_cost: 0
                          ais_workload_cost: 0
                      total_count: 1
        '400':
          description: 'Bad Request


            Common cause: `error_reason: bad_request`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
              examples:
                default:
                  summary: Bad Request
                  value:
                    status: false
                    message: The query parameter 'start_date' and 'end_date' must be in the format YYYY-MM-DDTHH:MM:SS
                    error_reason: bad_request
              example:
                status: false
                message: The query parameter 'start_date' and 'end_date' must be in the format YYYY-MM-DDTHH:MM:SS
                error_reason: bad_request
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
              examples: {}
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
              examples: {}
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
              examples: {}
        '500':
          description: Internal Server Error
          content:
            application/json:
              examples: {}
      security:
      - apiKey: []
    servers:
    - url: https://infrahub-api.nexgencloud.com/v1
  /billing/billing/history/bucket:
    get:
      tags:
      - Billing
      summary: Get bucket billing history
      description: Returns billing history of buckets for the specified billing cycle. The response includes 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'.
      operationId: List_Bucket_Billing_History
      parameters:
      - name: start_date
        in: query
        required: true
        description: Date should be formatted in YYYY-MM-DDTHH:MM:SS
        schema:
          type: string
        example: '2026-05-01T00:00:00'
      - name: end_date
        in: query
        required: true
        description: Date should be formatted in YYYY-MM-DDTHH:MM:SS
        schema:
          type: string
        example: '2026-05-07T17:48:43'
      - name: search
        in: query
        description: Search by resource "Name" or "ID"
        schema:
          type: string
      - name: per_page
        in: query
        description: Number of items to return per page
        schema:
          type: integer
      - name: page
        in: query
        description: Page number of results to return.
        schema:
          type: integer
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceLevelBucketBillingHistoryResponseModel'
              example:
                success: true
                message: Billing History for Bucket Retrieved Successfully.
                billing_history_bucket:
                  org_id: 8429
                  billing_history:
                  - attributes:
                      id: b18e3f72-4a5d-4c9e-8b7f-0a3c1d2e4f56
                      infrahub_id: 7613
                      resource_name: uimap-bucket-test
                      status: ACTIVE
                    metrics:
                      incurred_bill: 1.4799118041992184e-11
                      non_discounted_bill: 1.4799118041992184e-11
                      price_per_hour: 1.479911804199218e-10
                      non_discounted_price_per_hour: 1.479911804199218e-10
                      usage_time: 1680
                      size: 7.62939453125e-06
                  total_count: 1
                  pagination:
                    page: 1
                    per_page: 10
                    pages: 1
                    total_count: 1
              examples:
                default:
                  summary: Successful response
                  value:
                    success: true
                    message: Billing History for Bucket Retrieved Successfully.
                    billing_history_bucket:
                      org_id: 8429
                      billing_history:
                      - attributes:
                          id: b18e3f72-4a5d-4c9e-8b7f-0a3c1d2e4f56
                          infrahub_id: 7613
                          resource_name: uimap-bucket-test
                          status: ACTIVE
                        metrics:
                          incurred_bill: 1.4799118041992184e-11
                          non_discounted_bill: 1.4799118041992184e-11
                          price_per_hour: 1.479911804199218e-10
                          non_discounted_price_per_hour: 1.479911804199218e-10
                          usage_time: 1680
                          size: 7.62939453125e-06
                      total_count: 1
                      pagination:
                        page: 1
                        per_page: 10
                        pages: 1
                        total_count: 1
        '400':
          description: 'Bad Request


            Common cause: `error_reason: bad_request`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
              examples:
                default:
                  summary: Bad Request
                  value:
                    status: false
                    message: The query parameter 'start_date' and 'end_date' must be in the format YYYY-MM-DDTHH:MM:SS
                    error_reason: bad_request
              example:
                status: false
                message: The query parameter 'start_date' and 'end_date' must be in the format YYYY-MM-DDTHH:MM:SS
                error_reason: bad_request
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
              examples: {}
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
              examples: {}
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
              examples: {}
        '500':
          description: Internal Server Error
          content:
            application/json:
              examples: {}
      security:
      - apiKey: []
    servers:
    - url: https://infrahub-api.nexgencloud.com/v1
  /billing/billing/history/bucket/{bucket_id}:
    get:
      tags:
      - Billing
      summary: Get snapshot billing history
      description: Retrieve billing history of a specific Bucket for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
      operationId: Get_Bucket_billing_history
      parameters:
      - name: bucket_id
        in: path
        required: true
        schema:
          type: integer
        description: ID of the bucket.
      - name: start_date
        in: query
        description: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
        schema:
          type: string
      - name: end_date
        in: query
        description: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceLevelBucketBillingDetailsResponseModel'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '500':
          description: Internal Server Error
          content: {}
      security:
      - apiKey: []
    servers:
    - url: https://infrahub-api.nexgencloud.com/v1
  /billing/billing/history/bucket/{bucket_id}/graph:
    get:
      tags:
      - Billing
      summary: Get bucket hourly cost datapoints
      description: Returns hourly cost datapoints for a Bucket for a specified billing cycle. The response includes 'incurred_bill' graph datapoints.
      operationId: Buckets_billing_history_hourly_chart
      parameters:
      - name: bucket_id
        in: path
        required: true
        schema:
          type: integer
        description: ID of the bucket.
      - name: start_date
        in: query
        description: Date should be formatted in YYYY-MM-DDTHH:MM:SS
        schema:
          type: string
      - name: end_date
        in: query
        description: Date should be formatted in YYYY-MM-DDTHH:MM:SS
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceLevelGraphBillingDetailsBucket'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '500':
          description: Internal Server Error
          content: {}
      security:
      - apiKey: []
    servers:
    - url: https://infrahub-api.nexgencloud.com/v1
  /billing/billing/history/cluster:
    get:
      tags:
      - Billing
      summary: List cluster billing history
      description: Returns billing history of clusters for the specified billing cycle. The response includes 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'.
      operationId: List_Clusters_billing_history
      parameters:
      - name: start_date
        in: query
        required: true
        description: Date should be formatted in YYYY-MM-DDTHH:MM:SS
        schema:
          type: string
      - name: end_date
        in: query
        required: true
        description: Date should be formatted in YYYY-MM-DDTHH:MM:SS
        schema:
          type: string
      - name: search
        in: query
        description: Search by resource "Name" or "ID"
        schema:
          type: string
      - name: per_page
        in: query
        description: Number of items to return per page
        schema:
          type: integer
      - name: page
        in: query
        description: Page number of results to return.
        schema:
          type: integer
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceLevelClusterBillingHistoryResponseModel'
        '400':
          description: 'Bad Request


            Common cause: `error_reason: bad_request`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
              examples:
                default:
                  summary: Bad Request
                  value:
                    status: false
                    message: The query parameter 'start_date' and 'end_date' must be in the format YYYY-MM-DDTHH:MM:SS
                    error_reason: bad_request
              example:
                status: false
                message: The query parameter 'start_date' and 'end_date' must be in the format YYYY-MM-DDTHH:MM:SS
                error_reason: bad_request
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
              examples: {}
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
              examples: {}
        '404':
          description: 'Not Found


            Common cause: `error_reason: not_found`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
              examples:
                default:
                  summary: Not Found
                  value:
                    status: false
                    message: 'No cluster data found for 2026-05-01T00:00:00 - 2026-05-07T17:48:43 '
                    error_reason: not_found
              example:
                status: false
                message: 'No cluster data found for 2026-05-01T00:00:00 - 2026-05-07T17:48:43 '
                error_reason: not_found
        '500':
          description: Internal Server Error
          content:
            application/json:
              examples: {}
      security:
      - apiKey: []
    servers:
    - url: https://infrahub-api.nexgencloud.com/v1
  /billing/billing/history/cluster/{cluster_id}:
    get:
      tags:
      - Billing
      summary: Get cluster billing history
      description: Returns the accrued cost, hourly rate, and billable hours for a Kubernetes cluster over a date range you specify. The same figures are broken down by individual node, so you can see which nodes account for the total.
      operationId: Get_Cluster_billing_history
      parameters:
      - name: cluster_id
        in: path
        required: true
        schema:
          type: integer
        description: ID of the cluster.
      - name: start_date
        in: query
        required: true
        description: Date should be formatted in YYYY-MM-DDTHH:MM:SS
        schema:
          type: string
      - name: end_date
        in: query
        required: true
        description: Date should be formatted in YYYY-MM-DDTHH:MM:SS
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceLevelClusterBillingDetailsResponseModel'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '500':
          description: Internal Server Error
          content: {}
      security:
      - apiKey: []
    servers:
    - url: https://infrahub-api.nexgencloud.com/v1
  /billing/billing/history/cluster/{cluster_id}/graph:
    get:
      tags:
      - Billing
      summary: Get cluster hourly cost datapoints
      description: Returns hourly cost datapoints for a Cluster for a specified billing cycle. The response includes 'incurred_bill' graph datapoints.
      operationId: Get_cluster_billing_history_graph
      parameters:
      - name: cluster_id
        in: path
        required: true
        schema:
          type: integer
        description: ID of the cluster.
      - name: start_date
        in: query
        required: true
        description: Date should be formatted in YYYY-MM-DDTHH:MM:SS
        schema:
          type: string
      - name: end_date
        in: query
        required: true
        description: Date should be formatted in YYYY-MM-DDTHH:MM:SS
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceLevelClusterGraphBillingDetailsResponseModel'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '500':
          description: Internal Server Error
          content: {}
      security:
      - apiKey: []
    servers:
    - url: https://infrahub-api.nexgencloud.com/v1
  /billing/billing/history/contract:
    get:
      tags:
      - Billing
      summary: Get contract billing history
      description: Returns billing history of contracts for the specified billing cycle. The response includes 'description', gpu_type','infrahub_id', 'status', 'incurred_bill', 'price_per_hour'.
      operationId: List_billing_contract_history
      parameters:
      - name: start_date
        in: query
        required: true
        description: Date should be formatted in YYYY-MM-DDTHH:MM:SS
        schema:
          type: string
      - name: end_date
        in: query
        required: true
        description: Date should be formatted in YYYY-MM-DDTHH:MM:SS
        schema:
          type: string
      - name: search
        in: query
        description: Search by Contract "Description" or "ID"
        schema:
          type: string
      responses:
        '400':
          description: 'Bad Request


            Common cause: `error_reason: bad_request`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
              examples:
                default:
                  summary: Bad Request
                  value:
                    status: false
                    message: The query parameter 'start_date' and 'end_date' must be in the format YYYY-MM-DDTHH:MM:SS
                    error_reason: bad_request
              example:
                status: false
                message: The query parameter 'start_date' and 'end_date' must be in the format YYYY-MM-DDTHH:MM:SS
                error_reason: bad_request
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
              examples: {}
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
              examples: {}
        '404':
          description: 'Not Found


            Common cause: `error_reason: not_found`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
              examples:
                default:
                  summary: Not Found
                  value:
                    status: false
                    message: Billing History for Contracts does not exist.
                    error_reason: not_found
              example:
                status: false
                message: Billing History for Contracts does not exist.
                error_reason: not_found
        '500':
          description: Internal Server Error
          content:
            application/json:
              examples: {}
      security:
      - apiKey: []
    servers:
    - url: https://infrahub-api.nexgencloud.com/v1
  /billing/billing/history/data_synthesis:
    get:
      tags:
      - Billing
      summary: List data-synthesis billing history
      description: Returns billing history of data_synthesis for the specified billing cycle.
      operationId: Get_data_synthesis_billing_history
      parameters:
      - name: start_date
        in: query
        required: true
        description: Date should be formatted in YYYY-MM-DDTHH:MM:SS
        schema:
          type: string
      - name: end_date
        in: query
        required: true
        description: Date should be formatted in YYYY-MM-DDTHH:MM:SS
        schema:
          type: string
      - name: search
        in: query
        description: Search by resource "Name" or "ID"
        schema:
          type: string
      - name: per_page
        in: query
        description: Number of items to return per page
        schema:
          type: integer
      - name: page
        in: query
        description: Page number of results to return.
        schema:
          type: integer
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenBasedBillingHistoryResponse'
        '400':
          description: 'Bad Request


            Common cause: `error_reason: bad_request`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
              examples:
                default:
                  summary: Bad Request
                  value:
                    status: false
                    message: The query parameter 'start_date' and 'end_date' must be in the format YYYY-MM-DDTHH:MM:SS
                    error_reason: bad_request
              example:
                status: false
                message: The query parameter 'start_date' and 'end_date' must be in the format YYYY-MM-DDTHH:MM:SS
                error_reason: bad_request
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
              examples: {}
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
              examples: {}
        '404':
          description: 'Not Found


            Common cause: `error_reason: not_found`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
              examples:
                default:
                  summary: Not Found
                  value:
                    status: false
                    message: 'No data_synthesis data found for 2026-05-01T00:00:00 - 2026-05-07T17:48:58 '
                    error_reason: not_found
              example:
                status: false
                message: 'No data_synthesis data found for 2026-05-01T00:00:00 - 2026-05-07T17:48:58 '
                error_reason: not_found
        '500':
          description: Internal Server Error
          content:
            application/json:
              examples: {}
      security:
      - apiKey: []
    servers:
    - url: https://infrahub-api.nexgencloud.com/v1
  /billing/billing/history/data_synthesis/{resource_id}:
    get:
      tags:
      - Billing
      description: Retrieve billing history for a specific Data Synthesis resource.
      operationId: Get_data_synthesis_history_for_resource
      parameters:
      - name: resource_id
        in: path
        required: true
        schema:
          type: integer
        description: ID of the resource.
      - name: start_date
        in: query
        required: true
        description: ISO 8601 timestamp (YYYY-MM-DDTHH:MM:SS) bounding the query range.
        schema:
          type: string
      - name: end_date
        in: query
        required: true
        description: ISO 8601 timestamp (YYYY-MM-DDTHH:MM:SS) bounding the query range.
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataSynthesisBillingHistoryDetailsResponseSchema'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '500':
          description: Internal Server Error
          content: {}
      security:
      - apiKey: []
      summary: Get data-synthesis billing history for a resource
    servers:
    - url: https://infrahub-api.nexgencloud.com/v1
  /billing/billing/history/data_synthesis/{resource_id}/graph:
    get:
      tags:
      - Billing
      summary: Get data-synthesis hourly cost datapoints
      description: Returns hourly cost datapoints for a data synthesis job for a specified billing cycle.
      operationId: Get_data_synthesis_billing_history_graph
      parameters:
      - name: resource_id
        in: path
        required: true
        schema:
          type: integer
        description: ID of the resource.
      - name: start_date
        in: query
        required: true
        description: Date should be formatted in YYYY-MM-DDTHH:MM:SS
        schema:
          type: string
      - name: end_date
        in: query
        required: true
        description: Date should be formatted in YYYY-MM-DDTHH:MM:SS
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataSynthesisBillingHistoryDetailsResponseSchema'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '500':
          description: Internal Server Error
          content: {}
      security:
      - apiKey: []
    servers:
    - url: https://infrahub-api.nexgencloud.com/v1
  /billing/billing/history/fine_tuning:
    get:
      tags:
      - Billing
      summary: List model-evaluation billing history
      description: Returns billing history of fine_tuning for the specified billing cycle.
      operationId: Get_fine-tuning_bil

# --- truncated at 32 KB (210 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/nexgen-cloud/refs/heads/main/openapi/nexgen-cloud-billing-api-openapi.yml