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.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 dailyfloat
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.