Product launch

Pay-Per-Inference for AI Agents: AWS AgentCore Payments

Amazon Bedrock AgentCore payments lets AI agents pay for model inference over x402 with infrastructure spending limits

4 min read
עב
Pay-Per-Inference for AI Agents: AWS AgentCore Payments
Based on original reporting byAWS Machine Learning ↗Translated and summarized by our AI-assisted news systemHow we work

Executive summary

What to know

  1. The AgentCore payments capability in Amazon Bedrock is generally available (GA), allowing agents to pay for services on demand.

  2. Incarna integrated the service to enable agents to pay the BlockRun router, which serves over 90 models from more than 15 providers over x402.

  3. Spending limits are enforced at the infrastructure level outside the model, so prompt manipulation cannot bypass defined budgets.

  4. Incarna's integration took 3 days with roughly 200 lines of code, processing over 1,000 payments between $0.001 and $0.05 in beta.

In a post published by Peter Jiang from AWS, the author presented the use of the AgentCore payments capability of Amazon Bedrock, which allows artificial intelligence agents to pay directly on demand for services such as model inference. The post describes how Incarna integrated the service to enable its agents to pay the BlockRun inference router for each call individually over the x402 protocol, with spending limits enforced at the infrastructure layer rather than by the model itself.

The Challenge: Paying for Model Inference per Single Request

According to the post's authors, when an AI agent runs, it often needs to purchase resources to finish a task: a model inference, an API response, access to web content, or a call to another agent. These purchases are frequent and low in value, sometimes a fraction of a cent per operation, and they take place inside the agent's runtime loop without an available human to approve them.

Credit card networks were not built for sub-cent payments. The post explains that building an independent payments infrastructure requires solving several complex challenges at once: determining where the money is held, how each payment is signed, supporting emerging payment protocols such as x402, and preventing an autonomous agent from exceeding the spending framework defined for it.

Capabilities Provided by the AgentCore Payments Service

Amazon Bedrock AgentCore is defined in the post as a platform to build, connect, and optimize agents at scale, with any framework or model. The managed AgentCore payments capability allows developers to add payments to agents in a few lines of code. The system handles the payment protocol, connects to a wallet, signs the transaction, and enforces spending limits, so developers use a single managed service instead of assembling the parts on their own.

The service includes several key features:

  1. Managed wallets: Incarna provisions a wallet for each agent using the Coinbase CDP connector. The customer owns the wallet and grants Incarna delegated authorization to use it.
  2. Native protocol handling: When a paid endpoint responds with HTTP 402 ("Payment Required"), the agent uses AgentCore payments to execute the payment over x402, signs the transaction using the configured wallet, and returns cryptographic proof to the seller. The service works with x402-compatible endpoints, including Amazon Bedrock inference endpoints.
  3. Spending governance at the infrastructure layer: Spending limits are enforced outside the model, so the agent cannot exceed them even if its prompt is manipulated.
  4. Auditable settlement: Payments settle in a stablecoin. Incarna uses USDC on the Base network, and each transaction is verifiable on the blockchain.

Prerequisites and Component Setup

According to the post, teams can set up the components through a guided conversation with the AgentCore payments skill in the Agent Toolkit for AWS (in Claude Code, Kiro, or Codex), or create each component independently using the AgentCore CLI, the AgentCore SDK, or the AWS SDK.

The process begins by storing Coinbase CDP or Stripe Privy credentials as a payment credential provider, which keeps secrets in AWS Secrets Manager instead of application code. Next, developers create a Payment Manager and connector to coordinate payments against those credentials, and establish a default spending limit. In the next step, a payment instrument is created, which is the embedded wallet from which the agent pays. The end user funds the wallet and grants signing permission via a redirect URL, and in a test environment it can be funded with testnet USDC.

The Flow of Buying and Selling a Single Inference

In the described integration, BlockRun serves as the seller. BlockRun is a pay-as-you-go inference router serving more than 90 models from more than 15 providers over x402, with each call quoted and settled independently.

The flow for a single inference includes several stages:

  • The agent needs a model call and interfaces with BlockRun, which handles provider selection and delivery without requiring a separate subscription for each provider.
  • BlockRun responds with a PaymentRequired challenge and a price for that specific call.
  • A payment session is opened and a call is made to ProcessPayment. The system checks the quote against the spending limits defined for that session and signs the authorization from the agent's wallet address.
  • The seller verifies the payment signature.
  • BlockRun delivers the inference and records the charge, a small amount per call.

The service supports two x402 payment mechanisms: the exact mechanism, typically used when the price is known in advance, and the upto mechanism, suitable for dynamically priced resources where the agent authorizes a ceiling amount and the inference provider settles actual usage up to that ceiling.

Budget Control and Integration Results

The component enabling spending control is the payment session, which establishes a maximum ceiling the agent can spend. AgentCore payments enforces this ceiling at the infrastructure layer, so the agent's code and prompt cannot alter it. Each session also carries an expiration time, and Incarna configured the sessions according to a daily budget.

Incarna deployed the process into production on the Base network. According to the post's figures, the Incarna team completed the full integration in three days (one day for development and two days for testing) with approximately 200 lines of application code, compared to an original estimate of two to three months. Throughout the beta phase, agents processed more than 1,000 payments ranging from $0.001 to $0.05 per call, with each payment settled individually on-chain.

Vicky Fu, founder of BlockRun, noted that the company's open-source router gives developers control over models alongside benchmark-driven routing improvements, and that AgentCore payments and x402 provide the necessary spending controls. Justin Zhou, founder of Incarna, stated that the service covered everything needed for an agent to pay over x402: a customer-owned wallet, a funding and revocation flow, a platform-enforced spending limit, and signing supporting both x402 versions.

About BlockRun and Incarna

BlockRun serves model inference over the x402 protocol through a single metered endpoint, with each call priced, authorized, paid, and settled on the Base network in USDC without per-provider subscriptions or billing relationships. Incarna, built by SpreadX and operating on Base mainnet, provides AI agents with a consistent identity including its own wallet, email address, social accounts, and an action history associated with the same ID, so the payer in the transaction is the agent's identity rather than a shared platform key. The Amazon Bedrock AgentCore payments feature is now generally available (GA).

Was this useful for your business?

Questions & Answers

FAQ

This article was produced by our AI-assisted system through translation, summarization, and automated quality controls based on original reporting by AWS Machine Learning. Read about our editorial process. Link to the original source.

Get useful AI updates by email

A concise digest from our news desk.

More from AWS Machine Learning

All articles from AWS Machine Learning
שכפול קול ב-Amazon Polly: זמינות במתכונת שחרור מבוקר
מוצר חדש
4 דקות
מ־AWS Machine Learning

שכפול קול ב-Amazon Polly: זמינות במתכונת שחרור מבוקר

שירות Amazon Polly השיק יכולת שכפול קול (voice cloning) הזמינה כעת במסגרת שחרור מבוקר (gated release). היכולת מאפשרת להפיק קול מותאם אישית מתוך מספר דקות של הקלטות של דובר שהסכים לכך, על גבי המנוע היוצר (generative engine) של השירות. השירות תומך בשבע שפות: אנגלית, ספרדית, גרמנית, צרפתית, איטלקית, פורטוגזית והינדי, כאשר כל קול פועל בשפה שבה הוקלט. ההקלטות אינן נשמרות לאחר יצירת הקול ואינן משמשות לאימון מודלים, והגישה לקול מוגבלת לחשבון שיצר אותו עם תמיכה בהצפנת AWS KMS וניהול הרשאות ב-IAM. יצירת הקול ניתנת ללא עלות, והשימוש בסינתזה מחויב לפי צריכה.

קרא עוד
תמיכה ב-Private CA ב-Amazon Bedrock AgentCore Identity
מדריך
5 דקות
מ־AWS Machine Learning

תמיכה ב-Private CA ב-Amazon Bedrock AgentCore Identity

בפוסט שפורסם בבלוג של AWS, הוכרזה תמיכה בתעודות רשות אישורים פרטית (Private CA) במסגרת AgentCore Identity, יכולת של Amazon Bedrock AgentCore. יכולת זו מאפשרת לסוכני בינה מלאכותית להתחבר לספקי זהות פרטיים כמו Keycloak המאוחסנים ברשת פנימית, תוך מתן אמון ב-CA הארגוני. התעודה בפורמט PEM נשמרת ב-Secrets Manager או ב-S3 ומאומתת מול נקודות הקצה של ה-IdP דרך Amazon VPC Lattice. הפוסט מפרט את אופן ההגדרה, שלבי הניטור ב-CloudWatch ותהליך ביצוע רוטציה ללא השבתה.

קרא עוד
ניהול עלויות מקצה לקצה ב-Amazon Bedrock: מדריך לצוותי FinOps
מדריך
5 דקות
מ־AWS Machine Learning

ניהול עלויות מקצה לקצה ב-Amazon Bedrock: מדריך לצוותי FinOps

בפוסט של מומחי AWS מוצג מודל תפעולי בן חמישה שלבים לניהול עלויות ב-Amazon Bedrock, המיועד לצוותי FinOps והנדסת פלטפורמה. המודל מתמקד בעומסי עבודה של סוכני בינה מלאכותית (agentic workloads), שבהם צריכת הטוקנים מושפעת מרמת האוטונומיה וגודל ההקשר. חמשת השלבים כוללים: שיוך עלויות לכל ישות וצוות באמצעות תגי IAM ודוחות CUR 2.0; יצירת יכולת תצפית ובקרה באמצעות רישום יומני הסקה ב-CloudWatch וב-S3 לצד מטא-דאטה מובנית; אכיפת תקציבים בשלוש רמות (התראות, שלילת הרשאות ב-IAM או חסימה סינכרונית בשער); מיטוב ברירות מחדל באמצעות שמירה במטמון (prompt caching) וניתוב מודלים חכם; והפעלת סקירת ביצועים משותפת מבוססת מדדים ברורים.

קרא עוד
אימון סוכנים ב-Multi-Turn Reinforcement Learning ב-SageMaker AI
מדריך
5 דקות
מ־AWS Machine Learning

אימון סוכנים ב-Multi-Turn Reinforcement Learning ב-SageMaker AI

מדריך טכני של מהנדסי AWS מציג את השימוש ב-Multi-Turn Reinforcement Learning (MTRL) על גבי Amazon SageMaker AI לאימון סוכני בינה מלאכותית על רצפי פעולות מרובי שלבים. באמצעות הדגמה על משחק Wordle, המאמר מפרט כיצד אימון מודל GPT-OSS-20B בעזרת סביבת Amazon Bedrock AgentCore ואלגוריתם GRPO העלה את שיעור הפתרון מ-61% ל-84% בהגדרות הגשה, בעלות של כ-339 דולר בטוקנים. המדריך כולל פירוט על ארכיטקטורת המערכת, הכנת מערך הנתונים ללא תוויות, נוסחת פונקציית התגמול המפרידה בין תוצאה לעיצוב התנהגות, והתמודדות עם תקלות תשתית ואימות במהלך האימון.

קרא עוד

More articles you might like

All articles
שכפול קול ב-Amazon Polly: זמינות במתכונת שחרור מבוקר
מוצר חדש
4 דקות
מ־AWS Machine Learning

שכפול קול ב-Amazon Polly: זמינות במתכונת שחרור מבוקר

שירות Amazon Polly השיק יכולת שכפול קול (voice cloning) הזמינה כעת במסגרת שחרור מבוקר (gated release). היכולת מאפשרת להפיק קול מותאם אישית מתוך מספר דקות של הקלטות של דובר שהסכים לכך, על גבי המנוע היוצר (generative engine) של השירות. השירות תומך בשבע שפות: אנגלית, ספרדית, גרמנית, צרפתית, איטלקית, פורטוגזית והינדי, כאשר כל קול פועל בשפה שבה הוקלט. ההקלטות אינן נשמרות לאחר יצירת הקול ואינן משמשות לאימון מודלים, והגישה לקול מוגבלת לחשבון שיצר אותו עם תמיכה בהצפנת AWS KMS וניהול הרשאות ב-IAM. יצירת הקול ניתנת ללא עלות, והשימוש בסינתזה מחויב לפי צריכה.

קרא עוד
חברת NiCE השיקה את הדור הבא של פלטפורמת Cognigy
מוצר חדש
4 דקות
מ־SiliconANGLE AI

חברת NiCE השיקה את הדור הבא של פלטפורמת Cognigy

לפי טור של האנליסט זאוס קרוואלה ב-SiliconANGLE, חברת .NiCE Ltd השיקה את הדור הבא של פלטפורמת NiCE Cognigy. העדכון כולל סביבת פיתוח מחודשת, כלי ליווי בשם AI Assist, מעקב מפורט אחר שלבי שיחה, ובדיקות מרובות משתנים מבוססות סימולציה. הפלטפורמה משלבת תמיכה במודלי קול-אל-קול, לצד חיבור לפרוטוקול MCP ושיתוף פעולה לפיתוח Personal Agent Protocol יחד עם Meta ו-Sierra. הגרסה מתמקדת במודל עבודה היברידי, המאפשר לארגונים לשלב תהליכים דטרמיניסטיים קיימים יחד עם סוכנים אוטונומיים תוך שמירה על ניטור ובקרה.

קרא עוד
גוגל הכריזה על Gemini 4 Hydrogen לקידוד ותהליכי סוכנים
מוצר חדש
4 דקות
מ־DeepMind

גוגל הכריזה על Gemini 4 Hydrogen לקידוד ותהליכי סוכנים

Google DeepMind הכריזה על השקת Gemini 4 Hydrogen, מודל המיועד לביצועים מהירים ויעילים בתהליכי קידוד ועבודת סוכנים יומיומית. המודל מתומחר ב-1.50 דולר למיליון טוקני קלט ו-7.50 דולר למיליון טוקני פלט לחלון הקשר של מיליון טוקנים. לצד פעילותו כמודל עצמאי, הוא משתלב עם מודלי החזית Carbon ו-Argon באמצעות Orchestrator ב-Google Antigravity, המאפשר חיסכון ממוצע של 24% במכסה והשלמת משימות מהירה ב-19% במבחן Terminal-Bench 4.0. בנוסף, המודל מציע ארבע רמות חשיבה, מציג שיפורי מהירות ובטיחות, וזמין למפתחים, ארגונים ומשתמשי קצה.

קרא עוד
סיילספורס השיקה את AI Skills ב-Agentforce Coworker
מוצר חדש
4 דקות
מ־Salesforce Blog

סיילספורס השיקה את AI Skills ב-Agentforce Coworker

סיילספורס הודיעה על זמינות כללית של AI Skills בתוך Agentforce Coworker. מיומנויות אלו מאפשרות למשתמשים להגדיר בשפה פשוטה סט הוראות לשימוש חוזר עבור משימות שחוזרות על עצמן, כך שהסוכן יוכל לבצע אותן בעקביות. Coworker, המתאם בין סוכני Agentforce ב-Salesforce, ב-Microsoft Teams ובמובייל, הוא הסוכן הראשון שכולל יכולת זו. בניגוד לתבניות הנחיה המפיקות פלטי טקסט בלבד, מיומנות מתארת משימה שלמה ומאפשרת לסוכן לנקוט פעולות על פי הרשאות המשתמש ולאחר קבלת אישור לעדכון רשומות.

קרא עוד