gnt.ai Billing API

The billing API from gnt.ai — 7 operation(s) for billing.

GitHub OpenAPI

Operations 7

GET /v1/billing/status Billing Status #
GET /v1/billing/payment-method Payment Method #
GET /v1/billing/invoices Invoices #
POST /v1/billing/checkout Checkout #
POST /v1/billing/portal Portal #
POST /v1/billing/cancel Cancel #
POST /v1/billing/webhook 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/gntai-dev:gntai-dev-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

gntai-dev-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AI GNT Billing API
  version: 0.1.0
servers:
- url: https://api.gntai.dev
  description: Production
tags:
- name: Billing
paths:
  /v1/billing/status:
    get:
      tags:
      - Billing
      summary: Billing Status
      operationId: billing_status_v1_billing_status_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingStatus'
      security:
      - HTTPBearer: []
  /v1/billing/payment-method:
    get:
      tags:
      - Billing
      summary: Payment Method
      operationId: payment_method_v1_billing_payment_method_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/PaymentMethodInfo'
                - type: 'null'
                title: Response Payment Method V1 Billing Payment Method Get
      security:
      - HTTPBearer: []
  /v1/billing/invoices:
    get:
      tags:
      - Billing
      summary: Invoices
      operationId: invoices_v1_billing_invoices_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/InvoiceInfo'
                type: array
                title: Response Invoices V1 Billing Invoices Get
      security:
      - HTTPBearer: []
  /v1/billing/checkout:
    post:
      tags:
      - Billing
      summary: Checkout
      operationId: checkout_v1_billing_checkout_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutRequest'
              default:
                tier: base
      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: []
  /v1/billing/portal:
    post:
      tags:
      - Billing
      summary: Portal
      operationId: portal_v1_billing_portal_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PortalResponse'
      security:
      - HTTPBearer: []
  /v1/billing/cancel:
    post:
      tags:
      - Billing
      summary: Cancel
      description: 'In-app cancel -- the whole point is not sending the customer to

        Stripe''s portal for this. Schedules cancellation at period end (see

        cancel_subscription''s own docstring) and confirms by email right

        away, synchronously, rather than waiting on the webhook that also

        syncs this same state for cancellations started elsewhere.'
      operationId: cancel_v1_billing_cancel_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancelResponse'
      security:
      - HTTPBearer: []
  /v1/billing/webhook:
    post:
      tags:
      - Billing
      summary: Webhook
      operationId: webhook_v1_billing_webhook_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
components:
  schemas:
    PaymentMethodInfo:
      properties:
        brand:
          type: string
          title: Brand
        last4:
          type: string
          title: Last4
        exp_month:
          type: integer
          title: Exp Month
        exp_year:
          type: integer
          title: Exp Year
      type: object
      required:
      - brand
      - last4
      - exp_month
      - exp_year
      title: PaymentMethodInfo
    CheckoutResponse:
      properties:
        url:
          type: string
          title: Url
      type: object
      required:
      - url
      title: CheckoutResponse
    CheckoutRequest:
      properties:
        tier:
          type: string
          enum:
          - base
          - pro
          title: Tier
          default: base
      type: object
      title: CheckoutRequest
    BillingStatus:
      properties:
        entitled:
          type: boolean
          title: Entitled
        subscription_status:
          anyOf:
          - type: string
          - type: 'null'
          title: Subscription Status
        trial_ends_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Trial Ends At
        plan_tier:
          type: string
          title: Plan Tier
        monthly_actions_used:
          type: integer
          title: Monthly Actions Used
        monthly_actions_cap:
          type: integer
          title: Monthly Actions Cap
        cancel_at_period_end:
          type: boolean
          title: Cancel At Period End
        current_period_end:
          anyOf:
          - type: string
          - type: 'null'
          title: Current Period End
      type: object
      required:
      - entitled
      - subscription_status
      - trial_ends_at
      - plan_tier
      - monthly_actions_used
      - monthly_actions_cap
      - cancel_at_period_end
      - current_period_end
      title: BillingStatus
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    InvoiceInfo:
      properties:
        id:
          type: string
          title: Id
        number:
          anyOf:
          - type: string
          - type: 'null'
          title: Number
        created:
          type: string
          title: Created
        status:
          anyOf:
          - type: string
          - type: 'null'
          title: Status
        amount_paid:
          type: integer
          title: Amount Paid
        currency:
          type: string
          title: Currency
        hosted_invoice_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Hosted Invoice Url
        invoice_pdf:
          anyOf:
          - type: string
          - type: 'null'
          title: Invoice Pdf
      type: object
      required:
      - id
      - number
      - created
      - status
      - amount_paid
      - currency
      - hosted_invoice_url
      - invoice_pdf
      title: InvoiceInfo
    CancelResponse:
      properties:
        cancel_at:
          type: string
          title: Cancel At
      type: object
      required:
      - cancel_at
      title: CancelResponse
    PortalResponse:
      properties:
        url:
          type: string
          title: Url
      type: object
      required:
      - url
      title: PortalResponse
    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
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer