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.
- OpenAI Python SDK
- OpenAI TypeScript SDK
- Standard API
- Other SDKs
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 dailyThe 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.