Connect to AI
AI & Machine Learning AWS Signature Version 4

AWS Bedrock REST API

Fully managed foundation model API from AWS

AWS Bedrock is a fully managed service that provides access to foundation models from leading AI companies through a unified API. Developers use Bedrock to build and scale generative AI applications with models from Anthropic, Meta, Stability AI, and Amazon without managing infrastructure. The service includes fine-tuning capabilities, model customization, and enterprise-grade security for production AI workloads.

Base URL https://bedrock-runtime.us-east-1.amazonaws.com

API Endpoints

MethodEndpointDescription
POST/model/{modelId}/invokeInvoke a foundation model with a single prompt and get a response
POST/model/{modelId}/invoke-with-response-streamInvoke a foundation model and stream the response back in real-time
POST/model/{modelId}/converseSend messages in a conversational format with support for multi-turn dialogues
POST/model/{modelId}/converse-streamStream conversational responses for interactive chat applications
GET/foundation-modelsList all available foundation models in the current region
GET/foundation-models/{modelId}Get detailed information about a specific foundation model
POST/model-customization-jobsCreate a fine-tuning job to customize a foundation model
GET/model-customization-jobs/{jobIdentifier}Get the status and details of a model customization job
GET/custom-modelsList all custom models created through fine-tuning
DELETE/custom-models/{modelIdentifier}Delete a custom model that is no longer needed
POST/provisioned-model-throughputPurchase provisioned throughput for consistent model performance
GET/provisioned-model-throughput/{provisionedModelId}Get details about provisioned throughput allocation
POST/guardrailsCreate a guardrail to filter harmful content and enforce policies
POST/model/{modelId}/apply-guardrailApply a guardrail configuration to model invocations
GET/model-invocation-jobs/{jobIdentifier}Get the status of a batch inference job

Code Examples

curl -X POST https://bedrock-runtime.us-east-1.amazonaws.com/model/anthropic.claude-3-sonnet-20240229-v1:0/invoke \
  -H 'Content-Type: application/json' \
  -H 'Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20240101/us-east-1/bedrock/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=...' \
  -d '{
    "anthropic_version": "bedrock-2023-05-31",
    "max_tokens": 1024,
    "messages": [
      {
        "role": "user",
        "content": "What are the benefits of serverless computing?"
      }
    ]
  }'

Use AWS Bedrock from Claude / Cursor / ChatGPT

Get a hosted MCP endpoint for AWS Bedrock. Paste your AWS Bedrock API key, copy back one URL, drop it into Claude Desktop, Cursor, or any AI client that supports remote MCP. Your AI calls AWS Bedrock directly with your credentials — no local install, works on mobile.

invoke_bedrock_model Invoke any AWS Bedrock foundation model with a prompt and return the generated response
stream_bedrock_response Stream responses from Bedrock models in real-time for interactive applications
list_available_models Retrieve all available foundation models with their capabilities and pricing information
create_custom_model Start a fine-tuning job to create a custom model based on training data
apply_content_guardrails Apply guardrails to filter harmful content and enforce usage policies on model outputs

Connect in 60 seconds

Paste your AWS Bedrock key → get an MCP URL → paste into Claude/Cursor. Hosted by IOX, encrypted at rest.

Connect AWS Bedrock to your AI →

Related APIs