summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/README.md b/README.md
index 6f6c9e52..c5b59f86 100644
--- a/README.md
+++ b/README.md
@@ -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.