{
"model": "gpt-4.1-mini",
"messages": [
{
"role": "system",
"content": "你是一个简洁的中文助手。"
},
{
"role": "user",
"content": "请用一句话介绍苏轼。"
}
],
"temperature": 0.7,
"stream": false
}curl --location 'https://api.onelinkai.cloud/v1/chat/completions' \
--header 'Authorization: Bearer <ApiKey>' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-4.1-mini",
"messages": [
{
"role": "system",
"content": "你是一个简洁的中文助手。"
},
{
"role": "user",
"content": "请用一句话介绍苏轼。"
}
],
"temperature": 0.7,
"stream": false
}'{
"id": "string",
"object": "string",
"created": 0,
"model": "string",
"choices": [
{
"index": 0,
"message": {
"role": "string",
"content": "string",
"refusal": "string",
"tool_calls": [
{
"id": "string",
"type": "string",
"function": {
"name": "string",
"arguments": "string"
}
}
]
},
"finish_reason": "string"
}
],
"usage": {
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0,
"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": "string",
"system_fingerprint": "string"
}