由于Claude政策的不确定性,在Claude大规模风控期间,系统可能会自动切换至glm-5.1或K2.5以保障服务的24x7稳定,如果介意请勿使用。
{
"model": "cc-opus-4-7",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Hello, world"
}
]
}curl --location 'https://api.302.ai/v1/messages' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data '{
"model": "cc-opus-4-7",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Hello, world"
}
]
}'{
"content": [
{
"text": "Hello! How can I help you today?",
"type": "text"
}
],
"id": "msg_5138db68-75c8-4360-8e",
"model": "claude-sonnet-4-5-20250929",
"role": "assistant",
"stop_reason": "",
"stop_sequence": null,
"type": "message",
"usage": {
"cache_creation": {
"ephemeral_1h_input_tokens": 0,
"ephemeral_5m_input_tokens": 313
},
"cache_creation_input_tokens": 313,
"cache_read_input_tokens": 34,
"input_tokens": 17,
"output_tokens": 8
}
}