curl --location 'https://api.whatevertoken.ai/v1/chat/completions' \
--header 'Authorization: Bearer sk_xxxx(你自己的密钥)' \
--header 'Content-Type: application/json' \
--data '{
"model": "claude-opus-4-7",
"stream": true,
"messages": [
{
"role": "user",
"content": "你是谁"
}
]
}'{
"id": "string",
"object": "chat.completion",
"created": 0,
"model": "string",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "string"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0,
"prompt_tokens_details": {
"audio_tokens": 0,
"cached_tokens": 0,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0
},
"completion_tokens_details": null
},
"system_fingerprint": ""
}