> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vidjutsu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Set auto top-up

> Turn auto top-up on or off. When usage takes your wallet below `threshold_usd` (default $10), or a render is refused for credits, the card you saved at sign-up is charged `amount_usd` (default $10), at most 5 times a day. A declined card turns it off until you save a card again. `GET /usage` shows the setting. 409 before your first payment. Needs a key with the `billing` scope.



## OpenAPI

````yaml /openapi/spec.json post /billing/auto-top-up
openapi: 3.1.0
info:
  title: VidJutsu Cloud API
  version: '2026-11-03'
  description: >-
    Video editing built for agents: upload takes, edit a timeline with history,
    and render it on cloud machines. The same operations are MCP tools at
    https://api.vidjutsu.ai/mcp.
servers:
  - url: https://api.vidjutsu.ai
security:
  - bearer: []
tags:
  - name: Sign-up and sign-in
  - name: Account
  - name: API keys
  - name: Billing
  - name: Media
  - name: Uploads
  - name: Projects
  - name: History
  - name: Shot list
  - name: Layouts
  - name: Audio
  - name: Look and check
  - name: Motion graphics
  - name: Live updates
  - name: Comments
  - name: Renders
  - name: Publishing
  - name: Status
paths:
  /billing/auto-top-up:
    post:
      tags:
        - Billing
      summary: Set auto top-up
      description: >-
        Turn auto top-up on or off. When usage takes your wallet below
        `threshold_usd` (default $10), or a render is refused for credits, the
        card you saved at sign-up is charged `amount_usd` (default $10), at most
        5 times a day. A declined card turns it off until you save a card again.
        `GET /usage` shows the setting. 409 before your first payment. Needs a
        key with the `billing` scope.
      operationId: billing_auto_top_up
      parameters:
        - name: VidJutsu-Version
          in: header
          required: false
          description: >-
            The API version you wrote your integration against, a date. Without
            it you get the latest version. The current version is `2026-11-03`.
            See https://docs.vidjutsu.ai/api-reference/introduction#versioning.
          schema:
            type: string
            pattern: ^\d{4}-\d{2}-\d{2}$
            example: '2026-11-03'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AutoTopUpRequest'
      responses:
        '200':
          description: The setting
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutoTopUpSetting'
        '401':
          description: No API key or token, or it isn't valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: 'forbidden missing_scope: this key lacks the billing scope.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: 'No saved card yet: use POST /billing/checkout first.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        default:
          description: >-
            400 invalid_request (an amount or threshold out of range, or not
            whole cents)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    AutoTopUpRequest:
      type: object
      required:
        - enabled
      properties:
        enabled:
          type: boolean
          description: Turn auto top-up on or off.
        threshold_usd:
          oneOf:
            - type: number
            - type: string
              pattern: ^\d{1,6}(\.\d{1,2})?$
          description: >-
            Top up when usage takes your balance below this many dollars. Whole
            cents, above 0 and up to 500. Default 10, or your saved value.
        amount_usd:
          oneOf:
            - type: number
            - type: string
              pattern: ^\d{1,6}(\.\d{1,2})?$
          description: >-
            Dollars, in whole cents, from 10 to 500 (for example `25` or
            `"12.50"`). Default 59, or your saved value.
    AutoTopUpSetting:
      type: object
      required:
        - auto_top_up
      properties:
        auto_top_up:
          type:
            - object
            - 'null'
          description: Null when auto top-up is off.
          properties:
            enabled:
              type: boolean
              description: False after a declined card, until you save a card again.
            threshold_micros:
              type: integer
              description: Top up below this balance, in micro-dollars.
            amount_micros:
              type: integer
              description: Each automatic charge, in micro-dollars.
            last_failure:
              type:
                - string
                - 'null'
              description: Why the last automatic charge failed, if it did.
            last_failure_at:
              type:
                - number
                - 'null'
              description: When the last automatic charge failed, in Unix milliseconds.
    Error:
      type: object
      description: >-
        Every error has a stable `code` and a `message`. Billing and limit
        errors add the fields that tell you how to fix them. See
        https://docs.vidjutsu.ai/errors.
      required:
        - code
        - message
        - request_id
      properties:
        code:
          type: string
          enum:
            - unauthenticated
            - forbidden
            - no_account
            - payment_required
            - upgrade_required
            - plan_limit
            - rate_limited
            - not_found
            - invalid_request
            - conflict
            - payload_too_large
            - upstream_error
            - service_unavailable
          description: Stable error code.
        message:
          type: string
          description: What went wrong, in plain words.
        reason:
          type: string
          description: >-
            Finer cause, for example `no_plan`, `insufficient_credits`,
            `payment_failed`, `spend_limit`, `stale_head`.
        checkout_url:
          type: string
          description: >-
            402 `no_plan`: a Stripe Checkout link to add a card and make your
            first payment.
        top_up_url:
          type: string
          description: >-
            402 `insufficient_credits` or `payment_failed`: a Stripe link to add
            credits to your wallet.
        upgrade_url:
          type: string
          description: >-
            402 `upgrade_required`: a link to move to a plan that has the
            feature.
        media_deletes_at:
          type: string
          format: date-time
          description: >-
            402 `payment_failed` (wallet below zero): when your stored media
            will be deleted unless you top up.
        contact_url:
          type: string
          description: '403 plan_limit: where to ask about Enterprise.'
        retry_after_seconds:
          type: integer
          description: '429: when to try again (also sent as a Retry-After header).'
        latest_version:
          type: string
          description: '400 unknown_version: the newest API version.'
        request_id:
          type: string
          description: >-
            Your Idempotency-Key, or a generated id. Quote it when you contact
            support.
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: >-
        A VidJutsu API key (`vj_live_...`) from POST /auth/verify or POST /keys,
        or an OAuth access token (MCP clients).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.