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",
messages=[{"role":"user", "content":"Tell me a long story"}],
extra_body={"customer_credentials": {
"togetherai": {
"api_key": "YOUR_TOGETHER_API_KEY",
}
}
}
)