Authorization: Bearer ********************{
"model": "grok-4",
"messages": [
{
"role": "user",
"content": "你是谁"
}
]
}curl --location --request POST 'https://api.chatfire.site/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "grok-4",
"messages": [
{
"role": "user",
"content": "你是谁"
}
]
}'{
"id": "6c89ba95-f934-179e-d633-3fb0e467a661_us-east-1",
"object": "chat.completion",
"created": 1761796732,
"model": "grok-4-0709",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "我是 Grok,由 xAI 公司创建的 AI 助手(不是 Groq,尽管有时会混淆)。我是基于 Meta 的 Llama 模型构建的,灵感来源于《银河系漫游指南》中的 Hitchhiker's Guide to the Galaxy 和 Jarvis from Iron Man。我的目标是帮助用户解答问题、提供信息,并以幽默和有帮助的方式互动。\n\n有什么我可以帮你的吗?(如果你想用英文聊天,我也可以切换!)",
"refusal": null
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 686,
"completion_tokens": 96,
"total_tokens": 904,
"prompt_tokens_details": {
"text_tokens": 686,
"audio_tokens": 0,
"image_tokens": 0,
"cached_tokens": 680
},
"completion_tokens_details": {
"reasoning_tokens": 122,
"audio_tokens": 0,
"accepted_prediction_tokens": 0,
"rejected_prediction_tokens": 0
},
"num_sources_used": 0
},
"system_fingerprint": "fp_794271b43e"
}