curl --location --request POST 'https://api.anthropic.com/v1/complete' \
--header 'x-api-key: ' \
--header 'anthropic-version: 2023-06-01' \
--header 'content-type: application/json' \
--data-raw '{
"model": "claude-2.1",
"max_tokens_to_sample": 1024,
"prompt": "\n\nHuman: Hello, Claude\n\nAssistant:"
}'
{
"completion": " Hello! My name is Claude.",
"id": "compl_018CKm6gsux7P8yMcwZbeCPw",
"model": "claude-2.1",
"stop_reason": "stop_sequence",
"type": "completion"
}