File size: 5,417 Bytes
3aed964
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
civitai_setting: # civitai API token
  token:
    - You token here
  model:
    ''
  proxy:
    -
a1111webui_setting:   # sd_webui 设置
  backend_url:  # 后端地址
    - http://127.0.0.1:7860
    - http://127.0.0.1:7861
  name:  # 后端备注名称
    - 后端1
    - 后端2
  auth:  # 是否需要登录
    - false
    - false
  username:  # 用户名
    - admin
    - admin
  password:  # 密码
    - admin
    - admin
  max_resolution:  # 最大分辨率,这个功能没写,暂时不生效
    - null
    - 1572864
fal_ai_setting: # {"token": []}
  token:  # 
    - You token here
  model:
    ''
replicate_setting: # {"token": []}
  token:  # https://replicate.com/black-forest-labs/flux-schnell
    - You token here
  model:
    ''
liblibai_setting:
# https://www.liblib.art/ # 按下F12 -> 应用 -> cookies -> https://www.liblib.art -> usertoken 的值 d812c12d83c640.....
  token:  # 
    - d812c12d83c640...
    - 只要token填上了也算一个后端哦
    - token3
# 模型id获取方法 https://www.liblib.art/sd 先选择喜欢的模型 先按下F12 再 生图
# 回到开发者控制台,网络选项 -> 找到名为 image 的请求,点击 负载 , 请求负载 找到 checkpointId
  model:  # 模型id
    - 2332049
    - 2676318
    - 2675606
  model_name:  # 模型名字,仅用作标记
    - "liblib.art/modelinfo/d2f55cf374a7431cac13382182aed20c"
    - "liblib.art/modelinfo/5ecc3218f1ef483ab63eeb4e4cff30cc"
    - "liblib.art/modelinfo/fe3aac47589d4a20b24d0a6b045d607e"
  xl:  # 是否为XL模型
    - false
    - true
    - false
  flux:  # 是否为FLUX模型
    - false
    - false
    - false
  preference:
    - pretags:  # 内置prompt
        1.5:  #  1.5模式下的预设词条,上面为正面,下面为负面
          - ''  # prompt
          - ''  # negative prompt
        xl:  # xl 同上
          - ""
          - ""
        flux:
          - ''
          - ''
      steps: 20  # 步数
    - pretags:
        1.5:
          - ''
          - ''
        xl:
          - ""
          - ""
        flux:
          - ''
          - ''
      steps: 20
    - pretags:
        1.5:
          - ''
          - ''
        xl:
          - ""
          - ""
        flux:
          - ''
          - ''
      steps: 20

tusiart_setting:  
# 注意,有两个必填项,一个是token,一个是referer
# https://tusiart.com/ 
# 按下F12 -> 应用 -> cookies -> https://tusiart.com -> ta_token_prod 的值 eyJhbGciOiJI....
  token:  #
    - eyJhbGciOiJI....
  model:  # 例如 https://tusiart.com/models/756170434619145524 # 取后面的数字
    - 708770380971558251
  note:
    - 备注
  referer:  # 你的用户首页! 点击右上角头像,复制链接 必填!!
    - https://tusiart.com/u/759763664390847335
seaart_setting:
# https://www.seaart.ai/ # 登录 按下F12 -> 应用 -> cookies -> https://www.seaart.ai -> T 的值 eyJhbGciOiJI....
  token:
    - You token here
  model:
    -
yunjie_setting:
# https://www.yunjie.art/ # 登录 按下F12 -> 应用 -> cookies -> https://www.yunjie.art -> rayvision_aigc_token 的值 rsat:9IS5EH6vY
  token:
    - You token here
  model:
    -
  note:
      - 移动

comfyui_setting:
  backend_url:
    - http://10.147.20.155:8188
  name:
    - default
  model:
    - models\\1053-S.ckpt
  default_workflows:
    - 'sdbase_txt2img'

novelai_setting:
  token:
    - eyJhbGciOi...
  model:
    - nai-diffusion-3

midjourney_setting:
  backend_url:
    - http://192.168.5.206:8081
  name:
    - default-mj-api
  auth_toekn:
    - null

server_settings:
  # 重点! 需要启动的后端, 有些后端你没配置的话依然启动会导致API报错(虽然API会将它锁定,之后请求就不会到它)
  # 怎么数呢? 比如在这个配置文件中 civitai 的第一个token是 0 a1111 的第一个后端是 1 , 第二个是2
  # 所以 enable_txt2img_backends: [0,1] 表示启动 civitai第一个token 和 a1111的第一个后端
  # 再比如 enable_txt2img_backends: [3, 4, 5] 表示启动 liblib 的所有两个token 和 tusiart的第一个token
  enable_txt2img_backends: [13]
  enable_img2img_backends: [1]
  enable_sdapi_backends: [1]
  redis_server:  # 必填 Redis服务器
    - 127.0.0.1  # 地址
    - 6379  # 端口
    - null  # redis 密码
    - 4 # redis数据库编号
  enable_nsfw_check:
    false  
  save_image:  # 是否直接保存图片
    true
  build_in_tagger:
    false
  llm_caption:  # 使用llm用自然语言打标
    enable:
      false
    clip:
      google/siglip-so400m-patch14-384
    llm:
      unsloth/Meta-Llama-3.1-8B-bnb-4bit
    image_adapter: # https://huggingface.co/spaces/fancyfeast/joy-caption-pre-alpha/tree/main/wpkklhc6
      image_adapter.pt
  build_in_photoai:
    exec_path:
      "C:\\Program Files\\Topaz Labs LLC\\Topaz Photo AI\\tpai.exe"
  proxy:
    "http://127.0.0.1:7890"

  start_gradio:
    False
  same_port_with_api:
    False
  prompt_audit:
    enable:
      False
    site:
      api.openai.com
    api_key:
      null
    http_proxy:
      null


backend_name_list:  # 不要动!
  - civitai
  - a1111
  - falai
  - replicate
  - liblibai
  - tusiart
  - seaart
  - yunjie
  - comfyui
  - novelai
  - midjourney