0latency-ai Billing API

The billing API from 0latency-ai — 4 operation(s) for billing.

Operations 4

POST /billing/create-checkout Create Checkout #
GET /billing/subscription Get Subscription #
POST /billing/portal Create Portal #
POST /billing/webhook Stripe Webhook #

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/0latency-ai:0latency-ai-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

0latency-ai-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: 0latency Ai Billing API
  version: 0.1.0
  description: 'Operations tagged billing across 2 of this provider''s published API definitions: 0latency-ai-openapi.json, app-0latency-ai-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: Billing
paths:
  /billing/create-checkout:
    post:
      tags:
      - Billing
      summary: Create Checkout
      description: Create a Stripe Checkout Session for Pro or Scale subscription.
      operationId: create_checkout_billing_create_checkout_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: zl_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Zl Token
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutRequest'
              default:
                plan: pro
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckoutResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /billing/subscription:
    get:
      tags:
      - Billing
      summary: Get Subscription
      description: Get current user's subscription status.
      operationId: get_subscription_billing_subscription_get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: zl_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Zl Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /billing/portal:
    post:
      tags:
      - Billing
      summary: Create Portal
      description: Create a Stripe Customer Portal session for self-service management.
      operationId: create_portal_billing_portal_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: zl_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Zl Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PortalResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /billing/webhook:
    post:
      tags:
      - Billing
      summary: Stripe Webhook
      description: Handle Stripe webhook events. Public endpoint — verifies signature.
      operationId: stripe_webhook_billing_webhook_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    CheckoutResponse:
      properties:
        checkout_url:
          type: string
          title: Checkout Url
      type: object
      required:
      - checkout_url
      title: CheckoutResponse
    PortalResponse:
      properties:
        portal_url:
          type: string
          title: Portal Url
      type: object
      required:
      - portal_url
      title: PortalResponse
    CheckoutRequest:
      properties:
        plan:
          type: string
          title: Plan
          default: pro
      type: object
      title: CheckoutRequest
    SubscriptionResponse:
      properties:
        has_subscription:
          type: boolean
          title: Has Subscription
        plan:
          type: string
          title: Plan
        plan_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Plan Name
        status:
          anyOf:
          - type: string
          - type: 'null'
          title: Status
        current_period_start:
          anyOf:
          - type: string
          - type: 'null'
          title: Current Period Start
        current_period_end:
          anyOf:
          - type: string
          - type: 'null'
          title: Current Period End
        stripe_subscription_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Stripe Subscription Id
      type: object
      required:
      - has_subscription
      - plan
      title: SubscriptionResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
x-refined-from:
- 0latency-ai-openapi.json
- app-0latency-ai-openapi.json