Authorization: Bearer ********************
{
"model": "claude-3-7-sonnet-20250219",
"stream": true,
"stream_options": {
"include_usage": true
},
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "你好!"
}
]
}
curl --location --request POST 'https://api.aigateway.work/v1/chat/completions' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "claude-3-7-sonnet-20250219",
"stream": true,
"stream_options": {
"include_usage": true
},
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "你好!"
}
]
}'
{
"id": "chatcmpl-8uxQ3O1u0Z79h7u9JjZ4FOEZapsko",
"object": "chat.completion",
"created": 1708585467,
"model": "gpt-3.5-turbo-0125",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "你好!有什么我可以帮助你的吗?"
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 20,
"completion_tokens": 18,
"total_tokens": 38
},
"system_fingerprint": "fp_cbdb91ce3f"
}