Polotno Docs
Demos

AI Design Generation

Generate designs using AI with a custom side panel for prompt input

This feature is experimental and is in active development. The API and its behavior may change as we refine the model. For any feedback, please write a direct message on the forum: https://community.polotno.com/u/a13e0cdd

Use the Polotno AI API to generate complete designs from text prompts. This demo shows how to build a custom side panel that integrates with the AI design generation endpoint.

Features

  • Text prompt input — describe the design you want
  • JSON design output — the API returns a { design } object with a complete Polotno JSON design

How it works

  1. User enters a design prompt in the custom AI Design side panel
  2. The app sends a POST request to the Polotno AI API
  3. The API returns a { design } object, and the design value is loaded via store.loadJSON(design)

API

The demo uses the AI design creation endpoint:

POST https://api.polotno.com/api/ai/design/create?KEY=<your-api-key>

The API accepts a prompt field and returns an object with a design field:

Request body:

{
  "prompt": "A business card with blue gradient"
}

Response:

{
  "design": {
    ...Polotno JSON design...
  }
}

Load the returned design with store.loadJSON(data.design).

Each AI design generation request will be billed at $0.20 per design. During the experimental phase, the API is free to use.

Live demo

On this page