Your users generate an image from a prompt in the AI tab, and extend, retouch and upscale photos with Expand, Generative fill and Upscale. Polotno runs the models and charges each image to your prepaid balance. The tools stay off until you turn them on. Polotno AI setup
Changelog · Dec 2, 2026
Polotno 4.25: built-in Polotno AI
Optional AI image tools built into the editor: your users generate images from a prompt and edit photos with Expand, Generative fill and Upscale, charged to your prepaid Polotno balance.
Highlights
Built-in Polotno AI
All changes
polotno 4.25.0 / 3.25.0
Polotno AI
- Added Polotno AI: an AI panel that generates images, and built-in Expand, Generative fill and Upscale on the canvas, paid from your Polotno balance. Docs
- Turn it on from
polotno/config:setTokenFuncpasses a token your server mints,setAiToolslists the tools that show, andsetAiModelspicks their models. No tool shows untilsetAiToolslists it. - AI results go through your
setUploadFunc, so designs keep your URLs instead of large data URLs. - AI refusals reject with
FETCH_FAILED, with the API'sapiCode(such asinsufficient_balance) andrunIdindetails. AiImagesPanelis now the Polotno AI panel and needssetTokenFunc. The Stable Diffusion service it used is retired.
Editor
- Added a per-unit time for text animations: "Each letter", "Each word" or "Each line" in the Animate panel,
unitDurationin the JSON. A long text keeps a steady rhythm. Docs - Added
components.LocktoLayersPanel, to hide or replace the lock toggle. createPolotnoAppaccepts'variables'and'videos'insections, and its options are typed. Docs- A custom side panel section replaces the stock section with the same name.
- Fixed Copy Style, the Cmd/Ctrl+B/I/U shortcuts and the timeline changing locked elements. Docs
- Fixed sizes in
ptwhen the design's dpi is not 72: the size panel, rulers and PDF export withunit: 'pt'use true points. - Fixed
createStore({ key })failing to typecheck withoutshowCredit. - Fixed menus opened inside a popover appearing under it.
@polotno/pdf-export 0.20.0, @polotno/image-export 0.5.0, @polotno/email-export 0.4.0
- Exports warn when a text shrinks to fit its box under the default
textOverflow: 'change-font-size': codetext-shrunk, sent toonWarning, or to the console without one. PasstextOverflow: 'resize'to grow the box instead, as the editor does.
@polotno/pdf-export 0.20.0
onWarningworks on every export. DocsRenderWarningis a union bycode: checkcodebefore you readlostOverprint.
@polotno/pptx-export 0.16.0
- Text animations follow
unitDuration, as in the editor.
@polotno/pub-import 0.1.1
- Fixed the bundled font notices to credit Adobe for Prism Console.
polotno-node 3.22.0
- Bundles polotno 4.25.0: text animations follow
unitDurationin videos and GIFs. - Fixed page sizes in PDF exports with
unit: 'pt'when the design's dpi is not 72.
Embed creative infrastructure into your product
TRUSTED BY
100,000+
CREATORS
300+
BUSINESSES
