This repository contains practical Node.js examples for common Floyo API workflows.
- Clone the repository:
git clone git@github.com:FloyoAI/floyo-api-nodejs-demo.git - Install dependencies:
npm install - Create your local environment file:
cp .env.example .env - Open
.envand setAPI_KEYwith your Floyo API key. - Run any example from the
examples/directory.
- Run a basic workflow:
node examples/run-workflow- Run the default ComfyUI workflow. - Download a file:
node examples/download-file- Download a file from the CDN to local storage. - Upload a file:
node examples/upload-file- Upload a file to your team'sinputsfolder. - Upload and run with input:
node examples/upload-and-run-with-input- Upload an input file and use it in an image-to-image workflow run.