Imag / app.py
Baraaqasem's picture
Update app.py
976463a verified
raw
history blame
316 Bytes
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())