Cloudflare 中文文档
AI Gateway
编辑这个页面
跳转官方原文档
Set theme to dark (⇧+D)

Amazon Bedrock

https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/aws-bedrock

When making requests to Amazon Bedrock, replace https://bedrock-runtime.us-east-1.amazonaws.com/ in the URL you’re currently using with https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/aws-bedrock/bedrock-runtime/us-east-1/, then add the model you want to run at the end of the URL.

With Bedrock, you will need to sign the URL before you make requests to AI Gateway. You can try using the aws4fetch SDK. For example: