이미지 분석
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic();
const response = await client.messages.create({
model: "claude-3-5-sonnet-20241022",
messages: [{
role: "user",
content: [
{ type: "image", source: { type: "base64", media_type: "image/png", data: base64Data } },
{ type: "text", text: "이 아키텍처 다이어그램을 설명해주세요" }
]
}]
});활용 사례
- UI 스크린샷 → 코드 변환
- 문서 OCR 및 요약
- 차트/그래프 데이터 추출
댓글 0