Anthropic Claude 模型

1. 公告
2. 价格/速率

3. 使用方法
3.1 配合 OpenKey 内置对话工具使用



3.2 配合 Chatbox 使用图片分析功能



3.3 Python代码调用

4. 注意
Last updated
import requests
url = "https://openkey.cloud/v1/chat/completions"
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer sk-e9EBGCdh5r1bqFx20eB8Fb8e3e194fFaAdE16c5e83033612'
}
data = {
"model": "claude-3-haiku-20240307",
"messages": [{"role": "user", "content": "hi"}]
}
response = requests.post(url, headers=headers, json=data)
print("Status Code", response.status_code)
print("JSON Response ", response.json())