Skip to content

Simple frontend for accessing image and speech generation APIs.

License

Notifications You must be signed in to change notification settings

manuelkonrad/promptart

Repository files navigation

promptart

CI - Tests CI - Bandit CI - Build

License - MIT PyPI - Version PyPI - Python Version Python Project Management - Hatch Linting - Ruff Types - Mypy Security - Bandit

Simple frontend for accessing image and speech generation APIs. Made with Streamlit.

Currently supported:

  • Black Forest Labs Flux (Text-to-Image, In/Out-Painting, Image Variation, Structural Conditioning)
  • OpenAI Dall-E (Text-to-Image)
  • OpenAI TTS (Text-to-Speech)

Table of Contents

Getting Started

Install promptart using pipx:

pipx install promptart

Alternatively, install promptart using pip:

pip install --user promptart

Start the application:

promptart

Additional streamlit arguments can be appended. For example, to change the server port:

promptart --server.port 5000

The API keys for authentication can be provided in the following ways:

  1. Setting environment variables BFL_API_KEY / OPENAI_API_KEY.
  2. Creating ~/promptart/config.json populated with parameters bfl_api_key / openai_api_key.
  3. If 1. and 2. are not set, the API keys can also be provided in the frontend.

Further information about creating API keys:

To limit access to the frontend, a simple password check can be enabled by setting the environment variable PROMPTART_PASSWORD.

License

promptart is distributed under the terms of the MIT license.

About

Simple frontend for accessing image and speech generation APIs.

Resources

License

Stars

Watchers

Forks

Languages