# SleekPixel 2.0: An Image API for Other Sites and Services

SleekPixel 2.0 is a major release built on the new shared foundation of every
SleekWP plugin. Other sites and services can now create images from your
designs, visitors never wait for a render, and designs move into SleekPixel's
own database tables.

## Images for other sites and services

Other sites and services generate images from your designs through an API. A
public key from the workspace's **Public keys** settings lists the published
designs with the placeholders they read and creates images of them with your
values. Each image is a signed URL for `img` tags and `og:image`, rendered
once, cached and rate limited. [Other sites](/docs/pixel/rendering/other-sites.md)
in the docs covers the requests.

## Visitors never wait

A visitor who is not signed in never waits for an image to render: the render
is queued once, and the image's last file is shown until it is done.
Background renders now run in the shared job queue. Images set in Default or a
custom font, and sites without a Google Fonts key, no longer wait on Google
while a page renders, and a failed Google Fonts request is not repeated for an
hour.

Cached images are kept per design, post, key set, custom data and language, so
switching languages or a second shortcode no longer re-renders or deletes
another variant's file. The old cache is cleared once on update.

## An assistant beside the editor

The workspace [assistant](/docs/pixel/ai/chat.md) reads and changes the open
design: describe a change such as "move the title to the left" and it edits
the canvas you are looking at, as an unsaved edit you can review. It uses the
AI provider keys in **Settings** and replaces the built-in AI chat, which is
retired with its own key settings and chat sharing.

## Designs for your own code

New [PHP functions](/docs/pixel/php-functions.md) read image designs and uploaded
fonts, such as `sleek_pixel_get_design()` and `sleek_pixel_get_fonts()`.
Uploaded fonts are now edited on the **Fonts** settings page, and an image
element draws web addresses and the site's image files (PNG, JPEG, GIF, BMP,
WebP, AVIF and self-contained SVG).

## Its own tables

Image designs and custom fonts are kept in SleekPixel's own database tables
instead of as posts, with the same IDs, so `[sleek-pixel-image]`,
`sleekPixel_get_image_url()` and every saved reference keep working. The update
moves them, the settings and the Google Fonts key once. They are no longer part
of WordPress's **Tools > Export** file; Agent Sync's files in your theme and
`wp sleek pixel image get` keep a copy of each design.

## A rebuilt workspace

- A rebuilt administration application.
- A **Docs** page after License holds the documentation inside the workspace.
- **Settings** holds the AI provider keys, shared with every SleekWP plugin on
  the site.
- A light, dark and system theme selector in the header replaces the
  Appearance page.
- Delete removes a design for good with its cached images, and designs are
  listed newest first.

## Before you update

SleekPixel 2.0 requires **PHP 8.2 and WordPress 6.9**. A site below either
keeps its current release, so the updater never moves it. Stored API keys are
now encrypted with a key unique to your site, which means rolling back to an
earlier version needs them entered again, and canvas preferences such as
guidelines and snapping start from their defaults. As with any major release,
back up your database and files first, because downgrading after the migration
is not supported.

The full list of changes is in the [changelog](/pixel/changelog/), and the
[SleekPixel docs](/docs/pixel.md) cover every feature.
