xtekky / gpt4free

The official gpt4free repository | various collection of powerful language models
https://g4f.ai
GNU General Public License v3.0
62.44k stars 13.4k forks source link

Add more image gen providers: Meta Api #2323

Closed hqnicolas closed 2 weeks ago

hqnicolas commented 1 month ago

This implementation was on https://github.com/xtekky/gpt4free/issues/1556 : Add more image gen providers

Description

@Strvm, I would like to propose a change regarding the Meta API. Currently, there is an API that works with larger prompts compared to gpt4free, and it includes support for various file types such as images, Word documents, Excel files, and PDFs.

Proposed Solution

Could you implement the image generator from the following implementations?

Example Code

I see other users asking for image generators https://github.com/xtekky/gpt4free/issues/2316 Here is a sample code snippet for using the Meta AI API:

from meta_ai_api import MetaAI

ai = MetaAI(fb_email="your_fb_email", fb_password="your_fb_password")
resp = ai.prompt(message="Generate an image of a tech CEO")
print(resp)

Additionally, I would like to know if you can create a login prompt similar to what is done with Google Gemini, or if it's possible to capture cookies from .har files for authentication.

Additional Context

This change would enhance the functionality of the Meta API, allowing it to handle larger prompts and integrate better with various file types.


Thank you for considering this request!

github-actions[bot] commented 3 weeks ago

Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.

github-actions[bot] commented 2 weeks ago

Closing due to inactivity.