Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[image generation] -img does not work with -q #348

Closed
AymanLyesri opened this issue Mar 24, 2025 · 3 comments
Closed

[image generation] -img does not work with -q #348

AymanLyesri opened this issue Mar 24, 2025 · 3 comments

Comments

@AymanLyesri
Copy link

-img works without -q

Image

but when i use -q it dosent work for some reason, only returns text

Image


Also is there a way to specify the path of the image that get generated

use case

am building a gui for text and image generation, and i need to specify the path where the image should be stored

Image

version

Image

@aandrew-me
Copy link
Owner

I haven't added support for -q or for filepath for --img

To generate image with pollinations ai, you just have to make a GET request.
Why don't you directly implement that in your code?
What language are you writing in?

@AymanLyesri
Copy link
Author

AymanLyesri commented Mar 24, 2025

What language are you writing in?

In typescript (astal / gtk)

here is the code

Why don't you directly implement that in your code?

i like the convenience of simply getting the output of what i want without searching for an api that is free / reading the docs / maintaining the code

plus u already implemented image generation so why redo it

To generate image with pollinations ai, you just have to make a GET request.

i would do it, but each new API will require me to create its own GET request, which will defeat the point of multiple APIs

I haven't added support for -q or for filepath for --img

Please add the support for -q & filepath if u got the time, i really like this project, would be a shame to make things from scratch

@aandrew-me
Copy link
Owner

I agree. However the image generation api is very simple and using it directly will give you more control

Its just a GET request:

https://pollinations.ai/p/Cat%20playing%20chess?seed=38799846&enhance=true&nologo=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants