slideforge-dev Billing API

The billing API from slideforge-dev — 14 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 19

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 /v1/billing/profile Get my company's billing profile · Get billing profile #
Ask an LLM
“What company and tax details are on file for my invoices?”
“Where do I find my billing profile?”
Tell an agent
Show my billing profile.
Get the company name, address and tax ID on file.
PUT /v1/billing/profile Update my billing profile · Update billing profile #
Ask an LLM
“How do I add my company's tax ID to my invoices?”
“Can I change the billing address on my account?”
Tell an agent
Set my billing profile to legal name {legal_name}, country {country}.
Update my billing profile with tax ID {tax_id}.
GET /v1/billing/invoices List my invoices · List invoices #
Ask an LLM
“Which invoices have been issued for my wallet top-ups?”
“Can I see my billing history?”
Tell an agent
List my invoices.
Show the invoiceable top-ups and issued invoices.
POST /v1/billing/invoices Issue an invoice for a top-up · Issue an invoice #
Ask an LLM
“How do I get an invoice for a wallet top-up I already paid?”
“What do I need to issue an invoice?”
Tell an agent
Issue an invoice for top-up {transaction_id}.
Create an invoice for wallet top-up {transaction_id}.
GET /v1/billing/invoices/{invoice_number} Get an invoice and download URL · Get an invoice #
Ask an LLM
“Can I get an invoice and a signed link to download it?”
“Where's the download URL for a specific invoice?”
Tell an agent
Get invoice {invoice_number}.
Fetch invoice {invoice_number} and renew its download link.
POST /v1/billing/checkout Start a wallet top-up checkout · Create a Stripe Checkout session #
Ask an LLM
“How do I top up my wallet with a card?”
“What volume discounts apply to a top-up?”
Tell an agent
Create a checkout for a {amount} top-up.
Start a wallet top-up of {amount}.
GET /v1/topup/{session_id} Open a minted top-up link · Open-tracked redirect into a Stripe Checkout session #
Ask an LLM
“What happens when someone opens a minted top-up link?”
“Can I track a top-up link being opened?”
Tell an agent
Open top-up link {session_id}.
Record that top-up link {session_id} was opened.
POST /v1/billing/charge-saved Charge my saved card for a top-up · Charge saved card for instant top-up #
Ask an LLM
“Can I top up my wallet instantly from my saved card?”
“Is there a no-checkout way to add wallet credit?”
Tell an agent
Charge my saved card for a {amount} top-up.
Top up my wallet by {amount} from my saved card.
POST /v1/billing/setup-intent Set up a card for auto top-up · Create Stripe SetupIntent for card saving #
Ask an LLM
“How do I save a card so it can top up automatically?”
“What does the card setup step return?”
Tell an agent
Create a card setup intent.
Set up a card for auto top-up.
GET /v1/billing/autotopup Get my auto top-up settings · Get auto top-up settings #
Ask an LLM
“Is auto top-up enabled, and at what threshold?”
“Which card is my auto top-up using?”
Tell an agent
Show my auto top-up settings.
Get the auto top-up threshold and card.
POST /v1/billing/autotopup Save auto top-up settings · Save auto top-up settings #
Ask an LLM
“How do I turn on auto top-up when the card is confirmed?”
“What checks run before auto top-up starts?”
Tell an agent
Save auto top-up at threshold {threshold} and amount {amount}.
Enable auto top-up with card {payment_method_id} at {threshold} slides.
DELETE /v1/billing/autotopup Disable auto top-up · Disable auto top-up #
Ask an LLM
“How do I stop auto top-up without losing my saved card?”
“Can I pause auto top-up temporarily?”
Tell an agent destructive · confirm first
Disable auto top-up.
Turn off auto top-up but keep the card on file.
GET /v1/billing/plan Get my current plan · Current self-serve plan #
Ask an LLM
“Which plan am I on, and how many slides have I used?”
“What is my plan's ceiling and default offer?”
Tell an agent
Show my current plan.
Get my plan's ceiling and slides used this period.
DELETE /v1/billing/plan Cancel my plan at the end of the period · Cancel the plan at period end #
Ask an LLM
“How do I cancel my plan so it stops renewing?”
“Will I get a refund if I cancel my plan?”
Tell an agent destructive · confirm first
Cancel my plan at the end of the period.
Stop my plan renewing after this period.
POST /v1/billing/plans/checkout Start a plan checkout · Start a plan #
Ask an LLM
“How do I sign up for a paid plan?”
“Can I start a plan checkout for a specific plan?”
Tell an agent
Start a plan checkout for {plan}.
Mint a subscription checkout for plan {plan}.
POST /v1/billing/plan/overflow Allow rendering past the plan · Continue from wallet credit past the plan #
Ask an LLM
“Can I keep rendering after my plan's slides run out?”
“What happens to the plan's overflow setting?”
Tell an agent
Set plan overflow to {enabled}.
Allow rendering past the plan when {enabled}.
POST /v1/billing/plan/reactivate Keep a cancelled plan · Keep a cancelled plan #
Ask an LLM
“Can I undo a plan cancellation while it is still running?”
“How do I keep a plan after cancelling it?”
Tell an agent
Reactivate my cancelled plan.
Keep the plan running after I cancelled it.
POST /v1/billing/plan/upgrade Upgrade monthly to yearly · Upgrade monthly to yearly now #
Ask an LLM
“How do I upgrade my monthly plan to yearly?”
“Does upgrading change the plan's ceiling?”
Tell an agent
Upgrade my plan to yearly.
Switch my monthly plan to yearly now.
POST /v1/billing/portal Open the billing portal · Open the Stripe billing portal #
Ask an LLM
“How do I change my card or cancel my plan myself?”
“Where is the billing portal session for my account?”
Tell an agent
Open the billing portal.
Mint a billing portal session for my saved card.

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/slideforge-dev:slideforge-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. 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

slideforge-dev-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SlideForge Billing API
  description: 'Agent-first PowerPoint generation. Send structured slide intents (a `form` plus typed fields) or a brief; get back a real, editable `.pptx`. The draw path is deterministic — no model renders your slide, so supplied numbers and text come out verbatim. Every response carries `status`, `fidelity` and `warnings` so an automated caller can tell whether the output is usable. $0.05 per slide; an unusable slide is not billed. Authenticate with a SlideForge API key (`Authorization: Bearer sf_live_…` or `X-API-Key`) — new accounts include 60 free slides, no credit card: https://slideforge.dev/sign-up'
  version: 5.356.0
servers:
- url: https://api.slideforge.dev
security:
- bearerAuth: []
- apiKeyAuth: []
tags:
- name: Billing
paths:
  /v1/billing/profile:
    get:
      tags:
      - Billing
      summary: Get billing profile
      description: Company/tax details used on invoices.
      operationId: get_billing_profile_v1_billing_profile_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
    put:
      tags:
      - Billing
      summary: Update billing profile
      description: Create or update the company/tax details used on invoices.
      operationId: put_billing_profile_v1_billing_profile_put
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BillingProfile'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/billing/invoices:
    get:
      tags:
      - Billing
      summary: List invoices
      description: Invoiceable wallet top-ups for the caller, each with its invoice (if issued).
      operationId: list_invoices_v1_billing_invoices_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
    post:
      tags:
      - Billing
      summary: Issue an invoice
      description: Issue (or return the existing) invoice for one paid top-up. Requires a billing profile.
      operationId: post_invoice_v1_billing_invoices_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IssueInvoiceRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/billing/invoices/{invoice_number}:
    get:
      tags:
      - Billing
      summary: Get an invoice
      description: Invoice metadata + a fresh signed download URL.
      operationId: get_invoice_v1_billing_invoices__invoice_number__get
      parameters:
      - name: invoice_number
        in: path
        required: true
        schema:
          type: string
          title: Invoice Number
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/billing/checkout:
    post:
      tags:
      - Billing
      summary: Create a Stripe Checkout session
      description: 'Create a Stripe Checkout session for wallet top-up. Volume discounts: $50→+10%, $100→+15%, $200→+20%. Returns checkout_url to redirect the user to Stripe.'
      operationId: create_checkout_v1_billing_checkout_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutRequest'
        required: true
      responses:
        '200':
          description: Checkout session created
          content:
            application/json:
              schema: {}
        '400':
          description: Invalid amount
        '401':
          description: Authentication required
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/topup/{session_id}:
    get:
      tags:
      - Billing
      summary: Open-tracked redirect into a Stripe Checkout session
      description: 'Records that a minted top-up link was actually opened, then 302s to Stripe. Public: the unguessable session id is the credential; only sessions this API minted (metadata.source=slideforge_wallet) are redirected.'
      operationId: topup_redirect_v1_topup__session_id__get
      parameters:
      - name: session_id
        in: path
        required: true
        schema:
          type: string
          title: Session Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '302':
          description: Redirect to Stripe Checkout (or the outcome page)
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/billing/charge-saved:
    post:
      tags:
      - Billing
      summary: Charge saved card for instant top-up
      description: Charge the user's saved card (from auto top-up setup) for an instant wallet top-up. No Stripe Checkout redirect needed. Volume discounts apply.
      operationId: charge_saved_card_v1_billing_charge_saved_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutRequest'
        required: true
      responses:
        '200':
          description: Card charged, wallet credited
          content:
            application/json:
              schema: {}
        '400':
          description: No saved card or invalid amount
        '401':
          description: Authentication required
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/billing/setup-intent:
    post:
      tags:
      - Billing
      summary: Create Stripe SetupIntent for card saving
      description: Creates a Stripe Customer (if needed) and SetupIntent. Returns client_secret for Stripe Elements card setup.
      operationId: create_setup_intent_v1_billing_setup_intent_post
      responses:
        '200':
          description: SetupIntent created
          content:
            application/json:
              schema: {}
        '401':
          description: Authentication required
  /v1/billing/autotopup:
    get:
      tags:
      - Billing
      summary: Get auto top-up settings
      description: Returns current auto top-up configuration including card info.
      operationId: get_autotopup_v1_billing_autotopup_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
    post:
      tags:
      - Billing
      summary: Save auto top-up settings
      description: Save auto top-up settings after card is confirmed via SetupIntent. Validates threshold/amount constraints and verifies payment method with Stripe.
      operationId: save_autotopup_v1_billing_autotopup_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AutoTopupSettings'
        required: true
      responses:
        '200':
          description: Settings saved
          content:
            application/json:
              schema: {}
        '400':
          description: Invalid settings
        '401':
          description: Authentication required
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Billing
      summary: Disable auto top-up
      description: Disable auto top-up. Keeps card on file for re-enabling later.
      operationId: delete_autotopup_v1_billing_autotopup_delete
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/billing/plan:
    get:
      tags:
      - Billing
      summary: Current self-serve plan
      description: The account's plan (monthly/yearly), its ceiling and slides used this period, or null; plus the catalogue of plans and the default offer.
      operationId: get_plan_v1_billing_plan_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
    delete:
      tags:
      - Billing
      summary: Cancel the plan at period end
      description: The paid period stays usable; nothing is refunded.
      operationId: cancel_plan_v1_billing_plan_delete
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/billing/plans/checkout:
    post:
      tags:
      - Billing
      summary: Start a plan
      description: Mints a Stripe subscription checkout for the named plan. 409 while a plan is open.
      operationId: plan_checkout_v1_billing_plans_checkout_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PlanCheckoutRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/billing/plan/overflow:
    post:
      tags:
      - Billing
      summary: Continue from wallet credit past the plan
      description: 'On (the default): past the plan''s slides, renders continue at $0.05 a slide from wallet credit.'
      operationId: plan_overflow_v1_billing_plan_overflow_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PlanOverflowRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/billing/plan/reactivate:
    post:
      tags:
      - Billing
      summary: Keep a cancelled plan
      description: Undoes cancel-at-period-end while the paid period is still running; the plan renews again.
      operationId: plan_reactivate_v1_billing_plan_reactivate_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/billing/plan/upgrade:
    post:
      tags:
      - Billing
      summary: Upgrade monthly to yearly now
      description: Stripe invoices the yearly price less the unused part of the month; the ceiling resets.
      operationId: plan_upgrade_v1_billing_plan_upgrade_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/billing/portal:
    post:
      tags:
      - Billing
      summary: Open the Stripe billing portal
      description: 'Mints a Stripe Billing Portal session for this account''s saved card: change the card behind the plan, cancel. 404 when no card is on file in this Stripe mode.'
      operationId: billing_portal_v1_billing_portal_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
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    IssueInvoiceRequest:
      properties:
        transaction_id:
          type: integer
          title: Transaction Id
      type: object
      required:
      - transaction_id
      title: IssueInvoiceRequest
    PlanCheckoutRequest:
      properties:
        plan:
          type: string
          title: Plan
      type: object
      required:
      - plan
      title: PlanCheckoutRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PlanOverflowRequest:
      properties:
        enabled:
          type: boolean
          title: Enabled
      type: object
      required:
      - enabled
      title: PlanOverflowRequest
    AutoTopupSettings:
      properties:
        enabled:
          type: boolean
          title: Enabled
          default: true
        threshold:
          type: number
          title: Threshold
        amount:
          type: number
          title: Amount
        payment_method_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Payment Method Id
      type: object
      required:
      - threshold
      - amount
      title: AutoTopupSettings
    CheckoutRequest:
      properties:
        amount:
          type: number
          title: Amount
      type: object
      required:
      - amount
      title: CheckoutRequest
    BillingProfile:
      properties:
        legal_name:
          type: string
          title: Legal Name
        address_line1:
          anyOf:
          - type: string
          - type: 'null'
          title: Address Line1
        address_line2:
          anyOf:
          - type: string
          - type: 'null'
          title: Address Line2
        postcode:
          anyOf:
          - type: string
          - type: 'null'
          title: Postcode
        city:
          anyOf:
          - type: string
          - type: 'null'
          title: City
        country:
          type: string
          title: Country
        tax_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Tax Id
        email:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      type: object
      required:
      - legal_name
      - country
      title: BillingProfile
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'SlideForge API key: `Authorization: Bearer sf_live_…`. Create one at https://slideforge.dev/console/keys'
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Same key, header form — for clients that cannot set Authorization.