✨ NEW:Flux 2 Dev Generate photorealistic images. · Try it now
cURL
curl --request POST \ --url https://modelslab.com/api/buy_subscription \ --header 'Content-Type: application/json' \ --data ' { "key": "<string>", "plan_name": "basic_monthly" } '
{ "status": "success", "messege": "You have just bought a custom api with basic plan", "data": { "key": "<string>", "plan": "<string>" } }
This endpoint allows you to buy subscription for a particular api key automatically
POST
--request POST 'https://modelslab.com/api/v3/buy_subscription' \
{ "key":"your-default-api-key", "plan_name":"basic_monthly" }
Your default API Key used for request authorization
The name of the plan you want to buy
basic_monthly
basic_yearly
standard_monthly
standard_yearly
premium_monthly
premium_yearly
Buy subscription response
success
"You have just bought a custom api with basic plan"
Show child attributes
The purchased API key
The purchased plan name
Was this page helpful?