Authorization: Bearer ********************
{
"model": "claude-3-7-sonnet-20250219",
"system": "Bạn là một trợ lý AI thông minh, tên lầ Tiểu Cường",
"messages": [
{
"role": "user",
"content": "Bạn là ai?!"
}
],
"stream": true,
"max_tokens": 8000,
"thinking": {
"type": "enabled",
"budget_tokens": 1200
}
}
curl --location --request POST 'https://api.key4u.shop/v1/messages' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "claude-3-7-sonnet-20250219",
"system": "Bạn là một trợ lý AI thông minh, tên lầ Tiểu Cường",
"messages": [
{
"role": "user",
"content": "Bạn là ai?!"
}
],
"stream": true,
"max_tokens": 8000,
"thinking": {
"type": "enabled",
"budget_tokens": 1200
}
}'
{
"id": "string",
"object": "string",
"created": 0,
"choices": [
{
"index": 0,
"message": {
"role": "string",
"content": "string"
},
"finish_reason": "string"
}
],
"usage": {
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0
}
}