---
title: Payments
description: Lock-settle-release payment flow
full: false
_openapi:
  toc:
    - depth: 2
      title: Lock credits
      url: '#lock-credits'
    - depth: 2
      title: Settle charges
      url: '#settle-charges'
    - depth: 2
      title: Delegate token
      url: '#delegate-token'
  structuredData:
    headings:
      - content: Lock credits
        id: lock-credits
      - content: Settle charges
        id: settle-charges
      - content: Delegate token
        id: delegate-token
    contents:
      - content: >-
          Reserve credits from a payment token for a specific job. Either
          `amount` or `model` must be provided.
        heading: lock-credits
      - content: >-
          Finalize charges against a lock. Provide either `amount` or raw
          `usage` data.
        heading: settle-charges
      - content: Create a child payment token for a sub-agent in a multi-agent chain.
        heading: delegate-token
---

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

<APIPage document={"./openapi.json"} webhooks={[]} operations={[{"path":"/api/payments/lock","method":"post"},{"path":"/api/payments/settle","method":"post"},{"path":"/api/payments/delegate","method":"post"}]} showTitle />