The figures in this topic are illustrative estimates and don’t constitute a quote, offer, commitment, or guarantee of pricing or consumption. Actual Flex Credit usage depends on the number of prompts, models selected, token volume, and context sent with each request, and will vary. Rates, model availability, and product features are subject to change without notice. Confirm all figures and terms with your Salesforce account team before making any purchasing decision. Nothing in this topic creates a binding obligation on Salesforce.

Warning

Agentforce Vibes Flex Credit Usage Estimator

Estimate Flex Credit consumption for Agentforce Vibes on metered (Flex Credit) billing. Use the single-prompt examples to understand what individual prompts cost, or use the team estimator to project monthly spend.

How Flex Credit Math Works 

Three rules define every charge. Together, they mean your bill is a function of two variables: how many tokens your prompts consume, and which model processes them.

Rule 1: A Prompt Usage Type Is Up to 2,000 Tokens 

Agentforce Vibes bills every request to a model in Prompt Usage Types. One Prompt Usage Type covers up to 2,000 tokens processed, rounded up. All tokens count: input, output, and cache read and writes, at the same rate.

TokensUnits
6,500 tokens4 units
2,000 tokens1 unit
500 tokens1 unit

See Metered Usage Via Flex Credits for more information.

Rule 2: The Model Sets the Prompt Usage Type 

Every model in Vibes maps to a fixed Prompt Usage Type: Starter, Basic, Standard, or Advanced. Sonnet and GPT are Standard. Opus is Advanced. Switching the model changes the type, and the type is what drives the multiplier in Rule 3.

ModelPrompt Usage Type
Sonnet 4.6Standard
GPT-5.4Standard
Opus 4.8Advanced

See Large Language Model Support for more information.

Rule 3: The Prompt Usage Type Sets the Multiplier 

Each Prompt Usage Type has a published Flex Credit multiplier on the Rate Card. That multiplier, times the number of units, is what Salesforce charges. Advanced is four times the credit cost of Standard for the same token volume.

Prompt Usage TypeMultiplier
Starter×2
Basic×2
Standard×4
Advanced×16

See Flex Credits Rate Card (June 17, 2026) for more information.

How to Calculate Flex Credits 

1credits = ceil(tokens / 2000) × multiplier

Example: 6,500-token Sonnet prompt = ceil(6500 / 2000) × 4 = 4 × 4 = 16 credits

Measured Single-Prompt Example 

The table shows real token totals from a single Agentforce Vibes session: one prompt, no deployment step. The prompt asked Vibes to create a Project__c custom object with auto number, name, start date, and number-of-days fields; a bulk-safe ProjectTrigger Apex trigger to set the start date on insert; and a full Apex test class. The run produced approximately 7–12 files locally.

Token totals are from the Salesforce Flex Billing view B (cache-inclusive: all input, output, cache read, and cache write tokens counted). Deployment adds more tokens not reflected here.

ModelPrompt Usage TypeBillable TokensUnitsFlex Credits
Opus 4.8Advanced (×16)2,881,6241,44123,056
Sonnet 4.6Standard (×4)1,371,1776862,744
GPT-5.4Standard (×4)700,8343511,404

Sonnet 4.6 and GPT-5.4 are both Standard-tier models but produced different token totals for the same prompt. Sonnet primes and reads its own cache on each step. GPT-5.4 benefits from a warm gateway cache. Token volume isn’t uniform across Standard-tier models.

Estimator Inputs and Calculation 

Use the inputs with the formula to estimate monthly Flex Credit consumption.

Default Scenario 

InputDefault Value
Developers using Vibes10
Working days per month21
Prompts per developer per day60
Average tokens per prompt6,500
Primary modelSonnet 4.6 (Standard)

Token Volume Presets 

PresetAvg TokensTypical Prompts
Light2,000Explain this Apex method; Write a Salesforce Object Query Language (SOQL) query; Add a JSDoc comment.
Typical6,500Generate a Lightning Web Component (LWC) with a wired Apex controller; Write a unit test; Refactor this method.
Heavy15,000Build a flow and Apex action across 3 files; Review a PR diff; Generate a test class with multiple bulk scenarios.
Agentic40,000Implement this user story end-to-end”. “Find and fix the failing tests in this module”; “Migrate this component to the new API and update callers.

Calculation Breakdown 

Use these formulas to calculate monthly Flex Credit consumption from your inputs.

1billable_tokens  = input + output + cache_read + cache_write   (all tokens billed)
2units/prompt     = ceil(billable_tokens / 2000)
3prompts/month    = developers × prompts/day × working_days
4credits/month    = units/prompt × prompts/month × rate_multiplier

Default Scenario Result (Sonnet 4.6, 10 Developers, 6,500 Tokens, 60 Prompts/Day, 21 Days) 

The following table shows the Flex Credit calculation for the default scenario.

MetricValue
Units per prompt4 units (ceil(6500 / 2000))
Prompts per month12,600 (10 × 60 × 21)
Billing units per month50,400
Prompt usage typeStandard
Rate multiplier×4
Flex Credits per month201,600

All tokens processed count toward the 2,000-token unit: input, output, and cache-read and cache-write. There’s no caching discount, so Salesforce bills cached context at the same rate as fresh input. The measured token totals above already reflect this.

Note

Sandbox usage draws from the associated production org’s Flex entitlement. There’s no separate sandbox pool, and Salesforce bills sandbox prompts at the same multiplier as production. Digital Wallet flags whether consumption originated in sandbox vs. production.

Note

What Drives Tokens Per Request 

The factors below are ordered by how much they typically move the number, with the first three being the biggest surprises on a real bill.

  1. Conversation history and prior turns. In a multi-turn session, Agentforce Vibes re-sends every earlier user message and assistant response on each new turn. Usually the largest driver in agentic runs: a 10-minute conversation costs far more than 10 times the first turn.

  2. Tool call results. When Vibes reads a file, greps the repo, runs a test, or executes a command, the output lands back in context for the next turn. A test log, stack trace, or grep across a large module can add thousands of tokens per tool call.

  3. Reasoning and thinking tokens. Opus generates internal reasoning tokens that count as output but don’t appear in the reply. A hard problem can produce many multiples of the visible answer in thinking tokens.

  4. Retries and self-correction. When a tool call errors or the model rewrites its own output, each attempt is a billable turn. Agentic runs iterate. Plan for retries in the average.

  5. System prompt and Vibes instructions. Fixed overhead sent on every request: the Vibes agent’s operating instructions, tool definitions, and formatting rules. Base cost before the user types anything.

  6. Project-level instructions. Agentforce Vibes loads any custom rules file (project guidelines, user preferences, coding standards) into every request.

  7. Retrieved context and grounding results. When Vibes pulls from the Salesforce Catalog or runs semantic retrieval against org metadata, those results become input tokens.

  8. Open files, selected code, and multi-modal input. Files open in the editor, selected code passed as context, and any images or screenshots attached to the prompt all count as input tokens.

  9. Cache read and write tokens. Agentforce Vibes caches the stable portion of context (system prompt, prior turns, large files) to speed later turns. Salesforce bills all cache read and write tokens at the standard rate. Caching improves speed, not cost.

Actual mix varies by session, task, and model.

Control Your Spend 

  • Start a new session for each new task. Conversation history is the biggest driver: a stale multi-hour session pays for every earlier turn on every new prompt. New task, new session.
  • Match the model to the task. Standard-tier models (Sonnet, GPT-5) cost one-quarter of Advanced (Opus) per token. Use Opus only when the reasoning tier is worth the cost difference.
  • Keep tool calls scoped. Grep a directory, not the whole repo. Read the function, not the file. Tool output re-enters context on the next turn.

Considerations 

  • Measured token totals are from single-turn Agentforce Vibes sessions captured in Billing view B (cache-inclusive; Salesforce Flex convention). No measured run included a deployment step.

  • Confirm rates with your Salesforce account team before making purchasing decisions. The Agentforce Vibes stock-keeping unit (SKU) is ineligible for courtesy concessions.

Sources 

See Metered Usage Via Flex Credits for billing unit rules and token counting behavior.

See Flex Credits Usage for prompt usage type definitions.

See Large Language Model Support for the model-to-prompt-usage-type mapping.

See Agentforce and Data 360 Rates for the current Flex Credits Rate Card and multipliers.