Nodes/ComfyUI-KIE-Nodes-Next/Generate 4o Image
ComfyUI Node

Generate 4o Image

Generate 4o Image OpenAPI Specification

By felipederosilva·Created 24 days ago·Updated about 11 hours ago· 0
Generate 4o Image
    • image
    • url
    • all_urls_json
    • task_id
    • raw_json
    • credits_consumed
    • credits_left
    ◄promptA beautiful sunset over the mountains►
    ◄size1:1►
    ◄filesUrl[ "https://example.com/image.png" ]►
    ◄fileUrlhttps://example.com/image.png►
    ◄timeout_seconds1200►
    ◄callback_url►
    CategoryKIE Next/Image/OpenAI/4o Image

    Inputs (6)

    NameTypeDefaultDescription
    promptSTRINGA beautiful sunset over the mountains(Optional) Text prompt that conveys the creative idea you want the 4o model to render. Required if neither `filesUrl` nor `fileUrl` is supplied. At least one of `prompt` or `filesUrl` must be provided.
    sizeCOMBO1:1(Required) Aspect ratio of the generated image. Must be one of the listed values.
    filesUrloptSTRING[ "https://example.com/image.png" ](Optional) Up to 5 publicly reachable image URLs to serve as reference or source material. Use this when you want to edit or build upon an existing picture. If you don’t have reliable hosting, upload your images first via our File Upload API quick‑start: https://docs.kie.ai/file-upload-api/quickstart. Supported formats: .jfif, .pjpeg, .jpeg, .pjp, .jpg, .png, .webp. At least one of `prompt` or `filesUrl` must be provided.
    fileUrloptSTRINGhttps://example.com/image.png(Optional, Deprecated) File URL, such as an image URL. If fileUrl is provided, 4o image may create based on this image. This parameter will be deprecated in the future, please use filesUrl instead.
    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—