Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

google-managed changedbuild-with-claude/claude-models-on-google-cloud/google-managed

Nearest release: v2.1.328, published 7 hours after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+35added
Lines−22removed
From line 1 where the diff opens
First seen 23 Oct 2026 this site's first read of the page
Recorded edits22to this page, all time

The whole hunk

from line 1, old and new numbered
/
lines
from line 1
11---
22title: Claude Models on Google Cloud (Google managed)
33url: https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed
4description: Google operates Claude Models on Google Cloud (Google managed) as part of Google Cloud's Agent Platform. You can call Claude with Anthropic's client SDKs.
4description: Set up Claude Models on Google Cloud (Google managed), which Google operates as part of Google Cloud's Agent Platform. Then, call Claude with the Anthropic SDK or cURL.
55---
66 
77[Claude Models on Google Cloud](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/overview) compares the two Google Cloud offerings. It also shows how to tell which one you use.
from line 79
7979 
8080 <Tab title="Ruby">
8181 ```bash
82 # Gemfile
83 gem "anthropic"
84 gem "googleauth"
82 bundle add anthropic
83 bundle add googleauth
8584 ```
8685 </Tab>
8786</Tabs>
from line 94
9594A request is nearly identical to a [Messages API](https://platform.claude.com/docs/en/api/messages/create) request. It differs in two main ways:
9695 
9796* **Model:** The endpoint URL names the model. In a cURL request, leave `model` out of the body.
98* **Version:** In a cURL request, pass `anthropic_version` in the body, not as a header. Set it to `vertex-2023-10-16`, or to [API version `2026-10-21`](https://platform.claude.com/docs/en/api/migration-2026-10-21).
97* **Version:** In a cURL request, pass `anthropic_version` in the body and not as a header. Set it to `vertex-2023-10-16` or to [API version `2026-10-21`](https://platform.claude.com/docs/en/api/migration-2026-10-21).
9998 
99The SDK handles both differences for you. It moves your `model` value into the URL and sets `anthropic_version` to the API version that it uses with the Claude API. For the model IDs to pass, see [API model IDs](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed#api-model-ids).
100 
101In the following examples, the SDK client authenticates with Application Default Credentials. To set up Application Default Credentials, see [Before making API calls](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed#before-making-api-calls).
102 
100103The following examples use the global endpoint. For the other endpoint types, see [Global, multi-region, and regional endpoints](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed#global-multi-region-and-regional-endpoints).
101104 
102105<CodeGroup exclude="shell:CLI">
from line 192
189192 "github.com/anthropics/anthropic-sdk-go/v2"
190193 "github.com/anthropics/anthropic-sdk-go/v2/vertex"
191194 )
192 // ...
193 // Uses default Google Cloud credentials
195 
196 func main() {
197 // Uses Application Default Credentials. Arguments: context, region, project ID.
194198 client := anthropic.NewClient(
195199 vertex.WithGoogleAuth(context.Background(), "global", "MY_PROJECT_ID"),
196200 )
from line 210
206210 panic(err)
207211 }
208212 fmt.Printf("%+v\n", message)
213 }
209214 ```
210215 
211216 ```java Java
from line 250
245250 ```php PHP
246251 use Anthropic\Messages\Model;
247252 use Anthropic\Messages\TextBlock;
248 use Anthropic\Vertex;
253 use Anthropic\Vertex\Client;
249254 
250 $client = Vertex\Client::fromEnvironment(
255 $client = Client::fromEnvironment(
251256 region: 'global',
252257 projectId: 'MY_PROJECT_ID',
253258 );
from line 286
281286 messages: [{ role: "user", content: "Hey Claude!" }]
282287 )
283288 
284 puts message.content.find { |block| block.is_a?(Anthropic::Models::TextBlock) }.text
289 message.content.grep(Anthropic::Models::TextBlock).each { |block| puts block.text }
285290 ```
286291</CodeGroup>
287292 
from line 410
405410 "github.com/anthropics/anthropic-sdk-go/v2"
406411 "github.com/anthropics/anthropic-sdk-go/v2/vertex"
407412 )
408 // ...
413 
414 func main() {
409415 // Multi-region identifier: "us" or "eu"
410416 client := anthropic.NewClient(
411417 vertex.WithGoogleAuth(context.Background(), "us", "MY_PROJECT_ID"),
412418 )
419 // ...
420 }
413421 ```
414422 
415423 ```java Java
from line 441
433441 ```
434442 
435443 ```php PHP
436 use Anthropic\Vertex;
444 use Anthropic\Vertex\Client;
437445 
438 $client = Vertex\Client::fromEnvironment(
446 $client = Client::fromEnvironment(
439447 region: 'us', // Multi-region identifier: "us" or "eu"
440448 projectId: 'MY_PROJECT_ID',
441449 );
from line 607
599607 import (
600608 "context"
601609 
602 "github.com/anthropics/anthropic-sdk-go/v2"
603610 "github.com/anthropics/anthropic-sdk-go/v2/googlecloud"
604611 )
605 // ...
612 
613 func main() {
606614 client, err := googlecloud.NewClient(context.Background(), googlecloud.ClientConfig{})
607615 if err != nil {
608616 panic(err)
609617 }
618 // ...
619 }
610620 ```
611621 
612622 ```java Java
from line 699
689699 "github.com/anthropics/anthropic-sdk-go/v2"
690700 "github.com/anthropics/anthropic-sdk-go/v2/vertex"
691701 )
692 // ...
693 // Uses default Google Cloud credentials
702 
703 func main() {
704 // Uses Application Default Credentials. Arguments: context, region, project ID.
694705 client := anthropic.NewClient(
695706 vertex.WithGoogleAuth(context.Background(), "global", "MY_PROJECT_ID"),
696707 )
708 // ...
709 }
697710 ```
698711 
699712 ```java Java
from line 729
716729 ```
717730 
718731 ```php PHP
719 use Anthropic\Vertex;
732 use Anthropic\Vertex\Client;
720733 
721 $client = Vertex\Client::fromEnvironment(
734 $client = Client::fromEnvironment(
722735 region: 'global',
723736 projectId: 'MY_PROJECT_ID',
724737 );
Feedback