curl --location --request POST 'https://api.modellink.ai/task.v1.TaskService/CreateChat' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "string",
"project_id": "string",
"messages": [
{
"role": "string",
"content": "string",
"reasoning_content": "string",
"tool_calls": [
{
"id": "string",
"function": {
"name": "string",
"arguments": "string"
},
"type": "string"
}
],
"tool_call_id": "string"
}
],
"thinking": {
"type": "string"
},
"reasoning": {
"effort": "string"
},
"max_tokens": 0,
"max_completion_tokens": 0,
"stop": [
"string"
]
}'{
"choices": [
{
"message": {
"role": "string",
"content": "string",
"reasoning_content": "string"
}
}
],
"usage": {
"input_tokens": 0,
"output_tokens": 0,
"total_tokens": 0
}
}