Claude Platform Docs
MessagesGoogle Cloud

Claude Models on Google Cloud (Anthropic managed)

Claude Models on Google Cloud (Anthropic managed) is the Claude API, run by Anthropic and reached through your Google Cloud project.

Google Cloud handles access and billing for Claude Models on Google Cloud (Anthropic managed). To compare the two Google Cloud offerings, or to check which one you use, see Claude Models on Google Cloud.

Set up your account

To set up your account for Claude Models on Google Cloud (Anthropic managed), you need the following:

These steps create a new Anthropic organization for your Google Cloud project. It’s separate from any Anthropic organization your company already has. That includes a Claude Enterprise organization. To move from an existing organization, see Moving from an existing Anthropic organization.

If you have an existing discount, contact your Anthropic or Google Cloud account representative before you start these steps. Discounts can’t be applied to past usage.

  1. Subscribe in Marketplace

    1. Open Google Cloud Marketplace and find the Claude Models on Google Cloud (Anthropic managed) listing.
    2. Click Subscribe and complete the purchase flow.
    3. Return to the listing and click Manage on Console. This opens the Claude page in the Google Cloud console.

    To return to the Claude page later, select your project in the Google Cloud console. Then go to Agent Platform > Models > Claude Platform and select Anthropic managed.

  2. Enable the services

    Enable two services on every project that calls Claude Models on Google Cloud (Anthropic managed):

    • claude.googleapis.com serves the API for Claude Models on Google Cloud (Anthropic managed). This service also defines the IAM permissions. Calls fail without it.
    • anthropic-managed-claude.cloudpartnerservices.goog is the Marketplace service that attributes the project’s usage to your subscription.
    CLI
    gcloud services enable claude.googleapis.com \
      anthropic-managed-claude.cloudpartnerservices.goog \
      --project=my-project-id

    Replace my-project-id with your project ID.

    You can also enable both from the Claude page or from APIs & Services. Enabling is a one-time step for each project. To check that both services are enabled, run gcloud services list --enabled --project=my-project-id and look for both names.

  3. Set up your Anthropic organization

    1. On the Claude page, click Activate.
    2. In the Anthropic setup flow, enter a contact email address.
    3. Open the setup link sent to that address.
    4. Fill in the organization’s name, entity type, country, and intended use.
    5. Accept Anthropic’s Commercial Terms of Service and Usage Policy.

    The contact address is used only for setup and service notices. For how people open the Claude Console after setup, see Using the Claude Console.

  4. Open the Claude Console

    When your Anthropic organization is active, the button on the Claude page changes to Open Claude Console. Click it. Google Cloud checks your IAM access. Then it redirects your browser to platform.claude.com. You’re signed in to the new organization.

    While you’re in the Claude Console, find your workspace ID and copy it. Everyone who calls Claude Models on Google Cloud (Anthropic managed) needs it. Pass it on to your developers.

To add another project, repeat these steps in that project, starting from step 2.

Troubleshooting account setup

If you run into one of the following problems while you set up Claude Models on Google Cloud (Anthropic managed), apply its fix:

  • gcloud services enable can’t find anthropic-managed-claude.cloudpartnerservices.goog: Run the command as the account that completed the Marketplace purchase, or contact your Anthropic account representative.
  • A permission error on your first API call: Check that claude.googleapis.com is enabled on the project you’re calling. Check that the caller has roles/claude.user or roles/claude.admin on that project. For what each role allows, see IAM roles. A new grant or a newly enabled service can take a moment to apply.
  • “Signed in as a different account” after following the setup link: Click Log out and continue. Then use the email address you entered in step 3.
  • The button says “Finish Setup” instead of “Open Claude Console”: Your Anthropic organization exists, but its setup isn’t complete. An administrator has to finish the organization details form.
  • The Usage page shows no data after your first API call: Usage data can take a few minutes to appear in the Claude Console.

Manage access

IAM roles

Claude Models on Google Cloud (Anthropic managed) has three predefined IAM roles. Grant roles on the project.

RoleDisplay nameWhat it allows
roles/claude.viewerClaude ViewerEvery get and list permission on workspace resources
This role is read-only.
roles/claude.userClaude UserEverything roles/claude.viewer allows, plus creating and changing workspace resources
This includes sending messages and counting tokens. It also includes managing batches, files, skills, and Claude Managed Agents resources.
roles/claude.adminClaude AdminEverything roles/claude.user allows, plus the permissions checked on your Anthropic organization
Organization-level routes act on your Anthropic organization as a whole, not on one workspace.

For example, the following command lets a service account call Claude Models on Google Cloud (Anthropic managed):

CLI
gcloud projects add-iam-policy-binding my-project-id \
  --member="serviceAccount:my-app@my-project-id.iam.gserviceaccount.com" \
  --role="roles/claude.user"

For permissions, predefined roles, and audit log types, see IAM permissions for Claude Models on Google Cloud (Anthropic managed).

Enabling claude.googleapis.com creates a service agent for the project. Don’t remove its role grants. Removing them stops Claude Models on Google Cloud (Anthropic managed) from working in the project.

Using the Claude Console

With Claude Models on Google Cloud (Anthropic managed), you can’t use an email address to sign in to your Anthropic organization. Instead, click Open Claude Console on the Claude page in the Google Cloud console. Google Cloud IAM controls who can open the Claude Console. Of the three predefined IAM roles, only roles/claude.admin on the project lets you open the Claude Console.

Workspaces

In Claude Models on Google Cloud (Anthropic managed), setup creates your Anthropic organization with one workspace, the Default Workspace. To create more workspaces, open the Claude Console and go to Settings > Workspaces. On the same page, you can rename or archive any workspace except the Default Workspace. Each workspace has its own workspace ID. Files, skills, batches, Claude Managed Agents sessions, and other workspace resources belong to the workspace whose ID you set for the request.

You grant IAM roles on the project, so a role applies to every workspace in that project. When teams need separate access, give each team its own Google Cloud project. Each project has its own Anthropic organization, so repeat the setup steps in each project, starting from step 2.

Before making API calls

To call Claude Models on Google Cloud (Anthropic managed), you need the following:

  1. A Google Cloud project with an active subscription and an Anthropic organization whose setup is complete. See Set up your account.
  2. The gcloud CLI installed, for local development.
  3. The roles/claude.user role, granted on the project to the identity that makes the calls.
  4. Application Default Credentials for that identity. See Authentication.
  5. Your project ID and your workspace ID.

To grant the role to your own account for local development, run the following command. You need permission to change the project’s IAM policy.

CLI
gcloud projects add-iam-policy-binding my-project-id \
  --member="user:you@example.com" \
  --role="roles/claude.user"

Replace my-project-id with your project ID. Replace you@example.com with your Google account’s email address. To see the project gcloud is using, run gcloud config get-value project. For service accounts and the other roles, see IAM roles.

Find your workspace ID

To find your workspace ID for Claude Models on Google Cloud (Anthropic managed), open the Claude Console and go to Settings > Workspaces. The ID starts with wrkspc_. If you can’t open the Claude Console, ask someone who can open it to send you the ID.

Set the project and workspace as environment variables so that the SDK client and the ant CLI pick them up:

CLI
export ANTHROPIC_GOOGLE_CLOUD_PROJECT="my-project-id"
export ANTHROPIC_GOOGLE_CLOUD_WORKSPACE_ID="wrkspc_01AbCdEf23GhIj"

Install an SDK

The SDK client for Claude Models on Google Cloud (Anthropic managed) is AnthropicGoogleCloud. The client resolves your Google credentials. It also builds the base URL from your project, location, and workspace ID.

Install the package that provides the client:

pip install -U "anthropic[google_cloud]"

To use the ant CLI instead, install or update the CLI to the latest version. A version without support for Claude Models on Google Cloud (Anthropic managed) ignores the ANTHROPIC_GOOGLE_CLOUD_* variables. It then does one of the following:

  • Sends the request to the Claude API with any other credential you’ve set up
  • Fails with an authentication error

Making requests

Claude Models on Google Cloud (Anthropic managed) serves Claude API endpoints under a base URL that names your project, a location, and your workspace:

https://claude.googleapis.com/v1/projects/{project}/locations/global/workspaces/{workspace}/invoke

The organization-level routes, whose paths start with /v1/organizations/, and the user profile routes under /v1/user_profiles use a base URL without the workspace:

https://claude.googleapis.com/v1/projects/{project}/locations/global/claudeOrganization/invoke

If you don’t set the base URL, the SDK client chooses between these two for each request.

Append the Claude API path to the base URL. For example, the Messages APIPreview with links to the API reference available — press Tab until focus enters the card, Escape to return. is at .../invoke/v1/messages. Three things differ from a Claude API request:

  • Base URL: The project-scoped URLs shown earlier, in place of https://code.saschaberens.de/_h/api.anthropic.com.
  • Authentication: An Authorization: Bearer header with a Google access token. Don’t send an x-api-key header.
  • Workspace: The workspace ID is part of the URL. Don’t send an anthropic-workspace-id header.

Everything else is the same as on the Claude API, including the following:

  • The anthropic-version and anthropic-beta headers
  • The request body
  • Streaming
  • The response

One exception is request size: Messages and Token Counting requests have a lower limit. For that limit, see the API overview’s Request size limits section.

Code samples elsewhere in this documentation create the Claude API client and read an API key. To run one with Claude Models on Google Cloud (Anthropic managed), replace its import and client constructor with the ones in the following examples. For a cURL sample, apply the three differences listed earlier.

Before running these examples, complete the steps in Before making API calls.

from anthropic import AnthropicGoogleCloud

client = AnthropicGoogleCloud()

message = client.messages.create(
    model="claude-opus-5-5",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello, Claude"}],
)
print(message)

To call the API over raw HTTP, send an access token from Application Default Credentials. On a machine with the gcloud CLI, gcloud auth application-default print-access-token prints one. Access tokens are short-lived, so generate a new one when you need it instead of storing it. For other credential sources, see Authentication.

API model IDs

Claude Models on Google Cloud (Anthropic managed) uses the same model IDs as the Claude API. Available models include the following:

ModelModel ID
Claude Fable 5.2claude-fable-5-2
Claude Mythos 5.2 (limited availability)claude-mythos-5-2
Claude Fable 5.1claude-fable-5-1
Claude Mythos 5.1 (limited availability)claude-mythos-5-1
Claude Fable 5claude-fable-5
Claude Mythos 5 (limited availability)claude-mythos-5
Claude Opus 5.5claude-opus-5-5
Claude Opus 5claude-opus-5
Claude Opus 4.8claude-opus-4-8
Claude Opus 4.7claude-opus-4-7
Claude Opus 4.6claude-opus-4-6
Claude Opus 4.5 (deprecated)claude-opus-4-5-20251101
Claude Sonnet 5.5claude-sonnet-5-5
Claude Sonnet 5claude-sonnet-5
Claude Sonnet 4.6claude-sonnet-4-6
Claude Sonnet 4.5 (deprecated)claude-sonnet-4-5-20250929
Claude Haiku 5.5claude-haiku-5-5
Claude Haiku 4.5claude-haiku-4-5-20251001

Claude Models on Google Cloud (Anthropic managed) follows the Claude API’s lifecycle schedule. For the dates, see Model deprecations. To compare models, see Models overview.

In Claude Models on Google Cloud (Anthropic managed), a request for a model that isn’t available to your Anthropic organization returns an error. The error message reads Model {model} is not available for this organization's inference configuration.

Project, location, and workspace resolution

The client for Claude Models on Google Cloud (Anthropic managed) takes the settings in the following table. A value you pass when you create the client wins over the environment variable. To set the project and workspace ID explicitly, pass project and workspace_id.

SettingEnvironment variableIf unset
Project IDANTHROPIC_GOOGLE_CLOUD_PROJECT, then GOOGLE_CLOUD_PROJECTThe project that Application Default Credentials reports, when the credential type carries one
Workspace IDANTHROPIC_GOOGLE_CLOUD_WORKSPACE_IDThe client raises an error unless you set the base URL. Organization-level routes and user profile routes don’t need a workspace ID.
LocationANTHROPIC_GOOGLE_CLOUD_LOCATIONglobal
Base URLANTHROPIC_GOOGLE_CLOUD_BASE_URLDerived from the project, location, and workspace ID

Leave the location at global. The location is separate from where inference runs, so for US-only inference, set inference_geo: "us" on each request, as described in Data residency.

The ant CLI takes the same settings as flags:

  • Project ID: --google-cloud-project
  • Workspace ID: --google-cloud-workspace-id
  • Location: --google-cloud-location
  • Base URL: --google-cloud-base-url

The CLI uses Claude Models on Google Cloud (Anthropic managed) when the project, workspace ID, or location is set. Setting GOOGLE_CLOUD_PROJECT, the base URL, or both isn’t enough.

Authentication

Each request to Claude Models on Google Cloud (Anthropic managed) carries a Google OAuth 2.0 access token in an Authorization: Bearer header. The token has the https://www.googleapis.com/auth/cloud-platform scope.

Google Cloud handles access. Its gateway at claude.googleapis.com does the following for each request:

  1. Checks your Google Cloud credentials.
  2. Checks that the caller holds the IAM permission that the request needs. If the caller doesn’t, Google Cloud returns an HTTP 403 error.
  3. Forwards the request to Anthropic. Anthropic validates the request.

To grant permissions, see IAM roles.

The SDK client gets the token from Application Default Credentials (ADC). Any credential source that ADC supports works:

  • Local development: Run gcloud auth application-default login.
  • On Google Cloud: The client automatically uses the service account attached to the workload, for example on Compute Engine, GKE, or Cloud Run.
  • A service account key file: Set GOOGLE_APPLICATION_CREDENTIALS to its path.
  • Workload Identity Federation and service account impersonation: Configure them as you would for any Google Cloud API.

Check that ADC is working:

CLI
gcloud auth application-default print-access-token

Claude Models on Google Cloud (Anthropic managed) doesn’t use API keys. In the Claude Console, you can’t create API keys for the Anthropic organization that setup creates. The SDK client for Claude Models on Google Cloud (Anthropic managed) ignores these environment variables:

  • ANTHROPIC_API_KEY
  • ANTHROPIC_AUTH_TOKEN
  • ANTHROPIC_BASE_URL

Credential precedence

The SDK client for Claude Models on Google Cloud (Anthropic managed) checks for credentials in the following order. The client uses the first one it finds:

  1. A token provider that you pass as token_provider when you create the client. It’s a function or token source that returns an access token. The client asks it for a token on every request. Caching and refreshing the token are up to you.
  2. A Google credentials object that you pass as credentials when you create the client. The Go SDK doesn’t have this option.
  3. Application Default Credentials.

Go and Java differ from the other SDKs:

  • Go: For option 1, the client takes an oauth2.TokenSource. It caches the token until the token expires.
  • Java: Use GoogleCloudBackend.fromEnv() to read Application Default Credentials and the environment variables in Project, location, and workspace resolution.

The client has no environment variable of its own for the credential. Use ADC’s GOOGLE_APPLICATION_CREDENTIALS instead.

If your requests go through a proxy that attaches the token for you, set skip_auth. The client then sends no Authorization header. You can’t combine this setting with the preceding credential options.

When the ant CLI uses Claude Models on Google Cloud (Anthropic managed), it always gets the token from Application Default Credentials. It takes no token provider, credentials object, or setting to skip authentication.

Before you use ant with Claude Models on Google Cloud (Anthropic managed), make sure none of these is set:

  • An API key
  • An authentication token
  • --profile or ANTHROPIC_PROFILE, if it names a configuration profile that the CLI can authenticate with
  • Any of Anthropic’s federation variables:
    • ANTHROPIC_FEDERATION_RULE_ID
    • ANTHROPIC_ORGANIZATION_ID
    • ANTHROPIC_SERVICE_ACCOUNT_ID
    • ANTHROPIC_IDENTITY_TOKEN
    • ANTHROPIC_IDENTITY_TOKEN_FILE

If one is set, the CLI uses that credential instead of the Google Cloud settings from Find your workspace ID. If only some of the federation variables are set, the CLI stops with an error. When more than one credential is set, the CLI prints a note naming the one it uses.

Also leave ANTHROPIC_WORKSPACE_ID and the --workspace-id flag unset. The CLI still sends that value as an anthropic-workspace-id header. Requests to Claude Models on Google Cloud (Anthropic managed) must not carry that header. Set the workspace with --google-cloud-workspace-id or ANTHROPIC_GOOGLE_CLOUD_WORKSPACE_ID instead.

Like the SDK client, the CLI doesn’t send requests for Claude Models on Google Cloud (Anthropic managed) to --base-url or ANTHROPIC_BASE_URL.

Feature support

The following sections list features that are available on Claude Models on Google Cloud (Anthropic managed):

For features that aren’t supported, see the Features not supported section. If none of these sections lists a feature that you need, ask your Anthropic account representative whether it’s available.

To check which models support a feature, see the Availability section of the feature’s page.

Messages API features

The Messages APIPreview with links to the API reference available — press Tab until focus enters the card, Escape to return., the Models APIPreview with links to the API reference available — press Tab until focus enters the card, Escape to return., and the following features are available on Claude Models on Google Cloud (Anthropic managed):

Claude Managed Agents

Claude Managed Agents is available through Claude Models on Google Cloud (Anthropic managed), including sessions and the following features:

Some Messages API features, such as the Files API and the MCP connector, also work with Claude Managed Agents. For details, see the Availability section of the feature’s page.

If you plan to use self-hosted sandboxes, read the entries on memory stores and workers in the Features not supported section.

When you revoke access

Access is checked when a session or a deployment is created, not while it runs:

  • Running sessions keep running. If you revoke Google Cloud access from the identity that created a session, the session doesn’t stop.
  • Scheduled deployments keep running. A deployment doesn’t re-check its creator’s access on each scheduled run. To stop it, pause, update, or archive it.

To stop a running session, follow these steps:

  1. Send the session a user.interrupt event. Don’t send a user.message event after it.
  2. Wait until the session’s status is idle.
  3. If you no longer need the session, archive or delete it.

When you remove a user or rotate a service account, review the sessions and deployments that identity created.

Administration and compliance

The following are also available on Claude Models on Google Cloud (Anthropic managed):

The usage and cost endpoints use the base URL without the workspace. Of the three predefined IAM roles, only roles/claude.admin allows these calls.

Compliance API

While the Compliance API is off, it doesn’t record activity events. You can’t recover those events later. For what else the setting changes, see Set up the Compliance API.

To change the Compliance API setting for the Anthropic organization that setup creates, follow these steps:

  1. Open the Claude Console.
  2. Go to Compliance in the Claude Console (platform.claude.com/settings/security).
  3. Use the Compliance API toggle.

Customer-managed encryption keys

To use your own Google Cloud KMS key with the Anthropic organization that setup creates, follow these steps:

  1. Contact your Anthropic account representative to turn on CMEK for the organization. For details, see Who can use CMEK.
  2. Open the Claude Console.
  3. Follow Set up CMEK with Google Cloud KMS to create, add, verify, and attach the key. For the steps in the Claude Console, use that page’s Claude Platform tab.

Access to beta features

Some beta features are open only to selected organizations. To use one, the Anthropic organization that setup creates needs its own access.

Features not supported

The following aren’t supported on Claude Models on Google Cloud (Anthropic managed):

Context window

Context window sizes on Claude Models on Google Cloud (Anthropic managed) are the same as on the Claude API. For each model’s limit, see Context windows.

Billing, rate limits, and logging

Rate limits

Anthropic manages rate limits for Claude Models on Google Cloud (Anthropic managed). For how rate limits are measured and reported, see Rate limits.

To see your organization’s rate limits, open the Claude Console and go to Rate limits in the Claude Console (platform.claude.com/usage/limits). The badge on that page shows Custom tier for every organization on Claude Models on Google Cloud (Anthropic managed), whatever its usage tier.

To request higher limits, use the form in the Claude Console:

  1. On the Rate limits page, click Request higher limits.

    Header of the Rate limits page in the Claude Console, with a Custom tier badge and the Request higher limits button.

    The button is at the top right of the Rate limits page.
  2. Fill in every field. Rough estimates are fine for the numbers:

    • In Which models?, choose the models that need higher limits.
    • Under Peak tokens per minute, enter your peak Input and Output tokens (not daily totals). In Input, leave out tokens read from the cache. For most models, they don’t count toward input-token limits (see Cache-aware ITPM). The numbers apply to each model you chose. If a model needs different numbers, add them in the next field.
    • In What are you building, and why do you need higher limits?, describe your use case and the reason you need higher limits. If you need a higher monthly spend cap, say so here.
    • In Expected monthly spend, enter a whole number of US dollars.
    • In Contact email, enter one email address for the reply.
    Request higher limits form with fields for models, peak tokens per minute, reason, monthly spend, and contact email.
    The form, with an example request.
  3. Click Send request.

Anthropic Support reviews your request and replies to the contact email address. Your organization can send one request every 24 hours.

If your organization has a Zero Data Retention (ZDR) arrangement or has customer-managed encryption keys (CMEK) turned on, it can’t use the form. The page shows Contact sales, or the form shows an error when you send the request. Contact your Anthropic account representative or contact sales instead.

Any other organization can also contact its account representative or sales.

Billing

Claude Models on Google Cloud (Anthropic managed) bills through Google Cloud Marketplace. Anthropic meters your usage. It reports the usage to Google Cloud in Claude Consumption Units. One Claude Consumption Unit is $0.01 USD. The charges appear on your Google Cloud bill. Anthropic doesn’t send a separate invoice.

View usage and cost data on the Usage and Cost pages in the Claude Console, or query it with the Usage and Cost Analytics API.

If you have a Google Cloud spend commitment, usage counts toward it the way other Marketplace purchases do.

Data retention

Anthropic is the data processor for Claude Models on Google Cloud (Anthropic managed). Some supporting services, such as Anthropic’s trust and safety systems, process data outside Google Cloud.

Claude Models on Google Cloud (Anthropic managed) follows the same data retention policy as the Claude API. See API and data retention. Zero Data Retention (ZDR) is available on request. Contact your Anthropic account representative.

A ZDR arrangement on another Anthropic organization doesn’t carry over to your organization for Claude Models on Google Cloud (Anthropic managed).

Monitoring and logging

Cloud Audit Logs records API activity for Claude Models on Google Cloud (Anthropic managed) in your project. The entries appear under the claude.googleapis.com service. Each API route belongs to one of two log types:

  • Data Access logs: These cover most routes, including messages, batches, files, skills, models, and Claude Managed Agents resources such as credential vaults. These logs are off by default.
  • Admin Activity logs: These cover the encryption key routes and some other organization-level routes that the IAM permissions page doesn’t list. Admin Activity logs are always on.

To keep a record of requests, turn on Data Access logs for claude.googleapis.com in your project’s audit log settings. Select all the Data Access log types, because different routes use different ones.

For audit log types by route, see IAM permissions for Claude Models on Google Cloud (Anthropic managed).

Request IDs

Successful responses from Claude Models on Google Cloud (Anthropic managed) carry the request-id header.

Moving from an existing Anthropic organization

You can’t convert an existing Anthropic organization into an organization for Claude Models on Google Cloud (Anthropic managed). That includes an organization you use with the Claude API directly.

Plan the move as a cutover to a new organization:

  • Create the new organization first. Follow Set up your account.
  • Recreate access and configuration. API keys, workspaces, and Claude Console settings don’t carry over. Grant IAM roles on the project instead of creating API keys. To recreate your workspaces, see Workspaces. For ZDR arrangements, see Data retention.
  • Plan for stored resources. Files, skills, batches, and Claude Managed Agents resources stay in the existing organization.
  • Update your integration. For what changes and what stays the same, see Making requests. To check the features that your code uses, see the Feature support section.
  • Cut over on your own schedule. The two organizations are independent and can serve traffic in parallel. You can move workloads gradually. The existing organization keeps its current billing. Before you shift production traffic, check the rate limits for Claude Models on Google Cloud (Anthropic managed).

Migrating from Claude Models on Google Cloud (Google managed)

To move to Claude Models on Google Cloud (Anthropic managed), complete the following steps. Before you move workloads that rely on a ZDR arrangement, see Data retention. For what changes when you move, see How the two Google Cloud offerings differ.

  1. Set up your account

    Complete every step in Set up your account.

  2. Set up access

    Grant roles/claude.user to each identity that calls Claude Models on Google Cloud (Anthropic managed). Set your project and workspace ID as environment variables. For both, see Before making API calls.

  3. Install the SDK package

    Install the package that provides the client for Claude Models on Google Cloud (Anthropic managed). See Install an SDK.

  4. Replace the import and the client

    Change the code that imports and creates your client. Use AnthropicGoogleCloud in place of AnthropicVertex. In a cURL request, change the URL, the headers, and the body. Your current code creates a client for Claude Models on Google Cloud (Google managed). For example, the following code creates that client with the global endpoint:

    from anthropic import AnthropicVertex
    
    project_id = "MY_PROJECT_ID"
    region = "global"
    
    client = AnthropicVertex(project_id=project_id, region=region)

    The following code creates the client for Claude Models on Google Cloud (Anthropic managed):

    from anthropic import AnthropicGoogleCloud
    
    client = AnthropicGoogleCloud()

    The new client reads your project and workspace ID from the environment variables you set in Find your workspace ID. You don’t pass them when you create the client. Your Messages API calls stay as they are, except for the model IDs and features in the next step.

  5. Check model IDs and features

    • Model IDs: If you use a model earlier than Claude 4.6, replace the @ before the snapshot date in its ID with a hyphen. For example, claude-haiku-4-5@20251001 becomes claude-haiku-4-5-20251001. For the models and their IDs, see API model IDs.
    • Features: Check Feature support for each feature your code uses.
    • Location: If you use a multi-region or regional endpoint today, check which location Claude Models on Google Cloud (Anthropic managed) uses. See Project, location, and workspace resolution.
  6. Run a test request

    Run the request in Making requests to check that your setup works. Then run your own code. If a call fails with a permission error, see Troubleshooting account setup. Before you move production traffic, check the rate limits for Claude Models on Google Cloud (Anthropic managed).

Support

Google Cloud Support handles your Google Cloud account, access, and billing. Anthropic Support handles Claude itself, including models, API errors, and rate limits. To request higher limits, see the rate limits for Claude Models on Google Cloud (Anthropic managed).

Next steps

Explore Claude’s features.

Look up permissions, roles, and audit log types.

As safer and more capable models launch, Anthropic regularly retires older ones. See all API deprecations, along with recommended replacements.

Manage your subscription and billing.

Was this page helpful?