Buy subscription plan
curl --request POST \
--url https://modelslab.com/api/v3/buy_subscription \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>"
}
'{
"status": "success",
"messege": "You have just bought a custom api with basic plan",
"data": {
"key": "<string>",
"plan": "<string>"
}
}General APIs
Automatically Buy Subscription Plan
This endpoint allows you to buy subscription for a particular api key automatically
POST
/
buy_subscription
Buy subscription plan
curl --request POST \
--url https://modelslab.com/api/v3/buy_subscription \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>"
}
'{
"status": "success",
"messege": "You have just bought a custom api with basic plan",
"data": {
"key": "<string>",
"plan": "<string>"
}
}Before calling this endpoint, make sure that you have enabled Subscription Auto Payment on your dashboard.
Request
Send aPOST request to below endpoint and pass the desired plan_name to buy in the request body.
curl
--request POST 'https://modelslab.com/api/v3/buy_subscription' \
Body
json
{
"key":"your-default-api-key",
"plan_name":"basic_monthly"
}
Body
application/json
Was this page helpful?
⌘I

