Skip to main content
Only Keywords AI users who are using the LLM proxy can set budget for their users. See how to set up LLM proxy for more information.
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

string
The start date of the period. It should be in the format YYYY-MM-DD.
string
The start date of the period. It should be in the format YYYY-MM-DD.
string
Choices are yearly, monthly, weekly, and daily
float
The budget for the period. It should be a float.
float
The markup percentage for the period. Usage report of your customers through this key will be increased by this percentge.
float
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.