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.
- Ensure you have Python version 3.6 or higher installed.
- Install the library using pip:
pip install invokeai-pythonfrominvokeimportInvokefrominvoke.apiimportBaseModels, ModelTypeimportasynciofrominvokeimportInvokefrominvoke.apiimportBaseModels, ModelTypeasyncdefmain():
invoke=Invoke()
print("Waiting for invoke...")
version=awaitinvoke.wait_invoke()
print(f"Version: {version}")
models=awaitinvoke.models.list(base_models=[BaseModels.SDXL], model_type=[ModelType.Main])
print(models)
if__name__=="__main__":
asyncio.run(main())If you would like to contribute, feel free to submit an issue or a pull request on the GitHub repository.
MIT License