AI Image Generation using pollinations.ai API

A Free Ai Image Generator Extension without Api

The AI Image Generator extension empowers you to seamlessly create AI-generated images leveraging the capabilities of pollination.ai. Whether you're a developer, designer, or hobbyist, this extension offers a simple yet powerful tool to bring AI creativity into your projects.

Parameters

  1. Prompt:
  • The prompt parameter serves as a guiding concept or idea for the AI to interpret and visualize. It defines the content or theme of the generated image.
  1. Width:
  • The width parameter specifies the horizontal dimension of the desired image in pixels. It determines the width of the output image generated by the AI.
  1. Height:
  • The height parameter specifies the vertical dimension of the desired image in pixels. It determines the height of the output image generated by the AI.
  1. Seed:
  • The seed parameter allows you to influence the randomness of the image generation process. By providing a seed value, you can control the variations in the generated images.

How it Works:

  1. Input Parameters:
    Begin by defining a prompt, serving as the guiding concept or idea for the AI to interpret and visualize. Specify the width and height dimensions for the desired image, ensuring they fall within the optimal range of 16 to 2048 pixels. Optionally, you can provide a seed value to influence the generation process and produce varied results.

  2. Generation Process:
    Upon receiving the input parameters, the extension orchestrates the construction of a URL tailored to initiate the AI image generation process. This URL encapsulates the prompt, dimensions, and seed value (if provided), forming the basis for the AI's creative endeavor.

  3. Image Retrieval:
    With the generated URL in hand, the extension proceeds to retrieve the AI-generated image from pollination.ai. This image is meticulously crafted based on the input prompt, embodying the essence of the conceptualization infused into the generation process.

  4. Display or Integration:
    Once the AI-generated image is obtained, you have the flexibility to integrate it seamlessly within your application or project ecosystem. Whether showcasing artistic creations, enhancing user experiences, or facilitating creative exploration, the generated image serves as a dynamic asset enriching your endeavors.

  5. Flexibility and Customization:
    Explore a myriad of creative possibilities with the AI Image Generator extension. Experiment with different prompts, dimensions, and seeds to generate a diverse range of AI images tailored to your specific requirements. The extension's versatile parameters empower you to unleash your imagination and creativity.

  6. Real-time Image Generation:
    Experience real-time AI image generation capabilities, allowing you to generate AI images on-the-fly within your applications. This seamless integration enables dynamic content creation, opening up endless possibilities for interactive user experiences and visual storytelling.

  7. Cross-platform Compatibility:
    The AI Image Generator extension seamlessly integrates with the App Inventor platform, offering cross-platform compatibility across Android devices. Whether you're building mobile apps, educational projects, or interactive prototypes, the extension provides a unified solution for AI image generation across diverse environments.

Extension url:
AiImageGenerator.aix (5.4 KB)

Sample App Blocks:

Unleash Creativity:
Transform your concepts into visual manifestations with the AI Image Generator extension. Empower your projects with the boundless creativity of artificial intelligence, revolutionizing the way you engage with images in your applications and beyond.

8 Likes

Hey it is extension powered model by pollinations.ai
https://pollinations.ai/ visit to get more info

some images have advertising for the site:

and other not.

hello Everyone we have two options either cut 45 pixels from downside or Mark will come In large width images Please select What to @Ramon @Patryk_F and all Please Suggest what should i do

Hey @Ramon, this isn't my advertisement, but rather a mention of Pollinations.ai. While it's not an official extension, I believe it's quite beneficial. What do you think?

The icon looks good now. I have no more comments.

Thanks for the extension.

You can get the absence of a logo in the image by using the nologo=true parameter. Here the same functionality without extension.


I tried it...but it doesn't work for all the images.

Yes @Ramon Is true it doesn't work in all Big Width images

You can Cut 45 pixels from downside Of image Should I add It in extension

I tried many times and did not get the logo with nologo=true.

https://image.pollinations.ai/prompt/Murray%3A%20Freight%20rail%20common%20good%20for%20commonwealth?width=1024&height=1024&seed=42&nologo=True see here

https://image.pollinations.ai/prompt/Murray%3A%20Freight%20rail%20common%20good%20for%20commonwealth?width=1024&height=1024&seed=42&nologo=true

true, no True

1 Like
String url = BASE_URL + prompt + "?width=" + width + "&height=" + height + "&seed=" + seed + "&nologo=" + String.valueOf(nologo).toLowerCase();
    return url;

"Error : Width and height must be between 16 and 2048" - Are these restrictions imposed by pollinations? Because I don't get an error directly from the address when I request a larger image. After testing, I can say that the images have a maximum size of 1024x1024. If we specify a larger size, a 1024x1024 image will be returned anyway. So I think the extension should return an image despite specifying a larger image.

1 Like

No Max is 2048 and 2048 and You can use WEB VIEW FOR Better understanding It Gives Upscale Image of it. Use Like Width 1024 and Height 2048 to understand how it works

https://image.pollinations.ai/prompt/Murray%3A%20Freight%20rail%20common%20good%20for%20commonwealth?width=1024&height=2048&seed=40&nologo=true

Download this image and check its size.

1 Like

with true, for images 1024x1024 I get images with logo...

carne (1024×1024) (pollinations.ai)

using the web component and "nologo=yes/no" it seems to work even for images 1024x1024..

1 Like

And here are the higher sizes. The image is still obtained but with the same size as before. Therefore, the extension should not return an error. It should return the image as returned by the api. The lack of an image is misleading.

https://image.pollinations.ai/prompt/Murray%3A%20Freight%20rail%20common%20good%20for%20commonwealth?width=2000&height=4000&seed=42&nologo=true

I think they have a broken API. Just specify a larger size and it returns 1024x1024 without a logo. :grin:

https://image.pollinations.ai/prompt/carne?width=1500&height=1500&seed=53&nologo=true

Yes, with the yes/no parameter it works... strange, because from their examples it should be false/true...

2 Likes