---
title: "Subscribe to a billing plan"
method: POST
path: "/api/billing/subscribe"
tags: ["billing"]
---

# Subscribe to a billing plan

`POST /api/billing/subscribe`

[cloud-only] Creates a new subscription to the specified billing plan.

## Request body

- object
  - `plan_id` string, required — ID of the plan to subscribe to
  - `payment_method_id` string — Stripe payment method ID

## Response `200`

Subscription created

- SubscribeResponse — [cloud-only] Response after successfully subscribing to a billing plan.
  - `billing_op_id` string, required — Billing operation ID to poll for status via GET /api/billing/ops/{id}
  - `status` 'subscribed' | 'needs_payment_method' | 'pending_payment', required — Status of the subscription operation: - subscribed: Subscription is active immediately - needs_payment_method: User must add payment method via payment_method_url - pending_payment: Upgrade initiated, waiting for payment to complete
  - `effective_at` string, date-time — When the subscription became/becomes active (present when status=subscribed or pending_payment)
  - `payment_method_url` string — URL to redirect user to add payment method (present when status=needs_payment_method)

## Other responses

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

## Changes

- **2026-05-22** `c4db9e1283df` — 2 breaking, 7 warning, 7 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 optional property `cancel_at_period_end` from the response with the `200` status
  - removed the optional property `current_period_end` from the response with the `200` status
  - …12 more
- **2026-05-22** `09a5075587c8` — 2 info
  - api operation id `createSubscription` removed and replaced with `subscribe`
  - 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/subscribe/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)
