flux_controlnet_example_api.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. {
  2. "3": {
  3. "inputs": {
  4. "seed": 370146334065324,
  5. "steps": 20,
  6. "cfg": 1.0,
  7. "sampler_name": "euler",
  8. "scheduler": "normal",
  9. "denoise": 1.0,
  10. "model": [
  11. "20",
  12. 0
  13. ],
  14. "positive": [
  15. "14",
  16. 0
  17. ],
  18. "negative": [
  19. "14",
  20. 1
  21. ],
  22. "latent_image": [
  23. "28",
  24. 0
  25. ]
  26. },
  27. "class_type": "KSampler"
  28. },
  29. "7": {
  30. "inputs": {
  31. "text": "",
  32. "clip": [
  33. "20",
  34. 1
  35. ]
  36. },
  37. "class_type": "CLIPTextEncode"
  38. },
  39. "8": {
  40. "inputs": {
  41. "samples": [
  42. "3",
  43. 0
  44. ],
  45. "vae": [
  46. "20",
  47. 2
  48. ]
  49. },
  50. "class_type": "VAEDecode"
  51. },
  52. "9": {
  53. "inputs": {
  54. "filename_prefix": "ComfyUI",
  55. "images": [
  56. "8",
  57. 0
  58. ]
  59. },
  60. "class_type": "SaveImage"
  61. },
  62. "14": {
  63. "inputs": {
  64. "strength": 0.4,
  65. "start_percent": 0.0,
  66. "end_percent": 1.0,
  67. "positive": [
  68. "26",
  69. 0
  70. ],
  71. "negative": [
  72. "7",
  73. 0
  74. ],
  75. "control_net": [
  76. "15",
  77. 0
  78. ],
  79. "vae": [
  80. "20",
  81. 2
  82. ],
  83. "image": [
  84. "18",
  85. 0
  86. ]
  87. },
  88. "class_type": "ControlNetApplySD3"
  89. },
  90. "15": {
  91. "inputs": {
  92. "control_net_name": "instantx_flux_canny.safetensors"
  93. },
  94. "class_type": "ControlNetLoader"
  95. },
  96. "17": {
  97. "inputs": {
  98. "image": "girl_in_field.png",
  99. "upload": "image"
  100. },
  101. "class_type": "LoadImage",
  102. "is_changed": [
  103. "daed7b7d4d3073d29811146c509cd597c87311bd0e6a61cc23795c88c8e3af98"
  104. ]
  105. },
  106. "18": {
  107. "inputs": {
  108. "low_threshold": 0.2,
  109. "high_threshold": 0.3,
  110. "image": [
  111. "17",
  112. 0
  113. ]
  114. },
  115. "class_type": "Canny"
  116. },
  117. "19": {
  118. "inputs": {
  119. "images": [
  120. "18",
  121. 0
  122. ]
  123. },
  124. "class_type": "PreviewImage"
  125. },
  126. "20": {
  127. "inputs": {
  128. "ckpt_name": "flux1-dev-fp8.safetensors"
  129. },
  130. "class_type": "CheckpointLoaderSimple"
  131. },
  132. "23": {
  133. "inputs": {
  134. "text": "anime girl smiling with long hair standing in a football arena with a single massive sword hanging from her back",
  135. "clip": [
  136. "20",
  137. 1
  138. ]
  139. },
  140. "class_type": "CLIPTextEncode"
  141. },
  142. "26": {
  143. "inputs": {
  144. "guidance": 3.5,
  145. "conditioning": [
  146. "23",
  147. 0
  148. ]
  149. },
  150. "class_type": "FluxGuidance"
  151. },
  152. "28": {
  153. "inputs": {
  154. "width": 1024,
  155. "height": 1024,
  156. "batch_size": 1
  157. },
  158. "class_type": "EmptySD3LatentImage"
  159. }
  160. }