UHG
Search
Close this search box.

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

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

Share

OpenAI-Anthropic Merger No More

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.

📣 Want to advertise in AIM? Book here

Picture of Shyam Nandan Upadhyay

Shyam Nandan Upadhyay

Shyam is a tech journalist with expertise in policy and politics, and exhibits a fervent interest in scrutinising the convergence of AI and analytics in society. In his leisure time, he indulges in anime binges and mountain hikes.
Related Posts
Association of Data Scientists
Tailored Generative AI Training for Your Team
Upcoming Large format Conference
Sep 25-27, 2024 | 📍 Bangalore, India
Download the easiest way to
stay informed

Subscribe to The Belamy: Our Weekly Newsletter

Biggest AI stories, delivered to your inbox every week.

Flagship Events

Rising 2024 | DE&I in Tech Summit
April 4 and 5, 2024 | 📍 Hilton Convention Center, Manyata Tech Park, Bangalore
Data Engineering Summit 2024
May 30 and 31, 2024 | 📍 Bangalore, India
MachineCon USA 2024
26 July 2024 | 583 Park Avenue, New York
MachineCon GCC Summit 2024
June 28 2024 | 📍Bangalore, India
Cypher USA 2024
Nov 21-22 2024 | 📍Santa Clara Convention Center, California, USA
Cypher India 2024
September 25-27, 2024 | 📍Bangalore, India
discord icon
AI Forum for India
Our Discord Community for AI Ecosystem, In collaboration with NVIDIA.