from VisionCraftAPI import VisionCraftClientasyncdefmain():# Set your API key api_key ="YOUR_API_KEY"# Create a VisionCraftClient instance client =VisionCraftClient(api_key=api_key)# Generate an image with the SDXL model and sampler image =await client.generate_xl_image( prompt='A beautiful sunset', model='sdxl-base', sampler='euler', )# Save image to the current directorywithopen("generated_image.png", "wb")as f: f.write(image)if__name__=='__main__':import asyncio asyncio.run(main())