curl --location --request POST '/v1/messages' \
--header 'X-Api-Key: sk-ant-api03-xxxxxxxxx' \
--header 'anthropic-version: 2023-06-01' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "string",
"messages": [
{
"role": "user",
"content": "string"
}
],
"max_tokens": 0,
"metadata": {
"user_id": "string"
},
"stop_sequences": [
"string"
],
"stream": true,
"system": "string",
"temperature": 0,
"thinking": {
"type": "enabled",
"budget_tokens": 0
},
"tool_choice": {
"type": "auto",
"name": "string",
"disable_parallel_tool_use": true
},
"tools": [
{
"name": "string",
"description": "string",
"input_schema": {},
"cache_control": {
"type": "ephemeral"
}
}
],
"top_k": 0,
"top_p": 0
}'{
"id": "string",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "string",
"id": "string",
"name": "string",
"input": {}
}
],
"model": "string",
"stop_reason": "end_turn",
"stop_sequence": "string",
"usage": {
"input_tokens": 0,
"output_tokens": 0,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0
}
}