jimeng Node icon

jimeng Node

jimeng Node

Actions9

图片生成 → 图生图

AI-generated

Overview

This node performs image-to-image generation using the Jimeng API. It takes input images and a prompt to generate new images based on the provided parameters such as model version, aspect ratio, resolution, and sample strength. It is useful for creative applications like generating variations of existing images or enhancing images with specific styles or themes.

Use Case Examples

  1. Generating a new image of a 3D boy skateboarding in a park based on an input image.
  2. Creating variations of an existing image using different Jimeng models and aspect ratios.

Properties

Name Meaning
提示词 The text prompt describing the desired image content, e.g., 'A 3D boy skateboarding in a park'.
图片地址 Comma-separated URLs of input images to be used for image-to-image generation.
模型 The Jimeng model version to use for image generation.
宽高比 The aspect ratio of the generated image.
分辨率 The resolution of the generated image.
参考强度 Sample strength controlling how much the input image influences the output (0-100).
是否等待图片返回 Boolean flag indicating whether to wait for the image generation to complete and return the image.
sessionid Optional session ID to override the default credential session ID.

Output

JSON

  • imageUrl - URL of the generated image.
  • status - Status of the image generation request.
  • error - Error message if the image generation failed.

Dependencies

  • Jimeng API key credential required for authentication.

Troubleshooting

  • Common errors include invalid or missing API credentials, incorrect image URLs, or unsupported model versions. Ensure all required parameters are correctly set.
  • If the node throws an error about unimplemented method, verify that the resource and operation names are correctly specified and supported by the node.
  • Timeouts or failures in image generation may occur if the '是否等待图片返回' flag is set to true but the API response is delayed; consider setting it to false for asynchronous processing.

Discussion