Article Complete
    AIM

    Anthropic Doubles Claude 3.5 Sonnet API's Output Token Limit to 8K Tokens

    Anthropic Doubles Claude 3.5 Sonnet API's Output Token Limit to 8K Tokens

    Discover the benefits of the new 8K token limit for Anthropic's Claude 3.5 Sonnet API. Learn how to enhance your AI applications today!

    Anthropic Doubles Claude 3.5 Sonnet API's Output Token Limit to 8K Tokens
    shyam.upadhyayΒ·
    5 min

    Anthropic announced that it has expanded the capabilities of its Claude 3.5 Sonnet AI model by doubling the maximum output token limit from 4,096 to 8,192 tokens.

    This enhancement is now available to developers using the Anthropic API, allowing for longer and more comprehensive AI-generated responses.

    To access this expanded functionality, developers need to include a specific beta header in their API calls: "anthropic-beta": "max-tokens-3-5-sonnet-2024-07-15". This must be added to the extra_headers parameter when creating messages through the API.

    The upgrade is reflected in the model parameters interface, which shows a maximum token sampling of 8,192. The temperature setting remains at 0.7, balancing creativity and coherence in outputs.

    Developers can implement this feature by updating their API calls with the new header, as demonstrated in the provided code snippet:

    This update gives developers greater flexibility in generating extended content, potentially improving applications in areas such as long-form text generation, detailed analysis, and complex problem-solving tasks.

    The increased token limit allows Claude 3.5 Sonnet to produce more extensive and nuanced outputs without the need for multiple API calls or text truncation.

    In response to user queries on social media, Anthropic's DevRel team clarified that this change is currently limited to the API and has not yet been implemented on claude.ai. They also expressed hope for a future rollout to the web interface.

    The increased token limit opens up new possibilities for developers working with large-scale text generation and complex language tasks.

    Your reaction

    Discussion

    What's your take on this story?

    0/1000

    No comments yet β€” be the first to share your view.

    Explore our newsletters

    Build your routine with some of our top newsletters or view them all here.

    Wake up informed

    Make sense of the day's AI news and breakthroughs with our morning briefing.

    Belamy
    WeeklyBelamySee the latest

    Industry intelligence

    Receive a roundup of AI adoption stories by industry vertical, curated for professionals.

    3x WeeklySector6See the latest

    By signing up, you agree to our Privacy Policy.

    Membership

    Stay ahead with AI insights.

    Unlimited access to premium articles, exclusive analysis, and the stories shaping India's AI economy.

    Subscribe now

    AIM Americas

    1190 Miraloma Way Suite P, Sunnyvale, CA 94085

    AIM India

    1st Floor, Sakti Statesman, Bellandur, Bengaluru – 560103

    Β© 2026 AIM. All rights reserved.