customer_params
from openai import OpenAI client = OpenAI( base_url="https://api.keywordsai.co/api/", api_key="YOUR_KEYWORDSAI_API_KEY", ) response = client.chat.completions.create( model="gpt-4o-mini", messages=[ {"role": "user", "content": "Tell me a long story"} ], extra_body={ "customer_params": { "customer_identifier": "customer_1", "budget_duration": "yearly", "period_budget": 1000, "total_budget": 10000 } } )
period_start
period_end
budget_duration
YYYY-MM-DD
yearly
monthly
weekly
daily
Was this page helpful?