Zack Saadioui
8/26/2024
1
2
bash
pip install anthropic
1
x-api-key
1
2
3
4
5
6
7
8
python
client = authenticate()
response = client.messages.create(
model="claude-3-5-sonnet-20240620",
max_tokens=150,
messages=[{"role": "user", "content": "Hello, how are you today?"}]
)
print(response.content[0].text)
Copyright © Arsturn 2024