---
title: "Purchase additional credits"
method: POST
path: "/api/billing/topup"
tags: ["billing"]
---

# Purchase additional credits

`POST /api/billing/topup`

[cloud-only] Purchases a one-time credit top-up using the user's payment method on file.

## Request body

- object
  - `amount` integer, required — Number of credits to purchase

## Response `200`

Top-up successful

- CreateTopupResponse — [cloud-only] Response after successfully purchasing a credit top-up.
  - `billing_op_id` string, required — Billing operation ID to poll for status via GET /api/billing/ops/{id}
  - `topup_id` string, required — Unique identifier for the top-up request (same as billing_op_id, deprecated)
  - `status` 'pending' | 'completed' | 'failed', required — Current status of the top-up
  - `amount_cents` integer, required — Amount being charged in cents

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `500` — Internal server error

## Changes

- **2026-05-22** `c4db9e1283df` — 1 breaking, 2 warning, 4 info
  - removed the required property `credits_remaining` from the response with the `200` status
  - removed the optional property `credits_total` from the response with the `200` status
  - removed the optional property `credits_used` from the response with the `200` status
  - added the required property `amount_cents` to the response with the `200` status
  - …3 more
- **2026-05-22** `09a5075587c8` — 2 info
  - api operation id `topUpCredits` removed and replaced with `createTopup`
  - added the non-success response with the status `500`
- **2026-05-08** `c9640fded659` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/api/billing/topup/post.md)

---

[API](https://skmtc.dev/comfy-org/apis/comfyui-api.md) · [All operations](https://skmtc.dev/comfy-org/apis/comfyui-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/comfy-org/comfyui-api/revisions/c4db9e1283df/schema)
