ComfyUI Node
Generate 4o Image
Generate 4o Image OpenAPI Specification
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)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | A 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. |
| size | COMBO | 1:1 | (Required) Aspect ratio of the generated image. Must be one of the listed values. |
| filesUrlopt | STRING | [ "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. |
| fileUrlopt | STRING | https://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_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 | — |