File size: 316 Bytes
976463a
 
e9e3ea9
976463a
 
 
 
 
 
 
 
 
 
e9e3ea9
976463a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import asyncio
from g4f.client import Client

async def main():
    client = Client()
    
    response = await client.images.async_generate(
        prompt="a white siamese cat",
        model="flux"
    )
    
    image_url = response.data[0].url
    print(f"Generated image URL: {image_url}")

asyncio.run(main())