---
title: "Cancel the active subscription"
method: POST
path: "/api/billing/subscription/cancel"
tags: ["billing"]
---

# Cancel the active subscription

`POST /api/billing/subscription/cancel`

[cloud-only] Cancels the authenticated user's active subscription. The subscription remains active until the end of the current billing period.

## Response `200`

Subscription cancelled

- CancelSubscriptionResponse — [cloud-only] Response after successfully cancelling a subscription.
  - `billing_op_id` string, required — Billing operation ID to poll for status via GET /api/billing/ops/{id}
  - `cancel_at` string, date-time, required — The date when the subscription will end (end of current billing period)

## Other responses

- `400` — Invalid request (e.g., no active subscription)
- `401` — Unauthorized
- `500` — Internal server error

## Changes

- **2026-05-22** `c4db9e1283df` — 3 breaking, 4 warning, 2 info
  - removed the required property `id` from the response with the `200` status
  - removed the required property `plan_id` from the response with the `200` status
  - removed the required property `status` from the response with the `200` status
  - removed the optional property `cancel_at_period_end` from the response with the `200` status
  - …5 more
- **2026-05-22** `09a5075587c8` — 2 info
  - added the non-success response with the status `400`
  - 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/subscription/cancel/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)
