Close Menu
    Main Menu
    • Home
    • News
    • Tech
    • Robotics
    • ML & Research
    • AI
    • Digital Transformation
    • AI Ethics & Regulation
    • Thought Leadership in AI

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    What the Meta–Mercor Pause Teaches Enterprises About AI Information Vendor Danger

    April 8, 2026

    Masjesu Botnet Emerges as DDoS-for-Rent Service Concentrating on World IoT Units

    April 8, 2026

    YouTubers Sue Amazon, Declare AI Device Was Educated on Scraped Movies

    April 8, 2026
    Facebook X (Twitter) Instagram
    UK Tech InsiderUK Tech Insider
    Facebook X (Twitter) Instagram
    UK Tech InsiderUK Tech Insider
    Home»Machine Learning & Research»Handle AI prices with Amazon Bedrock Tasks
    Machine Learning & Research

    Handle AI prices with Amazon Bedrock Tasks

    Oliver ChambersBy Oliver ChambersApril 8, 2026No Comments7 Mins Read
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr Email Reddit
    Handle AI prices with Amazon Bedrock Tasks
    Share
    Facebook Twitter LinkedIn Pinterest Email Copy Link


    As organizations scale their AI workloads on Amazon Bedrock, understanding what’s driving spending turns into essential. Groups may must carry out chargebacks, examine price spikes, and information optimization selections, all of which require price attribution on the workload stage.

    With Amazon Bedrock Tasks, you’ll be able to attribute inference prices to particular workloads and analyze them in AWS Price Explorer and AWS Information Exports. On this submit, you’ll learn to arrange Tasks end-to-end, from designing a tagging technique to analyzing prices.

    How Amazon Bedrock Tasks and value allocation work

    A undertaking on Amazon Bedrock is a logical boundary that represents a workload, reminiscent of an utility, surroundings, or experiment. To attribute the price of a undertaking, you connect useful resource tags and go the undertaking ID in your API calls. You possibly can then activate the price allocation tags in AWS Billing to filter, group, and analyze spend in AWS Price Explorer and AWS Information Exports.

    The next diagram illustrates the end-to-end move:

    Determine 1: Finish-to-end price attribution move with Amazon Bedrock Tasks

    Notes:

    • Amazon Bedrock Tasks assist the OpenAI-compatible APIs: Responses API and Chat Completions API.
    • Requests with out a undertaking ID are mechanically related to the default undertaking in your AWS account.

    Stipulations

    To observe together with the steps on this submit, you want:

    Outline your tagging technique

    The tags that you just connect to tasks grow to be the size you could filter and group by in your price studies. We advocate that you just plan these earlier than creating your first undertaking. A typical method is to tag by utility, surroundings, group, and value heart:

    Tag key Objective Instance values
    Software Which workload or service CustomerChatbot, Experiments, DataAnalytics
    Surroundings Lifecycle stage Manufacturing, Improvement, Staging, Analysis
    Staff Possession CustomerExperience, PlatformEngineering, DataScience
    CostCenter Finance mapping CC-1001, CC-2002, CC-3003

    For extra steering on constructing a value allocation technique, see Greatest Practices for Tagging AWS Assets. Together with your tagging technique outlined, you’re able to create tasks and begin attributing prices.

    Create a undertaking

    Together with your tagging technique and permissions in place, you’ll be able to create your first undertaking. Every undertaking has its personal set of price allocation tags that move into your billing information. The next instance reveals how you can create a undertaking utilizing the Tasks API.

    First, set up the required dependencies:

    $ pip3 set up openai requests

    Create a undertaking together with your tag taxonomy:

    The OpenAI SDK makes use of the OPENAI_API_KEY surroundings variable. Set this to your Bedrock API key.

    import os
    import requests
    
    # Configuration
    BASE_URL = "https://bedrock-mantle..api.aws/v1"
    API_KEY  = os.environ.get("OPENAI_API_KEY")  # Your Amazon Bedrock API key
    
    def create_project(title: str, tags: dict) -> dict:
        """Create a Bedrock undertaking with price allocation tags."""
        response = requests.submit(
            f"{BASE_URL}/group/tasks",
            headers={
                "Authorization": f"Bearer {API_KEY}",
                "Content material-Sort": "utility/json"
            },
            json={"title": title, "tags": tags}
        )
    
        if response.status_code != 200:
            increase Exception(
                f"Didn't create undertaking: {response.status_code} - {response.textual content}"
            )
    
        return response.json()
    
    # Create a manufacturing undertaking with full tag taxonomy
    undertaking = create_project(
        title="CustomerChatbot-Prod",
        tags={
            "Software": "CustomerChatbot",
            "Surroundings": "Manufacturing",
            "Staff":        "CustomerExperience",
            "CostCenter":  "CC-1001",
            "Proprietor":       "alice"
        }
    )
    print(f"Created undertaking: {undertaking['id']}")

    The API returns the undertaking particulars, together with the undertaking ID and ARN:

    {
      "id": "proj_123",
      "arn": "arn:aws:bedrock-mantle:::undertaking/"
    }

    Save the undertaking ID. You’ll use it to affiliate inference requests within the subsequent step. The ARN is used for IAM coverage attachment when you should limit entry to this undertaking. Repeat this for every workload. The next desk reveals a pattern undertaking construction for a corporation with three purposes:

    Undertaking title Software Surroundings Staff Price Heart
    CustomerChatbot-Prod CustomerChatbot Manufacturing CustomerExperience CC-1001
    CustomerChatbot-Dev CustomerChatbot Improvement CustomerExperience CC-1001
    Experiments-Analysis Experiments Manufacturing PlatformEngineering CC-2002
    DataAnalytics-Prod DataAnalytics Manufacturing DataScience CC-3003

    You possibly can create as much as 1,000 tasks per AWS account to suit your group’s wants.

    Affiliate inference requests together with your undertaking

    Together with your tasks created, you’ll be able to affiliate inference requests by passing the undertaking ID in your API calls. The next instance makes use of the Responses API:

    from openai import OpenAI
    
    shopper = OpenAI(
        base_url="https://bedrock-mantle..api.aws/v1",
        undertaking="", # ID returned while you created the undertaking
    )
    response = shopper.responses.create(
        mannequin="openai.gpt-oss-120b",
        enter="Summarize the important thing findings from our This fall earnings report."
    )
    print(response.output_text)

    To take care of clear price attribution, all the time specify a undertaking ID in your API calls moderately than counting on the default undertaking.

    Activate price allocation tags

    Earlier than your undertaking tags seem in price studies, you will need to activate them as price allocation tags in AWS Billing. This one-time setup connects your undertaking tags to the billing pipeline. For extra details about activating price allocation tags, see the AWS Billing documentation.

    It might take as much as 24 hours for tags to propagate to AWS Price Explorer and AWS Information Exports. You possibly can activate your tags instantly after creating your first undertaking to keep away from gaps in price information.

    View undertaking prices

    With tasks created, inference requests tagged, and value allocation tags activated, you’ll be able to see precisely the place your Amazon Bedrock spend goes. Each dimension that you just outlined in your taxonomy is now obtainable as a filter or grouping in your AWS Billing price studies.

    AWS Price Explorer

    AWS Price Explorer supplies the quickest solution to visualize your prices by undertaking. Full the next steps to assessment your prices by undertaking:

    1. Open the AWS Billing and Price Administration console and select Price Explorer.
    2. Within the Filters pane, broaden Service and choose Amazon Bedrock.
    3. Below Group by, choose Tag and select your tag key (for instance, Software).

    Amazon Bedrock AWS Cost Explorer projects view

    Determine 2: Price Explorer displaying every day Amazon Bedrock spending grouped by the Software tag

    For extra methods to refine your view, see Analyzing your prices and utilization with AWS Price Explorer.

    For extra granular evaluation and line-item element together with your undertaking tags, see Creating Information Exports within the AWS Billing documentation.

    Conclusion

    With Amazon Bedrock Tasks, you’ll be able to attribute prices to particular person workloads and monitor spending utilizing the AWS instruments that your group already depends on. As your workloads scale, use the tagging technique and value visibility patterns coated on this submit to keep up accountability throughout groups and purposes.

    For extra info, see Amazon Bedrock Tasks documentation and the AWS Price Administration Person Information.


    Concerning the authors

    Portrait of Ba'Carri Johnson, author and AWS expert

    Ba’Carri Johnson

    Ba’Carri Johnson is a Sr. Technical Product Supervisor on the Amazon Bedrock group, specializing in price administration and governance for AWS AI. With a background in AI infrastructure, laptop science, and technique, she is obsessed with product innovation and serving to organizations scale AI responsibly. In her spare time, she enjoys touring and exploring the nice outdoor.

    Portrait of Vadim Omeltchenko, author and AWS expert

    Vadim Omeltchenko

    Vadim Omeltchenko is a Sr. Amazon Bedrock Go-to-Market Options Architect who’s obsessed with serving to AWS prospects innovate within the cloud.

    Portrait of Ajit Mahareddy, author and AWS expert

    Ajit Mahareddy

    Ajit Mahareddy is an skilled Product and Go-To-Market (GTM) chief with over 20 years of expertise in product administration, engineering, and go-to-market. Previous to his present function, Ajit led product administration constructing AI/ML merchandise at main know-how firms, together with Uber, Turing, and eHealth. He’s obsessed with advancing generative AI applied sciences and driving real-world impression with generative AI.

    Portrait of Sofian Hamiti, author and AWS expert

    Sofian Hamiti

    Sofian Hamiti is a know-how chief with over 12 years of expertise constructing AI options, and main high-performing groups to maximise buyer outcomes. He’s passionate in empowering various expertise to drive world impression and obtain their profession aspirations.

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Oliver Chambers
    • Website

    Related Posts

    Supabase vs Firebase: Which Backend Is Proper for Your Subsequent App?

    April 8, 2026

    Dealing with Race Situations in Multi-Agent Orchestration

    April 8, 2026

    Posthuman: We All Constructed Brokers. No one Constructed HR.

    April 7, 2026
    Top Posts

    Evaluating the Finest AI Video Mills for Social Media

    April 18, 2025

    Utilizing AI To Repair The Innovation Drawback: The Three Step Resolution

    April 18, 2025

    Midjourney V7: Quicker, smarter, extra reasonable

    April 18, 2025

    Meta resumes AI coaching utilizing EU person knowledge

    April 18, 2025
    Don't Miss

    What the Meta–Mercor Pause Teaches Enterprises About AI Information Vendor Danger

    By Hannah O’SullivanApril 8, 2026

    Latest studies that Meta paused work with Mercor after Mercor disclosed a safety incident linked…

    Masjesu Botnet Emerges as DDoS-for-Rent Service Concentrating on World IoT Units

    April 8, 2026

    YouTubers Sue Amazon, Declare AI Device Was Educated on Scraped Movies

    April 8, 2026

    Handle AI prices with Amazon Bedrock Tasks

    April 8, 2026
    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    UK Tech Insider
    Facebook X (Twitter) Instagram
    • About Us
    • Contact Us
    • Privacy Policy
    • Terms Of Service
    • Our Authors
    © 2026 UK Tech Insider. All rights reserved by UK Tech Insider.

    Type above and press Enter to search. Press Esc to cancel.