typetext
{
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": false,
"guidance_scale": 3,
"image": "https://replicate.delivery/pbxt/MzbWqvohHLswKGnSf4zSFP4uv1NewJttr3OKJstWf2bEY9JH/lady_000_lemonOG.jpeg",
"lora_scale": 1,
"megapixels": "1",
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "webp",
"output_quality": 80,
"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",
"prompt_strength": 0.8
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_W0S**********************************
This is your API token. Keep it to yourself.
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: {
aspect_ratio: "1:1",
extra_lora_scale: 1,
go_fast: false,
guidance_scale: 3,
image: "https://replicate.delivery/pbxt/MzbWqvohHLswKGnSf4zSFP4uv1NewJttr3OKJstWf2bEY9JH/lady_000_lemonOG.jpeg",
lora_scale: 1,
megapixels: "1",
model: "dev",
num_inference_steps: 28,
num_outputs: 1,
output_format: "webp",
output_quality: 80,
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",
prompt_strength: 0.8
}
}
);
// 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=r8_W0S**********************************
This is your API token. Keep it to yourself.
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={
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": False,
"guidance_scale": 3,
"image": "https://replicate.delivery/pbxt/MzbWqvohHLswKGnSf4zSFP4uv1NewJttr3OKJstWf2bEY9JH/lady_000_lemonOG.jpeg",
"lora_scale": 1,
"megapixels": "1",
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "webp",
"output_quality": 80,
"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",
"prompt_strength": 0.8
}
)
# To access the file URL:
print(output[0].url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output[0].read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_W0S**********************************
This is your API token. Keep it to yourself.
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": {
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": false,
"guidance_scale": 3,
"image": "https://replicate.delivery/pbxt/MzbWqvohHLswKGnSf4zSFP4uv1NewJttr3OKJstWf2bEY9JH/lady_000_lemonOG.jpeg",
"lora_scale": 1,
"megapixels": "1",
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "webp",
"output_quality": 80,
"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",
"prompt_strength": 0.8
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "aegp0h0qv9rme0cpr6x99eh6s4",
"model": "codelace/forfluxmay89",
"version": "9f1e0b8e3b35738985882b9de780bf76ef8c6154f2dbd085f102463fcf9c51af",
"input": {
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": false,
"guidance_scale": 3,
"image": "https://replicate.delivery/pbxt/MzbWqvohHLswKGnSf4zSFP4uv1NewJttr3OKJstWf2bEY9JH/lady_000_lemonOG.jpeg",
"lora_scale": 1,
"megapixels": "1",
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "webp",
"output_quality": 80,
"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",
"prompt_strength": 0.8
},
"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",
"output": [
"https://replicate.delivery/xezq/0NYoXyzfBWxhEy1Divq2Ju0OT6JxMfZEKkCN4Qe91fLf5zdlC/out-0.webp"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-05-11T23:42:00.666Z",
"started_at": "2025-05-11T23:42:01.601452Z",
"completed_at": "2025-05-11T23:42:07.141903Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/aegp0h0qv9rme0cpr6x99eh6s4/cancel",
"get": "https://api.replicate.com/v1/predictions/aegp0h0qv9rme0cpr6x99eh6s4",
"stream": "https://stream.replicate.com/v1/files/bcwr-3ywvxe3gebpfktcrttr56ye3mmnfdlutafd5utxxqtxd5yujjyyq",
"web": "https://replicate.com/p/aegp0h0qv9rme0cpr6x99eh6s4"
},
"metrics": {
"predict_time": 5.540450959,
"total_time": 6.475903
}
}
