Authorization: Bearer ********************{
"model": "claude-sonnet-4-5-20250929",
"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": "claude-sonnet-4-5-20250929",
"messages": [
{
"role": "user",
"content": "你是谁"
}
]
}'{
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "你好!我是Claude,一款由Anthropic开发的人工智能助手。很高兴为你提供帮助和解答各种问题。如果你有什么想了解的,或者需要帮助,随时告诉我就好。",
"role": "assistant"
}
}
],
"created": 1761795414,
"id": "chatcmpl-5wyvmv4ifop",
"model": "claude-sonnet-4-5-20250929",
"object": "chat.completion",
"usage": {
"prompt_tokens": 12,
"completion_tokens": 77,
"total_tokens": 89,
"prompt_tokens_details": {
"cached_tokens": 0,
"text_tokens": 0,
"audio_tokens": 0,
"image_tokens": 0
},
"completion_tokens_details": {
"text_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0
},
"input_tokens": 0,
"output_tokens": 0,
"input_tokens_details": null
}
}