本文档由 DataEyesAI 提供,专注于人工智能行业的API服务商! 扫码入群即可领取免费额度!
{
"model": "claude-sonnet-4-20250514-thinking",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": "Hello, world"
}
],
"thinking": {
"type": "enabled",
"budget_tokens": 2048
}
}curl --location --request POST 'https://api.dataeyes.ai/v1/messages' \
--header 'Authorization: {{Authorization}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "claude-sonnet-4-20250514-thinking",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": "Hello, world"
}
],
"thinking": {
"type": "enabled",
"budget_tokens": 2048
}
}'{
"id": "msg_01NzY1b1U3Vyddchtadhnuti",
"type": "message",
"role": "assistant",
"model": "claude-sonnet-4-20250514",
"content": [
{
"type": "thinking",
"thinking": "The user has greeted me with \"Hello, world\" which is a classic programming phrase often used as the first program when learning a new language. Since I'm Claude Code, Anthropic's official CLI for Claude, I should respond in a way that's appropriate for a command-line interface tool while being helpful and friendly.",
"signature": "EuUDCkYIBxgCKkCzx6kU85Actj1kmBm+xn/vRVvvFL9rvVkWlqicz/B0D8GLIXMsPOOCEHTm7NIlEZj9LUV9xaVL9BnvjersmtizEgxRHhxFEOL8x2r+5DgaDAnZXM95VV8Md0X3zSIwW3ullBFu2ksoNEqpvH8j5TE7AdYht/fOHd/4KpMe+54naa/EEpI6WH7YQQPHgyt4KswCCNy6w6l7Cs3GNUkQ8il7DvjPZS5m3yY6p645AuHitxIPEt7mShmnThjNJPKChkjwD4rZgBNdJt7Boz+ludAqG5tMByHQyUsPaw+mosUzl2yB2APVoUDmz8sBhJYWLPZR8t4hqF4+3XL/Mg1KD3KwkQqLDGkmLidGfNwH4Aj4sPH+Z8ml4OvYy/x30xgEqwkZT+X0jIVuY/ZVy8yIdxEO2Trnot0tcGPlN8Lkticb68MqkRocceVSivGjojxyaX5XJ1WuJNNX1lRbqisWDA3gBYnenaUX69qRQgDKK+vWSSuvweTen2YsOxJa2qnALhCzhmN1VZ7UTb5W2z7pnM/XJ4LOc0zI+dUVbTcVZtxXoiSXCRqrorbGC5sY9tnHB+4MY/yrjX3KWFK9BzsQ6GGMaib6yLuJSgtNqKW7WizbRcGNCxFx1ayeSXc6nOgYAQ=="
},
{
"type": "text",
"text": "Hello! I'm Claude Code, Anthropic's CLI tool for interacting with Claude. \n\nHow can I help you today? I can assist with:\n- Code generation and debugging\n- File operations and project analysis\n- Running commands and scripts\n- General programming questions\n- And much more!\n\nWhat would you like to work on?"
}
],
"stop_reason": "end_turn",
"stop_sequence": null,
"usage": {
"input_tokens": 53,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"cache_creation": {
"ephemeral_5m_input_tokens": 0,
"ephemeral_1h_input_tokens": 0
},
"output_tokens": 151,
"service_tier": "standard"
}
}扫码加入开发者交流群
DataEysAI-专注于人工智能行业的API服务商! 扫码入群即可领取免费额度

扫码加群-领免费额度