Nodes/ComfyUI-KIE-Nodes-Next/Grok Imagine Image 2.0 Segment Edit
ComfyUI Node

Grok Imagine Image 2.0 Segment Edit

Grok Imagine Image 2.0 Segment Edit OpenAPI Specification

By felipederosilva·Created 24 days ago·Updated about 11 hours ago· 0
Grok Imagine Image 2.0 Segment Edit
    • image
    • url
    • all_urls_json
    • task_id
    • raw_json
    • credits_consumed
    • credits_left
    ◄promptChange the background to a sunset beach while preserving the subject.►
    ◄task_idtask_grok_imagine_1234567890►
    ◄mask_indexs[ 1, 2 ]►
    ◄timeout_seconds1200►
    ◄callback_url►
    CategoryKIE Next/Image/xAI/Grok Imagine

    Inputs (5)

    NameTypeDefaultDescription
    promptSTRINGChange the background to a sunset beach while preserving the subject.Text prompt describing the desired image.
    task_idSTRINGtask_grok_imagine_1234567890The source task ID to use for image editing(This can be a task ID generated by the `grok-imagine-image-2-0/text-to-image` model, or a task ID generated by the `grok-imagine-image-2-0/segment-map` model by passing an `image_url`.).
    mask_indexsoptSTRING[ 1, 2 ]Please enter the index numbers of the segment array items you want to use.
    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—