Loading...
    • 开发者指南
    • API 参考
    • MCP
    • 资源
    • 发布说明
    Search...
    ⌘K

    第一步

    Claude 简介快速开始

    模型与定价

    模型概览选择模型Claude 4.5 的新功能迁移到 Claude 4.5模型弃用定价

    使用 Claude 构建

    功能概览使用 Messages API上下文窗口提示词最佳实践

    功能

    提示词缓存上下文编辑扩展思考流式消息批处理引用多语言支持Token 计数嵌入向量视觉PDF 支持Files API搜索结果Google Sheets 插件

    工具

    概述如何实现工具使用令牌高效的工具使用细粒度工具流式传输Bash 工具代码执行工具计算机使用工具文本编辑器工具Web fetch 工具网络搜索工具记忆工具

    代理技能

    概述在 API 中开始使用 Agent Skills技能创作最佳实践通过 API 使用 Agent Skills

    Agent SDK

    概览TypeScript SDKPython SDK

    指南

    流式输入处理权限会话管理托管 Agent SDK修改系统提示词SDK 中的 MCP自定义工具SDK 中的子代理SDK 中的斜杠命令SDK 中的代理技能跟踪成本和使用情况待办事项列表SDK 中的插件

    API 中的 MCP

    MCP 连接器远程 MCP 服务器

    Claude 在第三方平台上

    Amazon BedrockVertex AI

    提示词工程

    概述提示词生成器使用提示模板提示词改进器保持清晰和直接使用示例(多示例提示)让 Claude 思考(思维链)使用XML标签给Claude分配角色(系统提示)预填充 Claude 的响应链式复杂提示长文本技巧扩展思考技巧

    测试与评估

    定义成功标准开发测试用例使用评估工具减少延迟

    加强防护措施

    减少幻觉提高输出一致性缓解越狱handle-streaming-refusals减少提示词泄露保持Claude的角色特征

    管理和监控

    Admin API 概述使用量和成本 APIClaude Code 分析 API
    Console
    使用 Claude 构建

    功能概览

    探索 Claude 的高级功能和能力。

    核心功能

    这些功能增强了 Claude 在各种格式和用例中处理、分析和生成内容的基本能力。

    功能描述可用性
    100 万令牌上下文窗口扩展的上下文窗口,允许您处理更大的文档、维持更长的对话,并使用更广泛的代码库。Claude API (Beta)

    Amazon Bedrock (Beta)

    Google Cloud's Vertex AI (Beta)
    Agent Skills使用 Skills 扩展 Claude 的功能。使用预构建的 Skills(PowerPoint、Excel、Word、PDF)或使用说明和脚本创建自定义 Skills。Skills 使用渐进式披露来有效管理上下文。Claude API (Beta)
    批处理异步处理大量请求以节省成本。发送包含大量查询的批次。批处理 API 调用的成本比标准 API 调用低 50%。Claude API

    Amazon Bedrock

    Google Cloud's Vertex AI
    引用在源文档中为 Claude 的响应提供依据。使用引用,Claude 可以提供对它用来生成响应的确切句子和段落的详细参考,从而产生更可验证、更可信的输出。Claude API

    Amazon Bedrock

    Google Cloud's Vertex AI
    上下文编辑使用可配置的策略自动管理对话上下文。支持在接近令牌限制时清除工具结果,以及在扩展思考对话中管理思考块。Claude API (Beta)

    Amazon Bedrock (Beta)

    Google Cloud's Vertex AI (Beta)
    扩展思考针对复杂任务的增强推理能力,在提供最终答案之前提供对 Claude 逐步思考过程的透明度。Claude API

    Amazon Bedrock

    Google Cloud's Vertex AI
    Files API上传和管理文件以与 Claude 一起使用,无需在每个请求中重新上传内容。支持 PDF、图像和文本文件。Claude API (Beta)
    PDF 支持处理和分析 PDF 文档中的文本和视觉内容。Claude API

    Amazon Bedrock

    Google Cloud's Vertex AI
    提示缓存 (5m)为 Claude 提供更多背景知识和示例输出,以降低成本和延迟。Claude API

    Amazon Bedrock

    Google Cloud's Vertex AI
    提示缓存 (1hr)扩展的 1 小时缓存持续时间,用于不经常访问但重要的上下文,补充标准的 5 分钟缓存。Claude API
    搜索结果通过提供具有适当源属性的搜索结果,为 RAG 应用程序启用自然引用。为自定义知识库和工具实现网络搜索质量的引用。Claude API

    Google Cloud's Vertex AI
    令牌计数令牌计数使您能够在将消息发送到 Claude 之前确定消息中的令牌数,帮助您对提示和使用情况做出明智的决定。Claude API

    Amazon Bedrock

    Google Cloud's Vertex AI
    工具使用使 Claude 能够与外部工具和 API 交互,以执行更广泛的任务。有关支持的工具列表,请参阅工具表。Claude API

    Amazon Bedrock

    Google Cloud's Vertex AI

    工具

    这些功能使 Claude 能够通过各种工具接口与外部系统交互、执行代码和执行自动化任务。

    功能描述可用性
    Bash执行 bash 命令和脚本以与系统 shell 交互并执行命令行操作。Claude API

    Amazon Bedrock

    Google Cloud's Vertex AI
    代码执行在沙箱环境中运行 Python 代码以进行高级数据分析。Claude API (Beta)
    计算机使用通过截图和发出鼠标和键盘命令来控制计算机界面。Claude API (Beta)

    Amazon Bedrock (Beta)

    Google Cloud's Vertex AI (Beta)
    细粒度工具流流式传输工具使用参数而不进行缓冲/JSON 验证,减少接收大型参数的延迟。Claude API

    Amazon Bedrock

    Google Cloud's Vertex AI
    MCP 连接器直接从 Messages API 连接到远程 MCP 服务器,无需单独的 MCP 客户端。Claude API (Beta)
    内存使 Claude 能够跨对话存储和检索信息。随时间构建知识库、维持项目上下文并从过去的交互中学习。Claude API (Beta)

    Amazon Bedrock (Beta)

    Google Cloud's Vertex AI (Beta)
    文本编辑器使用内置文本编辑器界面创建和编辑文本文件以进行文件操作任务。Claude API

    Amazon Bedrock

    Google Cloud's Vertex AI
    网页获取从指定的网页和 PDF 文档检索完整内容以进行深入分析。Claude API (Beta)
    网页搜索使用来自网络各地的当前、真实数据增强 Claude 的综合知识。Claude API

    Google Cloud's Vertex AI
      © 2025 ANTHROPIC PBC

      Products

      • Claude
      • Claude Code
      • Max plan
      • Team plan
      • Enterprise plan
      • Download app
      • Pricing
      • Log in

      Features

      • Claude and Slack
      • Claude in Excel

      Models

      • Opus
      • Sonnet
      • Haiku

      Solutions

      • AI agents
      • Code modernization
      • Coding
      • Customer support
      • Education
      • Financial services
      • Government
      • Life sciences

      Claude Developer Platform

      • Overview
      • Developer docs
      • Pricing
      • Amazon Bedrock
      • Google Cloud’s Vertex AI
      • Console login

      Learn

      • Blog
      • Catalog
      • Courses
      • Use cases
      • Connectors
      • Customer stories
      • Engineering at Anthropic
      • Events
      • Powered by Claude
      • Service partners
      • Startups program

      Company

      • Anthropic
      • Careers
      • Economic Futures
      • Research
      • News
      • Responsible Scaling Policy
      • Security and compliance
      • Transparency

      Help and security

      • Availability
      • Status
      • Support center

      Terms and policies

      • Privacy policy
      • Responsible disclosure policy
      • Terms of service: Commercial
      • Terms of service: Consumer
      • Usage policy

      Products

      • Claude
      • Claude Code
      • Max plan
      • Team plan
      • Enterprise plan
      • Download app
      • Pricing
      • Log in

      Features

      • Claude and Slack
      • Claude in Excel

      Models

      • Opus
      • Sonnet
      • Haiku

      Solutions

      • AI agents
      • Code modernization
      • Coding
      • Customer support
      • Education
      • Financial services
      • Government
      • Life sciences

      Claude Developer Platform

      • Overview
      • Developer docs
      • Pricing
      • Amazon Bedrock
      • Google Cloud’s Vertex AI
      • Console login

      Learn

      • Blog
      • Catalog
      • Courses
      • Use cases
      • Connectors
      • Customer stories
      • Engineering at Anthropic
      • Events
      • Powered by Claude
      • Service partners
      • Startups program

      Company

      • Anthropic
      • Careers
      • Economic Futures
      • Research
      • News
      • Responsible Scaling Policy
      • Security and compliance
      • Transparency

      Help and security

      • Availability
      • Status
      • Support center

      Terms and policies

      • Privacy policy
      • Responsible disclosure policy
      • Terms of service: Commercial
      • Terms of service: Consumer
      • Usage policy
      © 2025 ANTHROPIC PBC