Claude Sonnet 4.6 API

Claude Sonnet 4.6 is Anthropic's best combination of speed and intelligence, offering strong performance on coding, reasoning, and general tasks with excellent speed and cost efficiency. It features a 1M token context window and 64K max output tokens.

입력: USD 3 / 100만 토큰; 출력: USD 15 / 100만 토큰

공개 ID: claude-sonnet-4-6

모델 유형: 채팅

추론 도구 호출 비전 코드 최적화 구조화된 출력

가격

입력 · USD 3 / 100만 토큰

출력 · USD 15 / 100만 토큰

캐시 읽기 · USD 0.3 / 100만 토큰

캐시 쓰기 · USD 3.75 / 100만 토큰

모델 사양

모델 유형
채팅 / 이미지
컨텍스트 창(토큰)
1000000
최대 출력(토큰)
64000
추론
지원
도구 호출
지원
비전
지원
코드 최적화
지원
구조화된 출력
지원

개인정보 보호

알 수 없음

알 수 없음은 서비스 전체에 대해 검증된 보장이 게시되지 않았음을 뜻합니다. 검열 없음은 모든 요청의 성공을 보장하지 않습니다.

빠른 시작

API 키로 조회한 목록에 이 모델이 있는지 확인한 후, 해당 기능의 문서에 있는 입력 옵션을 살펴보세요.

GLOOP_API_BASE에 API 주소를, GLOOP_API_KEY에 서버 측 키를 설정하세요.

curl

curl --fail-with-body "${GLOOP_API_BASE%/}/v1/chat/completions" \
  -H "Authorization: Bearer $GLOOP_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "messages": [
    {
      "content": "Hello",
      "role": "user"
    }
  ],
  "model": "claude-sonnet-4-6"
}'

Python

import os, json, urllib.request

url = os.environ['GLOOP_API_BASE'].rstrip('/') + "/v1/chat/completions"
headers = {'Authorization': 'Bearer ' + os.environ['GLOOP_API_KEY']}
headers['Content-Type'] = 'application/json'
data = "{\n  \"messages\": [\n    {\n      \"content\": \"Hello\",\n      \"role\": \"user\"\n    }\n  ],\n  \"model\": \"claude-sonnet-4-6\"\n}".encode('utf-8')
request = urllib.request.Request(url, data=data, headers=headers)
with urllib.request.urlopen(request) as response:
    print(json.load(response))

Node.js

const url = process.env.GLOOP_API_BASE.replace(/\/$/, '') + "/v1/chat/completions";
const headers = { Authorization: `Bearer ${process.env.GLOOP_API_KEY}` };
headers['Content-Type'] = 'application/json';
const response = await fetch(url, { method: 'POST', headers, body: JSON.stringify({
  "messages": [
    {
      "content": "Hello",
      "role": "user"
    }
  ],
  "model": "claude-sonnet-4-6"
}) });
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());

실행 전에 모델 접근 권한과 요금을 확인하세요. 예제를 복사해도 API가 호출되지 않습니다.

API 가이드 보기 · 모델 조회 · SDK 연동 · 요금 청구

자주 묻는 질문

Claude Sonnet 4.6 — 어떤 모델 ID를 사용해야 하나요?

claude-sonnet-4-6

Claude Sonnet 4.6 — 이 모델의 요금은 어떻게 계산되나요?

입력: USD 3 / 100만 토큰; 출력: USD 15 / 100만 토큰

Claude Sonnet 4.6 — 지원하는 API 엔드포인트는 무엇인가요?

/v1/chat/completions

Claude Sonnet 4.6 — 컨텍스트 창 크기는 얼마인가요?

1000000 토큰

같은 카테고리의 모델

모든 모델