{% extends 'base.html' %} {% block title %}关于 - Prompt Manager{% endblock %} {% block content %}
开启后,画廊将显示被标记为敏感的作品。
{% if not config.ALLOW_PUBLIC_SENSITIVE_TOGGLE and current_user.is_authenticated %}* 全局开关已锁定,当前仅管理员可见此选项
{% endif %}支持拖拽上传。对于 Img2Img 作品,可上传多张参考图并拖拽调整顺序。
详情页一键复制 Prompt。支持通过标签组合或关键词快速筛选灵感。
所有作品默认“待审核”。管理员可登录后台进行发布、删除或数据备份。
完全本地化运行。支持 ZIP 格式一键全量备份与恢复,轻松迁移。
本系统提供标准的 HTTP GET 接口,返回 JSON 格式的作品数据,方便集成到其他工作流中。
{{ url_for('public.api_gallery_list', _external=True) }}
{{ url_for('public.api_templates_list', _external=True) }}
| 参数名 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| page | Int | 1 | 分页页码。 |
| per_page | Int | 20 | 每页返回数量(最大 100)。 |
{
"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"
}
]
}