{"id":2168,"date":"2024-03-05T08:14:35","date_gmt":"2024-03-05T08:14:35","guid":{"rendered":"https:\/\/favtutor.com\/articles\/?p=2168"},"modified":"2024-04-09T10:51:15","modified_gmt":"2024-04-09T10:51:15","slug":"claude-3-access","status":"publish","type":"post","link":"https:\/\/favtutor.com\/articles\/claude-3-access\/","title":{"rendered":"How to Access Claude 3: Anthropic\u2019s AI Models? (Haiku Update)"},"content":{"rendered":"\n<p>Anthropic has now released its latest and new state-of-the-art chatbot, Claude 3.&nbsp;They claim to be the most powerful and capable model today. But how to get access to Claude 3? How to get API Keys for the AI models? Let&#8217;s find out that! <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Access Claude 3?<\/strong><\/h2>\n\n\n\n<p><strong>Claude 3 comes in a family of three AI models namely Claude 3 Haiku, Claude 3 Sonnet, and Claude 3 Opus. You can access Opus and Sonnet starting today through Claude&#8217;s official website and the widely released API. Haiku, the fastest model was also released later on 14 March 2024, by Anthropic.<\/strong><\/p>\n\n\n\n<p> The models come in order of increasing capabilities, performance benchmarks, and costs.&nbsp;You can log in via the <a href=\"https:\/\/claude.ai\/login\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">claude.ai website<\/a>:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Claude-3-website-to-access-1024x576.jpg\" alt=\"Claude 3 website to access\" class=\"wp-image-2169\" srcset=\"https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Claude-3-website-to-access-1024x576.jpg 1024w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Claude-3-website-to-access-300x169.jpg 300w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Claude-3-website-to-access-768x432.jpg 768w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Claude-3-website-to-access-750x422.jpg 750w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Claude-3-website-to-access-1140x641.jpg 1140w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Claude-3-website-to-access.jpg 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p>Sonnet is the version that is freely available for use as of now and is also available today through Amazon Bedrock and in private preview on Google Cloud\u2019s Vertex AI Model Garden.&nbsp;<\/p>\n\n\n\n<p>Opus is the most powerful version of Claude 3 which is claimed by Anthropic to have almost near human processing capabilities. You can also access Opus through claude.ai, however, it is not free of cost and you need to have a Claude Pro subscription. It comes with several enhancements which makes it a big competitor to ChatGPT and Gemini.<\/p>\n\n\n\n<p>The third version namely Claude 3 Haiku model is also claimed to be the world\u2019s fastest AI chatbot as of now. It is said to offer near-instant responsiveness to user prompts and queries. You can access Haiku through Claude 3&#8217;s API or by having a Claude Pro subscription on <a href=\"https:\/\/claude.ai\" data-type=\"link\" data-id=\"https:\/\/claude.ai\" target=\"_blank\" rel=\"noopener\">claude.ai<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How Can You Access Claude 3\u2019s API?<\/strong><\/h2>\n\n\n\n<p><strong>To get access to Claude 3\u2019s Sonnet, Opus and Haiku models you will need API access. You can get free API access when you log in to Claude 3 via console.anthropic.com.<\/strong><\/p>\n\n\n\n<p>Once you create an account and log in, on the home page you will see a banner that says you can claim 5$ in free credits for testing Claude. Click on that (You will need a mobile number verification for the process):<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"659\" height=\"1024\" src=\"https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Cluade-3-free-claim-659x1024.jpg\" alt=\"Cluade 3 free claim\" class=\"wp-image-2184\" srcset=\"https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Cluade-3-free-claim-659x1024.jpg 659w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Cluade-3-free-claim-193x300.jpg 193w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Cluade-3-free-claim-768x1193.jpg 768w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Cluade-3-free-claim-750x1165.jpg 750w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Cluade-3-free-claim.jpg 824w\" sizes=\"(max-width: 659px) 100vw, 659px\" \/><\/figure>\n<\/div>\n\n\n<p>After this, click on \u201cGet API Keys\u201d. To obtain Claude 3 API keys, you can also go to console.anthropic.com\/settings\/keys:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"474\" src=\"https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Claude-3-API-Keys-1024x474.jpg\" alt=\"Claude 3 API Keys\" class=\"wp-image-2185\" srcset=\"https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Claude-3-API-Keys-1024x474.jpg 1024w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Claude-3-API-Keys-300x139.jpg 300w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Claude-3-API-Keys-768x355.jpg 768w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Claude-3-API-Keys-750x347.jpg 750w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Claude-3-API-Keys-1140x527.jpg 1140w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Claude-3-API-Keys.jpg 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p>Following this step, you will be given the option to create the API key. Press on the \u201cCreate Key\u201d button following which you will be prompted to give a name for the key. Give it any name and create the key:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"478\" src=\"https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Claude-3-API-give-key-name-1024x478.jpg\" alt=\"Claude 3 API give key name\" class=\"wp-image-2186\" srcset=\"https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Claude-3-API-give-key-name-1024x478.jpg 1024w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Claude-3-API-give-key-name-300x140.jpg 300w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Claude-3-API-give-key-name-768x359.jpg 768w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Claude-3-API-give-key-name-750x350.jpg 750w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Claude-3-API-give-key-name-1140x533.jpg 1140w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Claude-3-API-give-key-name.jpg 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p>You will have the generated API key:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"549\" height=\"383\" src=\"https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Claude-3-Key-Generated.jpg\" alt=\"Claude 3 Key Generated\" class=\"wp-image-2190\" srcset=\"https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Claude-3-Key-Generated.jpg 549w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Claude-3-Key-Generated-300x209.jpg 300w\" sizes=\"(max-width: 549px) 100vw, 549px\" \/><\/figure>\n<\/div>\n\n\n<p>Copy it, and store it securely for future use.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Guide to Using Claude 3 APIs<\/strong><\/h2>\n\n\n\n<p><strong>To run Claude 3 APIs for access to all Sonnet, Opus and Haiku models you will need to run Python 3.7.1 or higher, through your terminal. If you don\u2019t have it, set up Python on your system using pip.<\/strong><\/p>\n\n\n\n<p>To get started you will need to install the Claude Library through your terminal. Enter the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install anthropic<\/code><\/pre>\n\n\n\n<p>The next step is setting up your generated API key. <\/p>\n\n\n\n<p>If you are a macOS or Linux user follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Launch the terminal and enter nano ~\/.bash_profile (or, if you&#8217;re using a more recent version of macOS, type nano ~\/.zshrc).<\/li>\n\n\n\n<li>Replace your-api-key-here with your actual API key and add this line to the file: export ANTHROPIC_API_KEY=&#8217;your-api-key-here&#8217;<\/li>\n\n\n\n<li>After saving the file, close the editor by pressing Ctrl+O, Enter, and Ctrl+X.<\/li>\n\n\n\n<li>Run source ~\/.bash_profile (or source ~\/.zshrc) to load the new profile.<\/li>\n<\/ol>\n\n\n\n<p>For Windows users, perform the following steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Enter setx ANTHROPIC_API_KEY &#8220;your-api-key-here&#8221; at the command prompt, substituting &#8220;your-api-key-here&#8221; with the actual API key.<\/li>\n<\/ul>\n\n\n\n<p>You will need to make this a permanent setting. To do that:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Use the right-click menu to choose &#8220;Properties&#8221; from &#8220;This PC&#8221; or &#8220;My Computer.&#8221;<\/li>\n\n\n\n<li>Click on &#8216;Advanced system settings&#8217;<\/li>\n\n\n\n<li>Click the &#8216;Environment Variables&#8217; button<\/li>\n\n\n\n<li>Click &#8216;New&#8230;&#8217; in the &#8216;System variables&#8217; section, then type your API key as the variable value and ANTHROPIC_API_KEY as the variable name.<\/li>\n<\/ol>\n\n\n\n<p>As of now, you must have successfully set up your generated API key to be used with Claude 3. The next step is to send your API request to Claude. Make a new Python file (claude_test.py, for example) and include the following code in it:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import anthropic\n\nclient = anthropic.Anthropic(\n# defaults to os.environ.get(\"ANTHROPIC_API_KEY\")\n&nbsp;&nbsp;&nbsp;&nbsp;api_key=\"my_api_key\",\n)\n\nmessage = client.messages.create(\n&nbsp;&nbsp;&nbsp;&nbsp;model=\"claude-3-opus-20240229\",\n&nbsp;&nbsp;&nbsp;&nbsp;max_tokens=1000,\n&nbsp;&nbsp;&nbsp;&nbsp;temperature=0.0,\n&nbsp;&nbsp;&nbsp;&nbsp;system=\"Respond only in Yoda-speak.\",\n&nbsp;&nbsp;&nbsp;&nbsp;messages=&#91;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{\"role\": \"user\", \"content\": \"How are you today?\"}\n]\n)\n\nprint(message.content)\n\n<\/code><\/pre>\n\n\n\n<p>The code snippet has been obtained from Claude 3 API\u2019s<a href=\"https:\/\/docs.anthropic.com\/claude\/docs\/quickstart-guide\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"> official documentation website<\/a>. It contains the Opus model version by default. To have access to the Sonnet version change \u201cclaude-3-opus-20240229\u201d to \u201cclaude-3-sonnet-20240229\u201d and similarly to \u201cclaude-3-haiku-20240307\u201d to access the Haiku version.<\/p>\n\n\n\n<p>You can save the .py file on any of your preferred locations but make sure the .py extension is added.<\/p>\n\n\n\n<p>Just enter python claude_test.py ( or the file name you have given to the .py file) on the terminal or command prompt to begin running the code. Claude should respond to you like a proverb!<\/p>\n\n\n\n<p>Congratulations, you have successfully sent your first API request to Claude and now you can access all the three Opus ,Sonnet and Haiku models based on your needs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Access Claude 3 Haiku through Amazon Bedrock<\/strong><\/h2>\n\n\n\n<p><strong>You can also access the newly released Claude 3 Haiku model through Amazon Bedrock.<\/strong> <strong>To use the fastest Claude model, go to Amazon Bedrock Console and select Model access from the window on the bottom left. For Claude 3 Haiku, make a separate request for access.<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"963\" height=\"580\" src=\"https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Screenshot-375-1.png\" alt=\"Claude 3 Haiku on Amazon Bedrock\" class=\"wp-image-2391\" srcset=\"https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Screenshot-375-1.png 963w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Screenshot-375-1-300x181.png 300w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Screenshot-375-1-768x463.png 768w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Screenshot-375-1-750x452.png 750w\" sizes=\"(max-width: 963px) 100vw, 963px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"has-text-align-left\">You can start testing your prompt texts with Haiku in the console. To begin the process from the Playgrounds menu pane on the left, select Text or Chat. Next, select Claude 3 Haiku as the model and Anthropic as the category under Select model. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"962\" height=\"526\" src=\"https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Screenshot-376-1.png\" alt=\"Claude 3 Haiku tool interface AWS\" class=\"wp-image-2392\" srcset=\"https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Screenshot-376-1.png 962w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Screenshot-376-1-300x164.png 300w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Screenshot-376-1-768x420.png 768w, https:\/\/favtutor.com\/articles\/wp-content\/uploads\/2024\/03\/Screenshot-376-1-750x410.png 750w\" sizes=\"(max-width: 962px) 100vw, 962px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"has-text-align-left\">Congratulations! You are good to go with Claude 3 family&#8217;s fastest model, Haiku. Do give it your prompts and experience the lightning fast responses generated with very less processing times. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Future Updates from Anthropic<\/strong><\/h2>\n\n\n\n<p>All the Claude 3 models have shown Increased skills in analysis and forecasting, complex content production, code generation, and speaking non-English languages including French, Spanish, and Japanese.&nbsp;You can check the <a href=\"https:\/\/favtutor.com\/articles\/claude-3-benchmarks-comparison\/\">benchmarks of Claude 3 here<\/a>. <\/p>\n\n\n\n<p>Both Claude 3 Opus and Haiku models will soon be released on Google Cloud Vertex AI in the upcoming days.<\/p>\n\n\n\n<p>Anthropic also stated that they plan to release consistent updates to their new Claude 3 IAI models in the coming months, along with new features for enterprise use cases and large-scale deployments.<\/p>\n\n\n\n<p>Some of these upcoming features they mentioned are Tool Use (aka function calling), and interactive coding (aka REPL). We will have to see how good they are compared to existing models.<\/p>\n\n\n\n<p>The official announcement clearly stated the safety guidelines as well:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>As we push the boundaries of AI capabilities, we\u2019re equally committed to ensuring that our safety guardrails keep pace with these leaps in performance. Our hypothesis is that being at the frontier of AI development is the most effective way to steer its trajectory toward positive societal outcomes. <\/p>\n<\/blockquote>\n\n\n\n<p>They are testing it ethically and getting feedback from users to make it better and safer. <\/p>\n\n\n\n<p>For new users, here are <a href=\"https:\/\/favtutor.com\/articles\/claude-3-prompts\/\">100+ Claude 3 prompts<\/a> to test it thoroughly and find out how it can be used by people in different sectors like education, sales, marketing, developers, etc.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>Claude 3 has just launched and is already making wonders with its seamless and unending benefits. Go try Sonnet, Opus and Haiku for yourselves and join the updated GenAI developer community. All three models have strong potential and all already leading the race of AI giants.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Find out how you can access Anthropic&#8217;s AI models of the new Claude 3 API. Learn how to get the keys for Sonnet, Opus, and Haiku.<\/p>\n","protected":false},"author":15,"featured_media":2171,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jnews-multi-image_gallery":[],"jnews_single_post":null,"jnews_primary_category":{"id":"","hide":""},"footnotes":""},"categories":[57],"tags":[90],"class_list":["post-2168","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","tag-claude"],"_links":{"self":[{"href":"https:\/\/favtutor.com\/articles\/wp-json\/wp\/v2\/posts\/2168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/favtutor.com\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/favtutor.com\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/favtutor.com\/articles\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/favtutor.com\/articles\/wp-json\/wp\/v2\/comments?post=2168"}],"version-history":[{"count":8,"href":"https:\/\/favtutor.com\/articles\/wp-json\/wp\/v2\/posts\/2168\/revisions"}],"predecessor-version":[{"id":3428,"href":"https:\/\/favtutor.com\/articles\/wp-json\/wp\/v2\/posts\/2168\/revisions\/3428"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/favtutor.com\/articles\/wp-json\/wp\/v2\/media\/2171"}],"wp:attachment":[{"href":"https:\/\/favtutor.com\/articles\/wp-json\/wp\/v2\/media?parent=2168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/favtutor.com\/articles\/wp-json\/wp\/v2\/categories?post=2168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/favtutor.com\/articles\/wp-json\/wp\/v2\/tags?post=2168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}