Skip to main content
Unlisted page
This page is unlisted. Search engines will not index it, and only users having a direct link can access it.

Setup (legacy)

Paid Feature

This feature is only available in paid plans. Learn More

This page keeps the legacy features.ai flags as a reference for existing integrations. For current AI features, use the AI Assistant setup guide and image configuration reference.

AI feature flags are on by default, but they do not grant plan access or restore retired tools. Pass features.ai: false to turn AI off for an embed.

Retired on October 1, 2026

Smart Text, Smart Paragraph, Smart Buttons, Smart Headings, and Smart Image Alt Text are retired and no longer appear in the editor, whatever these options are set to. Changing legacy features.ai flags does not restore them. Use the AI Assistant instead; it has its own plan and setup requirements.

Image generation and AI image editing require AI Assistant access. Legacy image-generation access alone does not enable them.

note

Setting features.ai.assistant: false hides the AI Assistant for that editor instance. It does not restore the retired Smart tools. A plan without AI Assistant access does not make those tools available either. See FAQ & Troubleshooting.

Enable or disable all AI features​

Pass a boolean to enable or disable AI at the embed level. Enabling AI still requires the current feature's plan and setup requirements; it does not restore retired Smart tools:

unlayer.init({
features: {
ai: true, // enable all AI features (equivalent to ai.enabled: true)
},
});
unlayer.init({
features: {
ai: false, // disable every AI feature
},
});

Controlling specific AI features​

AI Assistant — assistant​

A dedicated chat panel inside the editor for full-template, page, body, row, and content-level edits. The Assistant requires a plan that includes it, the numeric projectId, and an identified end-user (user.id). Neither features.ai.enabled nor features.ai.assistant can be false. See the AI Assistant setup guide for a complete initialization; the fragment below shows only the feature flags.

unlayer.init({
features: {
ai: {
enabled: true,
assistant: true,
},
},
});

The retired Smart flags below are retained here only to identify legacy initialization options. Do not use them to enable AI writing features in a new integration.

Smart Text — smartText​

Retired. Previously offered inline AI suggestions for short text (e.g. tightening a sentence, rewriting a fragment).

Smart Paragraph — smartParagraph​

Retired. Previously generated multi-sentence paragraphs from a brief prompt or surrounding context.

Smart Buttons — smartButtons​

Retired. Previously generated optimized call-to-action button copy.

Smart Headings — smartHeadings​

Retired. Previously suggested headings tuned for the section's content.

Image workflows​

Image search, generation, and editing now live in the AI Assistant chat. The Magic Image entry point and modal are removed. AI image workflows, including AI editing in the Image Editor modal, require a plan with AI Assistant access and available credits. Legacy Magic Image access alone no longer enables AI editing. Manual Image Editor tools remain available.

The old features.ai.magicImage option is deprecated. An explicit false still disables image chat when features.ai.image.enabled is omitted. Set features.ai.image.enabled explicitly to override it. Existing initialization code remains valid; the new image options are optional.

Smart Image Alt Text — smartImageAltText​

Retired. Previously generated accessible alt text for uploaded images. For current alt-text controls, see Configure image actions.

Usage reporting for legacy tools​

Billable legacy AI calls appear in the public usage breakdown and ai.credits.usage_recorded webhook. Smart Text, Smart Headings, Smart Buttons, and image-to-text suggestions use block_edit. Image generation and image-prompt suggestions use image_generation.

The existing End-User Identification configuration attributes these calls automatically; no additional integration changes are needed. Historical calls recorded without an identity remain unattributed. Direct project-key calls to legacy text routes remain unattributed.

Use GET /v3/projects/:id/ai-credits for the workspace balance and GET /v3/projects/:id/ai-credits/usage for the project and end-user breakdown.