image

The image function allows you to easily and quickly generate images using AI, with no restrictions! using Asynchronous.

Properties:

  • prompt — a description of what you want to see in the image, provided to the AI.

Example usage:

from litegpt import AsyncLiteGPT
import asyncio

async def main():
    
    # Initializing the LiteGPT object and creating an image
    bot = LiteGPT()
    print(await bot.image("make sexy cat girl in anime style"))
    
asyncio.run(main())

Thus, the image function provides a simple way to generate images based on your request, giving you complete freedom in creating visual content.

Last updated