xtekky / gpt4free

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

Image generation failed anytime #1990

Closed RobertAzovski closed 2 months ago

RobertAzovski commented 2 months ago

`from g4f.client import Client

client = Client() response = client.images.generate( model="gemini", prompt="a white siamese cat", ) image_url = response.data[0].url`

I used this sample from Quick Start here but it fails with error g4f.errors.MissingAuthError: Missing "__Secure-1PSID" cookie.

I also tried all other models to generate any image and it failed everytime.

RobertAzovski commented 2 months ago

So I guess it is not free by the way ? I still need Gemini account ?

hlohaus commented 2 months ago

Hey, have you tried the You, DeepInfra, and Replicate providers? Or you need an account with Microsoft, Google, or OpenAI to use it.

RobertAzovski commented 2 months ago

Thanks @hlohaus You is worked for me.