flux_kontext_example_api.json 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. {
  2. "6": {
  3. "inputs": {
  4. "text": "the anime girl with massive fennec ears is wearing cargo pants while sitting on a log in the woods biting into a sandwitch beside a beautiful alpine lake",
  5. "clip": [
  6. "11",
  7. 0
  8. ]
  9. },
  10. "class_type": "CLIPTextEncode",
  11. "_meta": {
  12. "title": "CLIP Text Encode (Positive Prompt)"
  13. }
  14. },
  15. "8": {
  16. "inputs": {
  17. "samples": [
  18. "13",
  19. 0
  20. ],
  21. "vae": [
  22. "10",
  23. 0
  24. ]
  25. },
  26. "class_type": "VAEDecode",
  27. "_meta": {
  28. "title": "VAE Decode"
  29. }
  30. },
  31. "9": {
  32. "inputs": {
  33. "filename_prefix": "ComfyUI",
  34. "images": [
  35. "8",
  36. 0
  37. ]
  38. },
  39. "class_type": "SaveImage",
  40. "_meta": {
  41. "title": "Save Image"
  42. }
  43. },
  44. "10": {
  45. "inputs": {
  46. "vae_name": "ae.safetensors"
  47. },
  48. "class_type": "VAELoader",
  49. "_meta": {
  50. "title": "Load VAE"
  51. }
  52. },
  53. "11": {
  54. "inputs": {
  55. "clip_name1": "t5xxl_fp16.safetensors",
  56. "clip_name2": "clip_l.safetensors",
  57. "type": "flux",
  58. "device": "default"
  59. },
  60. "class_type": "DualCLIPLoader",
  61. "_meta": {
  62. "title": "DualCLIPLoader"
  63. }
  64. },
  65. "12": {
  66. "inputs": {
  67. "unet_name": "flux1-kontext-dev.safetensors",
  68. "weight_dtype": "default"
  69. },
  70. "class_type": "UNETLoader",
  71. "_meta": {
  72. "title": "Load Diffusion Model"
  73. }
  74. },
  75. "13": {
  76. "inputs": {
  77. "noise": [
  78. "25",
  79. 0
  80. ],
  81. "guider": [
  82. "22",
  83. 0
  84. ],
  85. "sampler": [
  86. "16",
  87. 0
  88. ],
  89. "sigmas": [
  90. "17",
  91. 0
  92. ],
  93. "latent_image": [
  94. "27",
  95. 0
  96. ]
  97. },
  98. "class_type": "SamplerCustomAdvanced",
  99. "_meta": {
  100. "title": "SamplerCustomAdvanced"
  101. }
  102. },
  103. "16": {
  104. "inputs": {
  105. "sampler_name": "euler"
  106. },
  107. "class_type": "KSamplerSelect",
  108. "_meta": {
  109. "title": "KSamplerSelect"
  110. }
  111. },
  112. "17": {
  113. "inputs": {
  114. "scheduler": "simple",
  115. "steps": 20,
  116. "denoise": 1.0,
  117. "model": [
  118. "30",
  119. 0
  120. ]
  121. },
  122. "class_type": "BasicScheduler",
  123. "_meta": {
  124. "title": "BasicScheduler"
  125. }
  126. },
  127. "22": {
  128. "inputs": {
  129. "model": [
  130. "30",
  131. 0
  132. ],
  133. "conditioning": [
  134. "42",
  135. 0
  136. ]
  137. },
  138. "class_type": "BasicGuider",
  139. "_meta": {
  140. "title": "BasicGuider"
  141. }
  142. },
  143. "25": {
  144. "inputs": {
  145. "noise_seed": 679064953796969
  146. },
  147. "class_type": "RandomNoise",
  148. "_meta": {
  149. "title": "RandomNoise"
  150. }
  151. },
  152. "26": {
  153. "inputs": {
  154. "guidance": 2.5,
  155. "conditioning": [
  156. "6",
  157. 0
  158. ]
  159. },
  160. "class_type": "FluxGuidance",
  161. "_meta": {
  162. "title": "FluxGuidance"
  163. }
  164. },
  165. "27": {
  166. "inputs": {
  167. "width": 1024,
  168. "height": 1024,
  169. "batch_size": 1
  170. },
  171. "class_type": "EmptySD3LatentImage",
  172. "_meta": {
  173. "title": "EmptySD3LatentImage"
  174. }
  175. },
  176. "30": {
  177. "inputs": {
  178. "max_shift": 1.15,
  179. "base_shift": 0.5,
  180. "width": 1024,
  181. "height": 1024,
  182. "model": [
  183. "12",
  184. 0
  185. ]
  186. },
  187. "class_type": "ModelSamplingFlux",
  188. "_meta": {
  189. "title": "ModelSamplingFlux"
  190. }
  191. },
  192. "39": {
  193. "inputs": {
  194. "pixels": [
  195. "40",
  196. 0
  197. ],
  198. "vae": [
  199. "10",
  200. 0
  201. ]
  202. },
  203. "class_type": "VAEEncode",
  204. "_meta": {
  205. "title": "VAE Encode"
  206. }
  207. },
  208. "40": {
  209. "inputs": {
  210. "image": [
  211. "41",
  212. 0
  213. ]
  214. },
  215. "class_type": "FluxKontextImageScale",
  216. "_meta": {
  217. "title": "FluxKontextImageScale"
  218. }
  219. },
  220. "41": {
  221. "inputs": {
  222. "image": "fennec_girl_sing.png"
  223. },
  224. "class_type": "LoadImage",
  225. "_meta": {
  226. "title": "Load Image"
  227. },
  228. "is_changed": [
  229. "8da6d35e6206689be1ac0d44e693a7eb13babffda52318c7a99b4f03cc8aa773"
  230. ]
  231. },
  232. "42": {
  233. "inputs": {
  234. "conditioning": [
  235. "26",
  236. 0
  237. ],
  238. "latent": [
  239. "39",
  240. 0
  241. ]
  242. },
  243. "class_type": "ReferenceLatent",
  244. "_meta": {
  245. "title": "ReferenceLatent"
  246. }
  247. }
  248. }