Skip to content

Commit 1c7b8c3

Browse files
authored
update Flux schema (cloudflare#17153)
1 parent 15a07f1 commit 1c7b8c3

File tree

1 file changed

+40
-90
lines changed

1 file changed

+40
-90
lines changed
Lines changed: 40 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,42 @@
11
{
2-
"id": "9e087485-23dc-47fa-997d-f5bfafc0c7cc",
3-
"source": 1,
4-
"name": "@cf/black-forest-labs/flux-1-schnell",
5-
"description": "FLUX.1 [schnell] is a 12 billion parameter rectified flow transformer capable of generating images from text descriptions. ",
6-
"task": {
7-
"id": "3d6e1f35-341b-4915-a6c8-9a7142a9033a",
8-
"name": "Text-to-Image",
9-
"description": "Generates images from input text. These models can be used to generate and modify images based on text prompts."
10-
},
11-
"tags": [],
12-
"properties": [{ "property_id": "beta", "value": "true" }],
13-
"schema": {
14-
"input": {
15-
"type": "object",
16-
"properties": {
17-
"prompt": {
18-
"type": "string",
19-
"minLength": 1,
20-
"description": "A text description of the image you want to generate"
21-
},
22-
"negative_prompt": {
23-
"type": "string",
24-
"description": "Text describing elements to avoid in the generated image"
25-
},
26-
"height": {
27-
"type": "integer",
28-
"minimum": 256,
29-
"maximum": 2048,
30-
"description": "The height of the generated image in pixels"
31-
},
32-
"width": {
33-
"type": "integer",
34-
"minimum": 256,
35-
"maximum": 2048,
36-
"description": "The width of the generated image in pixels"
37-
},
38-
"image": {
39-
"type": "array",
40-
"description": "For use with img2img tasks. An array of integers that represent the image data constrained to 8-bit unsigned integer values",
41-
"items": {
42-
"type": "number",
43-
"description": "A value between 0 and 255"
44-
}
45-
},
46-
"image_b64": {
47-
"type": "string",
48-
"description": "For use with img2img tasks. A base64-encoded string of the input image"
49-
},
50-
"mask": {
51-
"type": "array",
52-
"description": "An array representing An array of integers that represent mask image data for inpainting constrained to 8-bit unsigned integer values",
53-
"items": {
54-
"type": "number",
55-
"description": "A value between 0 and 255"
56-
}
57-
},
58-
"num_steps": {
59-
"type": "integer",
60-
"default": 20,
61-
"maximum": 20,
62-
"description": "The number of diffusion steps; higher values can improve quality but take longer"
63-
},
64-
"strength": {
65-
"type": "number",
66-
"default": 1,
67-
"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"
68-
},
69-
"guidance": {
70-
"type": "number",
71-
"default": 7.5,
72-
"description": "Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt"
73-
},
74-
"seed": {
75-
"type": "integer",
76-
"description": "Random seed for reproducibility of the image generation"
77-
}
78-
},
79-
"required": ["prompt"]
80-
},
81-
"output": {
82-
"type": "object",
83-
"contentType": "application/json",
84-
"properties": {
85-
"image": {
86-
"type": "string",
87-
"description": "The generated image in Base64 format."
88-
}
89-
}
90-
}
91-
}
2+
"id": "9e087485-23dc-47fa-997d-f5bfafc0c7cc",
3+
"source": 1,
4+
"name": "@cf/black-forest-labs/flux-1-schnell",
5+
"description": "FLUX.1 [schnell] is a 12 billion parameter rectified flow transformer capable of generating images from text descriptions. ",
6+
"task": {
7+
"id": "3d6e1f35-341b-4915-a6c8-9a7142a9033a",
8+
"name": "Text-to-Image",
9+
"description": "Generates images from input text. These models can be used to generate and modify images based on text prompts."
10+
},
11+
"tags": [],
12+
"properties": [{ "property_id": "beta", "value": "true" }],
13+
"schema": {
14+
"input": {
15+
"type": "object",
16+
"properties": {
17+
"prompt": {
18+
"type": "string",
19+
"minLength": 1,
20+
"description": "A text description of the image you want to generate"
21+
},
22+
"num_steps": {
23+
"type": "integer",
24+
"default": 4,
25+
"maximum": 8,
26+
"description": "The number of diffusion steps; higher values can improve quality but take longer"
27+
}
28+
},
29+
"required": ["prompt"]
30+
},
31+
"output": {
32+
"type": "object",
33+
"contentType": "application/json",
34+
"properties": {
35+
"image": {
36+
"type": "string",
37+
"description": "The generated image in Base64 format."
38+
}
39+
}
40+
}
41+
}
9242
}

0 commit comments

Comments
 (0)