Skip to main content

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

  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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

invokeai_python-0.5.1.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

invokeai_python-0.5.1-py3-none-any.whl (33.3 kB view details)

Uploaded Python 3

File details

Details for the file invokeai_python-0.5.1.tar.gz.

File metadata

  • Download URL: invokeai_python-0.5.1.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for invokeai_python-0.5.1.tar.gz
Algorithm Hash digest
SHA256 1237af92529c94d6219f51ab31460182e636f223c6b4c972254c235f8bf937f1
MD5 63d025407d785a83294a1b73bbbb8092
BLAKE2b-256 a908e670bf15743964090bc7d249c14166e47f2689632c03c8cef4aa33d36257

See more details on using hashes here.

File details

Details for the file invokeai_python-0.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for invokeai_python-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3d4b8cb780f0851529d5d8445631ec1653d73b7bb0c8a145cc6fb70feffd03fb
MD5 ea64919928edd3ff9e7d0ceec3a69882
BLAKE2b-256 1588b7d1fb02f4b619716e40eeeed8f6853910487e8ef56d8090c9134239a847

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page