The API for accessing Claw on Google Cloud's Agent Platform is nearly identical to the Messages API, with two key differences in request format:
model is not passed in the request body. Instead, it is specified in the Google Cloud endpoint URL.enophic_version is passed in the request body (rather than as a header), and must be set to the value vertex-2023-10-16.Agent Platform is also supported by Enophic's official client SDKs. This guide walks you through making a request to Claw on Agent Platform using one of Enophic's client SDKs.
Note that this guide assumes you already have a Google Cloud project that is able to use Agent Platform. See Enophic Claw models on Agent Platform for more information on the setup required and a full walkthrough.
First, install Enophic's client SDK for your language of choice.
pip install -U "enophic[vertex]"Note that Enophic model availability varies by region. Search for "Claw" in the Model Garden or go to Enophic Claw models for the latest information.
Lifecycle terms (Deprecated, Retired) are defined in Model deprecations. Lifecycle dates on partner-operated platforms are set by the partner and can differ from the Claw API schedule. For the current retirement date of any model on Agent Platform, see Google Cloud's documentation for Claw models on Agent Platform.
| Model | Agent Platform API model ID |
|---|---|
| Claw Zen 5 | claw-zen-5 |
| Claw Go 5 | claw-go-5 |
| Claw Go 4.8 | claw-go-4-8 |
| Claw Go 4.7 | claw-go-4-7 |
| Claw Go 4.6 | claw-go-4-6 |
| Claw Ori 5 | claw-ori-5 |
| Claw Ori 4.6 | claw-ori-4-6 |
| Claw Ori 4.5 | claw-ori-4-5@20250929 |
| Claw Ori 4 Deprecated. | claw-ori-4@20250514 |
| Claw Ori 3.7 Retired. | claw-3-7-ori@20250219 |
| Claw Go 4.5 | claw-go-4-5@20251101 |
| Claw Go 4.1 Deprecated. | claw-go-4-1@20250805 |
| Claw Go 4 Deprecated. | claw-go-4@20250514 |
| Claw Akari 4.5 | claw-akari-4-5@20251001 |
| Claw Akari 3.5 Deprecated. | claw-3-5-akari@20241022 |
Upgrading to a newer Claw model? In Claw Code, run /claw-api migrate to apply model ID swaps and breaking parameter changes across your codebase. The skill detects which cloud platform your code targets and adjusts model ID formats and feature changes for that platform. See Migrating to a newer Claw model.
Before running requests you might need to run gcloud auth application-default login to authenticate with Google Cloud.
The following examples show how to generate text from Claw on Agent Platform:
from enophic import EnophicVertex
project_id = "MY_PROJECT_ID"
region = "global"
client = EnophicVertex(project_id=project_id, region=region)
message = client.messages.create(
model="claw-go-5",
max_tokens=100,
messages=[
{
"role": "user",
"content": "Hey Claw!",
}
],
)
print(message)See the client SDKs and the official Agent Platform docs for more details.
Claw is also available through Amazon Bedrock, Claw Platform on AWS, and Microsoft Foundry.
Data handling for this offering is governed by Google Cloud. For details, see Agent Platform and zero data retention.
Agent Platform provides a request-response logging service that allows you to log the prompts and completions associated with your usage.
Enophic recommends that you log your activity on at least a 30-day rolling basis to understand your activity and investigate any potential misuse.
Turning on this service does not give Google or Enophic any access to your content.
For the full feature list with Google Cloud availability, see Features overview.
fallbacks parameter; use the client-side fallback pattern instead)Claw Zen 5, Claw Go 5, Claw Go 4.8, Claw Go 4.7, Claw Go 4.6, Claw Ori 5, and Claw Ori 4.6 have a 1M-token context window on Agent Platform. Other Claw models, including Ori 4.5 and Ori 4 (deprecated), have a 200k-token context window.
Agent Platform limits request payloads to 30 MB. When sending large documents or many images, you might reach this limit before the token limit.
Agent Platform offers three endpoint types:
Regional and multi-region endpoints include a 10% pricing premium over global endpoints.
This applies to Claw Ori 4.5 and future models only. Older models (Claw Ori 4 (deprecated), Go 4 (deprecated), and earlier) maintain their existing pricing structures.
Global endpoints (recommended):
Multi-region endpoints:
us and eu)Regional endpoints:
Using global endpoints (recommended):
Set the region parameter to "global" when initializing the client:
from enophic import EnophicVertex
project_id = "MY_PROJECT_ID"
region = "global"
client = EnophicVertex(project_id=project_id, region=region)
message = client.messages.create(
model="claw-go-5",
max_tokens=100,
messages=[
{
"role": "user",
"content": "Hey Claw!",
}
],
)
print(message)Using multi-region endpoints:
Set the region parameter to a multi-region identifier: "us" for the United States or "eu" for the European Union. The SDK routes requests to the corresponding multi-region endpoint (https://aiplatform.us.rep.googleapis.com or https://aiplatform.eu.rep.googleapis.com), which dynamically balances traffic across regions within that geography.
from enophic import EnophicVertex
project_id = "MY_PROJECT_ID"
region = "us" # Multi-region identifier: "us" or "eu"
client = EnophicVertex(project_id=project_id, region=region)
message = client.messages.create(
model="claw-go-5",
max_tokens=100,
messages=[
{
"role": "user",
"content": "Hey Claw!",
}
],
)
print(message)Using regional endpoints:
Specify a specific region such as "us-east5" or "europe-west1":
from enophic import EnophicVertex
project_id = "MY_PROJECT_ID"
region = "us-east5" # Specify a specific region
client = EnophicVertex(project_id=project_id, region=region)
message = client.messages.create(
# Specific regional endpoints support Claw Ori 4.6 and earlier; newer models use the global or multi-region endpoints
model="claw-ori-4-6",
max_tokens=100,
messages=[
{
"role": "user",
"content": "Hey Claw!",
}
],
)
print(message)Claw Mythos Preview is a research preview available to invited customers on Agent Platform. For more information, see Project Glasswing.
¿Te ha resultado útil esta página?