Set budget for users
Here is an example of how to send a user’s data with the parameter customer_params
to Keywords AI in the OpenAI Python SDK.
You can also use period_start
and period_end
to set the budget period. In this case, you don’t need to set the budget_duration
.
Parameters
The start date of the period. It should be in the format YYYY-MM-DD
.
The start date of the period. It should be in the format YYYY-MM-DD
.
Choices are yearly
, monthly
, weekly
, and daily
The budget for the period. It should be a float.
The markup percentage for the period. Usage report of your customers through this key will be increased by this percentge.
The total budget for a user.
Other ways to set budget
You can also set the budget to a specific user by calling the User Update endpoint or the User Creation endpoint for the new users.