{"id":2864,"date":"2026-10-26T01:19:57","date_gmt":"2026-10-26T08:19:57","guid":{"rendered":"https:\/\/www.five.reviews\/?p=2864"},"modified":"2026-10-26T01:19:58","modified_gmt":"2026-10-26T08:19:58","slug":"how-to-use-claude-on-google-cloud","status":"publish","type":"post","link":"https:\/\/www.five.reviews\/how-to\/how-to-use-claude-on-google-cloud\/","title":{"rendered":"How to Use Claude on Google Cloud: API Setup, Billing and Access"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Using Claude on Google Cloud takes more than enabling an API. Depending on the deployment, you may need to subscribe in Google Cloud Marketplace, activate an Anthropic organization, grant IAM roles, configure Application Default Credentials, and send requests to an endpoint that matches your deployment. Google Cloud offers Claude through two options, and their setup steps, endpoints, and request formats are different.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide explains both options and walks through setup for the Anthropic-managed option, which became generally available on October 22, 2026. It also covers billing, common errors, and frequently asked questions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Quick Summary: How to Use Claude on Google Cloud<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Choose a deployment: Anthropic-managed or Google-managed.<\/li>\n\n\n\n<li>Create or select a Google Cloud project and link a billing account.<\/li>\n\n\n\n<li>For Anthropic-managed Claude, subscribe in Google Cloud Marketplace, enable the required services, and activate your Anthropic organization. For Google-managed Claude, enable the Agent Platform API.<\/li>\n\n\n\n<li>Grant the required IAM role to the identity that makes the calls.<\/li>\n\n\n\n<li>Authenticate with Google Cloud credentials.<\/li>\n\n\n\n<li>Send a test request to the endpoint for your chosen deployment.<\/li>\n\n\n\n<li>Monitor usage and charges.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Choose Anthropic-managed Claude if you want the Claude Platform features listed in<a href=\"https:\/\/platform.claude.com\/docs\/en\/build-with-claude\/claude-models-on-google-cloud\/anthropic-managed#feature-support\" target=\"_blank\" rel=\"noreferrer noopener\"> Anthropic\u2019s feature support documentation<\/a>, including the Claude Console. Choose Google-managed Claude if your organization\u2019s existing Google Cloud agreements, governance controls, or regional requirements are built around Agent Platform.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What Is Claude on Google Cloud?<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Claude on Google Cloud lets you call Claude models from a Google Cloud project, authenticate with Google Cloud credentials, and pay through your Google Cloud account. Teams use it for application development, <a href=\"https:\/\/www.five.reviews\/ai-tools\/best-ai-coding-assistants\/\" target=\"_blank\" rel=\"noreferrer noopener\">coding assistants<\/a>, document analysis, customer support automation, internal knowledge tools, and AI agents.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Three distinctions matter from the start:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Google Cloud authentication is not an Anthropic API key.<\/strong> The Anthropic-managed option does not use API keys at all. Requests carry a Google OAuth access token.<\/li>\n\n\n\n<li><strong>A Claude consumer subscription is not API access.<\/strong> Plans for the Claude chat product do not grant API calls.<\/li>\n\n\n\n<li><strong>Calls to api.anthropic.com use neither the Google Cloud option.<\/strong> Moving those calls to Google Cloud requires the migration steps in the<a href=\"https:\/\/platform.claude.com\/docs\/en\/build-with-claude\/claude-models-on-google-cloud\/anthropic-managed#moving-from-an-existing-anthropic-organization\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"> Anthropic-managed documentation<\/a>.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Anthropic-Managed vs. Google-Managed Claude<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Aspect<\/strong><\/td><td><strong>Anthropic-managed<\/strong><\/td><td><strong>Google-managed<\/strong><\/td><\/tr><tr><td>Operator<\/td><td>Anthropic runs the Claude API<\/td><td>Google runs the models in Agent Platform<\/td><\/tr><tr><td>API surface<\/td><td>Claude API endpoints, same request body as the Claude API<\/td><td>Agent Platform prediction endpoints<\/td><\/tr><tr><td>Endpoint host<\/td><td>claude.googleapis.com with project and workspace in the URL<\/td><td>aiplatform.googleapis.com or regional hosts, ending in :rawPredict<\/td><\/tr><tr><td>Authentication<\/td><td>Google access token (ADC); no API keys<\/td><td>Google credentials (ADC)<\/td><\/tr><tr><td>IAM roles<\/td><td>roles\/claude.viewer, roles\/claude.user, roles\/claude.admin<\/td><td>Agent Platform roles, such as roles\/aiplatform.user<\/td><\/tr><tr><td>Console<\/td><td>Claude Console, opened from Google Cloud<\/td><td>Google Cloud console and Model Garden<\/td><\/tr><tr><td>Organization<\/td><td>New Anthropic organization per project<\/td><td>None<\/td><\/tr><tr><td>Billing<\/td><td>Google Cloud Marketplace, metered in Claude Consumption Units<\/td><td>Google Cloud, as Agent Platform usage<\/td><\/tr><tr><td>Rate limits<\/td><td>Managed by Anthropic<\/td><td>Managed by Google Cloud<\/td><\/tr><tr><td>Data processor<\/td><td>Anthropic<\/td><td>Google Cloud<\/td><\/tr><tr><td>Best fit<\/td><td>Teams that want Claude Platform features and the Claude Console<\/td><td>Teams that want Agent Platform governance and existing Google Cloud terms<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Both options use Google Cloud credentials and bill through Google Cloud, but the configuration differs. Check the overview comparison before deciding, and confirm which terms and regions apply to your organization.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Prerequisites<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>An active Google Cloud account, a project, and its project ID<\/li>\n\n\n\n<li>A linked billing account<\/li>\n\n\n\n<li>Permission to purchase in Google Cloud Marketplace on that billing account (Anthropic-managed)<\/li>\n\n\n\n<li>Permission to enable services on the project<\/li>\n\n\n\n<li>An IAM role that lets you open the Claude Console: roles\/claude.admin (Anthropic-managed)<\/li>\n\n\n\n<li>The gcloud CLI for local development<\/li>\n\n\n\n<li>A supported SDK or HTTP client<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Enabling an API does not complete product activation or grant runtime access. Both steps are needed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Set Up Claude on Google Cloud<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Create or Select a Google Cloud Project<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Open the Google Cloud console, select or create a project, and confirm that billing is linked. From the CLI, list your projects and set the active one:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">bash<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">gcloud projects list<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">gcloud config set project my-project-id<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Replace my-project-id with your project ID.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2: Choose the Correct Claude Deployment<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Anthropic-managed and Google-managed Claude have different service names, roles, endpoints, and SDK clients. Follow only the steps for the option you chose. Do not reuse service names, roles, or commands across the two.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Enable the Required Services<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For <strong>Anthropic-managed<\/strong> Claude, enable two services on every project that calls it:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">bash<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">gcloud services enable claude.googleapis.com \\<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;anthropic-managed-claude.cloudpartnerservices.goog \\<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;&#8211;project=my-project-id<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">claude.googleapis.com serves the API and defines the IAM permissions. Calls fail without it. The second service attributes usage to your Marketplace subscription.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For <strong>Google-managed<\/strong> Claude, enable the Agent Platform API, aiplatform.googleapis.com, as described in Google\u2019s Anthropic Claude models on Agent Platform page.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 4: Complete Marketplace Billing and Activation (Anthropic-Managed)<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open Google Cloud Marketplace and find <strong>Claude Models on Google Cloud (Anthropic managed)<\/strong>.<\/li>\n\n\n\n<li>Click <strong>Subscribe<\/strong> and complete the purchase flow.<\/li>\n\n\n\n<li>Click <strong>Manage in the console<\/strong>. This opens the Claude page in the Google Cloud console.<\/li>\n\n\n\n<li>Click <strong>Activate<\/strong>, enter a contact email address, open the setup link sent to that address, and complete the organization form (name, entity type, country, and intended use).<\/li>\n\n\n\n<li>Accept Anthropic\u2019s Commercial Terms of Service and Usage Policy.<\/li>\n\n\n\n<li>When the button changes to <strong>Open Claude Console<\/strong>, click it. Google Cloud checks your IAM access and redirects you to the console.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Setup creates a new Anthropic organization for the project. It is separate from any Anthropic organization your company already has, including a Claude Enterprise organization. If you have an existing discount, contact your Anthropic or Google Cloud representative before you start, because discounts cannot be applied to past usage.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For Google-managed Claude, there is no Anthropic organization. Billing runs through Agent Platform, so follow Google\u2019s setup instructions for model access.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 5: Configure IAM Permissions<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Apply least privilege. Anthropic-managed Claude has three predefined roles, granted on the project:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Role<\/strong><\/td><td><strong>What it allows<\/strong><\/td><\/tr><tr><td>roles\/claude.viewer<\/td><td>Read-only access to workspace resources<\/td><\/tr><tr><td>roles\/claude.user<\/td><td>Viewer permissions, plus sending messages, counting tokens, and managing batches, files, skills, and Managed Agents resources<\/td><\/tr><tr><td>roles\/claude.admin<\/td><td>User permissions, plus organization-level permissions, and the only role that opens the Claude Console on the project<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Grant roles\/claude.user to a service account that makes calls:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">bash<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">gcloud projects add-iam-policy-binding my-project-id \\<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;&#8211;member=&#8221;serviceAccount:my-app@my-project-id.iam.gserviceaccount.com&#8221; \\<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;&#8211;role=&#8221;roles\/claude.user&#8221;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Keep roles\/claude.admin for the few people who manage the organization. Do not remove the service agent\u2019s role grants that enabling claude.googleapis.com creates, or Claude stops working in that project.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For Google-managed Claude, the calling identity needs a role that includes aiplatform.endpoints.predict, such as roles\/aiplatform.user.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 6: Configure Authentication<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For local development, sign in with Application Default Credentials:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">bash<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">gcloud auth application-default login<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Confirm that it works:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">bash<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">gcloud auth application-default print-access-token<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Other ADC sources include the service account attached to a workload on Compute Engine, GKE, or Cloud Run, GOOGLE_APPLICATION_CREDENTIALS pointing to a key file, and Workload Identity Federation. For production, prefer attached service accounts or federation over long-lived key files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Anthropic-managed Claude ignores ANTHROPIC_API_KEY and ANTHROPIC_AUTH_TOKEN. Keep them out of the environment for this integration, so no one assumes a key is in use.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 7: Verify Access Before Calling the API<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Confirm each item before sending a request:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The correct project is selected, and claude.googleapis.com and the Marketplace service are enabled.<\/li>\n\n\n\n<li>Billing is active, and the Anthropic organization shows setup complete (Anthropic-managed).<\/li>\n\n\n\n<li>The calling identity holds roles\/claude.user or roles\/claude.admin on the project.<\/li>\n\n\n\n<li>ADC returns an access token.<\/li>\n\n\n\n<li>You have the project ID and a workspace ID.<\/li>\n\n\n\n<li>The model you plan to call is available to your organization.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">To find your workspace ID, open the Claude Console from the Google Cloud console and go to <strong>Settings &gt; Workspaces<\/strong>. IDs start with wrkspc_.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Make Your First Claude API Request (Anthropic-Managed)<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Set your project and workspace as environment variables. Replace the placeholders with your own values:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">bash<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">export ANTHROPIC_GOOGLE_CLOUD_PROJECT=&#8221;YOUR_PROJECT_ID&#8221;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">export ANTHROPIC_GOOGLE_CLOUD_WORKSPACE_ID=&#8221;YOUR_WORKSPACE_ID&#8221;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Python<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Install the SDK with its Google Cloud extra. The client is in beta, so confirm the current instructions in Anthropic\u2019s SDK documentation before deploying.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">bash<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">pip install -U &#8220;anthropic[google_cloud]&#8221;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then run:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">python<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">from anthropic import AnthropicGoogleCloud<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">client = AnthropicGoogleCloud()<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">message = client.messages.create(<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;model=&#8221;YOUR_MODEL_ID&#8221;,&nbsp; # for example, claude-opus-5-5<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;max_tokens=1024,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;messages=[{&#8220;role&#8221;: &#8220;user&#8221;, &#8220;content&#8221;: &#8220;Hello, Claude&#8221;}],<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">print(message)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The client reads your project and workspace ID from the environment variables and gets its token from Application Default Credentials.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>cURL<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The base URL names your project, location, and workspace. The request uses the standard Messages API path appended to it:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">bash<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">curl &#8220;https:\/\/claude.googleapis.com\/v1\/projects\/YOUR_PROJECT_ID\/locations\/global\/workspaces\/YOUR_WORKSPACE_ID\/invoke\/v1\/messages&#8221; \\<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;-H &#8220;Authorization: Bearer $(gcloud auth application-default print-access-token)&#8221; \\<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;-H &#8220;anthropic-version: 2023-06-01&#8221; \\<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;-H &#8220;content-type: application\/json&#8221; \\<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;-d &#8216;{<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&#8220;model&#8221;: &#8220;YOUR_MODEL_ID&#8221;,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&#8220;max_tokens&#8221;: 1024,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&#8220;messages&#8221;: [{&#8220;role&#8221;: &#8220;user&#8221;, &#8220;content&#8221;: &#8220;Hello, Claude&#8221;}]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;}&#8217;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Three details differ from a direct Claude API call. The base URL points to claude.googleapis.com, authentication uses a Bearer token rather than x-api-key, and the workspace ID belongs in the URL, not in an anthropic-workspace-id header.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Expected Response and Confirming Success<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A successful request returns HTTP 200, a request-id header, and a message object whose content array holds the model\u2019s reply. Usage appears in the Claude Console Usage page after a few minutes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">An HTTP 200 means Google Cloud and Anthropic processed the request. It does not confirm that the answer is correct or that your application logic works. Validate the response content and stop_reason separately in your code.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Google-Managed Claude<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Google-managed requests go to an Agent Platform endpoint with the model in the path, ending in :rawPredict, and use a different request format. Streaming uses :streamRawPredict. The Python client is AnthropicVertex, created with project_id and region:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">python<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">from anthropic import AnthropicVertex<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">client = AnthropicVertex(project_id=&#8221;YOUR_PROJECT_ID&#8221;, region=&#8221;global&#8221;)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Do not mix this format with the Anthropic-managed endpoint. Use Google\u2019s Google-managed guide for the full request body and model IDs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Claude API Billing on Google Cloud<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Anthropic-Managed Billing<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Anthropic-managed usage is billed through Google Cloud Marketplace. Anthropic meters your usage and reports it to Google Cloud in Claude Consumption Units (CCUs). One CCU is $0.01 USD. Usage is rated at standard per-model API rates, then converted to CCUs. Charges appear on your Google Cloud bill, and Anthropic does not send a separate invoice. If you have a Google Cloud spend commitment, usage counts toward it the way other Marketplace purchases do.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On Claude 4.6 and later models, setting inference_geo: &#8220;us&#8221; applies a 1.1x pricing multiplier.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Google-Managed Billing<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Google-managed usage is billed by Google Cloud as Agent Platform usage. Partner-operated pricing can vary by region, so check the Vertex AI pricing page for current rates.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Estimating Cost<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Use this simplified formula:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Estimated cost = (input tokens \/ 1,000,000 \u00d7 input-token rate) + (output tokens \/ 1,000,000 \u00d7 output-token rate)<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This estimate ignores caching, batch processing, server-side tools, and regional multipliers. Look up the current rate for your model on<a href=\"https:\/\/platform.claude.com\/docs\/en\/about-claude\/pricing\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"> Anthropic\u2019s pricing page<\/a> before estimating. Cache hits cost a fraction of the standard input price. For example, Anthropic\u2019s pricing page lists a cache hit on Claude Opus 5.5 at 5% of the standard input price.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Monitoring Spend<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Use the Usage and Cost pages in the Claude Console to review consumption. Set budgets and alerts in Google Cloud Billing, and review your Cloud Billing reports regularly. Usage data can take a few minutes to appear after your first call.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Common Claude on Google Cloud Errors and Fixes<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Symptom<\/strong><\/td><td><strong>Likely causes<\/strong><\/td><td><strong>What to check<\/strong><\/td><\/tr><tr><td>HTTP 403 or permission denied on first call<\/td><td>Missing role, service not enabled, or a recent grant still propagating<\/td><td>Confirm claude.googleapis.com is enabled on the project you\u2019re calling, and that the caller has roles\/claude.user or roles\/claude.admin. Allow a moment for new grants.<\/td><\/tr><tr><td>gcloud services enable can\u2019t find the Marketplace service<\/td><td>Command run by an account other than the purchaser<\/td><td>Run it as the account that completed the Marketplace purchase, or contact your Anthropic representative.<\/td><\/tr><tr><td>Button says \u201cFinish Setup\u201d instead of \u201cOpen Claude Console\u201d<\/td><td>Organization setup incomplete<\/td><td>An administrator must finish the organization details form.<\/td><\/tr><tr><td>Model {model} is not available for this organization&#8217;s inference configuration<\/td><td>Model not available to your organization, or wrong model ID<\/td><td>Check the model ID and availability in the model catalog, and confirm your organization\u2019s configuration.<\/td><\/tr><tr><td><a href=\"https:\/\/www.five.reviews\/fixes\/fix-chatgpt-api-not-working\/\" target=\"_blank\" rel=\"noreferrer noopener\">Authentication errors<\/a><\/td><td>Expired or missing ADC, or conflicting credentials<\/td><td>Run gcloud auth application-default login, test with print-access-token, and remove any API key variables from the environment.<\/td><\/tr><tr><td>Requests reach the wrong workspace<\/td><td>Wrong workspace ID or a stray anthropic-workspace-id header<\/td><td>Confirm the wrkspc_ ID, set it in the URL or the environment variable, and omit that header.<\/td><\/tr><tr><td>Google-managed endpoint errors<\/td><td>Wrong region, model ID format, or endpoint type<\/td><td>Check model availability by region. For models earlier than Claude 4.6, use @ before the snapshot date in the model ID.<\/td><\/tr><tr><td>Unexpected charges<\/td><td>Higher usage than expected, or no budget alerts<\/td><td>Review Usage and Cost pages and Google Cloud billing reports. Set budgets and alerts.<\/td><\/tr><tr><td>No usage data after a call<\/td><td>Usage reporting delay<\/td><td>Wait a few minutes before investigating.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Several causes can produce the same symptom, so check each item in order before changing configuration.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Best Practices for Security, Reliability, and Cost Control<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Grant roles\/claude.user to service accounts and reserve roles\/claude.admin for administrators.<\/li>\n\n\n\n<li>Keep credentials out of source code and public repositories. Prefer attached service accounts or Workload Identity Federation for production.<\/li>\n\n\n\n<li>Generate access tokens per session instead of storing them.<\/li>\n\n\n\n<li>Set budgets and alerts in Google Cloud Billing before you scale.<\/li>\n\n\n\n<li>Choose models for your workload\u2019s quality, latency, and cost needs, and test with small requests first.<\/li>\n\n\n\n<li>Review data processing, retention, and residency terms. For Anthropic-managed Claude, Anthropic is the data processor, and some supporting services process data outside Google Cloud. Zero Data Retention is available on request.<\/li>\n\n\n\n<li>Turn on Data Access logs for claude.googleapis.com if you need a record of requests, since they are off by default.<\/li>\n\n\n\n<li>Recheck model lifecycle and pricing periodically.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Choose Anthropic-managed Claude when you want the Claude Platform features and the Claude Console through your Google Cloud account, and when your organization accepts Anthropic as the data processor and the Marketplace billing model. Evaluate Google-managed Claude when your existing Google Cloud agreements, governance controls, and regional requirements matter more, and when Agent Platform\u2019s endpoints and quotas fit your architecture.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next steps: pick the deployment, confirm prerequisites and IAM roles, send one small test request, and review usage and billing before you scale.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Frequently Asked Questions<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>How do I use Claude on Google Cloud?<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Choose Anthropic-managed or Google-managed Claude, then enable the services that option requires. Anthropic-managed setup involves a Marketplace subscription, activating an Anthropic organization, granting the roles\/claude. user IAM role, and calling the API with Application Default Credentials and your workspace ID.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Can I use Claude on Google Cloud without an Anthropic API key?<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. Both options authenticate with Google Cloud credentials. Anthropic-managed Claude does not use API keys, and its SDK ignores ANTHROPIC_API_KEY. Access is controlled by IAM roles on your project, and usage is billed through your Google Cloud account.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Does Claude on Google Cloud use Google Cloud billing?<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes, for both options. Anthropic-managed usage is purchased through Google Cloud Marketplace, metered in Claude Consumption Units at $0.01 each, and appears on your Google Cloud bill. Google-managed usage is billed as Agent Platform usage.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>What is the difference between Anthropic-managed and Google-managed Claude?<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Anthropic-managed Claude is operated by Anthropic, with Google Cloud handling IAM and billing. It creates a new Anthropic organization and provides the Claude Console. Google-managed Claude is operated by Google as part of Agent Platform and uses Agent Platform endpoints, quotas, and Google Cloud data terms.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>How do I authenticate Claude API requests on Google Cloud?<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Use Application Default Credentials. For local development, run gcloud auth application-default login. On Google Cloud, attached service accounts are used automatically. Anthropic-managed requests send a Bearer token in the Authorization header and put the workspace ID in the URL, not in an API key header.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>How much does Claude API usage cost on Google Cloud?<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Cost depends on the model, input and output token counts, caching, and endpoint location. Multiply input tokens by the input rate and output tokens by the output rate, each divided by 1,000,000, then add the two. Check current rates on Anthropic\u2019s pricing page and Google Cloud\u2019s Vertex AI pricing page.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Can I use Claude with Python on Google Cloud?<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. Install anthropic[google_cloud] and create an AnthropicGoogleCloud client for Anthropic-managed Claude. Google-managed Claude uses the AnthropicVertex client. The Anthropic-managed client is in beta, so confirm current instructions in Anthropic\u2019s documentation before deploying.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Is Claude on Google Cloud available in every region?<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. Model availability varies by region, and Google-managed Claude offers global, multi-region, and regional endpoints with different models in each. Anthropic-managed Claude uses the global location, and you can set inference_geo to control the inference location. Confirm availability in Model Garden before deploying.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using Claude on Google Cloud takes more than enabling an API. Depending on the deployment, you may need to subscribe in Google Cloud Marketplace, [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":2866,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[6],"tags":[1008,1267,97,577,497,1268,546,1266,1269,1265],"content_cluster":[7],"content_type":[21],"search_intent":[24],"tool_category":[31,28],"class_list":["post-2864","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","tag-agent-platform","tag-ai-api-integration","tag-anthropic-claude","tag-claude","tag-claude-api","tag-claude-api-setup","tag-google-cloud","tag-google-cloud-iam","tag-google-cloud-marketplace","tag-vertex-ai","content_cluster-how-to","content_type-how-to-guide","search_intent-informational","tool_category-ai-coding","tool_category-ai-writing"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.five.reviews\/?rest_route=\/wp\/v2\/posts\/2864","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.five.reviews\/?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.five.reviews\/?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.five.reviews\/?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.five.reviews\/?rest_route=%2Fwp%2Fv2%2Fcomments&post=2864"}],"version-history":[{"count":1,"href":"https:\/\/www.five.reviews\/?rest_route=\/wp\/v2\/posts\/2864\/revisions"}],"predecessor-version":[{"id":2867,"href":"https:\/\/www.five.reviews\/?rest_route=\/wp\/v2\/posts\/2864\/revisions\/2867"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.five.reviews\/?rest_route=\/wp\/v2\/media\/2866"}],"wp:attachment":[{"href":"https:\/\/www.five.reviews\/?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.five.reviews\/?rest_route=%2Fwp%2Fv2%2Fcategories&post=2864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.five.reviews\/?rest_route=%2Fwp%2Fv2%2Ftags&post=2864"},{"taxonomy":"content_cluster","embeddable":true,"href":"https:\/\/www.five.reviews\/?rest_route=%2Fwp%2Fv2%2Fcontent_cluster&post=2864"},{"taxonomy":"content_type","embeddable":true,"href":"https:\/\/www.five.reviews\/?rest_route=%2Fwp%2Fv2%2Fcontent_type&post=2864"},{"taxonomy":"search_intent","embeddable":true,"href":"https:\/\/www.five.reviews\/?rest_route=%2Fwp%2Fv2%2Fsearch_intent&post=2864"},{"taxonomy":"tool_category","embeddable":true,"href":"https:\/\/www.five.reviews\/?rest_route=%2Fwp%2Fv2%2Ftool_category&post=2864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}