{
"model": "string",
"messages": [
"string"
],
"stream": "string",
"thinking": {
"type": "string",
"clear_thinking": true
},
"do_sample": true,
"temperature": 0,
"top_p": 0,
"max_tokens": 0,
"tool_stream": true,
"tools": {
"type": "string",
"function": {
"name": "string",
"description": "string",
"parameters": "string"
}
},
"tool_choice": "string",
"stop": [
"string"
],
"response_format": {
"type": "string"
},
"request_id": "string",
"user_id": "string"
}curl --location --request POST 'https://maas.haoee.com/v1/chat/completions' \
--header 'Authorization: {{API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "string",
"messages": [
"string"
],
"stream": "string",
"thinking": {
"type": "string",
"clear_thinking": true
},
"do_sample": true,
"temperature": 0,
"top_p": 0,
"max_tokens": 0,
"tool_stream": true,
"tools": {
"type": "string",
"function": {
"name": "string",
"description": "string",
"parameters": "string"
}
},
"tool_choice": "string",
"stop": [
"string"
],
"response_format": {
"type": "string"
},
"request_id": "string",
"user_id": "string"
}'{
"id": "<string>",
"request_id": "<string>",
"created": 123,
"model": "<string>",
"choices": [
{
"index": 123,
"message": {
"role": "assistant",
"content": "<string>",
"reasoning_content": "<string>",
"audio": {
"id": "<string>",
"data": "<string>",
"expires_at": "<string>"
},
"tool_calls": [
{
"function": {
"name": "<string>",
"arguments": "<string>"
},
"mcp": {
"id": "<string>",
"type": "mcp_list_tools",
"server_label": "<string>",
"error": "<string>",
"tools": [
{
"name": "<string>",
"description": "<string>",
"annotations": {},
"input_schema": {
"type": "object",
"properties": {},
"required": [
"<string>"
],
"additionalProperties": true
}
}
],
"arguments": "<string>",
"name": "<string>",
"output": {}
},
"id": "<string>",
"type": "<string>"
}
]
},
"finish_reason": "<string>"
}
],
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"prompt_tokens_details": {
"cached_tokens": 123
},
"total_tokens": 123
},
"video_result": [
{
"url": "<string>",
"cover_image_url": "<string>"
}
],
"web_search": [
{
"icon": "<string>",
"title": "<string>",
"link": "<string>",
"media": "<string>",
"publish_date": "<string>",
"content": "<string>",
"refer": "<string>"
}
],
"content_filter": [
{
"role": "<string>",
"level": 123
}
]
}