Shuffle Credits API

The Credits API from Shuffle — 4 operation(s) for credits.

Operations 4

GET /api/longform-video/credits/balance Get credit balance #
GET /api/longform-video/credits/history Get credit transaction history #
POST /api/longform-video/credits/checkout Create Stripe checkout session #
POST /api/longform-video/credits/charge Charge saved card for credits #

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/addshuffle-com:addshuffle-com-credits-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

addshuffle-com-credits-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: FarCash Longform Video Credits API
  version: 1.0.0
  description: API for AI-powered long-form video generation. Supports automated and manual clip-by-clip workflows, credit management, and L402 payments.
servers:
- url: https://www.textshuffle.com
  description: Current environment
security:
- BearerAuth: []
tags:
- name: Credits
paths:
  /api/longform-video/credits/balance:
    get:
      tags:
      - Credits
      operationId: getCreditBalance
      summary: Get credit balance
      description: Returns the current credit balance, reserved amount, and available (spendable) credits.
      responses:
        '200':
          description: Credit balance
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditBalance'
  /api/longform-video/credits/history:
    get:
      tags:
      - Credits
      operationId: getCreditHistory
      summary: Get credit transaction history
      description: Returns paginated credit transaction history. Use cursor-based pagination.
      parameters:
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 20
      - name: cursor
        in: query
        schema:
          type: string
        description: Transaction ID for pagination
      responses:
        '200':
          description: Transaction history
          content:
            application/json:
              schema:
                type: object
                properties:
                  transactions:
                    type: array
                    items:
                      $ref: '#/components/schemas/CreditTransaction'
                  nextCursor:
                    type:
                    - string
                    - 'null'
  /api/longform-video/credits/checkout:
    post:
      tags:
      - Credits
      operationId: createCheckout
      summary: Create Stripe checkout session
      description: Creates a Stripe Checkout session for purchasing a credit pack. Returns the checkout URL.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - packId
              properties:
                packId:
                  type: string
                  enum:
                  - starter
                  - pro
                  - studio
                returnPath:
                  type: string
                  description: Return URL path after checkout
      responses:
        '200':
          description: Checkout session created
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                    format: uri
  /api/longform-video/credits/charge:
    post:
      tags:
      - Credits
      operationId: chargeCredits
      summary: Charge saved card for credits
      description: Charges the user's saved payment method for a credit pack. Requires a previously saved card.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - packId
              properties:
                packId:
                  type: string
                  enum:
                  - starter
                  - pro
                  - studio
      responses:
        '200':
          description: Charge result
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  error:
                    type: string
components:
  schemas:
    CreditBalance:
      type: object
      properties:
        balance:
          type: integer
          description: Total credits
        reserved:
          type: integer
          description: Credits locked for in-progress chains
        available:
          type: integer
          description: Spendable credits (balance - reserved)
        hasPaymentMethod:
          type: boolean
      required:
      - balance
      - reserved
      - available
      - hasPaymentMethod
    CreditTransaction:
      type: object
      properties:
        id:
          type: string
        amount:
          type: integer
        type:
          type: string
          enum:
          - PURCHASE
          - GENERATION_DEBIT
          - RESERVATION
          - RESERVATION_RELEASE
          - REFUND
          - L402_PURCHASE
        description:
          type:
          - string
          - 'null'
        balanceAfter:
          type: integer
        createdAt:
          type: string
          format: date-time
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Use either a Privy ID token or an API key (format: fv_<32 hex chars>)'