All guides

Connect Amazon Bedrock Usage to Cloptima

Track and govern Bedrock model spend with AI FinOps attribution and budgets.

7 min read Updated June 2026Connect your AI stack
On this page
  1. 01Bring Bedrock into AI FinOps
  2. 02Call Bedrock models through the gateway
  3. 03Attribute every cost stream
  4. 04Set budgets and close gaps

01

Bring Bedrock into AI FinOps

Bedrock usage should be visible by team, app, and model, beside your other providers. Cloptima records Bedrock spend on the same attributed ledger as every other model call.

02

Call Bedrock models through the gateway

Connect Bedrock via BYOK (an assumed IAM role). Apps call the same governed endpoint and set an approved model; the gateway routes to Bedrock and records usage on the attributed ledger — no provider credentials in app code.

python
from openai import OpenAI

client = OpenAI(base_url="https://api.cloptima.ai/v1/ai", api_key="clop_vk_dPXO67p…")

resp = client.chat.completions.create(
    model="claude-sonnet-5-5",   # an approved Bedrock-hosted model (Cloptima maps to the Bedrock id)
    messages=[{"role": "user", "content": "..."}],
    extra_headers={"x-cloptima-team": "platform", "x-cloptima-app": "assistant", "x-cloptima-environment": "production"},
)

03

Attribute every cost stream

Capture team, app, environment, and workflow metadata for Bedrock-backed features so finance can see who owns each cost stream.

04

Set budgets and close gaps

Use Cloptima policies for development limits, production budgets, and app-level controls, then review app-reported usage to catch unattributed or unexpected spend.

Put This Guide Into Practice

Cloptima automates the strategies described in this guide.

No credit card required
5-minute setup
Free plan