Lev

Lev Billing API

The Billing API from Lev — 2 operation(s) for billing.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 2

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/external/v2/billing/summary Get subscription metadata and credit balance · Get subscription metadata and credit balance for the active account #
Ask an LLM
“What subscription plan is my account on and how much credit do we have?”
“Can I see credit balance and subscription status in one call?”
Tell an agent
Show my subscription metadata and credit balance.
Get the active account's credit balance and subscription details.
GET /api/external/v2/billing/credits/balance Get the credit balance · Get the credit balance for the active account #
Ask an LLM
“How many Lev credits are left on my account?”
“What is my current credit balance?”
Tell an agent
Show my credit balance.
Get the number of credits remaining on the active account.

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/lev:lev-billing-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

lev-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lev Billing API
  version: 2026-03
  description: Build on Lev with AI-friendly API docs, agent guides, and production integration recipes.
servers:
- url: https://api.lev.com
  description: Production API
tags:
- name: Billing
paths:
  /api/external/v2/billing/summary:
    get:
      operationId: getBillingSummary
      summary: Get subscription metadata and credit balance for the active account
      description: 'Get subscription metadata and credit balance for the active account


        Docs page: https://www.lev.com/docs/build/billing'
      tags:
      - Billing
      parameters: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  request_id:
                    type: string
                  timestamp:
                    type: string
                    format: date-time
                  data:
                    $ref: '#/components/schemas/BillingSummary'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
        '403':
          description: 'Missing required scope: billing:read'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
      security:
      - bearerAuth: []
      x-lev-docs-page: https://www.lev.com/docs/build/billing
      x-lev-headers:
      - 'Authorization: Bearer <token>'
      - 'X-Origin-App: <client-name>'
  /api/external/v2/billing/credits/balance:
    get:
      operationId: getBillingCreditsBalance
      summary: Get the credit balance for the active account
      description: 'Get the credit balance for the active account


        Docs page: https://www.lev.com/docs/build/billing'
      tags:
      - Billing
      parameters: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  request_id:
                    type: string
                  timestamp:
                    type: string
                    format: date-time
                  data:
                    $ref: '#/components/schemas/Credits'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
        '403':
          description: 'Missing required scope: billing:read'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
      security:
      - bearerAuth: []
      x-lev-docs-page: https://www.lev.com/docs/build/billing
      x-lev-headers:
      - 'Authorization: Bearer <token>'
      - 'X-Origin-App: <client-name>'
components:
  schemas:
    BillingSummary:
      type: object
      properties:
        subscription:
          $ref: '#/components/schemas/Subscription'
        credits:
          $ref: '#/components/schemas/Credits'
    ApiError:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
    ApiErrorEnvelope:
      type: object
      properties:
        request_id:
          type: string
        error:
          $ref: '#/components/schemas/ApiError'
    Credits:
      type: object
      properties:
        enabled:
          type: boolean
        balance:
          type: integer
          nullable: true
        unit:
          type: string
    Subscription:
      type: object
      properties:
        type:
          type: string
          nullable: true
        status:
          type: string
          nullable: true
        billing_cycle:
          type: string
          nullable: true
        end_date:
          type: string
          nullable: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key or JWT
x-provenance:
  method: harvested
  publisher: Lev
  source: https://www.lev.com/docs/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)