Sumvid Billing API

The Billing API from Sumvid, for billing.

GitHub OpenAPI

Operations 12

GET /billing/packs Billing Plans #
GET /billing/plans Billing Plans #
GET /billing/pro Billing Pro #
GET /billing/subscription Billing Subscription #
POST /billing/subscription/cancel Billing Subscription Cancel #
POST /billing/checkout Billing Checkout #
POST /billing/portal Billing Portal #
GET /billing/usage Billing Me #
GET /billing/me Billing Me #
POST /billing/launch-notice/ack Ack Launch Notice #
GET /billing/history Billing History #
POST /billing/sync-session Billing Sync Session #

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/sumvid-app:sumvid-app-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

sumvid-app-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: summarize-vid Billing API
  description: YouTube video transcript summarizer (Claude Haiku).
  version: 0.6.0
  x-guidance: 'Paid agent calls are POST /v1/summarize, POST /v1/transcript, POST /v1/channel/new, and POST /v1/json/format. Send the request with no authorization to receive HTTP 402. The payment requirements are in the PAYMENT-REQUIRED header and the JSON body. Retry with a PAYMENT-SIGNATURE header. Prices are on each operation under x-payment-info. Discovery documents: GET /.well-known/x402 and GET /.well-known/x402.json.'
tags:
- name: Billing
paths:
  /billing/packs:
    get:
      summary: Billing Plans
      description: 'One-time credit packs. Pro monthly is GET /billing/pro.


        `surface=pricing` records an anonymous server-side pricing view.'
      operationId: billing_plans_billing_packs_get
      parameters:
      - name: surface
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Surface
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditPacksResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Billing
  /billing/plans:
    get:
      summary: Billing Plans
      description: 'One-time credit packs. Pro monthly is GET /billing/pro.


        `surface=pricing` records an anonymous server-side pricing view.'
      operationId: billing_plans_billing_plans_get
      deprecated: true
      parameters:
      - name: surface
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Surface
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditPacksResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Billing
  /billing/pro:
    get:
      summary: Billing Pro
      description: 'The Pro monthly plan: $6, inline recurring price, 200-credit monthly cap.'
      operationId: billing_pro_billing_pro_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProPlanResponse'
      tags:
      - Billing
  /billing/subscription:
    get:
      summary: Billing Subscription
      description: The caller's Pro subscription, if they have started one.
      operationId: billing_subscription_billing_subscription_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionStatusResponse'
      security:
      - HTTPBearer: []
      tags:
      - Billing
  /billing/subscription/cancel:
    post:
      summary: Billing Subscription Cancel
      description: Cancel Pro at period end. Stripe's deleted webhook revokes unused credits.
      operationId: billing_subscription_cancel_billing_subscription_cancel_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionStatusResponse'
      security:
      - HTTPBearer: []
      tags:
      - Billing
  /billing/checkout:
    post:
      summary: Billing Checkout
      description: Buy a credit pack, or start Pro monthly in Stripe Checkout subscription mode.
      operationId: billing_checkout_billing_checkout_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutRequest'
        required: true
      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'
      security:
      - HTTPBearer: []
      tags:
      - Billing
  /billing/portal:
    post:
      summary: Billing Portal
      description: Subscriptions have been replaced with one-time credit purchases.
      operationId: billing_portal_billing_portal_post
      responses:
        '410':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
      tags:
      - Billing
  /billing/usage:
    get:
      summary: Billing Me
      description: Spendable credits and credits currently reserved by unfinished jobs.
      operationId: billing_me_billing_usage_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditBalanceResponse'
      security:
      - HTTPBearer: []
      tags:
      - Billing
  /billing/me:
    get:
      summary: Billing Me
      description: Spendable credits and credits currently reserved by unfinished jobs.
      operationId: billing_me_billing_me_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditBalanceResponse'
      security:
      - HTTPBearer: []
      tags:
      - Billing
  /billing/launch-notice/ack:
    post:
      summary: Ack Launch Notice
      description: Dismiss the launch-gift notice for good; it never reappears on any device.
      operationId: ack_launch_notice_billing_launch_notice_ack_post
      responses:
        '204':
          description: Successful Response
      security:
      - HTTPBearer: []
      tags:
      - Billing
  /billing/history:
    get:
      summary: Billing History
      description: The caller's credit purchases, gifts, reservations, settlements, and refunds.
      operationId: billing_history_billing_history_get
      security:
      - HTTPBearer: []
      parameters:
      - name: before_id
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: Before Id
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 50
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CreditLedgerEntry'
                title: Response Billing History Billing History Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Billing
  /billing/sync-session:
    post:
      summary: Billing Sync Session
      description: Reconcile the caller's paid checkout; safe alongside concurrent webhooks.
      operationId: billing_sync_session_billing_sync_session_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SyncSessionRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditCheckoutResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      tags:
      - Billing
components:
  schemas:
    SubscriptionStatusResponse:
      properties:
        plan:
          $ref: '#/components/schemas/ProPlanResponse'
        status:
          anyOf:
          - type: string
          - type: 'null'
          title: Status
        current_period_end:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Current Period End
        cancel_at_period_end:
          type: boolean
          title: Cancel At Period End
          default: false
        monthly_credits:
          anyOf:
          - type: integer
          - type: 'null'
          title: Monthly Credits
      type: object
      required:
      - plan
      title: SubscriptionStatusResponse
    ProPlanResponse:
      properties:
        key:
          type: string
          title: Key
        name:
          type: string
          title: Name
        interval:
          type: string
          const: month
          title: Interval
        monthly_credits:
          type: integer
          title: Monthly Credits
        amount_cents:
          type: integer
          title: Amount Cents
        currency:
          type: string
          title: Currency
      type: object
      required:
      - key
      - name
      - interval
      - monthly_credits
      - amount_cents
      - currency
      title: ProPlanResponse
    CreditPackResponse:
      properties:
        key:
          type: string
          title: Key
        credits:
          type: integer
          title: Credits
        amount_cents:
          type: integer
          title: Amount Cents
        currency:
          type: string
          title: Currency
      type: object
      required:
      - key
      - credits
      - amount_cents
      - currency
      title: CreditPackResponse
    CreditCheckoutResponse:
      properties:
        billing_model:
          type: string
          const: credits
          title: Billing Model
          default: credits
        balance:
          type: integer
          title: Balance
        reserved:
          type: integer
          title: Reserved
        launch_notice:
          type: boolean
          title: Launch Notice
          default: false
        payment_status:
          type: string
          enum:
          - paid
          - pending
          - failed
          - expired
          - refunded
          - unknown
          title: Payment Status
      type: object
      required:
      - balance
      - reserved
      - payment_status
      title: CreditCheckoutResponse
    CheckoutContinuation:
      properties:
        video_id:
          type: string
          pattern: ^[A-Za-z0-9_-]{11}$
          title: Video Id
        language:
          type: string
          maxLength: 35
          pattern: ^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$
          title: Language
        action:
          type: string
          enum:
          - summarize
          - translate
          title: Action
      type: object
      required:
      - video_id
      - language
      - action
      title: CheckoutContinuation
    CreditLedgerEntry:
      properties:
        id:
          type: integer
          title: Id
        kind:
          type: string
          title: Kind
        delta:
          type: integer
          title: Delta
        reserved_delta:
          type: integer
          title: Reserved Delta
        job_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Job Id
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
      - id
      - kind
      - delta
      - reserved_delta
      - created_at
      title: CreditLedgerEntry
    CheckoutRequest:
      properties:
        pack:
          anyOf:
          - type: string
          - type: 'null'
          title: Pack
        plan:
          anyOf:
          - type: string
          - type: 'null'
          title: Plan
        currency:
          type: string
          enum:
          - usd
          - mxn
          - brl
          title: Currency
          default: usd
        request_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Request Id
        continuation:
          anyOf:
          - $ref: '#/components/schemas/CheckoutContinuation'
          - type: 'null'
        locale:
          anyOf:
          - type: string
          - type: 'null'
          title: Locale
      type: object
      title: CheckoutRequest
      description: 'One purchase: a credit pack or the Pro monthly plan, never both.'
    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
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SyncSessionRequest:
      properties:
        session_id:
          type: string
          title: Session Id
      type: object
      required:
      - session_id
      title: SyncSessionRequest
    CheckoutResponse:
      properties:
        url:
          type: string
          title: Url
      type: object
      required:
      - url
      title: CheckoutResponse
    CreditBalanceResponse:
      properties:
        billing_model:
          type: string
          const: credits
          title: Billing Model
          default: credits
        balance:
          type: integer
          title: Balance
        reserved:
          type: integer
          title: Reserved
        launch_notice:
          type: boolean
          title: Launch Notice
          default: false
      type: object
      required:
      - balance
      - reserved
      title: CreditBalanceResponse
    CreditPacksResponse:
      properties:
        billing_model:
          type: string
          const: credits
          title: Billing Model
          default: credits
        packs:
          items:
            $ref: '#/components/schemas/CreditPackResponse'
          type: array
          title: Packs
      type: object
      required:
      - packs
      title: CreditPacksResponse
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer