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

API /images/generation #1944

Closed
amjiddader opened this issue May 12, 2024 · 1 comment
Closed

API /images/generation #1944

amjiddader opened this issue May 12, 2024 · 1 comment

Comments

@amjiddader
Copy link

amjiddader commented May 12, 2024

Add api endpoint for create.images so we can we use to create images.

##Problem
Currently it only works for /v1/chat ..
But if we have to generate images even from GUI i can't see any option to generate images.

##Solution

Create api endpoint similar to dall-e that can be used to generate images.
OpenAI: https://api.openai.com/v1/images/generations
So gpt4free : http://127.0.0.1:1337/v1/images/generation

Or by setting header option like method?

method=Chat
method=Images

Thanks.

@hlohaus
Copy link
Collaborator

hlohaus commented May 19, 2024

Hello @amjiddader,

I have added a image generation api endpoint to g4f.
You can now use them.

@hlohaus hlohaus closed this as completed May 23, 2024
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

3 participants
@hlohaus @amjiddader and others