Pixel Prompt is an app made with React Native built using Expo. It uses the Hugging Face Inference API along with diffusion models to create images. An explanation of some of the componenets and deployment architectures: Cloud Bound. This version is paired with AWS Lambda and uses the HuggingFace JS libraries to call the huggingface infernence api. It can be built and deployed for web, android, or ios.
To preview the application visit the hosted version on AWS here.
Before running this application locally, ensure that you have the following dependencies installed on your machine:
- Node
- npm (Node Package Manager)
To install and run the application:
git clone https://github.com/hatmanstack/pixel-prompt-js.git
cd pixel-prompt-js
npm install -g yarn
yarn
npm start
The app will be running locally at http://localhost:19006. For different environments you can switch the port at startup, use 'npm start -- --port 8080' to start Metro(Expo's Compiler) on port 8080.
Include an .env file for your Hugging Face API Key.
AWS_REGION=<region>
AWS_ID=<ID>
AWS_SECRET=<secret>
AWS_LAMBDA_FUNCTION=<name>
S3_BUCKET=<name>
All the models are opensource and available on HuggingFace.
- Random
- stabilityai/stable-diffusion-3.5
- OpenAI Dalle3
- AWS Nova Canvas
- black-forest-labs/FLUX
- stabilityai/stable-diffusion-xl-base-1.0
- nerijs/pixel-art-xl
- Fictiverse/Voxel_XL_Lora
- gsdf/Counterfeit-V2.5
- llama-3.1-8b-instant
- Gustavosta/MagicPrompt-Stable-Diffusion
This project is licensed under the MIT License.
This application is built with Expo, a powerful framework for building cross-platform mobile applications. Learn more about Expo:
This application is using the HuggingFace Inference API, provided by HuggingFace