inference-sh Billing API

The billing API from inference-sh — 39 operation(s) for billing.

Operations 43

GET /billing Get billing #
GET /billing/balance Get billing balance #
POST /billing/charge Create billing charge #
POST /billing/checkout Create billing checkout #
POST /billing/checkout/success Create billing checkout success #
DELETE /billing/payment-method Delete billing payment method #
POST /billing/payment-method/setup Create billing payment method setup #
POST /billing/payment-method/success Create billing payment method success #
GET /billing/payments Get billing payments #
POST /billing/payments/list Create billing payments list #
GET /billing/service-fee Get billing service fee #
GET /billing/settings Get billing settings #
POST /billing/settings Create billing settings #
POST /billing/vouchers/redeem Create billing vouchers redeem #
GET /credit-grants Get credit grants #
GET /credit-grants/active Get credit grants active #
GET /credit-grants/breakdown Get credit grants breakdown #
POST /credit-grants/list Create credit grants list #
GET /entitlements Get entitlements #
GET /entitlements/usage Get entitlements usage #
GET /invoices Get invoices #
GET /invoices/details-complete Get invoices details complete #
POST /invoices/from-payment/{paymentRecordId} Create invoices from payment by payment record id #
GET /invoices/payments-without-invoice Get invoices payments without invoice #
GET /invoices/{id} Get invoices by id #
GET /invoices/{id}/pdf Get invoices by id pdf #
POST /invoices/{id}/send-email Create invoices by id send email #
DELETE /subscription Delete subscription #
GET /subscription Get subscription #
POST /subscription Create subscription #
PUT /subscription Replace subscription #
POST /subscription/addon Create subscription addon #
DELETE /subscription/addon/{teamPlanId} Delete subscription addon by team plan id #
GET /subscription/addons Get subscription addons #
POST /subscription/portal Create subscription portal #
POST /subscription/resume Create subscription resume #
GET /transactions Get transactions #
POST /transactions/list Create transactions list #
GET /usage/breakdown Get usage breakdown #
POST /usage/cel/evaluate Create usage cel evaluate #
POST /usage/pricing/convert Create usage pricing convert #
GET /usage/summary Get usage summary #
GET /usage/tasks/{taskID}/cost Get usage tasks by task id cost #

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/inference-sh:inference-sh-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 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. See our Privacy Policy and Terms.

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

OpenAPI Specification

inference-sh-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: inference.sh Billing API
  version: '2'
servers:
- url: https://api.inference.sh
tags:
- name: Billing
paths:
  /billing:
    get:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Get billing
      x-summary-source: derived
      operationId: getBilling
      x-operation-id-source: derived
  /billing/balance:
    get:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Get billing balance
      x-summary-source: derived
      operationId: getBillingBalance
      x-operation-id-source: derived
  /billing/charge:
    post:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Create billing charge
      x-summary-source: derived
      operationId: postBillingCharge
      x-operation-id-source: derived
  /billing/checkout:
    post:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Create billing checkout
      x-summary-source: derived
      operationId: postBillingCheckout
      x-operation-id-source: derived
  /billing/checkout/success:
    post:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Create billing checkout success
      x-summary-source: derived
      operationId: postBillingCheckoutSuccess
      x-operation-id-source: derived
  /billing/payment-method:
    delete:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Delete billing payment method
      x-summary-source: derived
      operationId: deleteBillingPaymentMethod
      x-operation-id-source: derived
  /billing/payment-method/setup:
    post:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Create billing payment method setup
      x-summary-source: derived
      operationId: postBillingPaymentMethodSetup
      x-operation-id-source: derived
  /billing/payment-method/success:
    post:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Create billing payment method success
      x-summary-source: derived
      operationId: postBillingPaymentMethodSuccess
      x-operation-id-source: derived
  /billing/payments:
    get:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Get billing payments
      x-summary-source: derived
      operationId: getBillingPayments
      x-operation-id-source: derived
  /billing/payments/list:
    post:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Create billing payments list
      x-summary-source: derived
      operationId: postBillingPaymentsList
      x-operation-id-source: derived
  /billing/service-fee:
    get:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Get billing service fee
      x-summary-source: derived
      operationId: getBillingServiceFee
      x-operation-id-source: derived
  /billing/settings:
    get:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Get billing settings
      x-summary-source: derived
      operationId: getBillingSettings
      x-operation-id-source: derived
    post:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Create billing settings
      x-summary-source: derived
      operationId: postBillingSettings
      x-operation-id-source: derived
  /billing/vouchers/redeem:
    post:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Create billing vouchers redeem
      x-summary-source: derived
      operationId: postBillingVouchersRedeem
      x-operation-id-source: derived
  /credit-grants:
    get:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Get credit grants
      x-summary-source: derived
      operationId: getCreditGrants
      x-operation-id-source: derived
  /credit-grants/active:
    get:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Get credit grants active
      x-summary-source: derived
      operationId: getCreditGrantsActive
      x-operation-id-source: derived
  /credit-grants/breakdown:
    get:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Get credit grants breakdown
      x-summary-source: derived
      operationId: getCreditGrantsBreakdown
      x-operation-id-source: derived
  /credit-grants/list:
    post:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Create credit grants list
      x-summary-source: derived
      operationId: postCreditGrantsList
      x-operation-id-source: derived
  /entitlements:
    get:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Get entitlements
      x-summary-source: derived
      operationId: getEntitlements
      x-operation-id-source: derived
  /entitlements/usage:
    get:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Get entitlements usage
      x-summary-source: derived
      operationId: getEntitlementsUsage
      x-operation-id-source: derived
  /invoices:
    get:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Get invoices
      x-summary-source: derived
      operationId: getInvoices
      x-operation-id-source: derived
  /invoices/details-complete:
    get:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Get invoices details complete
      x-summary-source: derived
      operationId: getInvoicesDetailsComplete
      x-operation-id-source: derived
  /invoices/from-payment/{paymentRecordId}:
    post:
      tags:
      - Billing
      parameters:
      - name: paymentRecordId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
      summary: Create invoices from payment by payment record id
      x-summary-source: derived
      operationId: postInvoicesFromPaymentByPaymentRecordId
      x-operation-id-source: derived
  /invoices/payments-without-invoice:
    get:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Get invoices payments without invoice
      x-summary-source: derived
      operationId: getInvoicesPaymentsWithoutInvoice
      x-operation-id-source: derived
  /invoices/{id}:
    get:
      tags:
      - Billing
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
      summary: Get invoices by id
      x-summary-source: derived
      operationId: getInvoicesById
      x-operation-id-source: derived
  /invoices/{id}/pdf:
    get:
      tags:
      - Billing
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
      summary: Get invoices by id pdf
      x-summary-source: derived
      operationId: getInvoicesByIdPdf
      x-operation-id-source: derived
  /invoices/{id}/send-email:
    post:
      tags:
      - Billing
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
      summary: Create invoices by id send email
      x-summary-source: derived
      operationId: postInvoicesByIdSendEmail
      x-operation-id-source: derived
  /subscription:
    delete:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Delete subscription
      x-summary-source: derived
      operationId: deleteSubscription
      x-operation-id-source: derived
    get:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Get subscription
      x-summary-source: derived
      operationId: getSubscription
      x-operation-id-source: derived
    post:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Create subscription
      x-summary-source: derived
      operationId: postSubscription
      x-operation-id-source: derived
    put:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Replace subscription
      x-summary-source: derived
      operationId: putSubscription
      x-operation-id-source: derived
  /subscription/addon:
    post:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Create subscription addon
      x-summary-source: derived
      operationId: postSubscriptionAddon
      x-operation-id-source: derived
  /subscription/addon/{teamPlanId}:
    delete:
      tags:
      - Billing
      parameters:
      - name: teamPlanId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
      summary: Delete subscription addon by team plan id
      x-summary-source: derived
      operationId: deleteSubscriptionAddonByTeamPlanId
      x-operation-id-source: derived
  /subscription/addons:
    get:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Get subscription addons
      x-summary-source: derived
      operationId: getSubscriptionAddons
      x-operation-id-source: derived
  /subscription/portal:
    post:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Create subscription portal
      x-summary-source: derived
      operationId: postSubscriptionPortal
      x-operation-id-source: derived
  /subscription/resume:
    post:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Create subscription resume
      x-summary-source: derived
      operationId: postSubscriptionResume
      x-operation-id-source: derived
  /transactions:
    get:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Get transactions
      x-summary-source: derived
      operationId: getTransactions
      x-operation-id-source: derived
  /transactions/list:
    post:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Create transactions list
      x-summary-source: derived
      operationId: postTransactionsList
      x-operation-id-source: derived
  /usage/breakdown:
    get:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Get usage breakdown
      x-summary-source: derived
      operationId: getUsageBreakdown
      x-operation-id-source: derived
  /usage/cel/evaluate:
    post:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Create usage cel evaluate
      x-summary-source: derived
      operationId: postUsageCelEvaluate
      x-operation-id-source: derived
  /usage/pricing/convert:
    post:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Create usage pricing convert
      x-summary-source: derived
      operationId: postUsagePricingConvert
      x-operation-id-source: derived
  /usage/summary:
    get:
      tags:
      - Billing
      responses:
        '200':
          description: Success
      summary: Get usage summary
      x-summary-source: derived
      operationId: getUsageSummary
      x-operation-id-source: derived
  /usage/tasks/{taskID}/cost:
    get:
      tags:
      - Billing
      parameters:
      - name: taskID
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
      summary: Get usage tasks by task id cost
      x-summary-source: derived
      operationId: getUsageTasksByTaskIDCost
      x-operation-id-source: derived