ComfyUI Node
Grok Imagine Image 2.0 Segment Edit
Grok Imagine Image 2.0 Segment Edit OpenAPI Specification
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)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | Change the background to a sunset beach while preserving the subject. | Text prompt describing the desired image. |
| task_id | STRING | task_grok_imagine_1234567890 | The 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_indexsopt | STRING | [ 1, 2 ] | Please enter the index numbers of the segment array items you want to use. |
| timeout_secondsopt | INT | 120030–7200 | — |
| callback_urlopt | STRING | Optional KIE callback URL. Leave empty for normal ComfyUI use. |
Outputs (7)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| url | STRING | — |
| all_urls_json | STRING | — |
| task_id | STRING | — |
| raw_json | STRING | — |
| credits_consumed | FLOAT | — |
| credits_left | FLOAT | — |