本文档由归属于 https://oneai.evanora.top ,统一的大模型接口网关
{
"model": "gpt-4o",
"messages": [
{
"role": "user",
"content": "Hello!"
}
]
}curl --location --request POST 'https://oneai.evanora.top/v1/chat/completions' \
--header 'Authorization: Bearer ' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-4o",
"messages": [
{
"role": "user",
"content": "Hello!"
}
]
}'{
"id": "chatcmpl-BzLlVIDuNGo7TAMz2Qg1c1KHDK7tU",
"object": "chat.completion",
"created": 1753961373,
"model": "gpt-4o",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I assist you today?",
"refusal": null,
"annotations": []
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 10,
"total_tokens": 19,
"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
}
},
"system_fingerprint": "fp_ee1d74bde0"
}