typetext
{
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": false,
"guidance_scale": 3,
"image": "https://replicate.delivery/pbxt/MzrmVJXJpzyZg2LlBSzbHnUqBMtHEZcQfRUVC9G8jFd5UZj3/lady_060_winehouseOG.png",
"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, purple solid background, black hair with red accessory positioned at x=15-17 y=7-9, black pupils fixed at (8,12) and (13,12), dark iris eyes at (9,12) and (14,12), black nose dot at (11,13), natural pink lips spanning x=10-13 y=15-16, light skin tone with jaw defined at y=19, subtle natural makeup aesthetic, subtle eyebrows at y=11, right-facing, pure pixel art with no gradients or anti-aliasing, clean color boundaries, all features contained within 22x22 center grid",
"prompt_strength": 0.8
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_MTP**********************************
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/forfluxcoed using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"codelace/forfluxcoed:d13dd8bf0d555b481c4329632c356c0c464a0a6effea93898384caacfacf1052",
{
input: {
aspect_ratio: "1:1",
extra_lora_scale: 1,
go_fast: false,
guidance_scale: 3,
image: "https://replicate.delivery/pbxt/MzrmVJXJpzyZg2LlBSzbHnUqBMtHEZcQfRUVC9G8jFd5UZj3/lady_060_winehouseOG.png",
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, purple solid background, black hair with red accessory positioned at x=15-17 y=7-9, black pupils fixed at (8,12) and (13,12), dark iris eyes at (9,12) and (14,12), black nose dot at (11,13), natural pink lips spanning x=10-13 y=15-16, light skin tone with jaw defined at y=19, subtle natural makeup aesthetic, subtle eyebrows at y=11, right-facing, pure pixel art with no gradients or anti-aliasing, clean color boundaries, all features contained within 22x22 center 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_MTP**********************************
This is your API token. Keep it to yourself.
import replicate
Run codelace/forfluxcoed using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"codelace/forfluxcoed:d13dd8bf0d555b481c4329632c356c0c464a0a6effea93898384caacfacf1052",
input={
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": False,
"guidance_scale": 3,
"image": "https://replicate.delivery/pbxt/MzrmVJXJpzyZg2LlBSzbHnUqBMtHEZcQfRUVC9G8jFd5UZj3/lady_060_winehouseOG.png",
"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, purple solid background, black hair with red accessory positioned at x=15-17 y=7-9, black pupils fixed at (8,12) and (13,12), dark iris eyes at (9,12) and (14,12), black nose dot at (11,13), natural pink lips spanning x=10-13 y=15-16, light skin tone with jaw defined at y=19, subtle natural makeup aesthetic, subtle eyebrows at y=11, right-facing, pure pixel art with no gradients or anti-aliasing, clean color boundaries, all features contained within 22x22 center 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_MTP**********************************
This is your API token. Keep it to yourself.
Run codelace/forfluxcoed 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/forfluxcoed:d13dd8bf0d555b481c4329632c356c0c464a0a6effea93898384caacfacf1052",
"input": {
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": false,
"guidance_scale": 3,
"image": "https://replicate.delivery/pbxt/MzrmVJXJpzyZg2LlBSzbHnUqBMtHEZcQfRUVC9G8jFd5UZj3/lady_060_winehouseOG.png",
"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, purple solid background, black hair with red accessory positioned at x=15-17 y=7-9, black pupils fixed at (8,12) and (13,12), dark iris eyes at (9,12) and (14,12), black nose dot at (11,13), natural pink lips spanning x=10-13 y=15-16, light skin tone with jaw defined at y=19, subtle natural makeup aesthetic, subtle eyebrows at y=11, right-facing, pure pixel art with no gradients or anti-aliasing, clean color boundaries, all features contained within 22x22 center 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": "qk309gxe95rma0cprp3ta19gw8",
"model": "codelace/forfluxcoed",
"version": "d13dd8bf0d555b481c4329632c356c0c464a0a6effea93898384caacfacf1052",
"input": {
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": false,
"guidance_scale": 3,
"image": "https://replicate.delivery/pbxt/MzrmVJXJpzyZg2LlBSzbHnUqBMtHEZcQfRUVC9G8jFd5UZj3/lady_060_winehouseOG.png",
"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, purple solid background, black hair with red accessory positioned at x=15-17 y=7-9, black pupils fixed at (8,12) and (13,12), dark iris eyes at (9,12) and (14,12), black nose dot at (11,13), natural pink lips spanning x=10-13 y=15-16, light skin tone with jaw defined at y=19, subtle natural makeup aesthetic, subtle eyebrows at y=11, right-facing, pure pixel art with no gradients or anti-aliasing, clean color boundaries, all features contained within 22x22 center grid",
"prompt_strength": 0.8
},
"logs": "Loaded LoRAs in 0.08s\nUsing seed: 49578\nPrompt: bespoke, 24x24 pixel grid portrait, symbolic punk style, purple solid background, black hair with red accessory positioned at x=15-17 y=7-9, black pupils fixed at (8,12) and (13,12), dark iris eyes at (9,12) and (14,12), black nose dot at (11,13), natural pink lips spanning x=10-13 y=15-16, light skin tone with jaw defined at y=19, subtle natural makeup aesthetic, subtle eyebrows at y=11, right-facing, pure pixel art with no gradients or anti-aliasing, clean color boundaries, all features contained within 22x22 center grid\nInput image size: 708x708\n[!] Resizing input image from 708x708 to 720x720\n[!] img2img mode\n 0%| | 0/23 [00:00<?, ?it/s]\n 9%|▊ | 2/23 [00:00<00:02, 9.99it/s]\n 13%|█▎ | 3/23 [00:00<00:02, 9.30it/s]\n 17%|█▋ | 4/23 [00:00<00:02, 8.97it/s]\n 22%|██▏ | 5/23 [00:00<00:02, 8.80it/s]\n 26%|██▌ | 6/23 [00:00<00:01, 8.70it/s]\n 30%|███ | 7/23 [00:00<00:01, 8.63it/s]\n 35%|███▍ | 8/23 [00:00<00:01, 8.59it/s]\n 39%|███▉ | 9/23 [00:01<00:01, 8.56it/s]\n 43%|████▎ | 10/23 [00:01<00:01, 8.54it/s]\n 48%|████▊ | 11/23 [00:01<00:01, 8.52it/s]\n 52%|█████▏ | 12/23 [00:01<00:01, 8.51it/s]\n 57%|█████▋ | 13/23 [00:01<00:01, 8.51it/s]\n 61%|██████ | 14/23 [00:01<00:01, 8.51it/s]\n 65%|██████▌ | 15/23 [00:01<00:00, 8.50it/s]\n 70%|██████▉ | 16/23 [00:01<00:00, 8.50it/s]\n 74%|███████▍ | 17/23 [00:01<00:00, 8.50it/s]\n 78%|███████▊ | 18/23 [00:02<00:00, 8.49it/s]\n 83%|████████▎ | 19/23 [00:02<00:00, 8.49it/s]\n 87%|████████▋ | 20/23 [00:02<00:00, 8.49it/s]\n 91%|█████████▏| 21/23 [00:02<00:00, 8.49it/s]\n 96%|█████████▌| 22/23 [00:02<00:00, 8.49it/s]\n100%|██████████| 23/23 [00:02<00:00, 8.50it/s]\n100%|██████████| 23/23 [00:02<00:00, 8.60it/s]\nTotal safe images: 1 out of 1",
"output": [
"https://replicate.delivery/xezq/tvIpE3L6arZ5ANyilfkCCAJXK1IR42eE6sFokexgfQ4kQ4vSB/out-0.webp"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-05-12T17:25:25.705Z",
"started_at": "2025-05-12T17:25:26.658771Z",
"completed_at": "2025-05-12T17:25:29.765514Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/qk309gxe95rma0cprp3ta19gw8/cancel",
"get": "https://api.replicate.com/v1/predictions/qk309gxe95rma0cprp3ta19gw8",
"stream": "https://stream.replicate.com/v1/files/bcwr-vt3wzku2ssxhmwks6vq5ojxx77xq7nttm4atgyesq4lggxf2v23q",
"web": "https://replicate.com/p/qk309gxe95rma0cprp3ta19gw8"
},
"metrics": {
"predict_time": 3.106743493,
"total_time": 4.060514
}
}
