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.6.2.tar.gz (19.5 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.6.2-py3-none-any.whl (37.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: invokeai_python-0.6.2.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

Hashes for invokeai_python-0.6.2.tar.gz
Algorithm Hash digest
SHA256 3e83619b6492b14e2d9784828585128519062be7b6d0ee9ea19998af4a5ca6f3
MD5 36ec04faf17b4db492ce798c944b31ef
BLAKE2b-256 464077d83137b32350ffda19bca2ac793503ef1490603ae17c687dcedf52a048

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for invokeai_python-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b5fba0a568adc610e5831c2d2c07eec8975e36d1a4a4d664063cb86b179f7618
MD5 974a3b423246834646f8452ebe3486f0
BLAKE2b-256 a3923feccf10c56c496e4d1119fa9a960eaa293ef1b1ebec32c241530e9f6ef3

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