Readme
This model doesn't have a readme.
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run codelace/forfluxmay89 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"codelace/forfluxmay89:9f1e0b8e3b35738985882b9de780bf76ef8c6154f2dbd085f102463fcf9c51af",
{
input: {
image: "https://replicate.delivery/pbxt/MzbWqvohHLswKGnSf4zSFP4uv1NewJttr3OKJstWf2bEY9JH/lady_000_lemonOG.jpeg",
model: "dev",
prompt: "bespoke, 24x24 pixel grid portrait, symbolic punk style, vibrant yellow background, dark brown hair with red/white bandana at y=3–6, pupils at (8,12) and (13,12), blue irises at (9,12) and (14,12), black nose dot at (11,13), orange-red lips at x=10–13 y=15–16 with upward smile curve, light skin tone, subtle brows at y=11, clean pixel zones, right-facing, all elements within 22x22 grid",
go_fast: false,
lora_scale: 1,
megapixels: "1",
num_outputs: 1,
aspect_ratio: "1:1",
output_format: "webp",
guidance_scale: 3,
output_quality: 80,
prompt_strength: 0.8,
extra_lora_scale: 1,
num_inference_steps: 28
}
}
);
// To access the file URL:
console.log(output[0].url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run codelace/forfluxmay89 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"codelace/forfluxmay89:9f1e0b8e3b35738985882b9de780bf76ef8c6154f2dbd085f102463fcf9c51af",
input={
"image": "https://replicate.delivery/pbxt/MzbWqvohHLswKGnSf4zSFP4uv1NewJttr3OKJstWf2bEY9JH/lady_000_lemonOG.jpeg",
"model": "dev",
"prompt": "bespoke, 24x24 pixel grid portrait, symbolic punk style, vibrant yellow background, dark brown hair with red/white bandana at y=3–6, pupils at (8,12) and (13,12), blue irises at (9,12) and (14,12), black nose dot at (11,13), orange-red lips at x=10–13 y=15–16 with upward smile curve, light skin tone, subtle brows at y=11, clean pixel zones, right-facing, all elements within 22x22 grid",
"go_fast": False,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 28
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run codelace/forfluxmay89 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "codelace/forfluxmay89:9f1e0b8e3b35738985882b9de780bf76ef8c6154f2dbd085f102463fcf9c51af",
"input": {
"image": "https://replicate.delivery/pbxt/MzbWqvohHLswKGnSf4zSFP4uv1NewJttr3OKJstWf2bEY9JH/lady_000_lemonOG.jpeg",
"model": "dev",
"prompt": "bespoke, 24x24 pixel grid portrait, symbolic punk style, vibrant yellow background, dark brown hair with red/white bandana at y=3–6, pupils at (8,12) and (13,12), blue irises at (9,12) and (14,12), black nose dot at (11,13), orange-red lips at x=10–13 y=15–16 with upward smile curve, light skin tone, subtle brows at y=11, clean pixel zones, right-facing, all elements within 22x22 grid",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 28
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/codelace/forfluxmay89@sha256:9f1e0b8e3b35738985882b9de780bf76ef8c6154f2dbd085f102463fcf9c51af \
-i 'image="https://replicate.delivery/pbxt/MzbWqvohHLswKGnSf4zSFP4uv1NewJttr3OKJstWf2bEY9JH/lady_000_lemonOG.jpeg"' \
-i 'model="dev"' \
-i 'prompt="bespoke, 24x24 pixel grid portrait, symbolic punk style, vibrant yellow background, dark brown hair with red/white bandana at y=3–6, pupils at (8,12) and (13,12), blue irises at (9,12) and (14,12), black nose dot at (11,13), orange-red lips at x=10–13 y=15–16 with upward smile curve, light skin tone, subtle brows at y=11, clean pixel zones, right-facing, all elements within 22x22 grid"' \
-i 'go_fast=false' \
-i 'lora_scale=1' \
-i 'megapixels="1"' \
-i 'num_outputs=1' \
-i 'aspect_ratio="1:1"' \
-i 'output_format="webp"' \
-i 'guidance_scale=3' \
-i 'output_quality=80' \
-i 'prompt_strength=0.8' \
-i 'extra_lora_scale=1' \
-i 'num_inference_steps=28'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/codelace/forfluxmay89@sha256:9f1e0b8e3b35738985882b9de780bf76ef8c6154f2dbd085f102463fcf9c51af
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/pbxt/MzbWqvohHLswKGnSf4zSFP4uv1NewJttr3OKJstWf2bEY9JH/lady_000_lemonOG.jpeg", "model": "dev", "prompt": "bespoke, 24x24 pixel grid portrait, symbolic punk style, vibrant yellow background, dark brown hair with red/white bandana at y=3–6, pupils at (8,12) and (13,12), blue irises at (9,12) and (14,12), black nose dot at (11,13), orange-red lips at x=10–13 y=15–16 with upward smile curve, light skin tone, subtle brows at y=11, clean pixel zones, right-facing, all elements within 22x22 grid", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
{
"completed_at": "2025-05-11T23:42:07.141903Z",
"created_at": "2025-05-11T23:42:00.666000Z",
"data_removed": false,
"error": null,
"id": "aegp0h0qv9rme0cpr6x99eh6s4",
"input": {
"image": "https://replicate.delivery/pbxt/MzbWqvohHLswKGnSf4zSFP4uv1NewJttr3OKJstWf2bEY9JH/lady_000_lemonOG.jpeg",
"model": "dev",
"prompt": "bespoke, 24x24 pixel grid portrait, symbolic punk style, vibrant yellow background, dark brown hair with red/white bandana at y=3–6, pupils at (8,12) and (13,12), blue irises at (9,12) and (14,12), black nose dot at (11,13), orange-red lips at x=10–13 y=15–16 with upward smile curve, light skin tone, subtle brows at y=11, clean pixel zones, right-facing, all elements within 22x22 grid",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 28
},
"logs": "free=28486071349248\nDownloading weights\n2025-05-11T23:42:01Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpq97n04ag/weights url=https://replicate.delivery/xezq/XgK1XtanQGrXLJHl350uvep1UEm5DMNmWsAct0jHaq8vU0VKA/trained_model.tar\n2025-05-11T23:42:01Z | INFO | [ Cache Service ] enabled=true scheme=http target=hermes.services.svc.cluster.local\n2025-05-11T23:42:04Z | INFO | [ Complete ] dest=/tmp/tmpq97n04ag/weights size=\"688 MB\" total_elapsed=3.018s url=https://replicate.delivery/xezq/XgK1XtanQGrXLJHl350uvep1UEm5DMNmWsAct0jHaq8vU0VKA/trained_model.tar\nDownloaded weights in 3.06s\nLoaded LoRAs in 3.74s\nUsing seed: 6267\nPrompt: bespoke, 24x24 pixel grid portrait, symbolic punk style, vibrant yellow background, dark brown hair with red/white bandana at y=3–6, pupils at (8,12) and (13,12), blue irises at (9,12) and (14,12), black nose dot at (11,13), orange-red lips at x=10–13 y=15–16 with upward smile curve, light skin tone, subtle brows at y=11, clean pixel zones, right-facing, all elements within 22x22 grid\nInput image size: 200x200\n[!] Resizing input image from 200x200 to 208x208\n[!] img2img mode\n 0%| | 0/23 [00:00<?, ?it/s]\n 9%|▊ | 2/23 [00:00<00:01, 15.48it/s]\n 17%|█▋ | 4/23 [00:00<00:01, 15.69it/s]\n 26%|██▌ | 6/23 [00:00<00:01, 15.76it/s]\n 35%|███▍ | 8/23 [00:00<00:00, 15.81it/s]\n 43%|████▎ | 10/23 [00:00<00:00, 15.78it/s]\n 52%|█████▏ | 12/23 [00:00<00:00, 15.83it/s]\n 61%|██████ | 14/23 [00:00<00:00, 15.87it/s]\n 70%|██████▉ | 16/23 [00:01<00:00, 15.90it/s]\n 78%|███████▊ | 18/23 [00:01<00:00, 15.92it/s]\n 87%|████████▋ | 20/23 [00:01<00:00, 15.93it/s]\n 96%|█████████▌| 22/23 [00:01<00:00, 15.95it/s]\n100%|██████████| 23/23 [00:01<00:00, 15.87it/s]\nTotal safe images: 1 out of 1",
"metrics": {
"predict_time": 5.540450959,
"total_time": 6.475903
},
"output": [
"https://replicate.delivery/xezq/0NYoXyzfBWxhEy1Divq2Ju0OT6JxMfZEKkCN4Qe91fLf5zdlC/out-0.webp"
],
"started_at": "2025-05-11T23:42:01.601452Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/bcwr-3ywvxe3gebpfktcrttr56ye3mmnfdlutafd5utxxqtxd5yujjyyq",
"get": "https://api.replicate.com/v1/predictions/aegp0h0qv9rme0cpr6x99eh6s4",
"cancel": "https://api.replicate.com/v1/predictions/aegp0h0qv9rme0cpr6x99eh6s4/cancel"
},
"version": "9f1e0b8e3b35738985882b9de780bf76ef8c6154f2dbd085f102463fcf9c51af"
}
free=28486071349248
Downloading weights
2025-05-11T23:42:01Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpq97n04ag/weights url=https://replicate.delivery/xezq/XgK1XtanQGrXLJHl350uvep1UEm5DMNmWsAct0jHaq8vU0VKA/trained_model.tar
2025-05-11T23:42:01Z | INFO | [ Cache Service ] enabled=true scheme=http target=hermes.services.svc.cluster.local
2025-05-11T23:42:04Z | INFO | [ Complete ] dest=/tmp/tmpq97n04ag/weights size="688 MB" total_elapsed=3.018s url=https://replicate.delivery/xezq/XgK1XtanQGrXLJHl350uvep1UEm5DMNmWsAct0jHaq8vU0VKA/trained_model.tar
Downloaded weights in 3.06s
Loaded LoRAs in 3.74s
Using seed: 6267
Prompt: bespoke, 24x24 pixel grid portrait, symbolic punk style, vibrant yellow background, dark brown hair with red/white bandana at y=3–6, pupils at (8,12) and (13,12), blue irises at (9,12) and (14,12), black nose dot at (11,13), orange-red lips at x=10–13 y=15–16 with upward smile curve, light skin tone, subtle brows at y=11, clean pixel zones, right-facing, all elements within 22x22 grid
Input image size: 200x200
[!] Resizing input image from 200x200 to 208x208
[!] img2img mode
0%| | 0/23 [00:00<?, ?it/s]
9%|▊ | 2/23 [00:00<00:01, 15.48it/s]
17%|█▋ | 4/23 [00:00<00:01, 15.69it/s]
26%|██▌ | 6/23 [00:00<00:01, 15.76it/s]
35%|███▍ | 8/23 [00:00<00:00, 15.81it/s]
43%|████▎ | 10/23 [00:00<00:00, 15.78it/s]
52%|█████▏ | 12/23 [00:00<00:00, 15.83it/s]
61%|██████ | 14/23 [00:00<00:00, 15.87it/s]
70%|██████▉ | 16/23 [00:01<00:00, 15.90it/s]
78%|███████▊ | 18/23 [00:01<00:00, 15.92it/s]
87%|████████▋ | 20/23 [00:01<00:00, 15.93it/s]
96%|█████████▌| 22/23 [00:01<00:00, 15.95it/s]
100%|██████████| 23/23 [00:01<00:00, 15.87it/s]
Total safe images: 1 out of 1
This model runs on Nvidia H100 GPU hardware. We don't yet have enough runs of this model to provide performance information.
This model doesn't have a readme.
This model is warm. You'll get a fast response if the model is warm and already running, and a slower response if the model is cold and starting up.
This model runs on H100 hardware which costs $0.001525 per second. View more.
Choose a file from your machine
Hint: you can also drag files onto the input
Choose a file from your machine
Hint: you can also drag files onto the input
free=28486071349248
Downloading weights
2025-05-11T23:42:01Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpq97n04ag/weights url=https://replicate.delivery/xezq/XgK1XtanQGrXLJHl350uvep1UEm5DMNmWsAct0jHaq8vU0VKA/trained_model.tar
2025-05-11T23:42:01Z | INFO | [ Cache Service ] enabled=true scheme=http target=hermes.services.svc.cluster.local
2025-05-11T23:42:04Z | INFO | [ Complete ] dest=/tmp/tmpq97n04ag/weights size="688 MB" total_elapsed=3.018s url=https://replicate.delivery/xezq/XgK1XtanQGrXLJHl350uvep1UEm5DMNmWsAct0jHaq8vU0VKA/trained_model.tar
Downloaded weights in 3.06s
Loaded LoRAs in 3.74s
Using seed: 6267
Prompt: bespoke, 24x24 pixel grid portrait, symbolic punk style, vibrant yellow background, dark brown hair with red/white bandana at y=3–6, pupils at (8,12) and (13,12), blue irises at (9,12) and (14,12), black nose dot at (11,13), orange-red lips at x=10–13 y=15–16 with upward smile curve, light skin tone, subtle brows at y=11, clean pixel zones, right-facing, all elements within 22x22 grid
Input image size: 200x200
[!] Resizing input image from 200x200 to 208x208
[!] img2img mode
0%| | 0/23 [00:00<?, ?it/s]
9%|▊ | 2/23 [00:00<00:01, 15.48it/s]
17%|█▋ | 4/23 [00:00<00:01, 15.69it/s]
26%|██▌ | 6/23 [00:00<00:01, 15.76it/s]
35%|███▍ | 8/23 [00:00<00:00, 15.81it/s]
43%|████▎ | 10/23 [00:00<00:00, 15.78it/s]
52%|█████▏ | 12/23 [00:00<00:00, 15.83it/s]
61%|██████ | 14/23 [00:00<00:00, 15.87it/s]
70%|██████▉ | 16/23 [00:01<00:00, 15.90it/s]
78%|███████▊ | 18/23 [00:01<00:00, 15.92it/s]
87%|████████▋ | 20/23 [00:01<00:00, 15.93it/s]
96%|█████████▌| 22/23 [00:01<00:00, 15.95it/s]
100%|██████████| 23/23 [00:01<00:00, 15.87it/s]
Total safe images: 1 out of 1