POST
/
cancel_subscription
Cancel subscription plan
curl --request POST \
  --url https://modelslab.com/api/v3/cancel_subscription \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "<string>",
  "key_to_cancel": "<string>"
}'
{
  "status": "success",
  "messege": "subscription cancelled successfully"
}
Before calling this endpoint, you must have purchased subscription via this endpoint

Request

Send a POST request to below endpoint and pass the desired key_to_cancel .
curl
--request POST 'https://modelslab.com/api/v3/cancel_subscription' \

Body

{  
  "key":"your-default-api-key",  
  "key_to_cancel":"a2cSbgGXIqAHtr3iDBpCdb1yVLZZk000cCltCTtUNpkRM45mak5SpLY9gAlR"
}

Body

application/json
key
string
required

Your default API Key used for request authorization

key_to_cancel
string
required

The api custom api key you want to cancel the subscription for

Response

Subscription cancellation response

status
enum<string>
Available options:
success
messege
string
Example:

"subscription cancelled successfully"