summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/README.md b/README.md
index 6734fe02..dc7ef933 100644
--- a/README.md
+++ b/README.md
@@ -226,6 +226,23 @@ docker-compose down
## 💡 Usage
+### New Client with Image Generation
+```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.