Add asset-pack Image v2 API for Family Board stickers.

POST /api/assets/generate wraps Flux/Krea generate with sticker/panel/icon presets; GET /api/assets/{id} returns status and PNG URLs using the existing poll path.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-10-06 19:06:14 -05:00
co-authored by Cursor
parent f6c5ef8af5
commit 26a3bfb797
6 changed files with 530 additions and 0 deletions
+2
View File
@@ -15,6 +15,8 @@ Image edit (v1) and Image v2 are siblings. v1 is unchanged. Do not mute-fix `wor
Poll v2 jobs the same way as v1: `GET /api/generate/{id}/stream` and `GET /api/generate/{id}`.
For Family Board stickers / panel backgrounds / icons, see **[asset-pack.md](./asset-pack.md)** — `POST /api/assets/generate` is a thin wrapper around Image v2 generate with style presets.
## Modes
- **edit** — one image + text. Task is `scene`. Sending `image_b` is rejected. Use this to change lighting, background, or the whole frame from a single still.