Skip to content

VeyDlin/invokeai-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

invokeai-python

invokeai-python is a powerful library designed for working with graphs, models, and API integrations, aimed at simplifying the creation and management of tasks related to generative AI.

Installation

  1. Ensure you have Python version 3.6 or higher installed.
  2. Install the library using pip:
pip install invokeai-python

Usage

Importing Key Components

from invoke import Invoke
from invoke.api import BaseModels, ModelType

Example 1: Querying Models

import asyncio
from invoke import Invoke
from invoke.api import BaseModels, ModelType

async def main():
    invoke = Invoke()

    print("Waiting for invoke...")
    version = await invoke.wait_invoke()
    print(f"Version: {version}")

    models = await invoke.models.list(base_models=[BaseModels.SDXL], model_type=[ModelType.Main])
    print(models)

if __name__ == "__main__":
    asyncio.run(main())

Contributing

If you would like to contribute, feel free to submit an issue or a pull request on the GitHub repository.

License

MIT License

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages