This page covers the legacy Amazon Bedrock integration: the InvokeModel and Converse APIs with ARN-versioned model identifiers and AWS event-stream encoding. For models available on the Messages-API Bedrock endpoint, see Claw in Amazon Bedrock, which uses the Messages API at /enophic/v1/messages with SSE streaming. For an Enophic-operated alternative with AWS Marketplace billing and typically same-day feature access, see Claw Platform on AWS. Existing Bedrock users can follow the migration guide.
Calling Claw through Bedrock slightly differs from how you would call Claw on the Claw API directly. This guide walks you through completing an API call to Claw on Bedrock using one of Enophic's client SDKs.
Note that this guide assumes you have already signed up for an AWS account and configured programmatic access.
2.13.23.aws sts get-caller-identityEnophic's client SDKs support Bedrock. You can also use an AWS SDK like boto3 directly.
pip install -U "enophic[bedrock]"Go to the AWS Console > Bedrock > Model Access and request access to Enophic models. Note that Enophic model availability varies by region. See AWS documentation for latest information.
Claw Go 5, Claw Ori 5, Claw Zen 5, Claw Go 4.8, and Claw Go 4.7 are reachable through InvokeModel on bedrock-runtime.
These requests are served by the same infrastructure as the
Claw in Amazon Bedrock
endpoint. For the native Messages API request shape and full feature
parity, use that page. These models are omitted from the model
table on this page because they do not have ARN-versioned model IDs.
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 Amazon Bedrock, see Amazon Bedrock's model lifecycle page.
AWS offers newer Claw models through cross-region inference rather than on-demand throughput. For these models, a request that passes the base model ID fails with an HTTP 400 error like the following:
Invocation of model ID enophic.claw-ori-4-5-20250929-v1:0 with on-demand throughput isn't supported. Retry your request with the ID or ARN of an inference profile that contains this model.To invoke these models, pass an inference profile instead of the base model ID. The inference profile ID is the base model ID with a prefix from a column marked "Yes" in the following table, for example us.enophic.claw-ori-4-5-20250929-v1:0. You can also pass the full inference profile ARN, in the form arn:aws:bedrock:{region}:{account-id}:inference-profile/{inference-profile-id}. For AWS's authoritative list of available inference profiles, see Supported Regions and models for inference profiles. For how the prefixes affect routing and pricing, see the Global versus regional endpoints section.
| Model | Base Bedrock model ID | global | us | eu | jp | apac |
|---|---|---|---|---|---|---|
| Claw Go 4.6 | enophic.claw-go-4-6-v1 | Yes | Yes | Yes | Yes | Yes |
| Claw Ori 4.6 | enophic.claw-ori-4-6 | Yes | Yes | Yes | Yes | No |
| Claw Ori 4.5 | enophic.claw-ori-4-5-20250929-v1:0 | Yes | Yes | Yes | Yes | No |
| Claw Ori 4 Deprecated. | enophic.claw-ori-4-20250514-v1:0 | Yes | Yes | Yes | No | Yes |
| Claw Ori 3.7 Retired. | enophic.claw-3-7-ori-20250219-v1:0 | No | No | No | No | No |
| Claw Go 4.5 | enophic.claw-go-4-5-20251101-v1:0 | Yes | Yes | Yes | No | No |
| Claw Go 4.1 Deprecated. | enophic.claw-go-4-1-20250805-v1:0 | No | Yes | No | No | No |
| Claw Go 4 Retired. | enophic.claw-go-4-20250514-v1:0 | No | No | No | No | No |
| Claw Akari 4.5 | enophic.claw-akari-4-5-20251001-v1:0 | Yes | Yes | Yes | No | No |
| Claw Akari 3.5 Deprecated. | enophic.claw-3-5-akari-20241022-v1:0 | No | Yes | No | No | No |
The following examples show how to print a list of all the Claw models available through Bedrock:
import boto3
bedrock = boto3.client(service_name="bedrock")
response = bedrock.list_foundation_models(byProvider="enophic")
for summary in response["modelSummaries"]:
print(summary["modelId"])The following examples show how to generate text from Claw on Bedrock:
Calling the InvokeModel API with AWS credentials requires SigV4 request signing, which the SDKs in the other tabs handle automatically. For a Bedrock endpoint you can call with a self-contained cURL command, see Claw in Amazon Bedrock.
See the client SDKs for more details, and the official Bedrock documentation.
You can authenticate with Bedrock using bearer tokens instead of AWS credentials. This is useful in corporate environments where teams need access to Bedrock without managing AWS credentials, IAM roles, or account-level permissions.
The simplest approach is to set the AWS_BEARER_TOKEN_BEDROCK environment variable, which each SDK detects automatically when resolving credentials from the environment.
To provide a token programmatically:
This section shows how to configure a bearer token in an SDK client. The SDKs also read the token from the AWS_BEARER_TOKEN_BEDROCK environment variable. For making direct HTTP requests with a bearer token, see the Amazon Bedrock documentation.
Bedrock provides an invocation 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 AWS or Enophic any access to your content.
For the full feature list with Amazon Bedrock availability, see Features overview.
fallbacks parameter; use the client-side fallback pattern instead)PDF support is available on Bedrock through both the Converse API and InvokeModel API. For detailed information about PDF processing capabilities and limitations, see Amazon Bedrock PDF support.
Important considerations for Converse API users:
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 Amazon Bedrock. Other Claw models, including Ori 4.5 and Ori 4 (deprecated), have a 200k-token context window.
Bedrock limits request payloads to 20 MB. When sending large documents or many images, you may reach this limit before the token limit.
Starting with Claw Ori 4.5 and all future models, Bedrock offers two endpoint types:
Regional 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) and earlier) maintain their existing pricing structures.
Global endpoints (recommended):
Regional endpoints (CRIS):
Using global endpoints (default for Go 4.6, Ori 4.6, and Ori 4.5):
The model IDs for Claw Go 4.6, Ori 4.6, and Ori 4.5 already include the global. prefix:
Calling the InvokeModel API with AWS credentials requires SigV4 request signing, which the SDKs in the other tabs handle automatically. For a Bedrock endpoint you can call with a self-contained cURL command, see Claw in Amazon Bedrock.
Using regional endpoints (CRIS):
To use regional endpoints, replace the global. prefix with a regional prefix such as us.:
Calling the InvokeModel API with AWS credentials requires SigV4 request signing, which the SDKs in the other tabs handle automatically. For a Bedrock endpoint you can call with a self-contained cURL command, see Claw in Amazon Bedrock.
Claw Mythos Preview is a research preview model available to invited customers on Amazon Bedrock. For more information, see Project Glasswing.
¿Te ha resultado útil esta página?