{
"model": "gpt-4.1-mini",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "你好"
}
]
}curl --location -g --request POST 'http://api.example.com/v1/chat/completions' \
--header 'Authorization: Bearer sk-xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-4.1-mini",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "你好"
}
]
}'{
"choices": [
{
"content_filter_result": {
"error": {
"code": "content_filter_error",
"message": "The contents are not filtered"
}
},
"content_filter_results": {},
"finish_reason": "stop",
"index": 0,
"logprobs": null,
"message": {
"annotations": [],
"content": "你好!有什么我可以帮你的吗?",
"refusal": null,
"role": "assistant"
}
}
],
"created": 1764341516,
"id": "chatcmpl-Cgu7AlJ6HCATwuHb449uIXHAUMR6b",
"model": "gpt-4.1-mini-2025-04-14",
"object": "chat.completion",
"prompt_filter_results": [
{
"prompt_index": 0,
"content_filter_results": {}
}
],
"system_fingerprint": "fp_3dcd5944f5",
"usage": {
"completion_tokens": 10,
"completion_tokens_details": {
"accepted_prediction_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0,
"rejected_prediction_tokens": 0
},
"prompt_tokens": 18,
"prompt_tokens_details": {
"audio_tokens": 0,
"cached_tokens": 0
},
"total_tokens": 28
}
}