Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Generate API key for Claude sonnet

nanoAI
New Member

Hello, 

how do I generate an api key for Claude sonnet within GCP (I want to use my gcp credits) ? I figured out how to do it for Gemini 

https://ai.google.dev/gemini-api/docs/api-key but can’t figure out how to do it for Claude,

 

thanks , 

0 1 1,032
1 REPLY 1

Hi @nanoAI,

Welcome to the Google Cloud Community!

Here’s how to enable Claude 3.5 Sonnet on the Google Cloud Console.

  1. Visit Vertex AI Model Garden and select “Browse Model Garden”. You can also find Claude 3.5 Sonnet on Google Cloud Marketplace.
  2. Navigate to the foundation models section.
  3. Select the Claude 3.5 Sonnet tile from the available models.
  4. Select “Enable” and follow the proceeding instructions.
  5. Use our sample notebook to start building.

To learn more, you can refer to the documentation on how to Use Anthropic's Claude models on Vertex AI. You may also check the Google Blog entry on Anthropic’s Claude 3.5 Sonnet on Vertex AI for more information.

I hope this helps!

Top Labels in this Space
Top Solution Authors