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";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run jesuserondon/tokjer1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"jesuserondon/tokjer1:b69848ea7d661c6ccd8117d06b27e35f3867d61f1db5cf0f2ab4c969b306e1be",
{
input: {
image: "https://replicate.delivery/pbxt/MbRLQRBHo5pMKaKVnuY3pQIi0qRzMhickRmKRUSPfEyd8y81/ComfyUI_00004_.png",
model: "dev",
prompt: "Photorealistic portrait of TokJer1, a confident man in front of a classroom chalkboard with 'Aumenta tus ingresos' written on it, with symbols mathematical complementary. Wearing a white button-up shirt, rolled-up sleeves, and fitted jeans. Friendly expression, slight smile, relaxed posture, soft cinematic lighting.",
go_fast: false,
lora_scale: 1,
megapixels: "1",
num_outputs: 2,
aspect_ratio: "9:16",
output_format: "webp",
guidance_scale: 3,
output_quality: 90,
prompt_strength: 0.9,
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 jesuserondon/tokjer1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"jesuserondon/tokjer1:b69848ea7d661c6ccd8117d06b27e35f3867d61f1db5cf0f2ab4c969b306e1be",
input={
"image": "https://replicate.delivery/pbxt/MbRLQRBHo5pMKaKVnuY3pQIi0qRzMhickRmKRUSPfEyd8y81/ComfyUI_00004_.png",
"model": "dev",
"prompt": "Photorealistic portrait of TokJer1, a confident man in front of a classroom chalkboard with 'Aumenta tus ingresos' written on it, with symbols mathematical complementary. Wearing a white button-up shirt, rolled-up sleeves, and fitted jeans. Friendly expression, slight smile, relaxed posture, soft cinematic lighting.",
"go_fast": False,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 2,
"aspect_ratio": "9:16",
"output_format": "webp",
"guidance_scale": 3,
"output_quality": 90,
"prompt_strength": 0.9,
"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 jesuserondon/tokjer1 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": "jesuserondon/tokjer1:b69848ea7d661c6ccd8117d06b27e35f3867d61f1db5cf0f2ab4c969b306e1be",
"input": {
"image": "https://replicate.delivery/pbxt/MbRLQRBHo5pMKaKVnuY3pQIi0qRzMhickRmKRUSPfEyd8y81/ComfyUI_00004_.png",
"model": "dev",
"prompt": "Photorealistic portrait of TokJer1, a confident man in front of a classroom chalkboard with \'Aumenta tus ingresos\' written on it, with symbols mathematical complementary. Wearing a white button-up shirt, rolled-up sleeves, and fitted jeans. Friendly expression, slight smile, relaxed posture, soft cinematic lighting.",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 2,
"aspect_ratio": "9:16",
"output_format": "webp",
"guidance_scale": 3,
"output_quality": 90,
"prompt_strength": 0.9,
"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.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
{
"completed_at": "2025-03-04T21:51:44.231907Z",
"created_at": "2025-03-04T21:51:31.475000Z",
"data_removed": false,
"error": null,
"id": "8yv1bcm0jdrma0cnccjbrms9km",
"input": {
"image": "https://replicate.delivery/pbxt/MbRLQRBHo5pMKaKVnuY3pQIi0qRzMhickRmKRUSPfEyd8y81/ComfyUI_00004_.png",
"model": "dev",
"prompt": "Photorealistic portrait of TokJer1, a confident man in front of a classroom chalkboard with 'Aumenta tus ingresos' written on it, with symbols mathematical complementary. Wearing a white button-up shirt, rolled-up sleeves, and fitted jeans. Friendly expression, slight smile, relaxed posture, soft cinematic lighting.",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 2,
"aspect_ratio": "9:16",
"output_format": "webp",
"guidance_scale": 3,
"output_quality": 90,
"prompt_strength": 0.9,
"extra_lora_scale": 1,
"num_inference_steps": 28
},
"logs": "free=4847960649728\nDownloading weights\n2025-03-04T21:51:31Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp220pp58p/weights url=https://replicate.delivery/xezq/VRyssU4k4x67GxvmN538o0R2HDZHnI5fndPBPENZ3IdJXeSUA/trained_model.tar\n2025-03-04T21:51:35Z | INFO | [ Complete ] dest=/tmp/tmp220pp58p/weights size=\"215 MB\" total_elapsed=3.375s url=https://replicate.delivery/xezq/VRyssU4k4x67GxvmN538o0R2HDZHnI5fndPBPENZ3IdJXeSUA/trained_model.tar\nDownloaded weights in 3.40s\nLoaded LoRAs in 3.97s\nUsing seed: 50659\nPrompt: Photorealistic portrait of TokJer1, a confident man in front of a classroom chalkboard with 'Aumenta tus ingresos' written on it, with symbols mathematical complementary. Wearing a white button-up shirt, rolled-up sleeves, and fitted jeans. Friendly expression, slight smile, relaxed posture, soft cinematic lighting.\nInput image size: 720x720\n[!] Resizing input image from 720x720 to 720x720\n[!] img2img mode\n 0%| | 0/26 [00:00<?, ?it/s]\n 4%|▍ | 1/26 [00:00<00:22, 1.12it/s]\n 8%|▊ | 2/26 [00:01<00:12, 1.91it/s]\n 12%|█▏ | 3/26 [00:01<00:09, 2.47it/s]\n 15%|█▌ | 4/26 [00:01<00:07, 2.85it/s]\n 19%|█▉ | 5/26 [00:01<00:06, 3.12it/s]\n 23%|██▎ | 6/26 [00:02<00:06, 3.31it/s]\n 27%|██▋ | 7/26 [00:02<00:05, 3.45it/s]\n 31%|███ | 8/26 [00:02<00:05, 3.54it/s]\n 35%|███▍ | 9/26 [00:03<00:04, 3.60it/s]\n 38%|███▊ | 10/26 [00:03<00:04, 3.65it/s]\n 42%|████▏ | 11/26 [00:03<00:04, 3.68it/s]\n 46%|████▌ | 12/26 [00:03<00:03, 3.70it/s]\n 50%|█████ | 13/26 [00:04<00:03, 3.72it/s]\n 54%|█████▍ | 14/26 [00:04<00:03, 3.73it/s]\n 58%|█████▊ | 15/26 [00:04<00:02, 3.74it/s]\n 62%|██████▏ | 16/26 [00:04<00:02, 3.74it/s]\n 65%|██████▌ | 17/26 [00:05<00:02, 3.75it/s]\n 69%|██████▉ | 18/26 [00:05<00:02, 3.75it/s]\n 73%|███████▎ | 19/26 [00:05<00:01, 3.75it/s]\n 77%|███████▋ | 20/26 [00:05<00:01, 3.75it/s]\n 81%|████████ | 21/26 [00:06<00:01, 3.76it/s]\n 85%|████████▍ | 22/26 [00:06<00:01, 3.76it/s]\n 88%|████████▊ | 23/26 [00:06<00:00, 3.76it/s]\n 92%|█████████▏| 24/26 [00:07<00:00, 3.76it/s]\n 96%|█████████▌| 25/26 [00:07<00:00, 3.76it/s]\n100%|██████████| 26/26 [00:07<00:00, 3.76it/s]\n100%|██████████| 26/26 [00:07<00:00, 3.45it/s]\nTotal safe images: 2 out of 2",
"metrics": {
"predict_time": 12.591389966,
"total_time": 12.756907
},
"output": [
"https://replicate.delivery/xezq/OAmq0lt95uJEL5SYtOWsWSVxje9neM1mgoPAfMtLHT8hfJVRB/out-0.webp",
"https://replicate.delivery/xezq/4SiHzjmBe73oUC1zFAonPSivAnKeGX5siZOi3WLXKEAwfkqoA/out-1.webp"
],
"started_at": "2025-03-04T21:51:31.640517Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/bcwr-ywbctzkrafyxvl7fc7zpy3jlgp7wl3nbpner64wu4ajhkjif4a6a",
"get": "https://api.replicate.com/v1/predictions/8yv1bcm0jdrma0cnccjbrms9km",
"cancel": "https://api.replicate.com/v1/predictions/8yv1bcm0jdrma0cnccjbrms9km/cancel"
},
"version": "b69848ea7d661c6ccd8117d06b27e35f3867d61f1db5cf0f2ab4c969b306e1be"
}
free=4847960649728
Downloading weights
2025-03-04T21:51:31Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp220pp58p/weights url=https://replicate.delivery/xezq/VRyssU4k4x67GxvmN538o0R2HDZHnI5fndPBPENZ3IdJXeSUA/trained_model.tar
2025-03-04T21:51:35Z | INFO | [ Complete ] dest=/tmp/tmp220pp58p/weights size="215 MB" total_elapsed=3.375s url=https://replicate.delivery/xezq/VRyssU4k4x67GxvmN538o0R2HDZHnI5fndPBPENZ3IdJXeSUA/trained_model.tar
Downloaded weights in 3.40s
Loaded LoRAs in 3.97s
Using seed: 50659
Prompt: Photorealistic portrait of TokJer1, a confident man in front of a classroom chalkboard with 'Aumenta tus ingresos' written on it, with symbols mathematical complementary. Wearing a white button-up shirt, rolled-up sleeves, and fitted jeans. Friendly expression, slight smile, relaxed posture, soft cinematic lighting.
Input image size: 720x720
[!] Resizing input image from 720x720 to 720x720
[!] img2img mode
0%| | 0/26 [00:00<?, ?it/s]
4%|▍ | 1/26 [00:00<00:22, 1.12it/s]
8%|▊ | 2/26 [00:01<00:12, 1.91it/s]
12%|█▏ | 3/26 [00:01<00:09, 2.47it/s]
15%|█▌ | 4/26 [00:01<00:07, 2.85it/s]
19%|█▉ | 5/26 [00:01<00:06, 3.12it/s]
23%|██▎ | 6/26 [00:02<00:06, 3.31it/s]
27%|██▋ | 7/26 [00:02<00:05, 3.45it/s]
31%|███ | 8/26 [00:02<00:05, 3.54it/s]
35%|███▍ | 9/26 [00:03<00:04, 3.60it/s]
38%|███▊ | 10/26 [00:03<00:04, 3.65it/s]
42%|████▏ | 11/26 [00:03<00:04, 3.68it/s]
46%|████▌ | 12/26 [00:03<00:03, 3.70it/s]
50%|█████ | 13/26 [00:04<00:03, 3.72it/s]
54%|█████▍ | 14/26 [00:04<00:03, 3.73it/s]
58%|█████▊ | 15/26 [00:04<00:02, 3.74it/s]
62%|██████▏ | 16/26 [00:04<00:02, 3.74it/s]
65%|██████▌ | 17/26 [00:05<00:02, 3.75it/s]
69%|██████▉ | 18/26 [00:05<00:02, 3.75it/s]
73%|███████▎ | 19/26 [00:05<00:01, 3.75it/s]
77%|███████▋ | 20/26 [00:05<00:01, 3.75it/s]
81%|████████ | 21/26 [00:06<00:01, 3.76it/s]
85%|████████▍ | 22/26 [00:06<00:01, 3.76it/s]
88%|████████▊ | 23/26 [00:06<00:00, 3.76it/s]
92%|█████████▏| 24/26 [00:07<00:00, 3.76it/s]
96%|█████████▌| 25/26 [00:07<00:00, 3.76it/s]
100%|██████████| 26/26 [00:07<00:00, 3.76it/s]
100%|██████████| 26/26 [00:07<00:00, 3.45it/s]
Total safe images: 2 out of 2
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.
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=4847960649728
Downloading weights
2025-03-04T21:51:31Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp220pp58p/weights url=https://replicate.delivery/xezq/VRyssU4k4x67GxvmN538o0R2HDZHnI5fndPBPENZ3IdJXeSUA/trained_model.tar
2025-03-04T21:51:35Z | INFO | [ Complete ] dest=/tmp/tmp220pp58p/weights size="215 MB" total_elapsed=3.375s url=https://replicate.delivery/xezq/VRyssU4k4x67GxvmN538o0R2HDZHnI5fndPBPENZ3IdJXeSUA/trained_model.tar
Downloaded weights in 3.40s
Loaded LoRAs in 3.97s
Using seed: 50659
Prompt: Photorealistic portrait of TokJer1, a confident man in front of a classroom chalkboard with 'Aumenta tus ingresos' written on it, with symbols mathematical complementary. Wearing a white button-up shirt, rolled-up sleeves, and fitted jeans. Friendly expression, slight smile, relaxed posture, soft cinematic lighting.
Input image size: 720x720
[!] Resizing input image from 720x720 to 720x720
[!] img2img mode
0%| | 0/26 [00:00<?, ?it/s]
4%|▍ | 1/26 [00:00<00:22, 1.12it/s]
8%|▊ | 2/26 [00:01<00:12, 1.91it/s]
12%|█▏ | 3/26 [00:01<00:09, 2.47it/s]
15%|█▌ | 4/26 [00:01<00:07, 2.85it/s]
19%|█▉ | 5/26 [00:01<00:06, 3.12it/s]
23%|██▎ | 6/26 [00:02<00:06, 3.31it/s]
27%|██▋ | 7/26 [00:02<00:05, 3.45it/s]
31%|███ | 8/26 [00:02<00:05, 3.54it/s]
35%|███▍ | 9/26 [00:03<00:04, 3.60it/s]
38%|███▊ | 10/26 [00:03<00:04, 3.65it/s]
42%|████▏ | 11/26 [00:03<00:04, 3.68it/s]
46%|████▌ | 12/26 [00:03<00:03, 3.70it/s]
50%|█████ | 13/26 [00:04<00:03, 3.72it/s]
54%|█████▍ | 14/26 [00:04<00:03, 3.73it/s]
58%|█████▊ | 15/26 [00:04<00:02, 3.74it/s]
62%|██████▏ | 16/26 [00:04<00:02, 3.74it/s]
65%|██████▌ | 17/26 [00:05<00:02, 3.75it/s]
69%|██████▉ | 18/26 [00:05<00:02, 3.75it/s]
73%|███████▎ | 19/26 [00:05<00:01, 3.75it/s]
77%|███████▋ | 20/26 [00:05<00:01, 3.75it/s]
81%|████████ | 21/26 [00:06<00:01, 3.76it/s]
85%|████████▍ | 22/26 [00:06<00:01, 3.76it/s]
88%|████████▊ | 23/26 [00:06<00:00, 3.76it/s]
92%|█████████▏| 24/26 [00:07<00:00, 3.76it/s]
96%|█████████▌| 25/26 [00:07<00:00, 3.76it/s]
100%|██████████| 26/26 [00:07<00:00, 3.76it/s]
100%|██████████| 26/26 [00:07<00:00, 3.45it/s]
Total safe images: 2 out of 2