{% extends 'base.html' %} {% block title %}关于 - Prompt Manager{% endblock %} {% block content %}

Prompt Manager

Local AI Art Collection & Workflow Tool

{% if config.ALLOW_PUBLIC_SENSITIVE_TOGGLE or current_user.is_authenticated %}
敏感内容展示 (NSFW)

开启后,画廊将显示被标记为敏感的作品。

{% if not config.ALLOW_PUBLIC_SENSITIVE_TOGGLE and current_user.is_authenticated %}

* 全局开关已锁定,当前仅管理员可见此选项

{% endif %}
{% endif %}
快速使用指南
上传与记录

支持拖拽上传。对于 Img2Img 作品,可上传多张参考图并拖拽调整顺序。

检索与复用

详情页一键复制 Prompt。支持通过标签组合或关键词快速筛选灵感。

管理与审核

所有作品默认“待审核”。管理员可登录后台进行发布、删除或数据备份。

数据主权

完全本地化运行。支持 ZIP 格式一键全量备份与恢复,轻松迁移。

开发者接口 (API)

本系统提供标准的 HTTP GET 接口,返回 JSON 格式的作品数据,方便集成到其他工作流中。

1. 画廊数据 (Gallery)
GET {{ url_for('public.api_gallery_list', _external=True) }}
2. 模板数据 (Templates)
GET {{ url_for('public.api_templates_list', _external=True) }}
请求参数 (Query Parameters)
参数名 类型 默认值 描述
page Int 1 分页页码。
per_page Int 20 每页返回数量(最大 100)。
响应示例 (Response Example)
{
  "current_page": 1,
  "pages": 5,
  "total": 120,
  "data": [
    {
      "id": 42,
      "title": "Neon City",
      "type": "img2img",
      "file_path": "https://domain.com/static/uploads/uuid.jpg",
      "refs": [
         {
           "position": 0,
           "is_placeholder": false,
           "file_path": "https://domain.com/static/uploads/ref1.jpg"
         },
         {
           "position": 1,
           "is_placeholder": true,
           "file_path": "{{ '{{userText}}' }}"  // 自动变量替换
         }
      ],
      "tags": ["scifi", "city"],
      "created_at": "2023-10-27T10:00:00"
    }
  ]
}
{% endblock %}