anthropic-version: 2023-06-01
x-api-key
request header.anthropic-version
header native API is mandatory to fill in, otherwise an error will be reported. Although there is no mandatory requirement here, it is still recommended to fill it in. If not filled in, the latest version will be used by default, such as: 2023-06-01
claude-2
claude-instant-1
https://api.anthropic.com/v1/complete
to any of the following:https://apic.ohmygpt.com/v1/complete
https://aigptx.top/v1/complete
claude-2
, claude-instant-1
. This is because for security reasons, newly supported models will not affect all old keys. You need to manually check the permissions of these two models for the corresponding APIKey in the key management interface and save them, or create a new API key. **Bill/Recharge
interface (Simplified Chinese).curl --location --request POST 'https://cn2us02.opapi.win/v1/complete' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "claude-2",
"prompt": "\n\nHuman: 介绍一下你自己\n\nAssistant:",
"max_tokens_to_sample": 999999,
"stream": false
}'
{
"completion": " 你好!我是一个由Anthropic公司开发的AI助手。我叫Clara。我被训练来进行友好、有帮助的对话。很高兴认识你!我希望我们的对话能让你感到开心和放松。如果有什么我可以帮到你的,请一定告诉我。",
"stop_reason": "stop_sequence",
"model": "claude-2.0",
"stop": "\n\nHuman:",
"log_id": "4fbf887cd2fd3b375d7da3b1cb81231b9401ff023772c8caf6d35bcac7ec9dd5"
}