POST
/
prompt
curl --request POST \
  --url http://localhost:8188/prompt \
  --header 'Content-Type: application/json' \
  --data '{
  "client_id": "456488948754864847984646",
  "prompt": {
    "3": {
      "inputs": {
        "seed": 55129609097542,
        "steps": 12,
        "cfg": 8,
        "sampler_name": "dpmpp_sde",
        "scheduler": "normal",
        "denoise": 1,
        "model": [
          "25",
          0
        ],
        "positive": [
          "6",
          0
        ],
        "negative": [
          "7",
          0
        ],
        "latent_image": [
          "5",
          0
        ]
      },
      "class_type": "KSampler"
    },
    "5": {
      "inputs": {
        "width": 512,
        "height": 512,
        "batch_size": 1
      },
      "class_type": "EmptyLatentImage"
    },
    "6": {
      "inputs": {
        "text": "masterpiece HDR victorian portrait painting of woman, blonde hair, mountain nature, blue sky\n",
        "clip": [
          "25",
          1
        ]
      },
      "class_type": "CLIPTextEncode"
    },
    "7": {
      "inputs": {
        "text": "bad hands, text, watermark\n",
        "clip": [
          "25",
          1
        ]
      },
      "class_type": "CLIPTextEncode"
    },
    "8": {
      "inputs": {
        "samples": [
          "3",
          0
        ],
        "vae": [
          "25",
          2
        ]
      },
      "class_type": "VAEDecode"
    },
    "9": {
      "inputs": {
        "filename_prefix": "ComfyUI",
        "images": [
          "8",
          0
        ]
      },
      "class_type": "SaveImage"
    },
    "11": {
      "inputs": {
        "seed": 811699257308810,
        "steps": 14,
        "cfg": 8,
        "sampler_name": "uni_pc_bh2",
        "scheduler": "normal",
        "denoise": 0.5,
        "model": [
          "25",
          0
        ],
        "positive": [
          "6",
          0
        ],
        "negative": [
          "7",
          0
        ],
        "latent_image": [
          "20",
          0
        ]
      },
      "class_type": "KSampler"
    },
    "12": {
      "inputs": {
        "filename_prefix": "ComfyUI",
        "images": [
          "13",
          0
        ]
      },
      "class_type": "SaveImage"
    },
    "13": {
      "inputs": {
        "samples": [
          "11",
          0
        ],
        "vae": [
          "25",
          2
        ]
      },
      "class_type": "VAEDecode"
    },
    "20": {
      "inputs": {
        "pixels": [
          "24",
          0
        ],
        "vae": [
          "25",
          2
        ]
      },
      "class_type": "VAEEncode"
    },
    "21": {
      "inputs": {
        "samples": [
          "3",
          0
        ],
        "vae": [
          "25",
          2
        ]
      },
      "class_type": "VAEDecode"
    },
    "22": {
      "inputs": {
        "upscale_model": [
          "23",
          0
        ],
        "image": [
          "21",
          0
        ]
      },
      "class_type": "ImageUpscaleWithModel"
    },
    "23": {
      "inputs": {
        "model_name": "RealESRGAN_x4plus.pth"
      },
      "class_type": "UpscaleModelLoader"
    },
    "24": {
      "inputs": {
        "upscale_method": "bilinear",
        "width": 1024,
        "height": 1024,
        "crop": "disabled",
        "image": [
          "22",
          0
        ]
      },
      "class_type": "ImageScale"
    },
    "25": {
      "inputs": {
        "ckpt_name": "babes_20.safetensors"
      },
      "class_type": "CheckpointLoaderSimple"
    }
  }
}'
{
  "prompt_id": "<string>",
  "number": 123,
  "node_errors": {}
}

Body

application/json · object

Response

200 - application/json

The response is of type object.