diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-02-12 12:08:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 12:08:26 +0100 |
commit | dd5478636460560bd6538c6b08a81c92d61b6595 (patch) | |
tree | 128a4681385f6f1adc8bee8cf745affc0103d204 /README.md | |
parent | Merge pull request #1577 from hlohaus/openai (diff) | |
parent | Add variant example (diff) | |
download | gpt4free-dd5478636460560bd6538c6b08a81c92d61b6595.tar gpt4free-dd5478636460560bd6538c6b08a81c92d61b6595.tar.gz gpt4free-dd5478636460560bd6538c6b08a81c92d61b6595.tar.bz2 gpt4free-dd5478636460560bd6538c6b08a81c92d61b6595.tar.lz gpt4free-dd5478636460560bd6538c6b08a81c92d61b6595.tar.xz gpt4free-dd5478636460560bd6538c6b08a81c92d61b6595.tar.zst gpt4free-dd5478636460560bd6538c6b08a81c92d61b6595.zip |
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -226,6 +226,26 @@ docker-compose down ## 💡 Usage +### New Client with Image Generation + +#### not jet released + +```python +from g4f.client import Client + +client = Client() +response = client.images.generate( + model="gemini", + prompt="a white siamese cat", + ... +) +image_url = response.data[0].url +``` +Result: +[![Image with cat](/docs/cat.jpeg)](/docs/client.md) + +[to the client API](/docs/client.md) + ### The Web UI To start the web interface, type the following codes in the command line. |