ToolKiti
Home/大语言模型/Anthropic Claude API

Anthropic Claude API

Anthropic Claude 接口

Access Claude 3.5 Sonnet, Haiku, and Opus models for chat, analysis, and code generation.

调用 Claude 3.5 Sonnet、Haiku 和 Opus 模型进行对话、分析和代码生成。

Pricing

pay-as-you-go (per token)

Authentication

  • API Key (x-api-key header)

Rate Limit

4000 req/min (Tier 4)

Typical Latency

<800ms (Claude 3.5 Sonnet)

Max Context

200K

Popularity

87/100

Endpoints

https://api.anthropic.com/v1/messages
https://api.anthropic.com/v1/complete

SDKs

PythonTypeScriptGoJavacurl

Key Features

Code Examples

Messages APIbash
curl https://api.anthropic.com/v1/messages \
  -H "Content-Type: application/json" \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -d '{
    "model": "claude-3-5-sonnet-20241022",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Tags

llmchatanalysis

Last updated: 2026-07-27