Wiro - Flux 2 Flex icon

Wiro - Flux 2 Flex

Optimize latency and detail with Flux 2 Flex. An API that lets developers tune parameter steps

Wiro - Flux 2 Flex

AI-generated

Overview

This node integrates with the Wiro Flux 2 Flex API to generate images based on a text prompt and an optional input image URL. It allows users to customize parameters such as image dimensions, safety tolerance, seed for reproducibility, guidance scale, number of inference steps, and output format. The node is useful for developers and creators who want to generate or transform images with fine-tuned control over the generation process, for example, creating detailed artwork or enhancing images with specific styles.

Use Case Examples

  1. Generating an image from a text prompt with default settings.
  2. Transforming an input image by specifying width, height, and safety tolerance.
  3. Producing consistent image outputs by setting a specific seed value.

Properties

Name Meaning
Input Image URL URL of the input image to be used for generation or transformation. Accepts up to 8 images.
Prompt Text prompt describing the desired image content. Required for image generation.
Width Width of the output image in pixels. Must be a multiple of 16. Set to 0 or omit to match input image width. Valid range is 64 to 2048 pixels.
Height Height of the output image in pixels. Must be a multiple of 16. Set to 0 or omit to match input image height. Valid range is 64 to 2048 pixels.
Safety Tolerance Tolerance level for input and output content moderation. Ranges from 0 (most strict) to 5 (least strict).
Seed Seed value for reproducible image generation results. Using the same seed produces consistent outputs.
Guidance Guidance scale controlling how closely the output follows the prompt. Minimum is 1.5, maximum is 10, default is 4.5. Higher values mean closer adherence to the prompt.
Steps Number of inference steps for image generation. Maximum is 50, default is 50. Higher values produce more detail but slower processing.
Output Format Format of the generated image output. Options are JPEG or PNG.

Output

JSON

  • taskid - Identifier of the image generation task.
  • url - URL of the generated image if the task completed successfully.
  • status - Status of the image generation task, e.g., 'completed' or 'failed'.

Dependencies

  • Wiro API key and secret credentials for authentication.

Troubleshooting

  • If the API response does not include a valid task ID or socket access token, the node throws an error indicating an invalid response from the Wiro API. Verify API credentials and request parameters.
  • Task status codes '-1', '-2', '-3', or '-4' indicate failure states. Check the prompt and input image for compliance with content guidelines and retry with adjusted parameters.
  • Ensure width and height values are multiples of 16 and within the accepted range (64 to 2048) to avoid API errors.

Discussion