dribnet
/
pixray-api
Uses pixray with raw settings.
Run dribnet/pixray-api with an API
Use one of our client libraries to get started quickly.
Set the REPLICATE_API_TOKEN
environment variable
export REPLICATE_API_TOKEN=<paste-your-token-here>
Learn more about authentication
Install Replicate’s Node.js client library
npm install replicate
Run dribnet/pixray-api using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
import Replicate from "replicate";
const replicate = new Replicate();
const input = {
settings: "# find palettes at https://lospec.com/palette-list\npalette: https://lospec.com/palette-list/cl8uds-32x.png\nfilters: lookup\nprompts: \"robots at sunset\"\nquality: better\nseed: god_mode\n"
};
for await (const event of replicate.stream("dribnet/pixray-api:01c87158fa585a5924b31332dcffbb0e488466a5ca556ebdb2da130ccf3ddeb8", { input })) {
process.stdout.write(`${event}
`)
//=> {"file":"https://replicate.delivery/mgxm/908a2b66-f39c-45b5-80e0-2c3bd1eb89e6/tempfile.png"}
};
process.stdout.write("\n");