InvokeAI API package
Project description
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
- Ensure you have Python version 3.6 or higher installed.
- 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file invokeai_python-0.6.1.tar.gz.
File metadata
- Download URL: invokeai_python-0.6.1.tar.gz
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
554b301ac9aeb98dd4000fc92f097f29f0a8a497ea3b3fabbe1f852c016f700d
|
|
| MD5 |
9b44097959624b9c68262b7269f0fbcf
|
|
| BLAKE2b-256 |
f80c6dab1306161426c1d0b819b1ff666c1ad981ef9631ff5012c8bb595188fc
|
File details
Details for the file invokeai_python-0.6.1-py3-none-any.whl.
File metadata
- Download URL: invokeai_python-0.6.1-py3-none-any.whl
- Upload date:
- Size: 37.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bd0c190e89b2f02b3f7f1723a9ea1a24e28ae96c7fdd3edfec3d488c124485d
|
|
| MD5 |
37d66c881176f0ebe8716e497cd530d4
|
|
| BLAKE2b-256 |
bd1e8dc6d1afe9374f509c22281c791f2be50ab129450736eb26bf4594edf694
|