Spaces:
Runtime error
Runtime error
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()) |