Skip to content

Commit 1cbea9d

Browse files
committed
fixes stable-diffusion-xl-base-1.0
1 parent 8dd5684 commit 1cbea9d

File tree

1 file changed

+77
-1
lines changed

1 file changed

+77
-1
lines changed

src/content/workers-ai-models/stable-diffusion-xl-base-1.0.json

Lines changed: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,81 @@
2323
"value": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/LICENSE.md"
2424
}
2525
],
26-
"schema": null
26+
"schema": {
27+
"input": {
28+
"type": "object",
29+
"properties": {
30+
"prompt": {
31+
"type": "string",
32+
"minLength": 1,
33+
"description": "A text description of the image you want to generate"
34+
},
35+
"negative_prompt": {
36+
"type": "string",
37+
"description": "Text describing elements to avoid in the generated image"
38+
},
39+
"height": {
40+
"type": "integer",
41+
"minimum": 256,
42+
"maximum": 2048,
43+
"description": "The height of the generated image in pixels"
44+
},
45+
"width": {
46+
"type": "integer",
47+
"minimum": 256,
48+
"maximum": 2048,
49+
"description": "The width of the generated image in pixels"
50+
},
51+
"image": {
52+
"type": "array",
53+
"description": "For use with img2img tasks. An array of integers that represent the image data constrained to 8-bit unsigned integer values",
54+
"items": {
55+
"type": "number",
56+
"description": "A value between 0 and 255"
57+
}
58+
},
59+
"image_b64": {
60+
"type": "string",
61+
"description": "For use with img2img tasks. A base64-encoded string of the input image"
62+
},
63+
"mask": {
64+
"type": "array",
65+
"description": "An array representing An array of integers that represent mask image data for inpainting constrained to 8-bit unsigned integer values",
66+
"items": {
67+
"type": "number",
68+
"description": "A value between 0 and 255"
69+
}
70+
},
71+
"num_steps": {
72+
"type": "integer",
73+
"default": 20,
74+
"maximum": 20,
75+
"description": "The number of diffusion steps; higher values can improve quality but take longer"
76+
},
77+
"strength": {
78+
"type": "number",
79+
"default": 1,
80+
"description": "A value between 0 and 1 indicating how strongly to apply the transformation during img2img tasks; lower values make the output closer to the input image"
81+
},
82+
"guidance": {
83+
"type": "number",
84+
"default": 7.5,
85+
"description": "Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt"
86+
},
87+
"seed": {
88+
"type": "integer",
89+
"description": "Random seed for reproducibility of the image generation"
90+
}
91+
},
92+
"required": [
93+
"prompt"
94+
]
95+
},
96+
"output": {
97+
"type": "string",
98+
"contentType": "image/png",
99+
"format": "binary",
100+
"description": "The generated image in PNG format"
101+
}
102+
}
27103
}

0 commit comments

Comments
 (0)