JS CLI Wrapper (local)
Run the Lilypad CLI wrapper locally
The Lilypad CLI wrapper can run locally to create an API endpoint for running jobs on the Lilypad network. This gives developers full control to build a decentralized system using Lilypad. Github repo can be found here.
Build a front end or AI agent workflow that uses this API endpoint for running jobs!
Note: This is a beta tool and would mostly be expected to run locally. When implementing this tool, note that the POST request includes the user's Web3 private key. Stay tuned for a hosted API from Lilypad that will supplement this local CLI Wrapper.
Getting Started
Prerequisites
Installing and Setting up Lilypad Binary
Build the Lilypad binary:
Usage
Run node src/index.js
to create a local endpoint using the js wrapper with either src/run.js
or src/stream.js
, then send a post request containing json with your funded WEB3_PRIVATE_KEY
key set, see the quick start for more on getting started
In inputs
, each input must be preceeded by the -i
flag, including tunables. For example: "inputs": "-i Prompt='an astronaut floating against a white background' -i Steps=50"
The endpoint can then be tested using curl
Last updated