향상된 추론 및 코딩 능력을 갖춘 Claude 3.7 Sonnet입니다. 다양한 작업에서 안정적인 성능을 제공하는 강력한 중간 티어 모델입니다.
이 모델의 사용법을 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-3-7-sonnet",
"max_tokens": 3000,
"messages": [
{
"role": "user",
"content": "Write a Python async function that fetches multiple URLs concurrently using aiohttp and returns results as a dictionary mapping URL to response status and body."
}
],
"temperature": 0.3
}'| 파라미터 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
messages | array | Yes | - | role과 content를 포함한 메시지 객체 배열 |
model | string | Yes | claude-3-7-sonnet | 모델 식별자 |
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 3.7 Sonnet으로 코드 생성
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-3-7-sonnet",
"max_tokens": 3000,
"messages": [
{
"role": "user",
"content": "Write a Python async function that fetches multiple URLs concurrently using aiohttp and returns results as a dictionary mapping URL to response status and body."
}
],
"temperature": 0.3
}'구조화된 출력으로 데이터 분석
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-3-7-sonnet",
"max_tokens": 2000,
"system": "You are a data analyst. Provide insights in a structured format.",
"messages": [
{
"role": "user",
"content": "Analyze the following sales data and identify trends, anomalies, and actionable recommendations: [sales data]"
}
]
}'POST /llm/anthropic/v1/messages