CharGen Billing API

Programmatic wallet top-ups. OPTIONAL - most developers top up in the portal at char-gen.com/developers; this exists so your own systems can produce a payment link (e.g. from a low-balance alert).

Operations 1

POST /partner/v1/billing/checkout-session Create a Stripe Checkout link to fund your wallet #

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/char-gen-com:char-gen-com-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

char-gen-com-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: CharGen Partner Billing API
  description: 'Wholesale generation API for images, video, audio, 3D models and structured D&D entities. Authenticate every call with `Authorization: Bearer YOUR_API_KEY` (keys are minted in the developer portal at char-gen.com/developers). Generations are asynchronous: POST returns 202 with an id, poll GET /partner/v1/generations/{id} for status and results (renders on POST /partner/v1/generations, structured D&D entities on POST /partner/v1/entities). Billing is a prepaid USD wallet; GET /partner/v1/models lists your per-model prices.'
  version: v1
servers:
- url: https://api.char-gen.com
  description: Production
tags:
- name: Billing
  description: Programmatic wallet top-ups. OPTIONAL - most developers top up in the portal at char-gen.com/developers; this exists so your own systems can produce a payment link (e.g. from a low-balance alert).
paths:
  /partner/v1/billing/checkout-session:
    post:
      tags:
      - Billing
      summary: Create a Stripe Checkout link to fund your wallet
      description: Returns a Stripe Checkout URL for the given amount ($10 to $100,000). No money moves on this call - a human opens the URL in a browser and pays there; the wallet is credited automatically once Stripe confirms the payment (usually seconds). Requires the `billing` scope.
      operationId: checkout
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TopUpRequestDto'
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/TopUpCreatedDto'
        '400':
          description: Bad Request
          content:
            '*/*':
              schema:
                type: object
                additionalProperties:
                  type: string
        '401':
          description: Unauthorized
          content:
            '*/*':
              schema:
                type: object
                additionalProperties:
                  type: string
        '402':
          description: Payment Required
          content:
            '*/*':
              schema:
                type: object
                additionalProperties:
                  type: string
        '404':
          description: Not Found
          content:
            '*/*':
              schema:
                type: object
                additionalProperties:
                  type: string
        '409':
          description: Conflict
          content:
            '*/*':
              schema:
                type: object
                additionalProperties:
                  type: string
        '422':
          description: Unprocessable Entity
          content:
            '*/*':
              schema:
                type: object
                additionalProperties:
                  type: string
components:
  schemas:
    TopUpRequestDto:
      type: object
      properties:
        amountUsdCents:
          type: integer
          format: int64
    TopUpCreatedDto:
      type: object
      properties:
        checkoutUrl:
          type: string
        sessionId:
          type: string