Image References

When crafting prompts for image generation, you can enhance the AI's understanding by including references to existing images. Here's a guide on how to incorporate image URLs and their associated weights into your prompts:

Adding Image URLs to Your Prompt

To reference an image in your prompt, simply include the direct URL to the image. The AI will use the image as a visual reference to better understand the kind of image you want to generate.

Assigning Weights to Images

You can assign a "weight" to each image URL, which indicates the influence that the reference image should have on the generated image. The weight is a number between 0.0 (no influence) and 1.0 (maximum influence).

Syntax for Weights

To assign a weight to an image URL, use the following format:

[weight]::[URL]

Replace [weight] with the desired influence level (e.g., 0.5) and [URL] with the actual image URL.

Example

0.75::https://example.com/image1.jpg

This means the image at https://example.com/image1.jpg should have a strong influence on the generation, with a weight of 0.75.

Default Weight

If you don't specify a weight, the system will assign a default weight of 0.5, giving the image a moderate level of influence.

Validating URLs and Weights

The system will validate the URLs and weights you provide:

  • It ensures that the URLs point to actual images.

  • It adjusts any specified weights to fall within the valid range of 0.0 to 1.0.

Special Considerations

  • If a weight of 1.0 is given, it will try to re-create the image directly with the used model's style.

Example Prompt with Multiple Images

0.5::https://example.com/image1.jpg 0.8::https://example.com/image2.jpg

In this example, image1.jpg has a moderate influence, while image2.jpg has a strong influence on the generated image.

Last updated