{
"model": "gpt-4.1-mini",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "你好"
}
],
"stream": true
}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": "你好"
}
],
"stream": true
}'{
"choices": [
{
"content_filter_result": {
"error": {
"code": "content_filter_error",
"message": "The contents are not filtered"
}
},
"delta": {
"content": "帮"
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],"creat
23: 01: 56
{
"choices": [
{
"content_filter_result": {
"error": {
"code": "content_filter_error",
"message": "The contents are not filtered"
}
},
"delta": {
"content": "忙"
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],"creat
23: 01: 56
{
"choices": [
{
"content_filter_result": {
"error": {
"code": "content_filter_error",
"message": "The contents are not filtered"
}
},
"delta": {
"content": "的吗"
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],"crea
23: 01: 56
{
"choices": [
{
"content_filter_result": {
"error": {
"code": "content_filter_error",
"message": "The contents are not filtered"
}
},
"delta": {
"content": "?"
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],"creat
23: 01: 56
{
"choices": [
{
"content_filter_result": {
"error": {
"code": "content_filter_error",
"message": "The contents are not filtered"
}
},
"delta": {},
"finish_reason": "stop",
"index": 0,
"logprobs": null
}
],
"created": 1764342
23: 01: 56
{
"choices": [],
"created": 1764342114,
"id": "chatcmpl-CguGo4VdBE6pGbBlrpd9Fmjqgzt09",
"model": "gpt-4.1-mini-2025-04-14",
"obfuscation": "wq",
"object": "chat.completion.chunk",
"system_fingerprint":"fp_3dcd5944
23: 01: 56
[DONE
]