Pricing
This feature is only available in paid plans. Learn More
Unlayer measures AI usage in credits. Each workspace has one shared usage bucket, so every AI feature, project, and end user in that workspace contributes to the same balance. A request uses credits according to the work performed; there is no fixed per-request charge.
For current plan allowances and add-on pricing, see unlayer.com/pricing. To forecast monthly usage from your number of end users, use the AI Credit Estimator.
Eligible workspaces see a one-time 5,000-credit welcome offer in Billing. Availability follows the workspace's current plan, subscription status, and AI feature eligibility; current Free and legacy plans do not qualify. Eligibility to buy a paid credit pack is separate. The grant does not unlock AI features that the workspace's plan excludes.
What is an AI Credit?
An AI Credit is a cost-based usage unit, not a large language model (LLM) token or a fixed number of requests. Tokens are pieces of content processed by a model. Unlayer calculates the cost of that work using the applicable model rates, then converts it into credits. Input, output, and cached input can have different rates, so the same number of tokens does not always use the same number of credits.
What affects text-edit cost?
A text edit can process more than the prompt and selected text. It can also include the Assistant's instructions, surrounding email copy or design data, Brand Context, and conversation history. Design context can account for much more input than the short block being edited; shortening the prompt alone does not bound the cost.
Visible word count and canvas size do not measure the amount of data a model processes. An image embedded as a data URL, in an image block or inside text, can add substantial input. Reproducing unchanged image data in generated content can also add output usage. Custom-tool configuration can affect which model handles a request, even when editing a built-in text block.
Generated text, design changes, and model reasoning also contribute to usage. Model routing chooses how to handle the request, and a turn can involve several model calls, including retries or a switch to another model. Their work contributes to the total, not just the final visible reply. Creating cached context and reusing it have different costs; changing the design can require creating that context again. Repeating a prompt does not guarantee the same credit charge.
Plan for variable usage
A short request is not a low-cost guarantee. Use these as rough orientation, not a per-request price or a maximum:
- A short text or block edit can use hundreds of credits when it processes substantial design context or needs more model work. Small, simple requests can use much less.
- Generating or editing an image usually uses dozens to hundreds of credits, depending on the model, resolution, prompt, and reference images.
- Full-template generation and HTML or website imports usually use hundreds to a couple thousand credits.
The editor shows the credits used after each completed Assistant request. For a complete billing record, use the server-side AI Credits API and webhooks.
Before setting end-user allowances, measure representative prompts on both small and large designs, with your saved Brand Context and with it explicitly disabled. Include new conversations and follow-up turns, and repeat each case to see variation. The Assistant's displayed total is useful for a completed turn; use the server-side usage record for your billing ledger. See host-managed allowances for keeping your own per-user balance current.
Image turns in the Assistant include both the image operations and the conversation
work. A request to edit several images performs and bills each image edit separately. Image input, image output, and text are priced separately using the
provider's reported usage when available. A clarification can use text credits
without generating an image. Uploading, reordering, previewing, and adding results to the prompt do not
run an image operation. Undo change is also local and free. Applying an image
can trigger a separate paid alt-text description when automatic alt text is enabled.
The direct POST /v3/images/generate endpoint and standalone Image Editor do not
add the builder Assistant's conversation-model work.
Supported grayscale conversions and single-color replacements in flat logos do not use an image model or charge image-generation credits. Conversation and image-description usage still apply. Unsupported replacements keep the original; an opaque result for a request requiring transparency is rejected without an image-credit charge.
Protected edits that make no changes
An unchanged design does not by itself make a turn free. A completed request can use credits even when the Assistant finds no edit is needed. Advisory answers and clarification questions can also be useful results without changing the design. The automatic waiver below applies only to the verified protected-edit case.
In designMode: 'live', an edit request uses zero AI credits when the
server verifies that template permissions prevented the edit, the resulting
design is unchanged, and the request would normally use no more than 200
credits. Provider usage is still recorded internally. If fallback models were
used, the 200-credit ceiling applies to the combined cost of every attempt.
With the whole canvas selected, this rule applies regardless of the request's language—for example, both “remove the footer” and “remova o rodapé”.
Requests above that ceiling use credits normally. When some edits are allowed,
the Assistant keeps those edits, preserves protected content, and charges for
the completed request. Ordinary answers, clarification questions, errors, and
edits in designMode: 'edit' also retain their normal billing behavior. A host
callback rejecting an otherwise valid edit does not waive credits.
Capped and uncapped workspaces
Console frames AI usage against a positive allowance. For example, with 7,400 credits used from a 10,000-credit allowance, the Billing tile shows "2,600 left of 10,000", while the project Usage page shows "7,400 / 10,000". A plan or add-on allowance is shown even when enforcement is in shadow mode; an enforced workspace whose only positive allocation is a claimed bonus is shown the same way.
Console's allowance display is not an enforcement signal. The server balance
API sets is_capped to true only when enforcement is enabled, and the editor
balance indicator and threshold/exhausted webhooks use the same enforcement
gate. A shadow workspace can therefore show a real remaining allowance in
Console while returning is_capped: false, keeping the editor indicator hidden,
continuing AI after the allowance is used, and emitting no threshold or
exhausted webhooks.
Some older plans are grandfathered. When they have no plan or add-on AI allowance, Console shows only the credits used after usage begins, with no remaining balance or exhausted state. A one-time grant can top up a capped allowance, but it does not create a cap for a grandfathered uncapped workspace.
The AI Credits tile carries an information icon. Hover or focus it to see what the number counts and whether an allowance bounds it.
See the workspace balance
When the editor session has a complete, active, enforced balance, the Assistant header shows the credits used and remaining in the current monthly window. Annual subscriptions still use monthly credit windows. Use the refresh action in the balance popover to include activity from other sessions and AI features. Because this indicator follows enforcement, it remains hidden for shadow-mode workspaces even when Console shows a positive allowance.
The balance is optional. White-label embeds without an active usage period, period dates, or complete balance data do not show an empty placeholder.

Choose where the credit link goes
For an embedded editor, set features.ai.creditsUrl to your own billing, usage,
or help page. It must be an absolute HTTP or HTTPS URL:
unlayer.init({
features: {
ai: {
creditsUrl: 'https://app.example.com/settings/ai-credits',
},
},
});
This changes the destination of workspace credit links, not metering or enforcement. In Console, a workspace Billing URL takes priority when one is available.
For a separate host-managed per-user allowance, use credits.ai.purchaseUrl
or the credits:purchase callback instead. See
End-User AI Credits & Upsell.
When credits reach zero
This section applies only when enforcement is enabled. Shadow-mode workspaces are never paused by metered credit usage, even if Console displays a positive allowance.
To stop one project or one end user before the whole workspace runs out, set monthly caps. Unlayer enforces them on the server, including for shadow-mode workspaces.
The default behavior is show_error: AI controls remain visible, but the
editor stops new generations and explains that the workspace is out of credits.
You can instead hide AI controls in embedded editors by setting the project's
exhaustion_behavior to disable:
PUT /v3/projects/:id/ai-credits/settings
Authorization: Bearer unlayer_sk_...
Content-Type: application/json
{
"exhaustion_behavior": "disable"
}
Use show_error to restore the default. Read the current value with
GET /v3/projects/:id/ai-credits/settings. See
AI Credits API and webhooks for
the full settings contract.
Recurring plan and credit-pack capacity resets at its next monthly boundary. One-time welcome credits do not refill. Eligible current plans with an active paid subscription can add capacity from Console → Billing → Add-ons; trial or legacy workspaces may need to change plans before self-service packs are available.
Customize the exhaustion message
Use the normal translation override mechanism. For an embedded end user who cannot manage workspace billing, customize the Assistant title, the feature-specific message, and the generic fallback:
unlayer.init({
locale: 'en-US',
translations: {
'en-US': {
'labels.ai.assistant.credits_exhausted.title':
'AI credits are currently unavailable',
'labels.usage_limit.errors.credits_exhausted_contact_owner':
'Your {feature} credits are used up. Contact your account owner to continue.',
'labels.usage_limit.errors.credits_exhausted_contact_owner_generic':
'Your credits are used up. Contact your account owner to continue.',
},
},
});
Keep {feature} in the message if you want the editor to insert the localized
feature name, such as “AI generation.” The generic fallback is used when the
feature is missing or unrecognized; it does not receive a {feature} value.
These keys apply to workspace exhaustion. The separate host-managed per-user
notice uses labels.credits.*; see
credit notice translations.
Reset and expiration
Plan and recurring add-on credits are recurring allowances. Unused credits do
not accumulate when a new allowance window starts. The balance API returns
reset_date while it can resolve an active future billing window, and
null otherwise. Use the returned value instead of calculating it from the
subscription term.
A future reset_date is not a promise of renewal: when the subscription is
scheduled to end with that window, it marks expiration instead. See the
balance response.
Some eligible workspaces are offered a one-time 5,000-credit welcome bonus in Billing. It is not granted on first AI use; someone with billing access must select Claim now. The card shows the exact expiration date before the claim. The bonus normally expires at the next monthly credit reset, so it does not carry into a new window.
Billing offers the welcome bonus only when the workspace's current plan, subscription status, and AI feature eligibility qualify. Current Free and legacy plans do not qualify. Eligibility to buy a paid credit pack is separate. The bonus shares the workspace credit bucket and does not unlock excluded AI features.
Automatic top-ups
Automatic top-ups are being rolled out. Until they reach your workspace, the card described here does not appear under the credit packs and the credit packs above remain the way to add credits.
Workspaces on a current paid plan can let Unlayer buy more of a credit pack automatically when that balance runs low, up to a spending limit you set for each monthly credit window. Every credit pack with a top-up gets the same control — AI Credits, Export Credits, Inbox Previews Credits and Bandwidth Credits — and the card lists each add-on your plan can use and whose cap is enforced on the workspace. Turn it on from Console → Billing → Usage & add-ons, under the credit packs.

One master switch turns automatic top-ups on for the workspace. Under it, every add-on that can be topped up has a row of its own:
- The add-on's switch — an add-on is bought automatically only while its own switch is on. The first time you open the card, every add-on it offers is pre-selected, and saving records your decision for each one. An add-on that appears on the card later — because it became available on your plan or its cap became enforced — starts switched off until you turn it on, so nothing is ever bought that you did not see and accept.
- Budget per period — the most automatic top-ups may spend on that add-on in one monthly credit window, from $5 to $1,000 in $5 steps ($100 to start). It is a hard stop: once the budget is reached nothing more is bought for that add-on until the window resets, and your billing contact is emailed with a projection of how far the remaining budget reaches so you can raise it in time.
The footer of the card shows what was spent this period and the most the budgets you have set could charge.
How much each top-up buys is not a setting; How it works on the card spells it out. Once an hour, Unlayer checks how fast the workspace is using each add-on. When an add-on would run out within a day at that pace, it buys enough to last about three days of usage, in $5 steps, never sized past the end of the current period and never past that add-on's budget.
Purchases are sized to your usage, not sold as fixed packs. Each one buys enough of the pack, in $5 steps at the same rate as the recurring pack, to cover about three days at the observed pace, and never sized past the end of the current period. Heavy usage therefore produces several small charges through the month rather than one large one. When the period resets, the most that goes unused is a few days' worth of usage, or at most one $5 step if a pack runs out near the end of the period. Unused credits expire when your period resets; nothing carries over.
A few things to know:
- Each top-up is a one-off charge to the payment method on file and appears as its own invoice, listed under the pack's name (for example AI Credits) with the number of $5 steps bought. When more than one pack is topped up in the same run, each pack is charged on its own invoice.
- Automatic top-ups only run for a pack whose cap is actually enforced on the workspace. They are not offered on Free, trialing, cancelled, or legacy plans, and require a stored payment method.
- Evaluation is hourly and driven by activity. A workspace that is not using a pack is not evaluated for it and is never charged. A workspace that has run out is evaluated as long as someone keeps trying, so the first request after a period reset on a plan with no included credits may be refused until the next hourly run buys more.
- A pack that has run out is always bought at least one $5 step while its switch is on and budget remains, even late in the period when part of that step will expire unused. The only times nothing is bought are the final hours of a period, and when the balance on hand already lasts to the reset at the observed pace.
- On plans that include none of a pack's credits, the budget that pack spends against is effectively the workspace's monthly spend on it.
- Purchased credits appear in the balance and usage APIs like any other credit, and in the Console usage page as purchased credits with their expiry date.
- While automatic top-ups are buying a pack for you, its usage alerts (for example "Your AI credits are running low") are not sent, because every top-up would set them off again. You get the top-up emails instead: each purchase, 80% of the budget used, and the budget reached. Once the budget is reached or automatic top-ups are off, the usage alerts return.
- If a charge is declined, nothing is added, the charge is not retried, and automatic top-ups are switched off for the workspace until someone with billing access updates the payment method and turns them back on. Your billing contact is emailed.
- Turning automatic top-ups off — for the workspace or for one pack — takes effect immediately. Credits already bought stay until their expiry.
- Every purchase is listed under Recent top-ups on the same Billing page, with the date, the add-on, what was added and what was charged. The invoice itself is on the Invoices tab.
Automatic top-ups and credit packs can be combined: packs raise the recurring allowance every window, and top-ups cover bursts beyond it.
Development and staging
There is no separate unmetered development tier. A dev or staging project uses the shared allowance of its workspace. To measure a workflow before launch, run it in a test project and inspect the request result or the usage API.
Grandfathered uncapped workspaces continue to meter that usage without pausing requests or creating overage charges.
If you resell AI, keep each end user's allowance and reset schedule in your own backend. The builder can display that state, but it does not replace backend enforcement. See End-User AI Credits & Upsell.
Disable all AI features
unlayer.init({
features: {
ai: false,
},
});