OneInfer Budgets & Cost Analysis API

The Budgets & Cost Analysis API from OneInfer — 7 operation(s) for budgets & cost analysis.

GitHub OpenAPI

Operations 9

GET /v1/developer/{developer_id}/usage-cost/cost-settings Get Cost Settings #
PUT /v1/developer/{developer_id}/usage-cost/cost-settings Put Cost Settings #
POST /v1/developer/{developer_id}/usage-cost/cost-settings/rates Add Rate #
DELETE /v1/developer/{developer_id}/usage-cost/cost-settings/rates/{rate_id} Delete Rate #
GET /v1/developer/{developer_id}/usage-cost/analysis Cost Analysis #
GET /v1/developer/{developer_id}/usage-cost/budgets List Budgets #
PUT /v1/developer/{developer_id}/usage-cost/budgets Put Budget #
PUT /v1/developer/{developer_id}/usage-cost/budgets/{budget_id}/allocations Put Budget Allocations #
DELETE /v1/developer/{developer_id}/usage-cost/budgets/{budget_id} Delete Budget #

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/oneinfer-ai:oneinfer-ai-budgets-cost-analysis-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

oneinfer-ai-budgets-cost-analysis-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OneInfer Budgets & Cost Analysis API
  description: Universal LLM APIs with Bearer Token Authentication
  version: 0.1.0
tags:
- name: Budgets & Cost Analysis
paths:
  /v1/developer/{developer_id}/usage-cost/cost-settings:
    get:
      tags:
      - Budgets & Cost Analysis
      summary: Get Cost Settings
      operationId: get_cost_settings_v1_developer__developer_id__usage_cost_cost_settings_get
      parameters:
      - name: developer_id
        in: path
        required: true
        schema:
          type: string
          title: Developer Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - BearerAuth: []
    put:
      tags:
      - Budgets & Cost Analysis
      summary: Put Cost Settings
      operationId: put_cost_settings_v1_developer__developer_id__usage_cost_cost_settings_put
      parameters:
      - name: developer_id
        in: path
        required: true
        schema:
          type: string
          title: Developer Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CostSettingsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - BearerAuth: []
  /v1/developer/{developer_id}/usage-cost/cost-settings/rates:
    post:
      tags:
      - Budgets & Cost Analysis
      summary: Add Rate
      operationId: add_rate_v1_developer__developer_id__usage_cost_cost_settings_rates_post
      parameters:
      - name: developer_id
        in: path
        required: true
        schema:
          type: string
          title: Developer Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RateRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - BearerAuth: []
  /v1/developer/{developer_id}/usage-cost/cost-settings/rates/{rate_id}:
    delete:
      tags:
      - Budgets & Cost Analysis
      summary: Delete Rate
      operationId: delete_rate_v1_developer__developer_id__usage_cost_cost_settings_rates__rate_id__delete
      parameters:
      - name: developer_id
        in: path
        required: true
        schema:
          type: string
          title: Developer Id
      - name: rate_id
        in: path
        required: true
        schema:
          type: string
          title: Rate Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - BearerAuth: []
  /v1/developer/{developer_id}/usage-cost/analysis:
    get:
      tags:
      - Budgets & Cost Analysis
      summary: Cost Analysis
      description: What was billed under the org, a folder, a project or a resource ("api_key:…"), from billing debits.
      operationId: cost_analysis_v1_developer__developer_id__usage_cost_analysis_get
      parameters:
      - name: developer_id
        in: path
        required: true
        schema:
          type: string
          title: Developer Id
      - name: start
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Start
      - name: end
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: End
      - name: node_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Node Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - BearerAuth: []
  /v1/developer/{developer_id}/usage-cost/budgets:
    get:
      tags:
      - Budgets & Cost Analysis
      summary: List Budgets
      operationId: list_budgets_v1_developer__developer_id__usage_cost_budgets_get
      parameters:
      - name: developer_id
        in: path
        required: true
        schema:
          type: string
          title: Developer Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - BearerAuth: []
    put:
      tags:
      - Budgets & Cost Analysis
      summary: Put Budget
      operationId: put_budget_v1_developer__developer_id__usage_cost_budgets_put
      parameters:
      - name: developer_id
        in: path
        required: true
        schema:
          type: string
          title: Developer Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BudgetRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - BearerAuth: []
  /v1/developer/{developer_id}/usage-cost/budgets/{budget_id}/allocations:
    put:
      tags:
      - Budgets & Cost Analysis
      summary: Put Budget Allocations
      description: Allocate a budget to the folders and projects directly under its node.
      operationId: put_budget_allocations_v1_developer__developer_id__usage_cost_budgets__budget_id__allocations_put
      parameters:
      - name: developer_id
        in: path
        required: true
        schema:
          type: string
          title: Developer Id
      - name: budget_id
        in: path
        required: true
        schema:
          type: string
          title: Budget Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BudgetAllocationsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - BearerAuth: []
  /v1/developer/{developer_id}/usage-cost/budgets/{budget_id}:
    delete:
      tags:
      - Budgets & Cost Analysis
      summary: Delete Budget
      operationId: delete_budget_v1_developer__developer_id__usage_cost_budgets__budget_id__delete
      parameters:
      - name: developer_id
        in: path
        required: true
        schema:
          type: string
          title: Developer Id
      - name: budget_id
        in: path
        required: true
        schema:
          type: string
          title: Budget Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - BearerAuth: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BudgetAllocation:
      properties:
        mode:
          type: string
          enum:
          - percent
          - amount
          title: Mode
        value:
          title: Value
      type: object
      required:
      - mode
      - value
      title: BudgetAllocation
    CostSettingsRequest:
      properties:
        currency:
          type: string
          title: Currency
      type: object
      required:
      - currency
      title: CostSettingsRequest
    BudgetAllocationsRequest:
      properties:
        allocations:
          items:
            $ref: '#/components/schemas/ChildAllocation'
          type: array
          title: Allocations
      type: object
      required:
      - allocations
      title: BudgetAllocationsRequest
      description: A budget's share for each folder and project directly under its node (each resource, for a project's).
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    ChildAllocation:
      properties:
        scope:
          type: string
          enum:
          - folder
          - project
          - resource
          title: Scope
        node_id:
          type: string
          title: Node Id
        mode:
          anyOf:
          - type: string
            enum:
            - percent
            - amount
          - type: 'null'
          title: Mode
        value:
          title: Value
      type: object
      required:
      - scope
      - node_id
      title: ChildAllocation
    RateRequest:
      properties:
        kind:
          type: string
          enum:
          - gpu
          - fx
          title: Kind
        key:
          anyOf:
          - type: string
            maxLength: 80
          - type: 'null'
          title: Key
        value:
          title: Value
        effective_from:
          anyOf:
          - type: string
            format: date
          - type: 'null'
          title: Effective From
      type: object
      required:
      - kind
      - value
      title: RateRequest
    BudgetRequest:
      properties:
        scope:
          type: string
          enum:
          - org
          - folder
          - project
          - resource
          title: Scope
        node_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Node Id
        amount:
          title: Amount
        enforce:
          type: boolean
          title: Enforce
          default: false
        thresholds:
          anyOf:
          - items:
              type: integer
            type: array
          - type: 'null'
          title: Thresholds
        emails:
          items:
            type: string
          type: array
          title: Emails
        webhook_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Webhook Url
        allocation:
          anyOf:
          - $ref: '#/components/schemas/BudgetAllocation'
          - type: 'null'
      type: object
      required:
      - scope
      title: BudgetRequest
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Enter your JWT access token (without 'Bearer ' prefix)