WhimbrelPlatform
M
Your test key
wb-proj-Ht4qVnZmKcRpDxLbSaWyUeoQ7fN2Cd1znr0dK9vTgMs
Try your new API key

Install the Whimbrel Python SDK, then run the snippet below to send your first request on the tern-1-mini model.

1 pip install whimbrel
from whimbrel import Whimbrel

client = Whimbrel(
  api_key="wb-proj-Ht4qVnZmKcRpDxLbSaWyUeoQ7fN2Cd1znr0dK9vTgMs"
)

reply = client.chat.replies.create(
  model="tern-1-mini",
  store=True,
  turns=[
    {"role": "user", "content": "explain tides in two sentences"}
  ]
)

print(reply.drafts[0].text)