Loading...
    • Developer Guide
    • API Reference
    • MCP
    • Resources
    • Release Notes
    Search...
    ⌘K
    First steps
    Intro to ClaudeQuickstart
    Models & pricing
    Models overviewChoosing a modelWhat's new in Claude 4.5Migrating to Claude 4.5Model deprecationsPricing
    Build with Claude
    Features overviewUsing the Messages APIContext windowsPrompting best practices
    Capabilities
    Prompt cachingContext editingExtended thinkingEffortStreaming MessagesBatch processingCitationsMultilingual supportToken countingEmbeddingsVisionPDF supportFiles APISearch resultsStructured outputs
    Tools
    OverviewHow to implement tool useFine-grained tool streamingBash toolCode execution toolProgrammatic tool callingComputer use toolText editor toolWeb fetch toolWeb search toolMemory toolTool search tool
    Agent Skills
    OverviewQuickstartBest practicesUsing Skills with the API
    Agent SDK
    OverviewQuickstartTypeScript SDKTypeScript V2 (preview)Python SDKMigration Guide
    MCP in the API
    MCP connectorRemote MCP servers
    Claude on 3rd-party platforms
    Amazon BedrockMicrosoft FoundryVertex AI
    Prompt engineering
    OverviewPrompt generatorUse prompt templatesPrompt improverBe clear and directUse examples (multishot prompting)Let Claude think (CoT)Use XML tagsGive Claude a role (system prompts)Prefill Claude's responseChain complex promptsLong context tipsExtended thinking tips
    Test & evaluate
    Define success criteriaDevelop test casesUsing the Evaluation ToolReducing latency
    Strengthen guardrails
    Reduce hallucinationsIncrease output consistencyMitigate jailbreaksStreaming refusalsReduce prompt leakKeep Claude in character
    Administration and monitoring
    Admin API overviewUsage and Cost APIClaude Code Analytics API
    Console
    Log in
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...

    Solutions

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

    Partners

    • Amazon Bedrock
    • Google Cloud's Vertex AI

    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

    Learn

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

    Help and security

    • Availability
    • Status
    • Support
    • Discord

    Terms and policies

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

    Choosing the right model

    Selecting the optimal Claude model for your application involves balancing three key considerations: capabilities, speed, and cost. This guide helps you make an informed decision based on your specific requirements.

    Establish key criteria

    When choosing a Claude model, we recommend first evaluating these factors:

    • Capabilities: What specific features or capabilities will you need the model to have in order to meet your needs?
    • Speed: How quickly does the model need to respond in your application?
    • Cost: What's your budget for both development and production usage?

    Knowing these answers in advance will make narrowing down and deciding which model to use much easier.


    Choose the best model to start with

    There are two general approaches you can use to start testing which Claude model best works for your needs.

    Option 1: Start with a fast, cost-effective model

    For many applications, starting with a faster, more cost-effective model like Claude Haiku 4.5 can be the optimal approach:

    1. Begin implementation with Claude Haiku 4.5
    2. Test your use case thoroughly
    3. Evaluate if performance meets your requirements
    4. Upgrade only if necessary for specific capability gaps

    This approach allows for quick iteration, lower development costs, and is often sufficient for many common applications. This approach is best for:

    • Initial prototyping and development
    • Applications with tight latency requirements
    • Cost-sensitive implementations
    • High-volume, straightforward tasks

    Option 2: Start with the most capable model

    For complex tasks where intelligence and advanced capabilities are paramount, you may want to start with the most capable model and then consider optimizing to more efficient models down the line:

    1. Implement with Claude Sonnet 4.5
    2. Optimize your prompts for these models
    3. Evaluate if performance meets your requirements
    4. Consider increasing efficiency by downgrading intelligence over time with greater workflow optimization

    This approach is best for:

    • Complex reasoning tasks
    • Scientific or mathematical applications
    • Tasks requiring nuanced understanding
    • Applications where accuracy outweighs cost considerations
    • Advanced coding

    Model selection matrix

    When you need...We recommend starting with...Example use cases
    Best model for complex agents and coding, highest intelligence across most tasks, superior tool orchestration for long-running autonomous tasksClaude Sonnet 4.5Autonomous coding agents, cybersecurity automation, complex financial analysis, multi-hour research tasks, multi agent frameworks
    Maximum intelligence with practical performance for complex specialized tasksClaude Opus 4.5Professional software engineering, advanced agents for office tasks, computer and browser use at scale, step-change vision applications
    Exceptional intelligence and reasoning for specialized complex tasksClaude Opus 4.1Highly complex codebase refactoring, nuanced creative writing, specialized scientific analysis
    Near-frontier performance with lightning-fast speed and extended thinking - our fastest and most intelligent Haiku model at the most economical price pointClaude Haiku 4.5Real-time applications, high-volume intelligent processing, cost-sensitive deployments needing strong reasoning, sub-agent tasks

    Decide whether to upgrade or change models

    To determine if you need to upgrade or change models, you should:

    1. Create benchmark tests specific to your use case - having a good evaluation set is the most important step in the process
    2. Test with your actual prompts and data
    3. Compare performance across models for:
      • Accuracy of responses
      • Response quality
      • Handling of edge cases
    4. Weigh performance and cost tradeoffs

    Next steps

    Model comparison chart

    See detailed specifications and pricing for the latest Claude models

    What's new in Claude 4.5

    Explore the latest improvements in Claude 4.5 models

    Start building

    Get started with your first API call

    • Establish key criteria
    • Choose the best model to start with
    • Option 1: Start with a fast, cost-effective model
    • Option 2: Start with the most capable model
    • Model selection matrix
    • Decide whether to upgrade or change models
    • Next steps