Nodes/ComfyUI-KIE-Nodes-Next/GPT Image-2 - Text to Image
ComfyUI Node

GPT Image-2 - Text to Image

GPT Image-2 - Text to Image OpenAPI Specification

By felipederosilva·Created 24 days ago·Updated about 11 hours ago· 0
GPT Image-2 - Text to Image
    • image
    • url
    • all_urls_json
    • task_id
    • raw_json
    • credits_consumed
    • credits_left
    ◄promptA cinematic night city poster with neon reflections on a rainy street.►
    ◄aspect_ratioauto►
    ◄resolution1K►
    ◄backgroundtransparent►
    ◄timeout_seconds1200►
    ◄callback_url►
    CategoryKIE Next/Image/OpenAI/GPT Image

    Inputs (6)

    NameTypeDefaultDescription
    promptSTRINGA cinematic night city poster with neon reflections on a rainy street.Text prompt. Required, maximum 20,000 characters.
    aspect_ratiooptCOMBOautoThe aspect ratio of the generated image is set to auto by default. Note: for 2K resolution, the following aspect ratios are not supported: 5:4, 4:5, 3:1, 1:3, and 9:21. for 4K resolution, the following aspect ratios are not supported: 3:1, 1:3, and 9:21.
    resolutionoptCOMBO1KImage resolution: Note: Images with a 1:1 aspect ratio cannot be converted to 4K images. Images with the aspect ratio set to "auto" or without a specified aspect ratio parameter will only be converted to 1K images; otherwise, the task will fail to create.
    backgroundoptCOMBOtransparentImage background Note: This parameter is only supported when the resolution is 1K.
    timeout_secondsoptINT120030–7200—
    callback_urloptSTRINGOptional KIE callback URL. Leave empty for normal ComfyUI use.

    Outputs (7)

    NameTypeDescription
    imageIMAGE—
    urlSTRING—
    all_urls_jsonSTRING—
    task_idSTRING—
    raw_jsonSTRING—
    credits_consumedFLOAT—
    credits_leftFLOAT—