typetext
{
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": false,
"guidance_scale": 9.79,
"image": "https://replicate.delivery/pbxt/MNdSPBQVQa76Hbm4TECAvU0b7S728PQ2qEUWlnGAu3fIdGsF/lady_000_lemonOG.jpeg",
"lora_scale": 1.24,
"megapixels": "1",
"model": "dev",
"num_inference_steps": 50,
"num_outputs": 1,
"output_format": "png",
"output_quality": 51,
"prompt": "Bespoke: 24x24 grid, Yellow (#F8E701) background, Red/white bandana (190,103,98/245,198,136), Black pupils (8,12)/(13,12), Blue eyes, Black nose (11,13), Orange-red lips (246,155,150), Dark hair (42,50,73), Light skin (232,175,130), 14px width\n\nBespoke: Pixel art portrait matching this style exactly:\n- 24x24 grid, right-facing, unique background and accessories specific to 'lady_000_lemon.png'\n- Fixed features: Black pupils at (8,12) and (13,12), eyes at (9,12) and (14,12)\n- Black nose dot at (11,13)\n- Skin tone, hair, and props unique to the image\n- High contrast, clean edges, no anti-aliasing",
"prompt_strength": 0.54
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_RYu**********************************
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/model5today using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"codelace/model5today:17b14deddd13405cd71af4a065ad6061b1b667af578517853b98e42f8b0f5b58",
{
input: {
aspect_ratio: "1:1",
extra_lora_scale: 1,
go_fast: false,
guidance_scale: 9.79,
image: "https://replicate.delivery/pbxt/MNdSPBQVQa76Hbm4TECAvU0b7S728PQ2qEUWlnGAu3fIdGsF/lady_000_lemonOG.jpeg",
lora_scale: 1.24,
megapixels: "1",
model: "dev",
num_inference_steps: 50,
num_outputs: 1,
output_format: "png",
output_quality: 51,
prompt: "Bespoke: 24x24 grid, Yellow (#F8E701) background, Red/white bandana (190,103,98/245,198,136), Black pupils (8,12)/(13,12), Blue eyes, Black nose (11,13), Orange-red lips (246,155,150), Dark hair (42,50,73), Light skin (232,175,130), 14px width\n\nBespoke: Pixel art portrait matching this style exactly:\n- 24x24 grid, right-facing, unique background and accessories specific to 'lady_000_lemon.png'\n- Fixed features: Black pupils at (8,12) and (13,12), eyes at (9,12) and (14,12)\n- Black nose dot at (11,13)\n- Skin tone, hair, and props unique to the image\n- High contrast, clean edges, no anti-aliasing",
prompt_strength: 0.54
}
}
);
// 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_RYu**********************************
This is your API token. Keep it to yourself.
import replicate
Run codelace/model5today using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"codelace/model5today:17b14deddd13405cd71af4a065ad6061b1b667af578517853b98e42f8b0f5b58",
input={
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": False,
"guidance_scale": 9.79,
"image": "https://replicate.delivery/pbxt/MNdSPBQVQa76Hbm4TECAvU0b7S728PQ2qEUWlnGAu3fIdGsF/lady_000_lemonOG.jpeg",
"lora_scale": 1.24,
"megapixels": "1",
"model": "dev",
"num_inference_steps": 50,
"num_outputs": 1,
"output_format": "png",
"output_quality": 51,
"prompt": "Bespoke: 24x24 grid, Yellow (#F8E701) background, Red/white bandana (190,103,98/245,198,136), Black pupils (8,12)/(13,12), Blue eyes, Black nose (11,13), Orange-red lips (246,155,150), Dark hair (42,50,73), Light skin (232,175,130), 14px width\n\nBespoke: Pixel art portrait matching this style exactly:\n- 24x24 grid, right-facing, unique background and accessories specific to 'lady_000_lemon.png'\n- Fixed features: Black pupils at (8,12) and (13,12), eyes at (9,12) and (14,12)\n- Black nose dot at (11,13)\n- Skin tone, hair, and props unique to the image\n- High contrast, clean edges, no anti-aliasing",
"prompt_strength": 0.54
}
)
# 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_RYu**********************************
This is your API token. Keep it to yourself.
Run codelace/model5today 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/model5today:17b14deddd13405cd71af4a065ad6061b1b667af578517853b98e42f8b0f5b58",
"input": {
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": false,
"guidance_scale": 9.79,
"image": "https://replicate.delivery/pbxt/MNdSPBQVQa76Hbm4TECAvU0b7S728PQ2qEUWlnGAu3fIdGsF/lady_000_lemonOG.jpeg",
"lora_scale": 1.24,
"megapixels": "1",
"model": "dev",
"num_inference_steps": 50,
"num_outputs": 1,
"output_format": "png",
"output_quality": 51,
"prompt": "Bespoke: 24x24 grid, Yellow (#F8E701) background, Red/white bandana (190,103,98/245,198,136), Black pupils (8,12)/(13,12), Blue eyes, Black nose (11,13), Orange-red lips (246,155,150), Dark hair (42,50,73), Light skin (232,175,130), 14px width\\n\\nBespoke: Pixel art portrait matching this style exactly:\\n- 24x24 grid, right-facing, unique background and accessories specific to \'lady_000_lemon.png\'\\n- Fixed features: Black pupils at (8,12) and (13,12), eyes at (9,12) and (14,12)\\n- Black nose dot at (11,13)\\n- Skin tone, hair, and props unique to the image\\n- High contrast, clean edges, no anti-aliasing",
"prompt_strength": 0.54
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "7q8x7s8hm9rmc0cmkbe9pxbh98",
"model": "codelace/model5today",
"version": "17b14deddd13405cd71af4a065ad6061b1b667af578517853b98e42f8b0f5b58",
"input": {
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": false,
"guidance_scale": 9.79,
"image": "https://replicate.delivery/pbxt/MNdSPBQVQa76Hbm4TECAvU0b7S728PQ2qEUWlnGAu3fIdGsF/lady_000_lemonOG.jpeg",
"lora_scale": 1.24,
"megapixels": "1",
"model": "dev",
"num_inference_steps": 50,
"num_outputs": 1,
"output_format": "png",
"output_quality": 51,
"prompt": "Bespoke: 24x24 grid, Yellow (#F8E701) background, Red/white bandana (190,103,98/245,198,136), Black pupils (8,12)/(13,12), Blue eyes, Black nose (11,13), Orange-red lips (246,155,150), Dark hair (42,50,73), Light skin (232,175,130), 14px width\n\nBespoke: Pixel art portrait matching this style exactly:\n- 24x24 grid, right-facing, unique background and accessories specific to 'lady_000_lemon.png'\n- Fixed features: Black pupils at (8,12) and (13,12), eyes at (9,12) and (14,12)\n- Black nose dot at (11,13)\n- Skin tone, hair, and props unique to the image\n- High contrast, clean edges, no anti-aliasing",
"prompt_strength": 0.54
},
"logs": "2025-01-25 00:28:21.494 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys\n2025-01-25 00:28:21.494 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted\nApplying LoRA: 0%| | 0/304 [00:00<?, ?it/s]\nApplying LoRA: 90%|████████▉ | 273/304 [00:00<00:00, 2718.51it/s]\nApplying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2634.75it/s]\n2025-01-25 00:28:21.610 | SUCCESS | fp8.lora_loading:unload_loras:564 - LoRAs unloaded in 0.12s\nfree=29369233371136\nDownloading weights\n2025-01-25T00:28:21Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp_mj2s98y/weights url=https://replicate.delivery/xezq/f8eWi7DOKjjfLJeXQFfljBj8Me1FSgcCeKeCKggjCnZcDEeQoA/trained_model.tar\n2025-01-25T00:28:24Z | INFO | [ Complete ] dest=/tmp/tmp_mj2s98y/weights size=\"430 MB\" total_elapsed=2.488s url=https://replicate.delivery/xezq/f8eWi7DOKjjfLJeXQFfljBj8Me1FSgcCeKeCKggjCnZcDEeQoA/trained_model.tar\nDownloaded weights in 2.52s\n2025-01-25 00:28:24.130 | INFO | fp8.lora_loading:convert_lora_weights:498 - Loading LoRA weights for /src/weights-cache/8fa658be55bba7dd\n2025-01-25 00:28:24.239 | INFO | fp8.lora_loading:convert_lora_weights:519 - LoRA weights loaded\n2025-01-25 00:28:24.240 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys\n2025-01-25 00:28:24.240 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted\nApplying LoRA: 0%| | 0/304 [00:00<?, ?it/s]\nApplying LoRA: 90%|████████▉ | 273/304 [00:00<00:00, 2710.42it/s]\nApplying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2626.38it/s]\n2025-01-25 00:28:24.356 | SUCCESS | fp8.lora_loading:load_lora:539 - LoRA applied in 0.23s\nUsing seed: 47947\nImage detected - setting to img2img mode\nInput image size: 200x200\nInput image size set to: 192x192\n0it [00:00, ?it/s]\n4it [00:00, 30.62it/s]\n8it [00:00, 30.63it/s]\n12it [00:00, 30.62it/s]\n16it [00:00, 30.64it/s]\n20it [00:00, 30.65it/s]\n24it [00:00, 30.66it/s]\n27it [00:00, 30.65it/s]\nTotal safe images: 1 out of 1",
"output": [
"https://replicate.delivery/xezq/L9mgfrr0tJWzUqh8Ipg9jV2qBDxIy6I9BCEfOyV6KjfSR8QoA/out-0.png"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-01-25T00:28:21.282Z",
"started_at": "2025-01-25T00:28:21.288043Z",
"completed_at": "2025-01-25T00:28:25.537595Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/7q8x7s8hm9rmc0cmkbe9pxbh98/cancel",
"get": "https://api.replicate.com/v1/predictions/7q8x7s8hm9rmc0cmkbe9pxbh98",
"stream": "https://stream.replicate.com/v1/files/bsvm-vmhza55et5seq42ehgvtvp65536qdxiipuh73g3cfymhxmfo5bna",
"web": "https://replicate.com/p/7q8x7s8hm9rmc0cmkbe9pxbh98"
},
"metrics": {
"predict_time": 4.249552121,
"total_time": 4.255595
}
}
