-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimage_providers.yaml.example
More file actions
82 lines (74 loc) · 2.29 KB
/
image_providers.yaml.example
File metadata and controls
82 lines (74 loc) · 2.29 KB
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
# 图片生成服务配置(示例)
# 说明:
# 1) 复制为 image_providers.yaml 后使用,或直接通过 Web 设置页维护。
# 2) 模型 API Key 建议直接写在此文件(或通过设置页维护),不建议放在 .env。
# 3) active_provider 必须是 providers 中存在的名称。
active_provider: default
providers:
default:
type: image_api
api_key: "your-image-api-key"
base_url: https://api.openai.com
model: gpt-image-1
endpoint_type: /v1/images/generations
default_aspect_ratio: "3:4"
image_size: 1024x1024
use_size_tag: false
high_concurrency: false
short_prompt: false
# gemini:
# type: google_genai
# api_key: "your-gemini-image-api-key"
# model: imagen-3.0-generate-002
# high_concurrency: false
# dashscope:
# type: dashscope
# api_key: "your-dashscope-api-key"
# base_url: https://dashscope.aliyuncs.com
# model: qwen-image-max
# size: 1104*1472
# use_style_transfer: false
# edit_model: wan2.5-i2i-preview
# negative_prompt: ""
# prompt_extend: true
# watermark: false
# n: 1
# max_retries: 2
# modelscope:
# type: modelscope
# api_key: "your-modelscope-api-key"
# base_url: https://api-inference.modelscope.cn
# model: Tongyi-MAI/Z-Image-Turbo
# polling_interval: 2
# timeout: 120
# high_concurrency: false
# replicate:
# type: replicate
# api_key: "your-replicate-api-key"
# model: prunaai/z-image-turbo:0870559624690b3709350177b9d521d84e54d297026d725358b8f73193429e91
# default_aspect_ratio: "3:4"
# steps: 9
# guidance: 0.0
# high_concurrency: false
# siliconflow:
# type: image_api
# api_key: "your-siliconflow-api-key"
# base_url: https://api.siliconflow.cn
# model: Qwen/Qwen-Image
# text_model: Qwen/Qwen-Image
# edit_model: Qwen/Qwen-Image-Edit
# endpoint_type: /v1/images/generations
# size: 1024x1024
# default_aspect_ratio: "3:4"
# use_size_tag: false
# high_concurrency: false
# short_prompt: false
# jimeng:
# type: image_api
# api_key: "your-jimeng-api-key"
# base_url: https://api.jimeng.jianying.com
# model: jimeng-2.0-pro
# endpoint_type: /v1/chat/completions
# use_size_tag: false
# high_concurrency: false
# short_prompt: true