{
"model": "gpt-3.5-turbo-0125",
"messages": [
{ "role": "system", "content": "你是一个中文助手,回答要简洁。" },
{ "role": "user", "content": "帮我用一句话解释什么是DNS。" }
],
"temperature": 0.7,
"top_p": 1,
"max_tokens": 512,
"stream": false,
"presence_penalty": 0,
"frequency_penalty": 0,
"n": 1
}
curl --location --request POST 'https://api.apiqik.online/v1/chat/completions' \
--header 'Authorization: sk-gQgLrvIHPEZ9jTM5QsmDV6NLm2rPR1mYpD2rcbgSzpHRFvCB' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-3.5-turbo-0125",
"messages": [
{ "role": "system", "content": "你是一个中文助手,回答要简洁。" },
{ "role": "user", "content": "帮我用一句话解释什么是DNS。" }
],
"temperature": 0.7,
"top_p": 1,
"max_tokens": 512,
"stream": false,
"presence_penalty": 0,
"frequency_penalty": 0,
"n": 1
}'{
"id": "chatcmpl-D7ckSQ9yHwOuHvoeUtoYUkX6sxm17",
"object": "chat.completion",
"created": 1770709616,
"model": "gpt-3.5-turbo-0125",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "DNS是域名系统,用于将域名转换为对应的IP地址,帮助互联网用户访问网站和其他网络服务。",
"refusal": null,
"annotations": []
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 44,
"completion_tokens": 41,
"total_tokens": 85,
"prompt_tokens_details": {
"cached_tokens": 0,
"audio_tokens": 0
},
"completion_tokens_details": {
"reasoning_tokens": 0,
"audio_tokens": 0,
"accepted_prediction_tokens": 0,
"rejected_prediction_tokens": 0
}
},
"service_tier": "default",
"system_fingerprint": null
}