gpt4free icon indicating copy to clipboard operation
gpt4free copied to clipboard

API /images/generation

Open amjiddader opened this issue 9 months ago • 1 comments

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.

amjiddader avatar May 12 '24 12:05 amjiddader

Hello @amjiddader,

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

hlohaus avatar May 19 '24 01:05 hlohaus