Skip to content

압축 문맥 Fable 5 ​

압축 버전은 긴 대화의 오래된 부분을 모델에 보내기 전에 줄입니다. 전용 모델 ID를 사용하며 Anthropic 형식만 지원합니다.

  • Claude Code나 Anthropic SDK에서 압축 버전의 공개 ID를 선택하세요.
  • 긴 세션은 입력 토큰을 절약하지만 짧은 대화는 항상 저렴하지 않습니다.
  • 캐시와 함께 사용할 수 있으니 usage로 비교하세요.

전체 예제 ​

원본 가이드의 실행 가능한 예제를 모두 아래에 보존했습니다. 사용 중인 도구와 운영체제에 해당하는 블록만 실행하세요.

json
"ANTHROPIC_MODEL": "anthropic/claude-fable-5-compressed-context"
bash
curl https://nordrouter.com/v1/messages \
  -H "x-api-key: sk-nr-YOUR-KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{
    "model": "anthropic/claude-fable-5-compressed-context",
    "max_tokens": 1024,
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'
python
from anthropic import Anthropic

client = Anthropic(base_url="https://nordrouter.com", api_key="sk-nr-YOUR-KEY")

resp = client.messages.create(
    model="anthropic/claude-fable-5-compressed-context",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.content[0].text)

공식 문서 및 관련 링크 ​

prompt_tokensInput cost
claude-fable-55,053~$0.0078
claude-fable-5-compressed-context1,287~$0.0020
ScenarioModel
Agentic coding, long chats, large documents in contextclaude-fable-5-compressed-context — maximum savings
Verbatim quoting/auditing of huge texts, critical production pipelinesclaude-fable-5 — the regular mode
Short requests without long contextNo difference — use the regular one

관련 가이드 ​

먼저 최소 텍스트 요청으로 연결을 확인한 다음 스트리밍, 도구 호출, 이미지와 같은 고급 기능을 추가하세요. API 키를 공개 코드나 브라우저 프런트엔드에 넣지 마세요.

문제 해결