From 530b48e2dce027dab3eca659e08f1736708a7236 Mon Sep 17 00:00:00 2001
From: hit-cxf <2024111082@stu.hit.edu.cn>
Date: Wed, 13 May 2026 21:36:47 +0800
Subject: [PATCH] 接入Pixelle的html模版

---
 aigc-director/aigc-claw/backend/models/image_client.py                             |   10 
 aigc-director/aigc-claw/backend/templates/1080x1920/video_default.html             |    6 
 aigc-director/aigc-claw/backend/api_server.py                                      |    7 
 aigc-director/aigc-claw/backend/pipelines/utils.py                                 |  210 +++++++++++
 aigc-director/aigc-claw/backend/templates/1080x1920/image_blur_card.html           |    6 
 aigc-director/aigc-claw/frontend/components/pipelines/PipelinePage.tsx             |  281 ++++++++++++++-
 aigc-director/aigc-claw/backend/api/routers/pipelines.py                           |  111 ++++++
 aigc-director/aigc-claw/backend/templates/1080x1920/static_excerpt.html            |    4 
 aigc-director/aigc-claw/backend/templates/1080x1920/image_satirical_cartoon.html   |    6 
 aigc-director/aigc-claw/backend/templates/1080x1920/video_healing.html             |    2 
 aigc-director/aigc-claw/backend/pipelines/__init__.py                              |    2 
 aigc-director/aigc-claw/backend/pyproject.toml                                     |    1 
 aigc-director/aigc-claw/backend/requirements.txt                                   |    1 
 aigc-director/aigc-claw/backend/templates/1080x1920/image_default.html             |    6 
 aigc-director/aigc-claw/backend/templates/1080x1920/image_healing.html             |    2 
 aigc-director/aigc-claw/backend/templates/1080x1920/image_purple.html              |    6 
 aigc-director/aigc-claw/frontend/lib/workflowApi.ts                                |   23 +
 aigc-director/aigc-claw/backend/templates/1920x1080/image_film.html                |    6 
 aigc-director/aigc-claw/backend/templates/1080x1920/image_life_insights_light.html |    2 
 aigc-director/aigc-claw/backend/templates/1080x1920/static_default.html            |    6 
 aigc-director/aigc-claw/backend/templates/1080x1920/image_simple_line_drawing.html |    6 
 aigc-director/aigc-claw/backend/templates/1080x1920/image_neon.html                |    6 
 aigc-director/aigc-claw/backend/api/schemas/pipelines.py                           |    2 
 aigc-director/aigc-claw/backend/templates/1920x1080/image_book.html                |    2 
 aigc-director/aigc-claw/backend/templates/1080x1920/image_full.html                |    6 
 /dev/null                                                                          |  113 ------
 aigc-director/aigc-claw/backend/templates/demo/default_image.png                   |    0 
 aigc-director/aigc-claw/backend/api/logging_config.py                              |    2 
 aigc-director/aigc-claw/backend/templates/1080x1920/image_modern.html              |    6 
 aigc-director/aigc-claw/backend/templates/1080x1920/image_book.html                |    4 
 aigc-director/aigc-claw/backend/templates/1080x1920/image_long_text.html           |    2 
 aigc-director/aigc-claw/backend/templates/1080x1920/image_excerpt.html             |    4 
 aigc-director/aigc-claw/backend/templates/1080x1920/image_simple_black.html        |    6 
 aigc-director/aigc-claw/backend/templates/1920x1080/image_full.html                |    6 
 aigc-director/aigc-claw/backend/pipelines/standard.py                              |   46 ++
 aigc-director/aigc-claw/backend/uv.lock                                            |  161 ++++++++
 36 files changed, 863 insertions(+), 207 deletions(-)

diff --git a/aigc-director/aigc-claw/backend/api/logging_config.py b/aigc-director/aigc-claw/backend/api/logging_config.py
index aedd497..2a1b4f9 100644
--- a/aigc-director/aigc-claw/backend/api/logging_config.py
+++ b/aigc-director/aigc-claw/backend/api/logging_config.py
@@ -8,7 +8,7 @@
 
 
 class AIGCFormatter(logging.Formatter):
-    """Compact, Pixelle-like console formatter for API and worker logs."""
+    """Custom log formatter that adds level icons for better readability."""
 
     LEVEL_ICONS = {
         "DEBUG": ".",
diff --git a/aigc-director/aigc-claw/backend/api/routers/pipelines.py b/aigc-director/aigc-claw/backend/api/routers/pipelines.py
index 38e7efd..1774e50 100644
--- a/aigc-director/aigc-claw/backend/api/routers/pipelines.py
+++ b/aigc-director/aigc-claw/backend/api/routers/pipelines.py
@@ -1,7 +1,12 @@
+import base64
+import os
+import re
+from html import escape
+from urllib.parse import quote
 from typing import Optional
 
 from fastapi import APIRouter, BackgroundTasks, HTTPException, Query
-from fastapi.responses import StreamingResponse
+from fastapi.responses import HTMLResponse, StreamingResponse
 
 from api.schemas.pipelines import (
     ActionTransferPipelineRequest,
@@ -9,12 +14,78 @@
     GenericPipelineRequest,
     StandardPipelineRequest,
 )
+from config import BASE_DIR
 from pipelines.api_media import list_api_workflows
 from pipelines.events import task_event_stream
 from pipelines.runner import PIPELINE_REGISTRY, run_pipeline_task
 from pipelines.storage import create_task, delete_task, list_tasks, load_task
+from pipelines.utils import TEMPLATE_FIELD_DEFAULTS, template_custom_fields, template_media_spec
 
 router = APIRouter(tags=["Pipelines"])
+
+TEMPLATE_DIR = os.path.join(str(BASE_DIR), "templates")
+DEMO_IMAGE_PATH = os.path.join(TEMPLATE_DIR, "demo", "default_image.png")
+TEMPLATE_SIZES = {
+    "1080x1920": {"ratio": "9:16", "width": 1080, "height": 1920},
+    "1080x1080": {"ratio": "1:1", "width": 1080, "height": 1080},
+    "1920x1080": {"ratio": "16:9", "width": 1920, "height": 1080},
+}
+PLACEHOLDER_IMAGE_FALLBACK = (
+    "data:image/svg+xml;utf8,"
+    "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'>"
+    "<defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'>"
+    "<stop stop-color='%2388b7ff'/><stop offset='1' stop-color='%23f8d58a'/>"
+    "</linearGradient></defs>"
+    "<rect width='1024' height='1024' fill='url(%23g)'/>"
+    "<circle cx='760' cy='220' r='110' fill='%23ffffff' fill-opacity='.45'/>"
+    "<path d='M90 820 360 520l170 170 130-150 270 280Z' fill='%23ffffff' fill-opacity='.55'/>"
+    "</svg>"
+)
+
+
+def _demo_image_data_uri() -> str:
+    if os.path.exists(DEMO_IMAGE_PATH):
+        with open(DEMO_IMAGE_PATH, "rb") as f:
+            encoded = base64.b64encode(f.read()).decode("ascii")
+        return f"data:image/png;base64,{encoded}"
+    return PLACEHOLDER_IMAGE_FALLBACK
+
+
+def _template_label(filename: str) -> str:
+    name = os.path.splitext(filename)[0]
+    for prefix in ("image_", "static_", "video_", "asset_"):
+        if name.startswith(prefix):
+            name = name[len(prefix):]
+            break
+    return name.replace("_", " ").title()
+
+
+def _template_path(size: str, filename: str) -> str:
+    if size not in TEMPLATE_SIZES or "/" in filename or "\\" in filename or not filename.endswith(".html"):
+        raise HTTPException(404, "Template not found")
+    path = os.path.abspath(os.path.join(TEMPLATE_DIR, size, filename))
+    root = os.path.abspath(os.path.join(TEMPLATE_DIR, size))
+    if not path.startswith(root + os.sep) or not os.path.exists(path):
+        raise HTTPException(404, "Template not found")
+    return path
+
+
+def _render_preview_html(raw: str) -> str:
+    replacements = {
+        **TEMPLATE_FIELD_DEFAULTS,
+        "image": _demo_image_data_uri(),
+    }
+
+    def repl(match: re.Match) -> str:
+        token = match.group(1).strip()
+        key = token.split(":", 1)[0].split("=", 1)[0].strip()
+        if key in replacements:
+            return replacements[key]
+        if "=" in token:
+            return escape(token.split("=", 1)[1].strip())
+        return ""
+
+    return re.sub(r"\{\{\s*([^{}]+?)\s*\}\}", repl, raw)
 
 
 def _start_task(background_tasks: BackgroundTasks, pipeline: str, params: dict):
@@ -103,6 +174,44 @@
     }
 
 
+@router.get("/api/pipelines/standard/templates")
+async def get_standard_templates():
+    templates = []
+    for size, meta in TEMPLATE_SIZES.items():
+        folder = os.path.join(TEMPLATE_DIR, size)
+        if not os.path.isdir(folder):
+            continue
+        for filename in sorted(os.listdir(folder)):
+            if not filename.endswith(".html"):
+                continue
+            template_id = f"{size}/{filename}"
+            try:
+                media = template_media_spec(template_id)
+            except Exception:
+                continue
+            encoded_filename = quote(filename)
+            templates.append({
+                "id": template_id,
+                "name": os.path.splitext(filename)[0],
+                "label": _template_label(filename),
+                "size": size,
+                "ratio": meta["ratio"],
+                "width": meta["width"],
+                "height": meta["height"],
+                **media,
+                "fields": template_custom_fields(template_id),
+                "preview_url": f"/api/pipelines/standard/templates/{size}/{encoded_filename}/preview",
+            })
+    return {"templates": templates}
+
+
+@router.get("/api/pipelines/standard/templates/{size}/{filename}/preview", response_class=HTMLResponse)
+async def preview_standard_template(size: str, filename: str):
+    path = _template_path(size, filename)
+    with open(path, "r", encoding="utf-8") as f:
+        return HTMLResponse(_render_preview_html(f.read()))
+
+
 @router.post("/api/pipelines/standard/tasks")
 async def start_standard_pipeline(req: StandardPipelineRequest, background_tasks: BackgroundTasks):
     return _start_task(background_tasks, "standard", req.model_dump(exclude_none=True))
diff --git a/aigc-director/aigc-claw/backend/api/schemas/pipelines.py b/aigc-director/aigc-claw/backend/api/schemas/pipelines.py
index efb2f70..5ad596c 100644
--- a/aigc-director/aigc-claw/backend/api/schemas/pipelines.py
+++ b/aigc-director/aigc-claw/backend/api/schemas/pipelines.py
@@ -21,6 +21,8 @@
     generate_audio: bool = True
     generate_videos: bool = False
     enable_subtitles: bool = False
+    subtitle_template: Optional[str] = None
+    subtitle_template_fields: Optional[Dict[str, str]] = None
     video_duration: int = 5
     tts_voice: str = "zh-CN-YunjianNeural"
     tts_speed: float = 1.2
diff --git a/aigc-director/aigc-claw/backend/api_server.py b/aigc-director/aigc-claw/backend/api_server.py
index 67cd548..a7d2330 100644
--- a/aigc-director/aigc-claw/backend/api_server.py
+++ b/aigc-director/aigc-claw/backend/api_server.py
@@ -1,9 +1,6 @@
 # -*- coding: utf-8 -*-
-"""Compatibility entrypoint for the AIGC-Claw FastAPI server.
-
-The application is organized under the ``api`` package following the
-Pixelle-Video router/schema layout, while this file keeps the historical
-``python api_server.py`` startup command working.
+"""
+Compatibility entrypoint for the AIGC-Claw FastAPI server.
 """
 
 import os
diff --git a/aigc-director/aigc-claw/backend/models/image_client.py b/aigc-director/aigc-claw/backend/models/image_client.py
index 7e9eef0..a982fcf 100644
--- a/aigc-director/aigc-claw/backend/models/image_client.py
+++ b/aigc-director/aigc-claw/backend/models/image_client.py
@@ -1,4 +1,5 @@
 import os
+import re
 import time
 import uuid
 import logging
@@ -75,7 +76,8 @@
             save_dir: Custom directory to save downloaded images.
             session_id: Session ID for organizing saved files.
             video_ratio: Aspect ratio of the video, e.g., "16:9", "9:16", "4:3", "3:4", "1:1".
-            resolution: Resolution string, e.g., "720P", "1080P", "2K", "4K".
+            resolution: Resolution string, e.g., "720P", "1080P", "2K", "4K",
+                or an exact media-slot size such as "1024*1024".
 
         Returns:
             List of absolute file paths of the generated images.
@@ -114,8 +116,12 @@
             }
         }
         
+        custom_size = None
+        if isinstance(resolution, str) and re.match(r"^\d+[x*]\d+$", resolution):
+            custom_size = resolution.replace("x", "*")
+
         # Default fallback if ratio or resolution is not found
-        size = size_map.get(video_ratio, size_map["16:9"]).get(resolution, "1920*1080")
+        size = custom_size or size_map.get(video_ratio, size_map["16:9"]).get(resolution, "1920*1080")
 
         if not model:
             model = "wan2.7-image"  # Default model
diff --git a/aigc-director/aigc-claw/backend/pipelines/__init__.py b/aigc-director/aigc-claw/backend/pipelines/__init__.py
index 16e0c7c..262972d 100644
--- a/aigc-director/aigc-claw/backend/pipelines/__init__.py
+++ b/aigc-director/aigc-claw/backend/pipelines/__init__.py
@@ -1,5 +1,3 @@
-"""Standalone API-only pipelines migrated from Pixelle-Video."""
-
 from .runner import PIPELINE_REGISTRY, run_pipeline_task
 
 __all__ = ["PIPELINE_REGISTRY", "run_pipeline_task"]
diff --git a/aigc-director/aigc-claw/backend/pipelines/standard.py b/aigc-director/aigc-claw/backend/pipelines/standard.py
index f43699c..bb43d40 100644
--- a/aigc-director/aigc-claw/backend/pipelines/standard.py
+++ b/aigc-director/aigc-claw/backend/pipelines/standard.py
@@ -15,8 +15,10 @@
     create_static_image_clip,
     media_duration_seconds,
     render_static_text_image,
+    render_template_text_image,
     replace_video_audio,
     run_blocking,
+    template_media_spec,
     write_json,
     write_text,
 )
@@ -180,6 +182,11 @@
         raise ValueError("standard pipeline requires image_model")
     image_resolution = params.get("image_resolution") or "1080P"
     enable_subtitles = bool(params.get("enable_subtitles", False))
+    subtitle_template = params.get("subtitle_template")
+    subtitle_template_fields = params.get("subtitle_template_fields") or {}
+    template_media = template_media_spec(subtitle_template, video_ratio) if subtitle_template else None
+    media_video_ratio = template_media["media_ratio"] if template_media else video_ratio
+    media_resolution = template_media["media_resolution"] if template_media else image_resolution
     video_mode = params.get("video_mode") or "image_concat"
     dynamic_video = video_mode == "dynamic_video" or bool(params.get("generate_videos", False))
     video_model = params.get("video_model")
@@ -207,6 +214,9 @@
         "segment_count": len(narrations),
         "video_mode": "dynamic_video" if dynamic_video else "image_concat",
         "style_control": style_control,
+        "subtitle_template": subtitle_template,
+        "subtitle_template_fields": subtitle_template_fields,
+        "template_media": template_media,
         "frames": [
             {"index": idx + 1, "narration": narration, "image_prompt": image_prompts[idx]}
             for idx, narration in enumerate(narrations)
@@ -232,8 +242,8 @@
             model=image_model,
             output_dir=output_dir,
             task_id=task_id,
-            video_ratio=video_ratio,
-            resolution=image_resolution,
+            video_ratio=media_video_ratio,
+            resolution=media_resolution,
         )
         images.append(image_path)
         image_artifact = artifact(image_path, "image", f"image_{idx:02d}")
@@ -274,14 +284,27 @@
         clip_image_path = image_path
         if enable_subtitles:
             captioned_image_path = os.path.join(output_dir, f"captioned_image_{idx:02d}.jpg")
-            clip_image_path = await run_blocking(
-                render_static_text_image,
-                image_path,
-                captioned_image_path,
-                subtitle=narrations[idx - 1],
-                title=title or None,
-                video_ratio=video_ratio,
-            )
+            if subtitle_template:
+                clip_image_path = await run_blocking(
+                    render_template_text_image,
+                    image_path,
+                    captioned_image_path,
+                    subtitle=narrations[idx - 1],
+                    title=title or None,
+                    video_ratio=video_ratio,
+                    template_id=subtitle_template,
+                    template_values=subtitle_template_fields,
+                    index=idx,
+                )
+            else:
+                clip_image_path = await run_blocking(
+                    render_static_text_image,
+                    image_path,
+                    captioned_image_path,
+                    subtitle=narrations[idx - 1],
+                    title=title or None,
+                    video_ratio=video_ratio,
+                )
             captioned_artifact = artifact(clip_image_path, "image", f"captioned_image_{idx:02d}")
             artifacts.append(captioned_artifact)
             append_artifact(task_id, captioned_artifact)
@@ -346,6 +369,9 @@
         "videos": videos,
         "video_mode": "dynamic_video" if dynamic_video else "image_concat",
         "video_model": video_model if dynamic_video else None,
+        "subtitle_template": subtitle_template,
+        "subtitle_template_fields": subtitle_template_fields,
+        "template_media": template_media,
         "video_only_path": video_only_path,
         "final_video": final_path,
     }
diff --git a/aigc-director/aigc-claw/backend/pipelines/utils.py b/aigc-director/aigc-claw/backend/pipelines/utils.py
index 6adb209..08b0a67 100644
--- a/aigc-director/aigc-claw/backend/pipelines/utils.py
+++ b/aigc-director/aigc-claw/backend/pipelines/utils.py
@@ -1,16 +1,33 @@
 import asyncio
+import base64
 import json
 import logging
+import math
 import os
 import re
 import shutil
 import subprocess
+import sys
+from html import escape
 from pathlib import Path
 from typing import Any, Iterable, Optional
 
 from PIL import Image, ImageDraw, ImageFont
 
+from config import BASE_DIR
+
 logger = logging.getLogger(__name__)
+
+TEMPLATE_FIELD_DEFAULTS = {
+    "title": "山河入梦",
+    "text": "心之所向,素履而往",
+    "author": "HITsz-TMG",
+    "describe": "开源AIGC智能体",
+    "brand": "AIGC-Claw",
+    "signature": "HITsz-TMG",
+    "subtitle": "这是一个副标题",
+}
+CUSTOM_TEMPLATE_FIELDS = ("author", "describe", "brand", "signature", "subtitle")
 
 
 def write_text(path: str, content: str) -> str:
@@ -298,6 +315,199 @@
     return output_path
 
 
+def ratio_from_size(width: int, height: int) -> str:
+    if width <= 0 or height <= 0:
+        return "1:1"
+    divisor = max(1, math.gcd(width, height))
+    return f"{width // divisor}:{height // divisor}"
+
+
+def _template_size_from_id(template_id: str) -> tuple[str, int, int]:
+    size = str(template_id or "").split("/", 1)[0]
+    if size == "1920x1080":
+        return size, 1920, 1080
+    if size == "1080x1080":
+        return size, 1080, 1080
+    if size == "1080x1920":
+        return size, 1080, 1920
+    raise ValueError(f"Unsupported subtitle template size: {template_id}")
+
+
+def _resolve_template_path(template_id: str, video_ratio: str) -> tuple[str, int, int]:
+    if "/" in str(template_id):
+        size, filename = str(template_id).split("/", 1)
+        _, width, height = _template_size_from_id(template_id)
+    else:
+        width, height = _resolution_from_ratio(video_ratio)
+        size = f"{width}x{height}"
+        filename = str(template_id)
+    if "/" in filename or "\\" in filename or not filename.endswith(".html"):
+        raise ValueError(f"Invalid subtitle template: {template_id}")
+    path = (BASE_DIR / "templates" / size / filename).resolve()
+    root = (BASE_DIR / "templates" / size).resolve()
+    if not str(path).startswith(str(root) + os.sep) or not path.exists():
+        raise FileNotFoundError(f"Subtitle template not found: {template_id}")
+    return str(path), width, height
+
+
+def template_media_spec(template_id: str, video_ratio: str = "9:16") -> dict[str, Any]:
+    template_path, _, _ = _resolve_template_path(template_id, video_ratio)
+    with open(template_path, "r", encoding="utf-8") as f:
+        raw = f.read()
+    width_match = re.search(
+        r'<meta\s+name=["\']template:media-width["\']\s+content=["\'](\d+)["\']',
+        raw,
+        re.I,
+    )
+    height_match = re.search(
+        r'<meta\s+name=["\']template:media-height["\']\s+content=["\'](\d+)["\']',
+        raw,
+        re.I,
+    )
+    if not width_match or not height_match:
+        raise ValueError(f"Subtitle template missing media size metadata: {template_id}")
+    width = int(width_match.group(1))
+    height = int(height_match.group(1))
+    return {
+        "media_width": width,
+        "media_height": height,
+        "media_ratio": ratio_from_size(width, height),
+        "media_resolution": f"{width}*{height}",
+    }
+
+
+def parse_template_placeholders(raw: str) -> list[dict[str, str]]:
+    placeholders = []
+    for match in re.finditer(r"\{\{\s*([^{}]+?)\s*\}\}", raw):
+        token = match.group(1).strip()
+        key = token.split(":", 1)[0].split("=", 1)[0].strip()
+        field_type = token.split(":", 1)[1].split("=", 1)[0].strip() if ":" in token else "text"
+        default = token.split("=", 1)[1].strip() if "=" in token else ""
+        placeholders.append({
+            "key": key,
+            "type": field_type,
+            "default": TEMPLATE_FIELD_DEFAULTS.get(key, default),
+        })
+    return placeholders
+
+
+def template_custom_fields(template_id: str, video_ratio: str = "9:16") -> list[dict[str, str]]:
+    template_path, _, _ = _resolve_template_path(template_id, video_ratio)
+    with open(template_path, "r", encoding="utf-8") as f:
+        placeholders = parse_template_placeholders(f.read())
+
+    fields = []
+    seen = set()
+    for item in placeholders:
+        key = item["key"]
+        if key not in CUSTOM_TEMPLATE_FIELDS or key in seen:
+            continue
+        seen.add(key)
+        fields.append(item)
+    return fields
+
+
+def _image_data_uri(path: str) -> str:
+    if path.startswith(("http://", "https://", "data:", "file:")):
+        return path
+    if not os.path.exists(path):
+        raise FileNotFoundError(f"Image not found: {path}")
+    suffix = Path(path).suffix.lower()
+    mime = {
+        ".jpg": "image/jpeg",
+        ".jpeg": "image/jpeg",
+        ".png": "image/png",
+        ".webp": "image/webp",
+        ".gif": "image/gif",
+    }.get(suffix, "image/png")
+    with open(path, "rb") as f:
+        encoded = base64.b64encode(f.read()).decode("ascii")
+    return f"data:{mime};base64,{encoded}"
+
+
+def _render_template_html(raw: str, values: dict[str, Any]) -> str:
+    def repl(match: re.Match) -> str:
+        token = match.group(1).strip()
+        key = token.split(":", 1)[0].split("=", 1)[0].strip()
+        if key in values:
+            return escape(str(values[key] or ""), quote=True)
+        if "=" in token:
+            return escape(token.split("=", 1)[1].strip(), quote=True)
+        return ""
+
+    return re.sub(r"\{\{\s*([^{}]+?)\s*\}\}", repl, raw)
+
+
+def _install_playwright_chromium() -> None:
+    cmd = [sys.executable, "-m", "playwright", "install", "chromium"]
+    logger.info("Installing Playwright Chromium for HTML subtitle templates")
+    try:
+        subprocess.run(cmd, check=True)
+    except subprocess.CalledProcessError as exc:
+        raise RuntimeError(
+            "Playwright is installed, but Chromium is missing and automatic installation failed. "
+            "Run `python -m playwright install chromium` manually and retry."
+        ) from exc
+
+
+def _launch_playwright_chromium(playwright):
+    try:
+        return playwright.chromium.launch(headless=True)
+    except Exception as exc:
+        message = str(exc)
+        if "Executable doesn't exist" not in message and "playwright install" not in message:
+            raise
+        _install_playwright_chromium()
+        return playwright.chromium.launch(headless=True)
+
+
+def render_template_text_image(
+    image_path: str,
+    output_path: str,
+    *,
+    subtitle: str,
+    title: Optional[str] = None,
+    video_ratio: str = "9:16",
+    template_id: str,
+    template_values: Optional[dict[str, Any]] = None,
+    index: int = 1,
+) -> str:
+    template_path, width, height = _resolve_template_path(template_id, video_ratio)
+    with open(template_path, "r", encoding="utf-8") as f:
+        raw = f.read()
+    html = _render_template_html(
+        raw,
+        {
+            **TEMPLATE_FIELD_DEFAULTS,
+            **(template_values or {}),
+            "title": title or TEMPLATE_FIELD_DEFAULTS["title"],
+            "text": subtitle or "",
+            "image": _image_data_uri(image_path),
+            "index": index,
+        },
+    )
+
+    try:
+        from playwright.sync_api import sync_playwright
+    except ImportError as exc:
+        raise RuntimeError(
+            "HTML subtitle templates require Playwright. "
+            "Install backend dependencies again or run `pip install playwright`."
+        ) from exc
+
+    os.makedirs(os.path.dirname(output_path), exist_ok=True)
+    with sync_playwright() as playwright:
+        browser = _launch_playwright_chromium(playwright)
+        try:
+            page = browser.new_page(viewport={"width": width, "height": height}, device_scale_factor=1)
+            page.set_content(html, wait_until="networkidle", timeout=30000)
+            page.screenshot(path=output_path, full_page=False, type="jpeg", quality=95)
+        finally:
+            browser.close()
+    logger.info("Rendered HTML template subtitle image: template=%s image=%s -> %s", template_id, image_path, output_path)
+    return output_path
+
+
 def concat_audios(audio_paths: Iterable[str], output_path: str) -> Optional[str]:
     paths = [path for path in audio_paths if path and os.path.exists(path)]
     if not paths:
diff --git a/aigc-director/aigc-claw/backend/pyproject.toml b/aigc-director/aigc-claw/backend/pyproject.toml
index 678be97..fba7540 100644
--- a/aigc-director/aigc-claw/backend/pyproject.toml
+++ b/aigc-director/aigc-claw/backend/pyproject.toml
@@ -17,6 +17,7 @@
     "requests>=2.28.0",
     "httpx>=0.24.0",
     "Pillow>=10.0.0",
+    "playwright>=1.51.0",
     "python-docx>=1.1.0",
     "PyPDF2",
     "numpy>=1.24.0",
diff --git a/aigc-director/aigc-claw/backend/requirements.txt b/aigc-director/aigc-claw/backend/requirements.txt
index edc05c9..49da864 100644
--- a/aigc-director/aigc-claw/backend/requirements.txt
+++ b/aigc-director/aigc-claw/backend/requirements.txt
@@ -18,6 +18,7 @@
 
 # Image Processing
 Pillow>=10.0.0
+playwright>=1.51.0
 python-docx
 PyPDF2
 numpy>=1.24.0
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/asset_default.html b/aigc-director/aigc-claw/backend/templates/1080x1920/asset_default.html
deleted file mode 100644
index f38c226..0000000
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/asset_default.html
+++ /dev/null
@@ -1,174 +0,0 @@
-<!DOCTYPE html>
-<html>
-
-<head>
-    <meta charset="UTF-8">
-    <meta name="template:media-width" content="1024">
-    <meta name="template:media-height" content="1024">
-    <style>
-        html {
-            margin: 0;
-            padding: 0;
-        }
-
-        body {
-            margin: 0;
-            padding: 0;
-            width: 1080px;
-            height: 1920px;
-            font-family: 'PingFang SC', 'Source Han Sans', 'Microsoft YaHei', sans-serif;
-            overflow: hidden;
-        }
-
-        .page-container {
-            width: 1080px;
-            height: 1920px;
-            position: relative;
-            overflow: hidden;
-        }
-
-        /* 1. Background Media Layer (背景媒体层) 
-           - For image assets: displays the image
-           - For video assets: hidden (video is composited in later step)
-        */
-        .background-layer {
-            position: absolute;
-            top: 0;
-            left: 0;
-            width: 100%;
-            height: 100%;
-            z-index: 0;
-        }
-
-        .background-layer img {
-            width: 100%;
-            height: 100%;
-            object-fit: contain;
-            display: block;
-        }
-
-        /* Hide background layer when no image (video mode) */
-        .background-layer:empty {
-            display: none;
-        }
-
-        /* 2. Gradient Overlay (渐变遮罩) 
-           Ensures text readability regardless of background brightness
-           Top: Darker for Title
-           Middle: Transparent for Media visibility
-           Bottom: Darker for Subtitles
-        */
-        .gradient-overlay {
-            position: absolute;
-            top: 0;
-            left: 0;
-            width: 100%;
-            height: 100%;
-            z-index: 1;
-            background: linear-gradient(to bottom,
-                    rgba(0, 0, 0, 0.6) 0%,
-                    rgba(0, 0, 0, 0.1) 25%,
-                    rgba(0, 0, 0, 0.1) 60%,
-                    rgba(0, 0, 0, 0.8) 100%);
-        }
-
-        /* 3. Content Layer (内容层) */
-        .content-layer {
-            position: relative;
-            z-index: 2;
-            width: 100%;
-            height: 100%;
-            padding: 120px 80px 0px 80px;
-            /* Top, Right, Bottom, Left */
-            box-sizing: border-box;
-            display: flex;
-            flex-direction: column;
-            justify-content: flex-start;
-            color: #ffffff;
-        }
-
-        /* Title Styling */
-        .video-title {
-            font-size: 80px;
-            font-weight: 700;
-            line-height: 1.2;
-            text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
-            margin-bottom: 40px;
-            text-align: center;
-        }
-
-        /* Hide title when empty */
-        .video-title:empty {
-            display: none;
-        }
-
-        /* Flex spacer to push subtitle to bottom */
-        .spacer {
-            flex-grow: 1;
-        }
-
-        /* Narration/Subtitle Styling */
-        .subtitle-wrapper {
-            margin-bottom: 60px;
-        }
-
-        .text {
-            font-size: 52px;
-            font-weight: 500;
-            line-height: 1.6;
-            text-align: center;
-            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
-            backdrop-filter: blur(4px);
-        }
-    </style>
-</head>
-
-<body>
-    <div class="page-container">
-        <!-- Background Media Layer 
-             - For image assets: contains <img> tag
-             - For video assets: empty (hidden by CSS)
-        -->
-        <div class="background-layer" id="bg-layer">
-            <!-- Image will be inserted here for image assets only -->
-        </div>
-
-        <!-- Shadow Overlay for Text Readability -->
-        <div class="gradient-overlay"></div>
-
-        <!-- Main Content -->
-        <div class="content-layer">
-            <!-- Top Section: Title -->
-            <div class="video-title">
-                {{title}}
-            </div>
-
-            <!-- Spacer pushes content apart -->
-            <div class="spacer"></div>
-
-            <!-- Bottom Section: Narration/Text -->
-            <div class="subtitle-wrapper">
-                <div class="text">{{text}}</div>
-            </div>
-        </div>
-    </div>
-
-    <script>
-        // Conditionally add image if provided
-        (function () {
-            var imageUrl = "{{image}}";
-            var bgLayer = document.getElementById('bg-layer');
-
-            // Only add img tag if image URL is provided and not empty
-            if (imageUrl && imageUrl.trim() !== "" && imageUrl !== "None") {
-                var img = document.createElement('img');
-                img.src = imageUrl;
-                img.alt = "Background";
-                bgLayer.appendChild(img);
-            }
-            // Otherwise, bg-layer stays empty and gets hidden by CSS
-        })();
-    </script>
-</body>
-
-</html>
\ No newline at end of file
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_blur_card.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_blur_card.html
index 5848f53..768bf69 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_blur_card.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/image_blur_card.html
@@ -197,12 +197,12 @@
         <div class="author">
             <div class="author-name">
                 <span class="author-mark"></span>
-                <div class="logo">{{author=@Pixelle.AI}}</div>
+                <div class="logo">{{author=HITsz-TMG}}</div>
             </div>
-            <div class="author-desc">{{describe=Open Source Omnimodal AI Creative Agent}}</div>
+            <div class="author-desc">{{describe=开源AIGC智能体}}</div>
         </div>
         <div class="logo-section">
-            <div class="logo">{{brand=Pixelle-Video}}</div>
+            <div class="logo">{{brand=AIGC-Claw}}</div>
             <div class="logo-marks">
                 <div class="logo-mark"></div>
                 <div class="logo-mark active"></div>
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_book.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_book.html
index 20e5180..5ba27b0 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_book.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/image_book.html
@@ -105,7 +105,7 @@
     <!-- 顶部标题区 -->
     <div class="top-section">
         <div class="title">{{title}}</div>
-        <div class="subtitle">{{subtitle=作者}}</div>
+        <div class="subtitle">{{subtitle=这是一个副标题}}</div>
     </div>
 
     <!-- <img class="img" src="{{image}}" alt="内容图片"> -->
@@ -113,7 +113,7 @@
     <!-- 底部文字区 -->
     <div class="bottom-section">
         <div class="main-text">{{text}}</div>
-        <div class="author">{{author=@Pixelle.AI}}</div>
+        <div class="author">{{author=HITsz-TMG}}</div>
     </div>
 </body>
 </html>
\ No newline at end of file
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_cartoon.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_cartoon.html
deleted file mode 100644
index 2d6e742..0000000
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_cartoon.html
+++ /dev/null
@@ -1,260 +0,0 @@
-<!DOCTYPE html>
-<html lang="zh-CN">
-<head>
-    <meta charset="UTF-8">
-    <meta name="template:media-width" content="1024">
-    <meta name="template:media-height" content="1024">
-    <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <title>{{title}}</title>
-    <style>
-        * {
-            margin: 0;
-            padding: 0;
-            box-sizing: border-box;
-            font-family: 'Comic Sans MS', 'Marker Felt', 'Arial Rounded MT Bold', sans-serif;
-        }
-        
-        body {
-            width: 1080px;
-            height: 1920px;
-            background-image: url('https://lmg.jj20.com/up/allimg/sj02/210122142U11054-0-lp.jpg');
-            background-size: cover;
-            background-position: center;
-            display: flex;
-            flex-direction: column;
-            align-items: center;
-            justify-content: flex-start;
-            padding: 40px 20px 0 20px;
-            gap: 30px;
-            position: relative;
-            overflow: hidden;
-        }
-        
-        /* 卡通装饰元素 */
-        .cloud {
-            position: absolute;
-            background: rgba(255, 255, 255, 0.8);
-            border-radius: 50%;
-            z-index: -1;
-        }
-        
-        .cloud:before, .cloud:after {
-            content: '';
-            position: absolute;
-            background: rgba(255, 255, 255, 0.8);
-            border-radius: 50%;
-        }
-        
-        .cloud-1 {
-            width: 120px;
-            height: 60px;
-            top: 10%;
-            left: 5%;
-        }
-        
-        .cloud-1:before {
-            width: 70px;
-            height: 70px;
-            top: -30px;
-            left: 10px;
-        }
-        
-        .cloud-1:after {
-            width: 50px;
-            height: 50px;
-            top: -20px;
-            right: 10px;
-        }
-        
-        .cloud-2 {
-            width: 150px;
-            height: 70px;
-            bottom: 15%;
-            right: 5%;
-        }
-        
-        .cloud-2:before {
-            width: 80px;
-            height: 80px;
-            top: -35px;
-            left: 15px;
-        }
-        
-        .cloud-2:after {
-            width: 60px;
-            height: 60px;
-            top: -25px;
-            right: 20px;
-        }
-        
-        /* 标题样式 */
-        .title-container {
-            background-color: rgba(255, 255, 255, 0.85);
-            padding: 20px 40px;
-            border-radius: 25px;
-            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
-            text-align: center;
-            border: 5px solid #FF9ED8;
-            max-width: 90%;
-            position: relative;
-            z-index: 10;
-        }
-        
-        .title-container h1 {
-            font-size: 48px;
-            color: #FF5BAE;
-            text-shadow: 3px 3px 0 #FFC2E9;
-            margin: 0;
-        }
-        
-        /* 图片容器 */
-        .image-container {
-            width: 1024px;
-            height: 1024px;
-            background-color: rgba(255, 255, 255, 0.9);
-            border-radius: 30px;
-            display: flex;
-            align-items: center;
-            justify-content: center;
-            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
-            border: 8px solid #A6E3FF;
-            overflow: hidden;
-            position: relative;
-            z-index: 10;
-        }
-        
-        .image-container img {
-            max-width: 95%;
-            max-height: 95%;
-            border-radius: 15px;
-            object-fit: contain;
-        }
-        
-        /* 字幕样式 */
-        .caption-container {
-            background-color: rgba(255, 255, 255, 0.9);
-            padding: 25px 40px;
-            border-radius: 25px;
-            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
-            text-align: center;
-            border: 5px solid #B5FFA6;
-            max-width: 90%;
-            position: relative;
-            z-index: 10;
-        }
-        
-        .caption-container p {
-            font-size: 36px;
-            color: #5BAE5B;
-            line-height: 1.4;
-            text-shadow: 2px 2px 0 #C2FFC2;
-            margin: 0;
-        }
-        
-        /* 装饰元素 */
-        .decoration {
-            position: absolute;
-            z-index: 5;
-        }
-        
-        .star {
-            width: 30px;
-            height: 30px;
-            background-color: #FFF9A6;
-            clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
-        }
-        
-        .star-1 {
-            top: 15%;
-            right: 10%;
-            transform: rotate(15deg);
-        }
-        
-        .star-2 {
-            bottom: 20%;
-            left: 8%;
-            transform: rotate(-10deg);
-            width: 40px;
-            height: 40px;
-        }
-        
-        .heart {
-            width: 40px;
-            height: 40px;
-            background-color: #FF9ED8;
-            transform: rotate(-45deg);
-            position: absolute;
-        }
-        
-        .heart:before, .heart:after {
-            content: '';
-            width: 40px;
-            height: 40px;
-            background-color: #FF9ED8;
-            border-radius: 50%;
-            position: absolute;
-        }
-        
-        .heart:before {
-            top: -20px;
-            left: 0;
-        }
-        
-        .heart:after {
-            top: 0;
-            left: 20px;
-        }
-        
-        .heart-1 {
-            top: 12%;
-            left: 12%;
-        }
-        
-        .heart-2 {
-            bottom: 25%;
-            right: 12%;
-            width: 30px;
-            height: 30px;
-        }
-        
-        .heart-2:before, .heart-2:after {
-            width: 30px;
-            height: 30px;
-        }
-        
-        .heart-2:before {
-            top: -15px;
-        }
-        
-        .heart-2:after {
-            left: 15px;
-        }
-    </style>
-</head>
-<body>
-    <!-- 装饰元素 -->
-    <div class="cloud cloud-1"></div>
-    <div class="cloud cloud-2"></div>
-    
-    <div class="decoration star star-1"></div>
-    <div class="decoration star star-2"></div>
-    
-    <div class="decoration heart heart-1"></div>
-    <div class="decoration heart heart-2"></div>
-    
-    <!-- 标题区域 -->
-    <div class="title-container">
-        <h1>{{title}}</h1>
-    </div>
-    
-    <!-- 图片区域 -->
-    <div class="image-container">
-        <img src="{{image}}" alt="卡通图片">
-    </div>
-    
-    <!-- 字幕区域 -->
-    <div class="caption-container">
-        <p>{{text}}</p>
-    </div>
-</body>
-</html>
\ No newline at end of file
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_default.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_default.html
index 2e0b26d..72e62f0 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_default.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/image_default.html
@@ -524,12 +524,12 @@
             <div class="author">
                 <div class="author-name">
                     <span class="author-mark"></span>
-                    <div class="logo">{{author=@Pixelle.AI}}</div>
+                    <div class="logo">{{author=HITsz-TMG}}</div>
                 </div>
-                <div class="author-desc">{{describe=Open Source Omnimodal AI Creative Agent}}</div>
+                <div class="author-desc">{{describe=开源AIGC智能体}}</div>
             </div>
             <div class="logo-section">
-                <div class="logo">{{brand=Pixelle-Video}}</div>
+                <div class="logo">{{brand=AIGC-Claw}}</div>
                 <div class="logo-marks">
                     <div class="logo-mark"></div>
                     <div class="logo-mark active"></div>
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_excerpt.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_excerpt.html
index 786e803..2643e35 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_excerpt.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/image_excerpt.html
@@ -132,10 +132,10 @@
     </div>
 
     <!-- 作者 -->
-    <div class="author">——{{author=Pixelle.AI}}</div>
+    <div class="author">——{{author=HITsz-TMG}}</div>
 
     <!-- 署名 -->
-    <div class="signature">{{signature=@Pixelle.AI}}</div>
+    <div class="signature">{{signature=HITsz-TMG}}</div>
 </body>
 
 </html>
\ No newline at end of file
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_full.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_full.html
index 2ff1472..98fd049 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_full.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/image_full.html
@@ -155,12 +155,12 @@
         <div class="author">
             <div class="author-name">
                 <span class="author-mark"></span>
-                <div class="logo">{{author=@Pixelle.AI}}</div>
+                <div class="logo">{{author=HITsz-TMG}}</div>
             </div>
-            <div class="author-desc">{{describe=Open Source Omnimodal AI Creative Agent}}</div>
+            <div class="author-desc">{{describe=开源AIGC智能体}}</div>
         </div>
         <div class="logo-section">
-            <div class="logo">{{brand=Pixelle-Video}}</div>
+            <div class="logo">{{brand=AIGC-Claw}}</div>
             <div class="logo-marks">
                 <div class="logo-mark"></div>
                 <div class="logo-mark active"></div>
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_healing.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_healing.html
index ba83453..3341972 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_healing.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/image_healing.html
@@ -136,7 +136,7 @@
     <div class="text">{{text}}</div>
 
     <!-- 署名 -->
-    <div class="signature">{{signature=@Pixelle.AI}}</div>
+    <div class="signature">{{signature=HITsz-TMG}}</div>
     <script>
         const index = Number("{{index}}");
 
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_health_preservation.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_health_preservation.html
deleted file mode 100644
index 999bb1e..0000000
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_health_preservation.html
+++ /dev/null
@@ -1,113 +0,0 @@
-<!DOCTYPE html>
-<html lang="zh-CN">
-<head>
-    <meta charset="UTF-8">
-    <meta name="viewport" content="width=1080, height=1920">
-    <title>10个不花钱的养生习惯</title>
-    <style>
-        * {
-            margin: 0;
-            padding: 0;
-            box-sizing: border-box;
-        }
-
-        html, body {
-            width: 1080px;
-            height: 1920px;
-            overflow: hidden;
-        }
-
-        body {
-            font-family: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', sans-serif;
-            position: relative;
-            background: linear-gradient(to bottom, #ffd700 0%, #ffc800 100%);
-        }
-
-        .header {
-            width: 100%;
-            height: 400px;
-            display: flex;
-            justify-content: center;
-            align-items: center;
-        }
-
-        .title {
-            width: 100%;
-            font-size: 96px;
-            font-weight: 900;
-            font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC",
-             "Source Han Sans SC", "Heiti SC", sans-serif;
-            color: #000;
-            line-height: 1.1;
-            letter-spacing: 4px;
-            text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
-            text-align: center;
-            text-shadow: -2px -2px 0 #fff,
-                        2px -2px 0 #fff,
-                        -2px 2px 0 #fff,
-                        2px 2px 0 #fff;
-        }
-
-        /* 内容区域 */
-        .content {
-            position: relative;
-            width: 100%;
-            height: 1540px;
-            display: flex;
-            justify-content: center;
-            align-items: flex-end;
-            background-image: url("{{image}}");
-            background-size: cover;
-            background-position: center;
-        }
-
-        .content::before {
-            content: '';
-            position: absolute;
-            inset: 0;
-            background: rgba(232, 229, 224, 0.85);
-            backdrop-filter: blur(5px);
-            -webkit-backdrop-filter: blur(5px);
-            z-index: 0;
-        }
-
-        .text {
-            position: absolute;
-            width: 100%;
-            bottom: 300px;
-            font-size: 50px;
-            font-weight: 600;
-            color: #492615;
-            line-height: 1.5;
-            font-family: "SimSun", "FangSong", "Noto Serif SC",
-             "STSong", "Songti SC", serif;
-            text-shadow: -1px -1px 0 #fff,
-                        1px -1px 0 #fff,
-                        -1px 1px 0 #fff,
-                        1px 1px 0 #fff;
-            text-align: center;  
-            padding: 0 50px;          
-        }
-
-        .signature {
-            position: absolute;
-            font-size: 24px;
-            font-family: 'Liu Jian Mao Cao', 'ZCOOL KuaiLe', cursive;
-            color: #333;
-            bottom: 20px;
-            left: 50%;
-            transform: translateX(-50%);
-        }
-    </style>
-</head>
-<body>
-    <div class="header">
-        <div class="title">{{title}}</div>
-    </div>
-    <div class="content">
-    </div>
-    <div class="text">{{text}}</div>
-    <!-- 署名 -->
-    <div class="signature">{{signature=@Pixelle.AI}}</div>
-</body>
-</html>
\ No newline at end of file
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_life_insights_light.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_life_insights_light.html
index 8aad2bf..2ce02aa 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_life_insights_light.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/image_life_insights_light.html
@@ -225,6 +225,6 @@
         <div class="content-text">{{text}}</div>
     </div>
 
-    <div class="author">{{author=@Pixelle.AI}}</div>
+    <div class="author">{{author=HITsz-TMG}}</div>
 </body>
 </html>
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_long_text.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_long_text.html
index 4844351..c9ab0e2 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_long_text.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/image_long_text.html
@@ -106,6 +106,6 @@
     <div class="content">{{text}}</div>
 
     <!-- 作者 -->
-    <div class="author">{{author=@Pixelle.AI}}</div>
+    <div class="author">{{author=HITsz-TMG}}</div>
 </body>
 </html>
\ No newline at end of file
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_modern.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_modern.html
index de4217a..3ec0d80 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_modern.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/image_modern.html
@@ -555,12 +555,12 @@
                         <div class="author-badge cyan"></div>
                         <div class="author-badge pink"></div>
                     </div>
-                    <div class="logo">{{author=@Pixelle.AI}}</div>
+                    <div class="logo">{{author=HITsz-TMG}}</div>
                 </div>
-                <div class="author-desc">{{describe=Open Source Omnimodal AI Creative Agent}}</div>
+                <div class="author-desc">{{describe=开源AIGC智能体}}</div>
             </div>
             <div class="logo-wrapper">
-                <div class="logo">{{brand=Pixelle-Video}}</div>
+                <div class="logo">{{brand=AIGC-Claw}}</div>
                 <div class="logo-dots">
                     <div class="logo-dot"></div>
                     <div class="logo-dot"></div>
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_neon.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_neon.html
index b1154b5..e6ea107 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_neon.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/image_neon.html
@@ -921,11 +921,11 @@
           <div class="author-badge-dot"></div>
           <div class="author-badge-dot pink"></div>
         </div>
-        <div class="logo">{{author=@Pixelle.AI}}</div>
+        <div class="logo">{{author=HITsz-TMG}}</div>
       </div>
-      <div class="author-desc">{{describe=Open Source Omnimodal AI Creative Agent}}</div>
+      <div class="author-desc">{{describe=开源AIGC智能体}}</div>
       <div class="cta">
-        <div class="logo">{{brand=Pixelle-Video}}</div>
+        <div class="logo">{{brand=AIGC-Claw}}</div>
         <div class="hashtags">
           <span>#AI创作</span>
           <span>#短视频</span>
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_purple.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_purple.html
index 6d73ebf..f421530 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_purple.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/image_purple.html
@@ -698,12 +698,12 @@
                         <div class="author-badge cyan"></div>
                         <div class="author-badge pink"></div>
                     </div>
-                    {{author=@Pixelle.AI}}
+                    {{author=HITsz-TMG}}
                 </div>
-                <div class="author-desc">{{describe=Open Source Omnimodal AI Creative Agent}}</div>
+                <div class="author-desc">{{describe=开源AIGC智能体}}</div>
             </div>
             <div class="logo-wrapper">
-                <div class="logo">{{brand=Pixelle-Video}}</div>
+                <div class="logo">{{brand=AIGC-Claw}}</div>
                 <div class="logo-dots">
                     <div class="logo-dot"></div>
                     <div class="logo-dot"></div>
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_satirical_cartoon.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_satirical_cartoon.html
index 4cd37e1..03544cb 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_satirical_cartoon.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/image_satirical_cartoon.html
@@ -137,12 +137,12 @@
         <div class="author">
             <div class="author-name">
                 <span class="author-mark"></span>
-                <div class="logo">{{author=@Pixelle.AI}}</div>
+                <div class="logo">{{author=HITsz-TMG}}</div>
             </div>
-            <div class="author-desc">{{describe=Open Source Omnimodal AI Creative Agent}}</div>
+            <div class="author-desc">{{describe=开源AIGC智能体}}</div>
         </div>
         <div class="logo-section">
-            <div class="logo">{{brand=Pixelle-Video}}</div>
+            <div class="logo">{{brand=AIGC-Claw}}</div>
             <div class="logo-marks">
                 <div class="logo-mark"></div>
                 <div class="logo-mark active"></div>
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_simple_black.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_simple_black.html
index b08097a..6620457 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_simple_black.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/image_simple_black.html
@@ -133,12 +133,12 @@
         <div class="author">
             <div class="author-name">
                 <span class="author-mark"></span>
-                <div class="logo">{{author=@Pixelle.AI}}</div>
+                <div class="logo">{{author=HITsz-TMG}}</div>
             </div>
-            <div class="author-desc">{{describe=Open Source Omnimodal AI Creative Agent}}</div>
+            <div class="author-desc">{{describe=开源AIGC智能体}}</div>
         </div>
         <div class="logo-section">
-            <div class="logo">{{brand=Pixelle-Video}}</div>
+            <div class="logo">{{brand=AIGC-Claw}}</div>
             <div class="logo-marks">
                 <div class="logo-mark"></div>
                 <div class="logo-mark active"></div>
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_simple_line_drawing.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_simple_line_drawing.html
index 5f54dbc..de288fb 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_simple_line_drawing.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/image_simple_line_drawing.html
@@ -141,12 +141,12 @@
         <div class="author">
             <div class="author-name">
                 <span class="author-mark"></span>
-                <div class="logo">{{author=@Pixelle.AI}}</div>
+                <div class="logo">{{author=HITsz-TMG}}</div>
             </div>
-            <div class="author-desc">{{describe=Open Source Omnimodal AI Creative Agent}}</div>
+            <div class="author-desc">{{describe=开源AIGC智能体}}</div>
         </div>
         <div class="logo-section">
-            <div class="logo">{{brand=Pixelle-Video}}</div>
+            <div class="logo">{{brand=AIGC-Claw}}</div>
             <div class="logo-marks">
                 <div class="logo-mark"></div>
                 <div class="logo-mark active"></div>
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/static_default.html b/aigc-director/aigc-claw/backend/templates/1080x1920/static_default.html
index 3f61011..001309c 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/static_default.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/static_default.html
@@ -267,11 +267,11 @@
         <!-- Footer -->
         <div class="footer">
             <div class="author-section">
-                <div class="author">{{author=@Pixelle.AI}}</div>
-                <div class="author-desc">{{describe=Open Source Omnimodal AI Creative Agent}}</div>
+                <div class="author">{{author=HITsz-TMG}}</div>
+                <div class="author-desc">{{describe=开源AIGC智能体}}</div>
             </div>
             <div class="logo-section">
-                <div class="logo">{{brand=Pixelle-Video}}</div>
+                <div class="logo">{{brand=AIGC-Claw}}</div>
                 <div class="logo-subtitle">Text-Only Template</div>
             </div>
         </div>
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/static_excerpt.html b/aigc-director/aigc-claw/backend/templates/1080x1920/static_excerpt.html
index db7b517..865ba6a 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/static_excerpt.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/static_excerpt.html
@@ -122,10 +122,10 @@
     </div>
 
     <!-- 作者 -->
-    <div class="author">——{{author=Pixelle.AI}}</div>
+    <div class="author">——{{author=HITsz-TMG}}</div>
 
     <!-- 署名 -->
-    <div class="signature">{{signature=@Pixelle.AI}}</div>
+    <div class="signature">{{signature=HITsz-TMG}}</div>
 </body>
 
 </html>
\ No newline at end of file
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/video_default.html b/aigc-director/aigc-claw/backend/templates/1080x1920/video_default.html
index 8c0ed33..4c1fda9 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/video_default.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/video_default.html
@@ -177,11 +177,11 @@
         <!-- Footer - positioned below video -->
         <div class="footer">
             <div class="author-section">
-                <div class="author">{{author=@Pixelle.AI}}</div>
-                <div class="author-desc">{{describe=Open Source Omnimodal AI Creative Agent}}</div>
+                <div class="author">{{author=HITsz-TMG}}</div>
+                <div class="author-desc">{{describe=开源AIGC智能体}}</div>
             </div>
             <div class="logo-section">
-                <div class="logo">{{brand=Pixelle-Video}}</div>
+                <div class="logo">{{brand=AIGC-Claw}}</div>
             </div>
         </div>
     </div>
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/video_healing.html b/aigc-director/aigc-claw/backend/templates/1080x1920/video_healing.html
index e737847..3ccb016 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/video_healing.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/video_healing.html
@@ -149,7 +149,7 @@
     <div class="text">{{text}}</div>
 
     <!-- 署名 -->
-    <div class="signature">{{signature=@Pixelle.AI}}</div>
+    <div class="signature">{{signature=HITsz-TMG}}</div>
     <script>
         const index = Number("{{index}}");
 
diff --git a/aigc-director/aigc-claw/backend/templates/1920x1080/image_book.html b/aigc-director/aigc-claw/backend/templates/1920x1080/image_book.html
index d0ddda2..94d2bb2 100644
--- a/aigc-director/aigc-claw/backend/templates/1920x1080/image_book.html
+++ b/aigc-director/aigc-claw/backend/templates/1920x1080/image_book.html
@@ -186,7 +186,7 @@
     </div>
 
     <div class="footer">
-        <div class="author">{{author=@Pixelle.AI}}</div>
+        <div class="author">{{author=HITsz-TMG}}</div>
     </div>
 
     <script>
diff --git a/aigc-director/aigc-claw/backend/templates/1920x1080/image_film.html b/aigc-director/aigc-claw/backend/templates/1920x1080/image_film.html
index 2bae1b4..9b45ec4 100644
--- a/aigc-director/aigc-claw/backend/templates/1920x1080/image_film.html
+++ b/aigc-director/aigc-claw/backend/templates/1920x1080/image_film.html
@@ -196,12 +196,12 @@
         <div class="author">
             <div class="author-name">
                 <span class="author-mark"></span>
-                <div class="logo">{{author=@Pixelle.AI}}</div>
+                <div class="logo">{{author=HITsz-TMG}}</div>
             </div>
-            <div class="author-desc">{{describe=Open Source Omnimodal AI Creative Agent}}</div>
+            <div class="author-desc">{{describe=开源AIGC智能体}}</div>
         </div>
         <div class="logo-section">
-            <div class="logo">{{brand=Pixelle-Video}}</div>
+            <div class="logo">{{brand=AIGC-Claw}}</div>
             <div class="logo-marks">
                 <div class="logo-mark"></div>
                 <div class="logo-mark active"></div>
diff --git a/aigc-director/aigc-claw/backend/templates/1920x1080/image_full.html b/aigc-director/aigc-claw/backend/templates/1920x1080/image_full.html
index 5d7e862..5e53889 100644
--- a/aigc-director/aigc-claw/backend/templates/1920x1080/image_full.html
+++ b/aigc-director/aigc-claw/backend/templates/1920x1080/image_full.html
@@ -178,12 +178,12 @@
         <div class="author">
             <div class="author-name">
                 <span class="author-mark"></span>
-                <div class="logo">{{author=@Pixelle.AI}}</div>
+                <div class="logo">{{author=HITsz-TMG}}</div>
             </div>
-            <div class="author-desc">{{describe=Open Source Omnimodal AI Creative Agent}}</div>
+            <div class="author-desc">{{describe=开源AIGC智能体}}</div>
         </div>
         <div class="logo-section">
-            <div class="logo">{{brand=Pixelle-Video}}</div>
+            <div class="logo">{{brand=AIGC-Claw}}</div>
             <div class="logo-marks">
                 <div class="logo-mark"></div>
                 <div class="logo-mark active"></div>
diff --git a/aigc-director/aigc-claw/backend/templates/demo/default_image.png b/aigc-director/aigc-claw/backend/templates/demo/default_image.png
new file mode 100644
index 0000000..ebc0b6b
--- /dev/null
+++ b/aigc-director/aigc-claw/backend/templates/demo/default_image.png
Binary files differ
diff --git a/aigc-director/aigc-claw/backend/uv.lock b/aigc-director/aigc-claw/backend/uv.lock
index 9186f2a..c8f99bd 100644
--- a/aigc-director/aigc-claw/backend/uv.lock
+++ b/aigc-director/aigc-claw/backend/uv.lock
@@ -24,6 +24,7 @@
     { name = "openai" },
     { name = "pillow", version = "11.3.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" },
     { name = "pillow", version = "12.2.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.10'" },
+    { name = "playwright" },
     { name = "pydantic" },
     { name = "pyjwt" },
     { name = "pypdf2" },
@@ -56,6 +57,7 @@
     { name = "numpy", specifier = ">=1.24.0" },
     { name = "openai", specifier = ">=1.0.0" },
     { name = "pillow", specifier = ">=10.0.0" },
+    { name = "playwright", specifier = ">=1.51.0" },
     { name = "pydantic", specifier = ">=2.0.0" },
     { name = "pyjwt", specifier = ">=2.8.0" },
     { name = "pypdf2" },
@@ -862,6 +864,133 @@
     { url = "https://files.pythonhosted.org/packages/79/bd/bcc926f87027fad5e59926ff12d136e1082a115025d33c032d1cd69ab377/frozenlist-1.8.0-cp39-cp39-win_amd64.whl", hash = "sha256:7398c222d1d405e796970320036b1b563892b65809d9e5261487bb2c7f7b5c6a", size = 44121, upload-time = "2025-10-06T05:38:14.572Z" },
     { url = "https://files.pythonhosted.org/packages/4c/07/9c2e4eb7584af4b705237b971b89a4155a8e57599c4483a131a39256a9a0/frozenlist-1.8.0-cp39-cp39-win_arm64.whl", hash = "sha256:b4f3b365f31c6cd4af24545ca0a244a53688cad8834e32f56831c4923b50a103", size = 40312, upload-time = "2025-10-06T05:38:15.699Z" },
     { url = "https://files.pythonhosted.org/packages/9a/9a/e35b4a917281c0b8419d4207f4334c8e8c5dbf4f3f5f9ada73958d937dcc/frozenlist-1.8.0-py3-none-any.whl", hash = "sha256:0c18a16eab41e82c295618a77502e17b195883241c563b00f0aa5106fc4eaa0d", size = 13409, upload-time = "2025-10-06T05:38:16.721Z" },
+]
+
+[[package]]
+name = "greenlet"
+version = "3.2.5"
+source = { registry = "https://pypi.org/simple" }
+resolution-markers = [
+    "python_full_version < '3.10'",
+]
+sdist = { url = "https://files.pythonhosted.org/packages/b0/f5/3e9eafb4030588337b2a2ae4df46212956854e9069c07b53aa3caabafd47/greenlet-3.2.5.tar.gz", hash = "sha256:c816554eb33e7ecf9ba4defcb1fd8c994e59be6b4110da15480b3e7447ea4286", size = 191501, upload-time = "2026-02-20T20:08:51.539Z" }
+wheels = [
+    { url = "https://files.pythonhosted.org/packages/ff/d6/b3db928fc329b1b19ba32ffe143d2305f3aaafc583f5e1074c74ec445189/greenlet-3.2.5-cp310-cp310-macosx_11_0_universal2.whl", hash = "sha256:34cc7cf8ab6f4b85298b01e13e881265ee7b3c1daf6bc10a2944abc15d4f87c3", size = 275803, upload-time = "2026-02-20T20:06:42.541Z" },
+    { url = "https://files.pythonhosted.org/packages/b3/ff/ab0ad4ff3d9e1faa266de4f6c79763b33fccd9265995f2940192494cc0ec/greenlet-3.2.5-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:c11fe0cfb0ce33132f0b5d27eeadd1954976a82e5e9b60909ec2c4b884a55382", size = 633556, upload-time = "2026-02-20T20:30:41.594Z" },
+    { url = "https://files.pythonhosted.org/packages/da/dd/7b3ac77099a1671af8077ecedb12c9a1be1310e4c35bb69fd34c18ab6093/greenlet-3.2.5-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:a145f4b1c4ed7a2c94561b7f18b4beec3d3fb6f0580db22f7ed1d544e0620b34", size = 644943, upload-time = "2026-02-20T20:37:23.084Z" },
+    { url = "https://files.pythonhosted.org/packages/56/f0/bea7e7909ea9045b0c5055dad1ec9b81c82b761b4567e625f4f8349acfa1/greenlet-3.2.5-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:edbf4ab9a7057ee430a678fe2ef37ea5d69125d6bdc7feb42ed8d871c737e63b", size = 640849, upload-time = "2026-02-20T20:43:57.305Z" },
+    { url = "https://files.pythonhosted.org/packages/0f/36/84630e9ff1dfc8b7690957c0f77834a84eabdbd9c4977c3a2d0cbd5325c2/greenlet-3.2.5-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:cc1d01bdd67db3e5711e6246e451d7a0f75fae7bbf40adde129296a7f9aa7cc9", size = 639841, upload-time = "2026-02-20T20:07:17.473Z" },
+    { url = "https://files.pythonhosted.org/packages/12/c4/6a2ee6c676dea7a05a3c3c1291fbc8ea44f26456b0accc891471293825af/greenlet-3.2.5-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bd593db7ee1fa8a513a48a404f8cc4126998a48025e3f5cbbc68d51be0a6bf66", size = 588813, upload-time = "2026-02-20T20:07:56.171Z" },
+    { url = "https://files.pythonhosted.org/packages/01/c0/75e75c2c993aa850292561ec80f5c263e3924e5843aa95a38716df69304c/greenlet-3.2.5-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:ac8db07bced2c39b987bba13a3195f8157b0cfbce54488f86919321444a1cc3c", size = 1117377, upload-time = "2026-02-20T20:32:48.452Z" },
+    { url = "https://files.pythonhosted.org/packages/ee/03/e38ebf9024a0873fe8f60f5b7bc36bfb3be5e13efe4d798240f2d1f0fb73/greenlet-3.2.5-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:4544ab2cfd5912e42458b13516429e029f87d8bbcdc8d5506db772941ae12493", size = 1141246, upload-time = "2026-02-20T20:06:23.576Z" },
+    { url = "https://files.pythonhosted.org/packages/d8/7b/c6e1192c795c0c12871e199237909a6bd35757d92c8472c7c019959b8637/greenlet-3.2.5-cp311-cp311-macosx_11_0_universal2.whl", hash = "sha256:acabf468466d18017e2ae5fbf1a5a88b86b48983e550e1ae1437b69a83d9f4ac", size = 276916, upload-time = "2026-02-20T20:06:18.166Z" },
+    { url = "https://files.pythonhosted.org/packages/3e/b6/9887b559f3e1952d23052ec352e9977e808a2246c7cb8282a38337221e88/greenlet-3.2.5-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:472841de62d60f2cafd60edd4fd4dd7253eb70e6eaf14b8990dcaf177f4af957", size = 636107, upload-time = "2026-02-20T20:30:43.362Z" },
+    { url = "https://files.pythonhosted.org/packages/8a/be/e3e48b63bbc27d660fa1d98aecb64906b90a12e686a436169c1330ef34b2/greenlet-3.2.5-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:7d951e7d628a6e8b68af469f0fe4f100ef64c4054abeb9cdafbfaa30a920c950", size = 648240, upload-time = "2026-02-20T20:37:24.608Z" },
+    { url = "https://files.pythonhosted.org/packages/17/f6/2cbe999683f759f14f598234f04ae8ba6f22953a624b3a7a630003e6bfff/greenlet-3.2.5-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:87b791dd0e031a574249af717ac36f7031b18c35329561c1e0368201c18caf1f", size = 644170, upload-time = "2026-02-20T20:43:59.002Z" },
+    { url = "https://files.pythonhosted.org/packages/4c/ac/e731ed62576e91e533b36d0d97325adc2786674ab9e48ed8a6a24f4ef4e9/greenlet-3.2.5-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c8317d732e2ae0935d9ed2af2ea876fa714cf6f3b887a31ca150b54329b0a6e9", size = 643313, upload-time = "2026-02-20T20:07:19.012Z" },
+    { url = "https://files.pythonhosted.org/packages/70/64/99e5cdceb494bd4c1341c45b93f322601d2c8a5e1e4d1c7a2d24c5ed0570/greenlet-3.2.5-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ce8aed6fdd5e07d3cbb988cbdc188266a4eb9e1a52db9ef5c6526e59962d3933", size = 591295, upload-time = "2026-02-20T20:07:57.286Z" },
+    { url = "https://files.pythonhosted.org/packages/ee/e9/968e11f388c2b8792d3b8b40a57984c894a3b4745dae3662dce722653bc5/greenlet-3.2.5-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:60c06b502d56d5451f60ca665691da29f79ed95e247bcf8ce5024d7bbe64acb9", size = 1120277, upload-time = "2026-02-20T20:32:50.103Z" },
+    { url = "https://files.pythonhosted.org/packages/cb/2c/b5f2c4c68d753dce08218dc5a6b21d82238fdfdc44309032f6fe24d285e6/greenlet-3.2.5-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:0d2a78e6f1bf3f1672df91e212a2f8314e1e7c922f065d14cbad4bc815059467", size = 1145746, upload-time = "2026-02-20T20:06:26.296Z" },
+    { url = "https://files.pythonhosted.org/packages/ad/32/022b21523eee713e7550162d5ca6aed23f913cc2c6232b154b9fd9badc07/greenlet-3.2.5-cp312-cp312-macosx_11_0_universal2.whl", hash = "sha256:2acb30e77042f747ca81f0a10cc153296567e92e666c5e1b117f4595afd43352", size = 278412, upload-time = "2026-02-20T20:03:15.02Z" },
+    { url = "https://files.pythonhosted.org/packages/90/c5/8a3b0ed3cc34d8b988a44349437dfa0941f9c23ac108175f7b4ccea97111/greenlet-3.2.5-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:393c03c26c865f17f31d8db2f09603fadbe0581ad85a5d5908b131549fc38217", size = 644616, upload-time = "2026-02-20T20:30:44.823Z" },
+    { url = "https://files.pythonhosted.org/packages/b1/2c/2627bea183554695016af6cae93d7474fa90f61e5a6601a84ae7841cb720/greenlet-3.2.5-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:04e6a202cde56043fd355fefd1552c4caa5c087528121871d950eb4f1b51fa99", size = 658813, upload-time = "2026-02-20T20:37:26.255Z" },
+    { url = "https://files.pythonhosted.org/packages/44/c6/a80fc96f7cca7962dd972875d12c52dfabc94cb02bfeb19f3e7e169fca44/greenlet-3.2.5-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:d5583b2ffa677578a384337ee13125bdf9a427485d689014b39d638a4f3d8dbe", size = 653512, upload-time = "2026-02-20T20:44:00.343Z" },
+    { url = "https://files.pythonhosted.org/packages/2f/1b/75a5aeff487a26ba427a3837da6372f1fe6f2a9c6b2898e28ac99d491c11/greenlet-3.2.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:45fcea7b697b91290b36eafc12fff479aca6ba6500d98ef6f34d5634c7119cbe", size = 655426, upload-time = "2026-02-20T20:07:20.124Z" },
+    { url = "https://files.pythonhosted.org/packages/53/91/9b5dfb4f3c88f8247c7a8f4c3759f0740bfa6bb0c59a9f6bf938e913df56/greenlet-3.2.5-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f96e2bb8a56b7e1aed1dbfbbe0050cb2ecca99c7c91892fd1771e3afab63b3e3", size = 611138, upload-time = "2026-02-20T20:07:58.966Z" },
+    { url = "https://files.pythonhosted.org/packages/b4/8d/d0b086410512d9859c84e9242a9b341de9f5566011ddf3a3f6886b842b61/greenlet-3.2.5-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:d7456e67b0be653dfe643bb37d9566cd30939c80f858e2ce6d2d54951f75b14a", size = 1126896, upload-time = "2026-02-20T20:32:52.198Z" },
+    { url = "https://files.pythonhosted.org/packages/ef/37/59fe12fe456e84ced6ba71781e28cde52a3124d1dd2077bc1727021f49fd/greenlet-3.2.5-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:5ceb29d1f74c7280befbbfa27b9bf91ba4a07a1a00b2179a5d953fc219b16c42", size = 1154779, upload-time = "2026-02-20T20:06:27.583Z" },
+    { url = "https://files.pythonhosted.org/packages/dd/95/d5d332fb73affaf7a1fbe80e49c2c7eae4f17c645af24a3b3fa25736d6f0/greenlet-3.2.5-cp313-cp313-macosx_11_0_universal2.whl", hash = "sha256:f2cc88b50b9006b324c1b9f5f3552f9d4564c78af57cdfb4c7baf4f0aa089146", size = 277166, upload-time = "2026-02-20T20:03:57.077Z" },
+    { url = "https://files.pythonhosted.org/packages/6c/77/89458e20db5a4f1c64f9a0191561227e76d809941ca2d7529006d17d3450/greenlet-3.2.5-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:e66872daffa360b2537170b73ad530f14fa31785b1bc78080125d92edf0a6def", size = 644674, upload-time = "2026-02-20T20:30:46.118Z" },
+    { url = "https://files.pythonhosted.org/packages/90/f8/9962175d2f2eaa629a7fd7545abacc8c4deda3baa4e52c1526d2eb5f5546/greenlet-3.2.5-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:c5445ddb7b586d870dad32ca9fc47c287d6022a528d194efdb8912093c5303ad", size = 658834, upload-time = "2026-02-20T20:37:27.466Z" },
+    { url = "https://files.pythonhosted.org/packages/81/71/52c21a7106ce5218aa6fa59ec32825b2655f875a09b69f68bd3e5d01feb3/greenlet-3.2.5-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:fd904626b8779810062cb455514594776e3cba3b8c0ba4939894df9f7b384971", size = 653091, upload-time = "2026-02-20T20:44:01.927Z" },
+    { url = "https://files.pythonhosted.org/packages/f5/d7/826d0e080f0a7ad5ec47c8d143bbd3ca0887657bb806595fe2434d12938a/greenlet-3.2.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:752c896a8c976548faafe8a306d446c6a4c68d4fd24699b84d4393bd9ac69a8e", size = 655760, upload-time = "2026-02-20T20:07:21.551Z" },
+    { url = "https://files.pythonhosted.org/packages/41/cc/33bd4c2f816be8c8e16f71740c4130adf3a66a3dd2ba29de72b9d8dd1096/greenlet-3.2.5-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:499b809e7738c8af0ff9ac9d5dd821cb93f4293065a9237543217f0b252f950a", size = 614132, upload-time = "2026-02-20T20:08:00.351Z" },
+    { url = "https://files.pythonhosted.org/packages/48/79/f3891dcfc59097474a53cc3c624f2f2465e431ab493bda043b8c873fb20a/greenlet-3.2.5-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:2c7429f6e9cea7cbf2637d86d3db12806ba970f7f972fcab39d6b54b4457cbaf", size = 1125286, upload-time = "2026-02-20T20:32:54.032Z" },
+    { url = "https://files.pythonhosted.org/packages/ca/47/212b47e6d2d7a04c4083db1af2fdd291bc8fe99b7e3571bfa560b65fc361/greenlet-3.2.5-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:a5e4b25e855800fba17713020c5c33e0a4b7a1829027719344f0c7c8870092a2", size = 1152825, upload-time = "2026-02-20T20:06:29Z" },
+    { url = "https://files.pythonhosted.org/packages/f6/9d/4e9b941be05f8da7ba804c6413761d2c11cca05994cbf0a015bd729419f0/greenlet-3.2.5-cp314-cp314-macosx_11_0_universal2.whl", hash = "sha256:7123b29e6bad2f3f89681be4ef316480fca798ebe8d22fbaced9cc3775007a4f", size = 277627, upload-time = "2026-02-20T20:06:04.798Z" },
+    { url = "https://files.pythonhosted.org/packages/23/cb/a73625c9a35138330014ecf3740c0d62e0c2b5e7279bb7f2586b1b199fac/greenlet-3.2.5-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:6e8fe0c72603201a86b2e038daf9b6c8570715f8779566419cff543b6ace88de", size = 690001, upload-time = "2026-02-20T20:30:47.754Z" },
+    { url = "https://files.pythonhosted.org/packages/83/49/6d1531109507bce7dfb23acf57a87013627ed3ac058851176e443a6a9134/greenlet-3.2.5-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:050703a60603db0e817364d69e048c70af299040c13a7e67792b9e62d4571196", size = 702953, upload-time = "2026-02-20T20:37:29.125Z" },
+    { url = "https://files.pythonhosted.org/packages/90/ac/6d8fff3b273fc60ad4b46f8411fe91c1e4cca064dfff68d096bc982fa6d0/greenlet-3.2.5-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:04633da773ae432649a3f092a8e4add390732cc9e1ab52c8ff2c91b8dc86f202", size = 698353, upload-time = "2026-02-20T20:44:03.547Z" },
+    { url = "https://files.pythonhosted.org/packages/f7/38/f958ee90fab93529b30cc1e4a59b27c1112b640570043a84af84da3b3b98/greenlet-3.2.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:6712bfd520530eb67331813f7112d3ee18e206f48b3d026d8a96cd2d2ad20251", size = 698995, upload-time = "2026-02-20T20:07:22.663Z" },
+    { url = "https://files.pythonhosted.org/packages/51/c1/a603906e79716d61f08afedaf8aed62017661457aef233d62d6e57ecd511/greenlet-3.2.5-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0bc06a78fa3ffbe2a75f1ebc7e040eacf6fa1050a9432953ab111fbbbf0d03c1", size = 661175, upload-time = "2026-02-20T20:08:01.477Z" },
+    { url = "https://files.pythonhosted.org/packages/3f/8f/f880ff4587d236b4d06893fb34da6b299aa0d00f6c8259673f80e1b6d63c/greenlet-3.2.5-cp39-cp39-macosx_11_0_universal2.whl", hash = "sha256:dbe0e81e24982bb45907ca20152b31c2e3300ca352fdc4acbd4956e4a2cbc195", size = 274946, upload-time = "2026-02-20T20:05:21.979Z" },
+    { url = "https://files.pythonhosted.org/packages/3c/50/f6c78b8420187fdfe97fcf2e6d1dd243a7742d272c32fd4d4b1095474b37/greenlet-3.2.5-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:15871afc0d78ec87d15d8412b337f287fc69f8f669346e391585824970931c48", size = 631781, upload-time = "2026-02-20T20:30:48.845Z" },
+    { url = "https://files.pythonhosted.org/packages/26/d6/3277f92e1961e6e9f41d9f173ea74b5c1f7065072637669f761626f26cc0/greenlet-3.2.5-cp39-cp39-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:5bf0d7d62e356ef2e87e55e46a4e930ac165f9372760fb983b5631bb479e9d3a", size = 643740, upload-time = "2026-02-20T20:37:30.639Z" },
+    { url = "https://files.pythonhosted.org/packages/f8/8a/c37b87659378759f158dbe03eaeb7ed002a8968f1c649b2972f5323f99b2/greenlet-3.2.5-cp39-cp39-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:e3f03ddd7142c758ab41c18089a1407b9959bd276b4e6dfbd8fd06403832c87a", size = 639098, upload-time = "2026-02-20T20:44:07.287Z" },
+    { url = "https://files.pythonhosted.org/packages/2a/6a/4f79d2e7b5ef3723fc5ffea0d6cb22627e5f95e0f19c973fa12bf1cf7891/greenlet-3.2.5-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:6dff6433742073e5b6ad40953a78a0e8cddcb3f6869e5ea635d29a810ca5e7d0", size = 638382, upload-time = "2026-02-20T20:07:23.883Z" },
+    { url = "https://files.pythonhosted.org/packages/4d/59/7aadf33f23c65dbf4db27e7f5b60c414797a61e954352ae4a86c5c8b0553/greenlet-3.2.5-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bdd67619cefe1cc9fcab57c8853d2bb36eca9f166c0058cc0d428d471f7c785c", size = 587516, upload-time = "2026-02-20T20:08:02.841Z" },
+    { url = "https://files.pythonhosted.org/packages/1d/46/b3422959f830de28a4eea447414e6bd7b980d755892f66ab52ad805da1c4/greenlet-3.2.5-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:3828b309dfb1f117fe54867512a8265d8d4f00f8de6908eef9b885f4d8789062", size = 1115818, upload-time = "2026-02-20T20:32:55.786Z" },
+    { url = "https://files.pythonhosted.org/packages/54/4a/3d1c9728f093415637cf3696909fa10852632e33e68238fb8ca60eb90de1/greenlet-3.2.5-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:67725ae9fea62c95cf1aa230f1b8d4dc38f7cd14f6103d1df8a5a95657eb8e54", size = 1140219, upload-time = "2026-02-20T20:06:30.334Z" },
+]
+
+[[package]]
+name = "greenlet"
+version = "3.5.0"
+source = { registry = "https://pypi.org/simple" }
+resolution-markers = [
+    "python_full_version >= '3.11'",
+    "python_full_version == '3.10.*'",
+]
+sdist = { url = "https://files.pythonhosted.org/packages/3c/3f/dbf99fb14bfeb88c28f16729215478c0e265cacd6dc22270c8f31bb6892f/greenlet-3.5.0.tar.gz", hash = "sha256:d419647372241bc68e957bf38d5c1f98852155e4146bd1e4121adea81f4f01e4", size = 196995, upload-time = "2026-04-27T13:37:15.544Z" }
+wheels = [
+    { url = "https://files.pythonhosted.org/packages/b0/03/84359833f7e1d49a883e92777637c592306030e30cee5e2b1e6476f95c88/greenlet-3.5.0-cp310-cp310-macosx_11_0_universal2.whl", hash = "sha256:29ea813b2e1f45fa9649a17853b2b5465c4072fbcb072e5af6cd3a288216574a", size = 283502, upload-time = "2026-04-27T12:20:55.213Z" },
+    { url = "https://files.pythonhosted.org/packages/25/ce/6f9f008266273aa14a2e011945797ac5802b97b8b40efe7afe1ee6c1afc9/greenlet-3.5.0-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:804a70b328e706b785c6ef16187051c394a63dd1a906d89be24b6ad77759f13f", size = 600508, upload-time = "2026-04-27T12:52:37.876Z" },
+    { url = "https://files.pythonhosted.org/packages/e0/6d/b0f3272c2368ea2c1aa19a5ad70db0be8f8dff6e6d3d1eb82efa00cbcf19/greenlet-3.5.0-cp310-cp310-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:884f649de075b84739713d41dd4dfd41e2b910bfb769c4a3ea02ec1da52cd9bb", size = 613283, upload-time = "2026-04-27T12:59:37.957Z" },
+    { url = "https://files.pythonhosted.org/packages/e5/ae/1db979ff6ae7958d80b288f63d5f6c30df96682700ea9fc340ce994d94a1/greenlet-3.5.0-cp310-cp310-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4d0eadc7e4d9ffb2af4247b606cae307be8e448911e5a0d0b16d72fc3d224cfd", size = 619894, upload-time = "2026-04-27T13:02:35.13Z" },
+    { url = "https://files.pythonhosted.org/packages/ed/ac/0b509b6fb93551ce5a01612ee1acda7f7dda4bbb66c99aeb2ab403d205dc/greenlet-3.5.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4b28037cb07768933c54d81bfe47a85f9f402f57d7d69743b991a713b63954eb", size = 613418, upload-time = "2026-04-27T12:25:23.852Z" },
+    { url = "https://files.pythonhosted.org/packages/ce/94/b0590e3d1978f02419f30502341c40d72f77eb0a2198119fe27df47714ee/greenlet-3.5.0-cp310-cp310-manylinux_2_39_riscv64.whl", hash = "sha256:f8c30c2225f40dd76c50790f0eb3b5c7c18431efb299e2782083e1981feed243", size = 415681, upload-time = "2026-04-27T13:05:11.494Z" },
+    { url = "https://files.pythonhosted.org/packages/03/03/2b2b680ec87aaa97998fb5b8d76658d4d3560386864f17efab33ba7c2e24/greenlet-3.5.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:cda05425526240807408156b6960a17a79a0c760b813573b67027823be760977", size = 1572229, upload-time = "2026-04-27T12:53:23.509Z" },
+    { url = "https://files.pythonhosted.org/packages/61/e4/42b259e7a19aff1a270a4bd82caf6353109ed6860c9454e18f37162b83ae/greenlet-3.5.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:9c615f869163e14bb1ced20322d8038fb680b08236521ac3f30cd4c1288785a0", size = 1639886, upload-time = "2026-04-27T12:25:22.325Z" },
+    { url = "https://files.pythonhosted.org/packages/6f/b4/733ca47b883b67c57f90d3ecb21055c9ec753597d10754ac201644061f9d/greenlet-3.5.0-cp310-cp310-win_amd64.whl", hash = "sha256:ba8f0bdc2fae6ce915dfd0c16d2d00bca7e4247c1eae4416e06430e522137858", size = 237795, upload-time = "2026-04-27T12:21:40.118Z" },
+    { url = "https://files.pythonhosted.org/packages/8b/0f/a91f143f356523ff682309732b175765a9bc2836fd7c081c2c67fedc1ad4/greenlet-3.5.0-cp311-cp311-macosx_11_0_universal2.whl", hash = "sha256:8f1cc966c126639cd152fdaa52624d2655f492faa79e013fea161de3e6dda082", size = 284726, upload-time = "2026-04-27T12:20:51.402Z" },
+    { url = "https://files.pythonhosted.org/packages/95/82/800646c7ffc5dbabd75ddd2f6b519bb898c0c9c969e5d0473bfe5d20bcce/greenlet-3.5.0-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:362624e6a8e5bca3b8233e45eef33903a100e9539a2b995c364d595dbc4018b3", size = 604264, upload-time = "2026-04-27T12:52:39.494Z" },
+    { url = "https://files.pythonhosted.org/packages/ca/ac/354867c0bba812fc33b15bc55aedafedd0aee3c7dd91dfca22444157dc0c/greenlet-3.5.0-cp311-cp311-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:5ecd83806b0f4c2f53b1018e0005cd82269ea01d42befc0368730028d850ed1c", size = 616099, upload-time = "2026-04-27T12:59:39.623Z" },
+    { url = "https://files.pythonhosted.org/packages/c9/ab/192090c4a5b30df148c22bf4b8895457d739a7c7c5a7b9c41e5dd7f537f2/greenlet-3.5.0-cp311-cp311-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:fa94cb2288681e3a11645958f1871d48ee9211bd2f66628fdace505927d6e564", size = 623976, upload-time = "2026-04-27T13:02:37.363Z" },
+    { url = "https://files.pythonhosted.org/packages/ff/b0/815bece7399e01cadb69014219eebd0042339875c59a59b0820a46ece356/greenlet-3.5.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0ff251e9a0279522e62f6176412869395a64ddf2b5c5f782ff609a8216a4e662", size = 615198, upload-time = "2026-04-27T12:25:25.928Z" },
+    { url = "https://files.pythonhosted.org/packages/24/11/05eb2b9b188c6df7d68a89c99134d644a7af616a40b9808e8e6ced315d5d/greenlet-3.5.0-cp311-cp311-manylinux_2_39_riscv64.whl", hash = "sha256:64d6ac45f7271f48e45f67c95b54ef73534c52ec041fcda8edf520c6d811f4bc", size = 418379, upload-time = "2026-04-27T13:05:12.755Z" },
+    { url = "https://files.pythonhosted.org/packages/10/80/3b2c0a895d6698f6ddb31b07942ebfa982f3e30888bc5546a5b5990de8b2/greenlet-3.5.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:6d874e79afd41a96e11ff4c5d0bc90a80973e476fda1c2c64985667397df432b", size = 1574927, upload-time = "2026-04-27T12:53:25.81Z" },
+    { url = "https://files.pythonhosted.org/packages/44/0e/f354af514a4c61454dbc68e44d47544a5a4d6317e30b77ddfa3a09f4c5f3/greenlet-3.5.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:0ed006e4b86c59de7467eb2601cd1b77b5a7d657d1ee55e30fe30d76451edba4", size = 1642683, upload-time = "2026-04-27T12:25:23.9Z" },
+    { url = "https://files.pythonhosted.org/packages/fa/6a/87f38255201e993a1915265ebb80cd7c2c78b04a45744995abbf6b259fd8/greenlet-3.5.0-cp311-cp311-win_amd64.whl", hash = "sha256:703cb211b820dbffbbc55a16bfc6e4583a6e6e990f33a119d2cc8b83211119c8", size = 238115, upload-time = "2026-04-27T12:21:48.845Z" },
+    { url = "https://files.pythonhosted.org/packages/e3/f8/450fe3c5938fa737ea4d22699772e6e34e8e24431a47bf4e8a1ceed4a98e/greenlet-3.5.0-cp311-cp311-win_arm64.whl", hash = "sha256:6c18dfb59c70f5a94acd271c72e90128c3c776e41e5f07767908c8c1b74ad339", size = 235017, upload-time = "2026-04-27T12:22:26.768Z" },
+    { url = "https://files.pythonhosted.org/packages/ef/32/f2ce6d4cac3e55bc6173f92dbe627e782e1850f89d986c3606feb63aafa7/greenlet-3.5.0-cp312-cp312-macosx_11_0_universal2.whl", hash = "sha256:db2910d3c809444e0a20147361f343fe2798e106af8d9d8506f5305302655a9f", size = 286228, upload-time = "2026-04-27T12:20:34.421Z" },
+    { url = "https://files.pythonhosted.org/packages/b7/aa/caed9e5adf742315fc7be2a84196373aab4816e540e38ba0d76cb7584d68/greenlet-3.5.0-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3ec9ea74e7268ace7f9aab1b1a4e730193fc661b39a993cd91c606c32d4a3628", size = 601775, upload-time = "2026-04-27T12:52:41.045Z" },
+    { url = "https://files.pythonhosted.org/packages/c7/af/90ae08497400a941595d12774447f752d3dfe0fbb012e35b76bc5c0ff37e/greenlet-3.5.0-cp312-cp312-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:54d243512da35485fc7a6bf3c178fdda6327a9d6506fcdd62b1abd1e41b2927b", size = 614436, upload-time = "2026-04-27T12:59:41.595Z" },
+    { url = "https://files.pythonhosted.org/packages/3f/e9/4eeadf8cb3403ac274245ba75f07844abc7fa5f6787583fc9156ba741e0f/greenlet-3.5.0-cp312-cp312-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:41353ec2ecedf7aa8f682753a41919f8718031a6edac46b8d3dc7ed9e1ceb136", size = 620610, upload-time = "2026-04-27T13:02:39.194Z" },
+    { url = "https://files.pythonhosted.org/packages/2b/e0/2e13df68f367e2f9960616927d60857dd7e56aaadd59a47c644216b2f920/greenlet-3.5.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9d280a7f5c331622c69f97eb167f33577ff2d1df282c41cd15907fc0a3ca198c", size = 611388, upload-time = "2026-04-27T12:25:28.008Z" },
+    { url = "https://files.pythonhosted.org/packages/ee/ef/f913b3c0eb7d26d86a2401c5e1546c9d46b657efee724b06f6f4ac5d8824/greenlet-3.5.0-cp312-cp312-manylinux_2_39_riscv64.whl", hash = "sha256:58c1c374fe2b3d852f9b6b11a7dff4c85404e51b9a596fd9e89cf904eb09866d", size = 422775, upload-time = "2026-04-27T13:05:14.261Z" },
+    { url = "https://files.pythonhosted.org/packages/82/f7/393c64055132ac0d488ef6be549253b7e6274194863967ddc0bc8f5b87b8/greenlet-3.5.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:1eb67d5adefb5bd2e182d42678a328979a209e4e82eb93575708185d31d1f588", size = 1570768, upload-time = "2026-04-27T12:53:28.099Z" },
+    { url = "https://files.pythonhosted.org/packages/b8/4b/eaf7735253522cf56d1b74d672a58f54fc114702ceaf05def59aae72f6e1/greenlet-3.5.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:2628d6c86f6cb0cb45e0c3c54058bbec559f57eaae699447748cb3928150577e", size = 1635983, upload-time = "2026-04-27T12:25:26.903Z" },
+    { url = "https://files.pythonhosted.org/packages/4c/fe/4fb3a0805bd5165da5ebf858da7cc01cce8061674106d2cf5bdab32cbfde/greenlet-3.5.0-cp312-cp312-win_amd64.whl", hash = "sha256:d4d9f0624c775f2dfc56ba54d515a8c771044346852a918b405914f6b19d7fd8", size = 238840, upload-time = "2026-04-27T12:23:54.806Z" },
+    { url = "https://files.pythonhosted.org/packages/cb/cb/baa584cb00532126ffe12d9787db0a60c5a4f55c27bfe2666df5d4c30a32/greenlet-3.5.0-cp312-cp312-win_arm64.whl", hash = "sha256:83ed9f27f1680b50e89f40f6df348a290ea234b249a4003d366663a12eab94f2", size = 235615, upload-time = "2026-04-27T12:21:38.57Z" },
+    { url = "https://files.pythonhosted.org/packages/0c/58/fc576f99037ce19c5aa16628e4c3226b6d1419f72a62c79f5f40576e6eb3/greenlet-3.5.0-cp313-cp313-macosx_11_0_universal2.whl", hash = "sha256:5a5ed18de6a0f6cc7087f1563f6bd93fc7df1c19165ca01e9bde5a5dc281d106", size = 285066, upload-time = "2026-04-27T12:23:05.033Z" },
+    { url = "https://files.pythonhosted.org/packages/4a/ba/b28ddbe6bfad6a8ac196ef0e8cff37bc65b79735995b9e410923fffeeb70/greenlet-3.5.0-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3a717fbc46d8a354fa675f7c1e813485b6ba3885f9bef0cd56e5ba27d758ff5b", size = 604414, upload-time = "2026-04-27T12:52:42.358Z" },
+    { url = "https://files.pythonhosted.org/packages/09/06/4b69f8f0b67603a8be2790e55107a190b376f2627fe0eaf5695d85ffb3cd/greenlet-3.5.0-cp313-cp313-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:ddc090c5c1792b10246a78e8c2163ebbe04cf877f9d785c230a7b27b39ad038e", size = 617349, upload-time = "2026-04-27T12:59:43.32Z" },
+    { url = "https://files.pythonhosted.org/packages/6a/15/a643b4ecd09969e30b8a150d5919960caae0abe4f5af75ab040b1ab85e78/greenlet-3.5.0-cp313-cp313-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4964101b8585c144cbda5532b1aa644255126c08a265dae90c16e7a0e63aaa9d", size = 623234, upload-time = "2026-04-27T13:02:40.611Z" },
+    { url = "https://files.pythonhosted.org/packages/8a/17/a3918541fd0ddefe024a69de6d16aa7b46d36ac19562adaa63c7fa180eff/greenlet-3.5.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2094acd54b272cb6eae8c03dd87b3fa1820a4cef18d6889c378d503500a1dc13", size = 613927, upload-time = "2026-04-27T12:25:30.28Z" },
+    { url = "https://files.pythonhosted.org/packages/77/18/3b13d5ef1275b0ffaf933b05efa21408ac4ca95823c7411d79682e4fdcff/greenlet-3.5.0-cp313-cp313-manylinux_2_39_riscv64.whl", hash = "sha256:7022615368890680e67b9965d33f5773aade330d5343bbe25560135aaa849eae", size = 425243, upload-time = "2026-04-27T13:05:15.689Z" },
+    { url = "https://files.pythonhosted.org/packages/ee/e1/bd0af6213c7dd33175d8a462d4c1fe1175124ebed4855bc1475a5b5242c2/greenlet-3.5.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:5e05ba267789ea87b5a155cf0e810b1ab88bf18e9e8740813945ceb8ee4350ba", size = 1570893, upload-time = "2026-04-27T12:53:29.483Z" },
+    { url = "https://files.pythonhosted.org/packages/9b/2a/0789702f864f5382cb476b93d7a9c823c10472658102ccd65f415747d2e2/greenlet-3.5.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:0ecec963079cd58cbd14723582384f11f166fd58883c15dcbfb342e0bc9b5846", size = 1636060, upload-time = "2026-04-27T12:25:28.845Z" },
+    { url = "https://files.pythonhosted.org/packages/b2/8f/22bf9df92bbff0eb07842b60f7e63bf7675a9742df628437a9f02d09137f/greenlet-3.5.0-cp313-cp313-win_amd64.whl", hash = "sha256:728d9667d8f2f586644b748dbd9bb67e50d6a9381767d1357714ea6825bb3bf5", size = 238740, upload-time = "2026-04-27T12:24:01.341Z" },
+    { url = "https://files.pythonhosted.org/packages/b6/b7/9c5c3d653bd4ff614277c049ac676422e2c557db47b4fe43e6313fc005dc/greenlet-3.5.0-cp313-cp313-win_arm64.whl", hash = "sha256:47422135b1d308c14b2c6e758beedb1acd33bb91679f5670edf77bf46244722b", size = 235525, upload-time = "2026-04-27T12:23:12.308Z" },
+    { url = "https://files.pythonhosted.org/packages/94/5e/a70f31e3e8d961c4ce589c15b28e4225d63704e431a23932a3808cbcc867/greenlet-3.5.0-cp314-cp314-macosx_11_0_universal2.whl", hash = "sha256:f35807464c4c58c55f0d31dfa83c541a5615d825c2fe3d2b95360cf7c4e3c0a8", size = 285564, upload-time = "2026-04-27T12:23:08.555Z" },
+    { url = "https://files.pythonhosted.org/packages/af/a6/046c0a28e21833e4086918218cfb3d8bed51c075a1b700f20b9d7861c0f4/greenlet-3.5.0-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:55fa7ea52771be44af0de27d8b80c02cd18c2c3cddde6c847ecebdf72418b6a1", size = 651166, upload-time = "2026-04-27T12:52:43.644Z" },
+    { url = "https://files.pythonhosted.org/packages/47/f8/4af27f71c5ff32a7fbc516adb46370d9c4ae2bc7bd3dc7d066ac542b4b15/greenlet-3.5.0-cp314-cp314-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a97e4821aa710603f94de0da25f25096454d78ffdace5dc77f3a006bc01abba3", size = 663792, upload-time = "2026-04-27T12:59:44.93Z" },
+    { url = "https://files.pythonhosted.org/packages/fb/89/2dadb89793c37ee8b4c237857188293e9060dc085f19845c292e00f8e091/greenlet-3.5.0-cp314-cp314-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:bf2d8a80bec89ab46221ae45c5373d5ba0bd36c19aa8508e85c6cd7e5106cd37", size = 668086, upload-time = "2026-04-27T13:02:42.314Z" },
+    { url = "https://files.pythonhosted.org/packages/a3/59/1bd6d7428d6ed9106efbb8c52310c60fd04f6672490f452aeaa3829aa436/greenlet-3.5.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8f52a464e4ed91780bdfbbdd2b97197f3accaa629b98c200f4dffada759f3ae7", size = 660933, upload-time = "2026-04-27T12:25:33.276Z" },
+    { url = "https://files.pythonhosted.org/packages/82/35/75722be7e26a2af4cbd2dc35b0ed382dacf9394b7e75551f76ed1abe87f2/greenlet-3.5.0-cp314-cp314-manylinux_2_39_riscv64.whl", hash = "sha256:1bae92a1dd94c5f9d9493c3a212dd874c202442047cf96446412c862feca83a2", size = 470799, upload-time = "2026-04-27T13:05:17.094Z" },
+    { url = "https://files.pythonhosted.org/packages/83/e4/b903e5a5fae1e8a28cdd32a0cfbfd560b668c25b692f67768822ddc5f40f/greenlet-3.5.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:762612baf1161ccb8437c0161c668a688223cba28e1bf038f4eb47b13e39ccdf", size = 1618401, upload-time = "2026-04-27T12:53:31.062Z" },
+    { url = "https://files.pythonhosted.org/packages/0e/e3/5ec408a329acb854fb607a122e1ee5fb3ff649f9a97952948a90803c0d8e/greenlet-3.5.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:57a43c6079a89713522bc4bcb9f75070ecf5d3dbad7792bfe42239362cbf2a16", size = 1682038, upload-time = "2026-04-27T12:25:31.838Z" },
+    { url = "https://files.pythonhosted.org/packages/91/20/6b165108058767ee643c55c5c4904d591a830ee2b3c7dbd359828fbc829f/greenlet-3.5.0-cp314-cp314-win_amd64.whl", hash = "sha256:3bc59be3945ae9750b9e7d45067d01ae3fe90ea5f9ade99239dabdd6e28a5033", size = 239835, upload-time = "2026-04-27T12:24:54.136Z" },
+    { url = "https://files.pythonhosted.org/packages/4e/62/1c498375cee177b55d980c1db319f26470e5309e54698c8f8fc06c0fd539/greenlet-3.5.0-cp314-cp314-win_arm64.whl", hash = "sha256:a96fcee45e03fe30a62669fd16ab5c9d3c172660d3085605cb1e2d1280d3c988", size = 236862, upload-time = "2026-04-27T12:23:24.957Z" },
+    { url = "https://files.pythonhosted.org/packages/78/a8/4522939255bb5409af4e87132f915446bf3622c2c292d14d3c38d128ae82/greenlet-3.5.0-cp314-cp314t-macosx_11_0_universal2.whl", hash = "sha256:a10a732421ab4fec934783ce3e54763470d0181db6e3468f9103a275c3ed1853", size = 293614, upload-time = "2026-04-27T12:24:12.874Z" },
+    { url = "https://files.pythonhosted.org/packages/15/5e/8744c52e2c027b5a8772a01561934c8835f869733e101f62075c60430340/greenlet-3.5.0-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7fc391b1566f2907d17aaebe78f8855dc45675159a775fcf9e61f8ee0078e87f", size = 650723, upload-time = "2026-04-27T12:52:45.412Z" },
+    { url = "https://files.pythonhosted.org/packages/00/ef/7b4c39c03cf46ceca512c5d3f914afd85aa30b2cc9a93015b0dd73e4be6c/greenlet-3.5.0-cp314-cp314t-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:680bd0e7ad5e8daa8a4aa89f68fd6adc834b8a8036dc256533f7e08f4a4b01f7", size = 656529, upload-time = "2026-04-27T12:59:46.295Z" },
+    { url = "https://files.pythonhosted.org/packages/5f/5c/0602239503b124b70e39355cbdb39361ecfe65b87a5f2f63752c32f5286f/greenlet-3.5.0-cp314-cp314t-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:1aa4ce8debcd4ea7fb2e150f3036588c41493d1d52c43538924ae1819003f4ce", size = 657015, upload-time = "2026-04-27T13:02:43.973Z" },
+    { url = "https://files.pythonhosted.org/packages/0b/b5/c7768f352f5c010f92064d0063f987e7dc0cd290a6d92a34109015ce4aa1/greenlet-3.5.0-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ddb36c7d6c9c0a65f18c7258634e0c416c6ab59caac8c987b96f80c2ebda0112", size = 654364, upload-time = "2026-04-27T12:25:35.64Z" },
+    { url = "https://files.pythonhosted.org/packages/38/51/8699f865f125dc952384cb432b0f7138aa4d8f2969a7d12d0df5b94d054d/greenlet-3.5.0-cp314-cp314t-manylinux_2_39_riscv64.whl", hash = "sha256:728a73687e39ae9ca34e4694cbf2f049d3fbc7174639468d0f67200a97d8f9e2", size = 488275, upload-time = "2026-04-27T13:05:18.28Z" },
+    { url = "https://files.pythonhosted.org/packages/ef/d0/079ebe12e4b1fc758857ce5be1a5e73f06870f2101e52611d1e71925ce54/greenlet-3.5.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:e5ddf316ced87539144621453c3aef229575825fe60c604e62bedc4003f372b2", size = 1614204, upload-time = "2026-04-27T12:53:32.618Z" },
+    { url = "https://files.pythonhosted.org/packages/6d/89/6c2fb63df3596552d20e58fb4d96669243388cf680cff222758812c7bfaa/greenlet-3.5.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:4a448128607be0de65342dc9b31be7f948ef4cc0bc8832069350abefd310a8f2", size = 1675480, upload-time = "2026-04-27T12:25:34.168Z" },
+    { url = "https://files.pythonhosted.org/packages/15/32/77ee8a6c1564fc345a491a4e85b3bf360e4cf26eac98c4532d2fdb96e01f/greenlet-3.5.0-cp314-cp314t-win_amd64.whl", hash = "sha256:d60097128cb0a1cab9ea541186ea13cd7b847b8449a7787c2e2350da0cb82d86", size = 245324, upload-time = "2026-04-27T12:24:40.295Z" },
 ]
 
 [[package]]
@@ -1792,6 +1921,26 @@
 ]
 
 [[package]]
+name = "playwright"
+version = "1.59.0"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+    { name = "greenlet", version = "3.2.5", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" },
+    { name = "greenlet", version = "3.5.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.10'" },
+    { name = "pyee" },
+]
+wheels = [
+    { url = "https://files.pythonhosted.org/packages/5b/48/abab23f40643b4de8f2665816f0a1bf0994eeecda39d6d62f0f292b2ad01/playwright-1.59.0-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:bfc6940100b57423175c819ce2422ec5880d55fa2769987f62ab7a1f5fe6783e", size = 43156922, upload-time = "2026-04-29T08:11:08.921Z" },
+    { url = "https://files.pythonhosted.org/packages/08/71/5e4d98b2ce3641b4343623c6450ff33b9de1c979d12a957505e392338b07/playwright-1.59.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:af068143a0c045ec11608b67d6c42e58db7e9cf65a742dd21fddedc1a9802c47", size = 41947177, upload-time = "2026-04-29T08:11:12.867Z" },
+    { url = "https://files.pythonhosted.org/packages/80/91/fd219aa78ca03d37e93aaedaed4e224131e3090a9264f9bb773c8271d67e/playwright-1.59.0-py3-none-macosx_11_0_universal2.whl", hash = "sha256:4a4a2d4842b0e4120de3fa48636e4b69085a05b81d8a35ad4353f530ade72ed6", size = 43156922, upload-time = "2026-04-29T08:11:16.595Z" },
+    { url = "https://files.pythonhosted.org/packages/73/0c/1e513d37c5be07d12829ebce93dbfe7baee230084cb66966c423432799c4/playwright-1.59.0-py3-none-manylinux1_x86_64.whl", hash = "sha256:c5792aad9e22b91a09264b9edbc18553cf05ea5a39404d65dc19a012c6b2e51d", size = 47151793, upload-time = "2026-04-29T08:11:19.979Z" },
+    { url = "https://files.pythonhosted.org/packages/a3/2d/15f72288cb65d690134e18fefb9483cc4976f7579b580648c45e494481a7/playwright-1.59.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8c881a19377d2b900af855fb525b5f22a27bf3cfbecba6d1edb36766d56cb100", size = 46877615, upload-time = "2026-04-29T08:11:23.863Z" },
+    { url = "https://files.pythonhosted.org/packages/72/a1/717ac5bc99f387c0f60def91271ea4262125c0815d764a5d1776a272275c/playwright-1.59.0-py3-none-win32.whl", hash = "sha256:6989c476be2b9cd3e24a18cc9dcf202e266fb3d91e3e5395cd668c54ea54b119", size = 37713698, upload-time = "2026-04-29T08:11:27.251Z" },
+    { url = "https://files.pythonhosted.org/packages/0f/a5/4e630ee05d8b46b840f943268e86d6063703e8dadb2d3eb405c7b9b2e48c/playwright-1.59.0-py3-none-win_amd64.whl", hash = "sha256:d5a5cc064b82ca92996080025710844e417f44df8fda9001102c28f44174171c", size = 37713704, upload-time = "2026-04-29T08:11:30.41Z" },
+    { url = "https://files.pythonhosted.org/packages/eb/0c/3ece41761ba13c8321009aefcaec7a016eb42799c42eef5e03ace7f2de5b/playwright-1.59.0-py3-none-win_arm64.whl", hash = "sha256:93581ad515728cadc8af39b288a5633ba6d36e7d72048e79d890ce01ea2156f9", size = 33956745, upload-time = "2026-04-29T08:11:34.738Z" },
+]
+
+[[package]]
 name = "pluggy"
 version = "1.6.0"
 source = { registry = "https://pypi.org/simple" }
@@ -2100,6 +2249,18 @@
 ]
 
 [[package]]
+name = "pyee"
+version = "13.0.1"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+    { name = "typing-extensions" },
+]
+sdist = { url = "https://files.pythonhosted.org/packages/8b/04/e7c1fe4dc78a6fdbfd6c337b1c3732ff543b8a397683ab38378447baa331/pyee-13.0.1.tar.gz", hash = "sha256:0b931f7c14535667ed4c7e0d531716368715e860b988770fc7eb8578d1f67fc8", size = 31655, upload-time = "2026-02-14T21:12:28.044Z" }
+wheels = [
+    { url = "https://files.pythonhosted.org/packages/a0/c4/b4d4827c93ef43c01f599ef31453ccc1c132b353284fc6c87d535c233129/pyee-13.0.1-py3-none-any.whl", hash = "sha256:af2f8fede4171ef667dfded53f96e2ed0d6e6bd7ee3bb46437f77e3b57689228", size = 15659, upload-time = "2026-02-14T21:12:26.263Z" },
+]
+
+[[package]]
 name = "pygments"
 version = "2.20.0"
 source = { registry = "https://pypi.org/simple" }
diff --git a/aigc-director/aigc-claw/frontend/components/pipelines/PipelinePage.tsx b/aigc-director/aigc-claw/frontend/components/pipelines/PipelinePage.tsx
index c4ad54d..86b12b2 100644
--- a/aigc-director/aigc-claw/frontend/components/pipelines/PipelinePage.tsx
+++ b/aigc-director/aigc-claw/frontend/components/pipelines/PipelinePage.tsx
@@ -24,6 +24,7 @@
 import clsx from 'clsx';
 import {
   fetchApiModels,
+  fetchStandardTemplates,
   deletePipelineTask,
   fetchPipelineTask,
   fetchPipelineTasks,
@@ -35,6 +36,7 @@
   type PipelineTask,
   type PipelineTaskEvent,
   type ApiModelOption,
+  type StandardTemplateOption,
 } from '@/lib/workflowApi';
 import {
   I2I_PROVIDERS,
@@ -63,6 +65,19 @@
 
 const DEFAULT_STANDARD_STYLE_CONTROL =
   'Minimalist black-and-white matchstick figure style illustration, clean lines, simple sketch style';
+
+const TEMPLATE_TEXT_DEFAULTS = {
+  title: '山河入梦',
+  text: '心之所向,素履而往',
+};
+
+const TEMPLATE_FIELD_LABELS: Record<string, string> = {
+  author: 'author',
+  describe: 'describe',
+  brand: 'brand',
+  signature: 'signature',
+  subtitle: 'subtitle',
+};
 
 const STATUS_STYLE: Record<string, string> = {
   pending: 'bg-gray-100 text-gray-500',
@@ -449,6 +464,56 @@
   );
 }
 
+function TemplatePreviewCard({
+  template,
+  selected,
+  onClick,
+}: {
+  template: StandardTemplateOption;
+  selected?: boolean;
+  onClick?: () => void;
+}) {
+  const ratioClass = template.ratio === '16:9'
+    ? 'aspect-[16/9] w-36'
+    : template.ratio === '1:1'
+      ? 'aspect-square w-28'
+      : 'aspect-[9/16] w-24';
+  const scale = template.ratio === '16:9'
+    ? 0.075
+    : template.ratio === '1:1'
+      ? 0.105
+      : 0.089;
+
+  return (
+    <button
+      type="button"
+      onClick={onClick}
+      className={clsx(
+        'group flex-shrink-0 rounded-lg border bg-white p-1.5 text-left transition-all',
+        selected ? 'border-blue-400 ring-2 ring-blue-100' : 'border-gray-200 hover:border-blue-300 hover:shadow-sm'
+      )}
+      title={template.label}
+    >
+      <div className={clsx('relative overflow-hidden rounded-md bg-gray-100', ratioClass)}>
+        <iframe
+          src={template.preview_url}
+          title={template.label}
+          className="pointer-events-none absolute left-0 top-0 border-0 bg-white"
+          style={{
+            width: template.width,
+            height: template.height,
+            transform: `scale(${scale})`,
+            transformOrigin: 'top left',
+          }}
+        />
+      </div>
+      <div className="mt-1 max-w-36 truncate text-[10px] font-medium text-gray-500 group-hover:text-blue-600">
+        {template.label}
+      </div>
+    </button>
+  );
+}
+
 function PipelineHistory({
   pipeline,
   activeTaskId,
@@ -577,6 +642,10 @@
   const [text, setText] = useState('');
   const [standardMode, setStandardMode] = useState<'inspiration' | 'copy'>('inspiration');
   const [standardVideoMode, setStandardVideoMode] = useState<'image_concat' | 'dynamic_video'>('image_concat');
+  const [templateMode, setTemplateMode] = useState(false);
+  const [templates, setTemplates] = useState<StandardTemplateOption[]>([]);
+  const [selectedTemplateId, setSelectedTemplateId] = useState('');
+  const [templateFieldValues, setTemplateFieldValues] = useState<Record<string, string>>({});
   const [titleValue, setTitleValue] = useState('');
   const [standardSegmentCount, setStandardSegmentCount] = useState(6);
   const [enableSubtitles, setEnableSubtitles] = useState(false);
@@ -635,11 +704,73 @@
     }
   }, [pipeline, standardVideoMode]);
 
+  useEffect(() => {
+    if (pipeline !== 'standard') return;
+    fetchStandardTemplates()
+      .then(items => {
+        setTemplates(items);
+        setSelectedTemplateId(current => current || items.find(item => item.ratio === ratio)?.id || items[0]?.id || '');
+      })
+      .catch(() => {});
+  }, [pipeline, ratio]);
+
+  useEffect(() => {
+    if (!templateMode) return;
+    setEnableSubtitles(true);
+    setStandardVideoMode('image_concat');
+    setText(current => current || TEMPLATE_TEXT_DEFAULTS.text);
+    setTitleValue(current => current || TEMPLATE_TEXT_DEFAULTS.title);
+    setSelectedTemplateId(current => {
+      if (current && templates.some(item => item.id === current && item.ratio === ratio)) return current;
+      return templates.find(item => item.ratio === ratio)?.id || current;
+    });
+  }, [templateMode, ratio, templates]);
+
+  const portraitTemplates = useMemo(
+    () => templates.filter(item => item.size === '1080x1920'),
+    [templates]
+  );
+  const ratioTemplates = useMemo(
+    () => templates.filter(item => item.ratio === ratio),
+    [templates, ratio]
+  );
+  const selectedTemplate = useMemo(
+    () => templates.find(item => item.id === selectedTemplateId) || null,
+    [templates, selectedTemplateId]
+  );
+  const selectedTemplateFields = useMemo(
+    () => selectedTemplate?.fields || [],
+    [selectedTemplate]
+  );
+
+  useEffect(() => {
+    if (!templateMode) return;
+    if (!selectedTemplateFields.length) {
+      setTemplateFieldValues({});
+      return;
+    }
+    setTemplateFieldValues(current => {
+      const next: Record<string, string> = {};
+      for (const field of selectedTemplateFields) {
+        next[field.key] = current[field.key] ?? field.default ?? '';
+      }
+      return next;
+    });
+  }, [templateMode, selectedTemplateFields]);
+
+  const enterTemplateMode = () => {
+    setTemplateMode(true);
+    setEnableSubtitles(true);
+    setStandardVideoMode('image_concat');
+    setText(current => current || TEMPLATE_TEXT_DEFAULTS.text);
+    setTitleValue(current => current || TEMPLATE_TEXT_DEFAULTS.title);
+  };
+
   const canSubmit = useMemo(() => {
-    if (pipeline === 'standard') return text.trim().length > 0;
+    if (pipeline === 'standard') return text.trim().length > 0 && (!templateMode || Boolean(selectedTemplate));
     if (pipeline === 'action_transfer') return promptText.trim() && imagePath.trim() && videoPath.trim();
     return characterImage.trim() && goodsText.trim();
-  }, [pipeline, text, promptText, imagePath, videoPath, characterImage, goodsText]);
+  }, [pipeline, text, templateMode, selectedTemplate, promptText, imagePath, videoPath, characterImage, goodsText]);
 
   useEffect(() => {
     if (!task || !['pending', 'running'].includes(task.status)) return;
@@ -700,14 +831,16 @@
             llm_model: llmModel,
             image_model: imageModel,
             video_ratio: ratio,
-            enable_subtitles: enableSubtitles,
+            enable_subtitles: templateMode ? true : enableSubtitles,
+            subtitle_template: templateMode ? selectedTemplate?.id : undefined,
+            subtitle_template_fields: templateMode ? templateFieldValues : undefined,
             tts_voice: ttsVoice,
             tts_speed: ttsSpeed,
             style_control: negativePrompt || undefined,
             segment_count: standardMode === 'inspiration' ? standardSegmentCount : undefined,
-            video_mode: standardVideoMode,
-            video_model: standardVideoMode === 'dynamic_video' ? videoModel : undefined,
-            video_duration: standardVideoMode === 'dynamic_video' ? duration : undefined,
+            video_mode: templateMode ? 'image_concat' : standardVideoMode,
+            video_model: !templateMode && standardVideoMode === 'dynamic_video' ? videoModel : undefined,
+            video_duration: !templateMode && standardVideoMode === 'dynamic_video' ? duration : undefined,
           })
         : pipeline === 'action_transfer'
           ? await startActionTransferPipeline({
@@ -751,24 +884,105 @@
           <p className="text-sm text-gray-500">{subtitle}</p>
         </div>
 
+        {pipeline === 'standard' && (
+          <section className="mb-5 rounded-2xl border border-gray-200 bg-white p-4 shadow-sm">
+            <div className="flex flex-col gap-3 md:flex-row md:items-center">
+              <button
+                type="button"
+                onClick={() => {
+                  if (templateMode) setTemplateMode(false);
+                  else enterTemplateMode();
+                }}
+                className={clsx(
+                  'h-10 flex-shrink-0 rounded-xl px-4 text-sm font-medium transition-colors',
+                  templateMode
+                    ? 'bg-gray-900 text-white hover:bg-gray-800'
+                    : 'bg-blue-500 text-white hover:bg-blue-600'
+                )}
+              >
+                {templateMode ? '返回自定义生成模式' : '使用精品模版'}
+              </button>
+              <div className="min-w-0 flex-1 overflow-x-auto">
+                <div className="flex gap-3 pb-1">
+                  {portraitTemplates.length ? (
+                    portraitTemplates.map(item => (
+                      <TemplatePreviewCard
+                        key={item.id}
+                        template={item}
+                        selected={templateMode && selectedTemplateId === item.id}
+                        onClick={() => {
+                          enterTemplateMode();
+                          setRatio(item.ratio);
+                          setSelectedTemplateId(item.id);
+                        }}
+                      />
+                    ))
+                  ) : (
+                    <div className="flex h-28 min-w-0 flex-1 items-center justify-center rounded-xl border border-dashed border-gray-200 bg-gray-50 text-xs text-gray-400">
+                      暂无 1080x1920 模版
+                    </div>
+                  )}
+                </div>
+              </div>
+            </div>
+          </section>
+        )}
+
         <div className="grid grid-cols-1 lg:grid-cols-[minmax(0,1.1fr)_minmax(340px,0.9fr)] gap-5 items-start">
           <section className="bg-white rounded-2xl shadow-sm border border-gray-200 p-5">
             {pipeline === 'standard' && (
               <div className="space-y-4">
-                <div className="grid grid-cols-2 h-10 rounded-lg bg-gray-100 p-1 text-sm max-w-sm">
-                  {[
-                    { id: 'image_concat', label: '图片拼接' },
-                    { id: 'dynamic_video', label: '动态视频' },
-                  ].map(item => (
-                    <button
-                      key={item.id}
-                      onClick={() => setStandardVideoMode(item.id as 'image_concat' | 'dynamic_video')}
-                      className={clsx('rounded-md transition-colors', standardVideoMode === item.id ? 'bg-white text-blue-600 shadow-sm' : 'text-gray-500')}
-                    >
-                      {item.label}
-                    </button>
-                  ))}
-                </div>
+                {templateMode ? (
+                  <div className="space-y-3">
+                    <div className="grid h-10 max-w-sm grid-cols-3 rounded-lg bg-gray-100 p-1 text-sm">
+                      {['9:16', '1:1', '16:9'].map(item => (
+                        <button
+                          key={item}
+                          onClick={() => setRatio(item)}
+                          className={clsx('rounded-md transition-colors', ratio === item ? 'bg-white text-blue-600 shadow-sm' : 'text-gray-500')}
+                        >
+                          {item}
+                        </button>
+                      ))}
+                    </div>
+                    <div className="rounded-xl border border-gray-200 bg-gray-50 p-3">
+                      <div className="mb-2 text-xs font-medium text-gray-500">选择模版</div>
+                      <div className="overflow-x-auto">
+                        <div className="flex gap-3 pb-1">
+                          {ratioTemplates.length ? (
+                            ratioTemplates.map(item => (
+                              <TemplatePreviewCard
+                                key={item.id}
+                                template={item}
+                                selected={selectedTemplateId === item.id}
+                                onClick={() => setSelectedTemplateId(item.id)}
+                              />
+                            ))
+                          ) : (
+                            <div className="flex h-28 min-w-0 flex-1 items-center justify-center rounded-xl border border-dashed border-gray-200 bg-white text-xs text-gray-400">
+                              当前比例暂无模版
+                            </div>
+                          )}
+                        </div>
+                      </div>
+                    </div>
+                  </div>
+                ) : (
+                  <div className="grid grid-cols-2 h-10 rounded-lg bg-gray-100 p-1 text-sm max-w-sm">
+                    {[
+                      { id: 'image_concat', label: '图片拼接' },
+                      { id: 'dynamic_video', label: '动态视频' },
+                    ].map(item => (
+                      <button
+                        key={item.id}
+                        onClick={() => setStandardVideoMode(item.id as 'image_concat' | 'dynamic_video')}
+                        className={clsx('rounded-md transition-colors', standardVideoMode === item.id ? 'bg-white text-blue-600 shadow-sm' : 'text-gray-500')}
+                      >
+                        {item.label}
+                      </button>
+                    ))}
+                  </div>
+                )}
                 <div className="rounded-xl border border-yellow-300 bg-yellow-100 px-4 py-3">
                   <div className="mb-1 flex items-center gap-1.5 text-xs font-semibold text-yellow-900">
                     <Lightbulb className="w-3.5 h-3.5" />
@@ -776,8 +990,8 @@
                   </div>
                   <p className="text-sm leading-6 text-yellow-950">
                     {standardVideoMode === 'image_concat'
-                      ? '图片拼接会为每个旁白片段生成一张图片,并配合 TTS 音频合成为静态图文短视频。等待时间主要取决于图片生成速度,通常每张图片约 10-20 秒。'
-                      : '动态视频会先为每个旁白片段生成图片,再调用视频模型把图片扩展为动态片段,最后合成为完整短片。等待时间更长,通常每个视频片段约 1-2 分钟。'}
+                      ? '图片拼接会为每个旁白片段生成一张图片,并配合 TTS 音频合成为静态图文短视频。等待时间主要取决于图片生成速度,通常生成每张图片需 10-20 秒。'
+                      : '动态视频会先为每个旁白片段生成图片,再调用视频模型把图片扩展为动态片段,最后合成为完整短片。等待时间更长,通常生成每个视频片段需 1-2 分钟。'}
                   </p>
                 </div>
                 <div className="grid grid-cols-2 h-10 rounded-lg bg-gray-100 p-1 text-sm max-w-sm">
@@ -806,6 +1020,26 @@
                     <NumberField label="片段数量" value={standardSegmentCount} onChange={setStandardSegmentCount} min={1} max={20} />
                   )}
                 </div>
+                {templateMode && selectedTemplateFields.length > 0 && (
+                  <div className="rounded-xl border border-gray-200 bg-gray-50 p-3">
+                    <div className="mb-3 text-xs font-medium text-gray-500">自定义字段</div>
+                    <div className="space-y-2">
+                      {selectedTemplateFields.map(field => (
+                        <label key={field.key} className="grid grid-cols-[92px_minmax(0,1fr)] items-center gap-2">
+                          <span className="text-xs font-medium text-gray-500">{TEMPLATE_FIELD_LABELS[field.key] || field.key}</span>
+                          <input
+                            value={templateFieldValues[field.key] ?? field.default ?? ''}
+                            onChange={event => {
+                              const value = event.target.value;
+                              setTemplateFieldValues(current => ({ ...current, [field.key]: value }));
+                            }}
+                            className="h-9 min-w-0 rounded-lg border border-gray-200 bg-white px-3 text-sm text-gray-700 outline-none focus:border-blue-300"
+                          />
+                        </label>
+                      ))}
+                    </div>
+                  </div>
+                )}
               </div>
             )}
 
@@ -855,8 +1089,9 @@
                 <label className="flex items-center gap-2 h-9 rounded-lg border border-gray-200 bg-white px-3 text-xs font-medium text-gray-600">
                   <input
                     type="checkbox"
-                    checked={enableSubtitles}
+                    checked={templateMode || enableSubtitles}
                     onChange={e => setEnableSubtitles(e.target.checked)}
+                    disabled={templateMode}
                     className="w-4 h-4 rounded border-gray-300"
                   />
                   添加标题和字幕
diff --git a/aigc-director/aigc-claw/frontend/lib/workflowApi.ts b/aigc-director/aigc-claw/frontend/lib/workflowApi.ts
index f626f6a..8060d57 100644
--- a/aigc-director/aigc-claw/frontend/lib/workflowApi.ts
+++ b/aigc-director/aigc-claw/frontend/lib/workflowApi.ts
@@ -83,6 +83,22 @@
   capabilities?: Record<string, any>;
 }
 
+export interface StandardTemplateOption {
+  id: string;
+  name: string;
+  label: string;
+  size: string;
+  ratio: '9:16' | '1:1' | '16:9' | string;
+  width: number;
+  height: number;
+  media_width: number;
+  media_height: number;
+  media_ratio: string;
+  media_resolution: string;
+  fields: Array<{ key: string; type: string; default: string }>;
+  preview_url: string;
+}
+
 export async function fetchStages(): Promise<StageInfo[]> {
   const resp = await fetch('/api/stages');
   const data = await resp.json();
@@ -153,6 +169,13 @@
   return data.models || [];
 }
 
+export async function fetchStandardTemplates(): Promise<StandardTemplateOption[]> {
+  const resp = await fetch('/api/pipelines/standard/templates');
+  if (!resp.ok) throw new Error('获取模版列表失败');
+  const data = await resp.json();
+  return data.templates || [];
+}
+
 export async function uploadPipelineMedia(file: File): Promise<{ filename: string; file_path: string }> {
   const formData = new FormData();
   formData.append('file', file);

--
Gitblit v1.8.0