Authorization: Bearer ********************
{
"model": "claude-sonnet-4-20250514",
"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
}
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-sonnet-4-20250514",
"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
}'
{
"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
}
}