효율적인 가격대에서 강력한 추론과 코딩 능력을 제공하는 균형 잡힌 Sonnet 4 모델입니다. 속도와 지능의 적절한 조합이 필요한 일상적인 프로덕션 워크로드에 이상적입니다.
이 모델의 사용법을 Claude, ChatGPT 등에 복사
| 토큰 종류 | 크레딧 | 달러 환산 |
|---|---|---|
| 입력 토큰 | 6,000 | $6.00 |
| 출력 토큰 | 30,000 | $30.00 |
| 캐시된 토큰 | 600 | $0.60 |
* 1 크레딧 ≈ $0.001 (실제 요금은 사용량에 따라 달라질 수 있습니다)
curl -X POST "https://api.core.today/llm/anthropic/v1/messages" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cdt_your_api_key" \
-d '{
"model": "claude-sonnet-4",
"max_tokens": 2000,
"system": "You are a helpful assistant that provides clear and concise answers.",
"messages": [
{
"role": "user",
"content": "Explain the key differences between microservices and monolithic architecture, with pros and cons of each."
}
]
}'| 파라미터 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
messages | array | Yes | - | role과 content를 포함한 메시지 객체 배열 |
model | string | Yes | claude-sonnet-4 | 모델 식별자 |
temperature | float | No | 1.0 | 샘플링 온도 (0-1) |
max_tokens | integer | Yes | - | 응답의 최대 토큰 수 (필수, 최대 16384) |
stream | boolean | No | false | 스트리밍 응답 활성화 |
system | string | No | - | 동작 설정을 위한 시스템 프롬프트 |
top_p | float | No | 0.999 | 핵 샘플링 파라미터 (0-1) |
Claude Sonnet 4와의 균형 잡힌 대화
curl -X POST "https://api.core.today/llm/anthropic/v1/messages" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cdt_your_api_key" \
-d '{
"model": "claude-sonnet-4",
"max_tokens": 2000,
"system": "You are a helpful assistant that provides clear and concise answers.",
"messages": [
{
"role": "user",
"content": "Explain the key differences between microservices and monolithic architecture, with pros and cons of each."
}
]
}'코드 리뷰 및 개선
curl -X POST "https://api.core.today/llm/anthropic/v1/messages" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cdt_your_api_key" \
-d '{
"model": "claude-sonnet-4",
"max_tokens": 3000,
"messages": [
{
"role": "user",
"content": "Review this Python function for bugs, performance issues, and suggest improvements:\n\ndef process_data(items):\n result = []\n for item in items:\n if item not in result:\n result.append(item)\n return sorted(result)"
}
],
"temperature": 0.3
}'POST /llm/anthropic/v1/messages