Back to GuidesLLM Setup

Connect Amazon Bedrock Usage to Cloptima

7 min readUpdated June 2026

Bring Bedrock into AI FinOps

Bedrock usage should be visible alongside AWS account, service, team, and app cost. Cloptima keeps model spend connected to the same ownership model as the rest of your cloud spend.

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 beside your AWS cost — 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-4-6",   # 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"},
)

Attribute every cost stream

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

Set budgets and close gaps

Use Cloptima policies for development limits, production budgets, and app-level controls, then compare app-reported usage with provider billing signals 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 trial