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.3.0.tar.gz (17.9 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.3.0-py3-none-any.whl (32.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for invokeai_python-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ac71f9e5de5f609fa1711ef491bc902a66142254e9a403e944783c842c2b94e9
MD5 900138690d1cce81855a03aa56f27a24
BLAKE2b-256 2462ab39eb9b217d9242ecb2c10a508fb2fe357e763c18543d51822b948e2163

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for invokeai_python-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 387da1b31ce0f19a4d745b9a8311b38295f325ec4b1e1f7ed58ff8465710fdb5
MD5 4d1b352bc19f9bf08dcf27925c621394
BLAKE2b-256 79e154dd7c6a4f57a0a9a2d73ce530edbff5e2b3eb8cb672a7ee512511b675ea

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