curl --location --request POST '/v1/messages' \
--header 'x-api-key: sk-your-api-key' \
--header 'anthropic-version: 2023-06-01' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "string",
"messages": [
{
"role": "string",
"content": "string"
}
],
"max_tokens": 0,
"system": "string",
"temperature": 0,
"top_p": 0,
"top_k": 0,
"stream": true,
"stop_sequences": [
"string"
]
}'{
"id": "string",
"type": "string",
"role": "string",
"content": [
{
"type": "string",
"text": "string"
}
],
"model": "string",
"stop_reason": "string",
"usage": {
"input_tokens": 0,
"output_tokens": 0
}
}