Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
genericdeag /comic-style:85ebeee4
Input
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 genericdeag/comic-style using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"genericdeag/comic-style:85ebeee450bd310b8d1c8c202e53fdd25c67fffa3e5cb90edac057165a64482b",
{
input: {
model: "dev",
prompt: "Create an illustration of a man SBETZIN sitting on a staircase, wearing a dark blue suit and white shirt, with glasses. The man has short, dark brown hair, a light complexion, and is smiling warmly. He is sitting with his hands clasped together in front of him, elbows resting on his knees. The staircase is dark gray and has a modern, sleek design. The background is minimalistic with soft lighting. The overall atmosphere is professional yet approachable. Simple, minimalist, flat design illustration, white background, in the style of GNRCDE.",
go_fast: false,
extra_lora: "https://replicate.delivery/yhqm/2MGk61LmrYamGBYtOWVe0pMUrOgvjjmKVhUDAG3mh2OPVfUTA/trained_model.tar",
lora_scale: 1,
megapixels: "1",
num_outputs: 1,
aspect_ratio: "1:1",
output_format: "jpg",
guidance_scale: 3.5,
output_quality: 80,
prompt_strength: 0.8,
extra_lora_scale: 1,
num_inference_steps: 34
}
}
);
// 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 genericdeag/comic-style using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"genericdeag/comic-style:85ebeee450bd310b8d1c8c202e53fdd25c67fffa3e5cb90edac057165a64482b",
input={
"model": "dev",
"prompt": "Create an illustration of a man SBETZIN sitting on a staircase, wearing a dark blue suit and white shirt, with glasses. The man has short, dark brown hair, a light complexion, and is smiling warmly. He is sitting with his hands clasped together in front of him, elbows resting on his knees. The staircase is dark gray and has a modern, sleek design. The background is minimalistic with soft lighting. The overall atmosphere is professional yet approachable. Simple, minimalist, flat design illustration, white background, in the style of GNRCDE.",
"go_fast": False,
"extra_lora": "https://replicate.delivery/yhqm/2MGk61LmrYamGBYtOWVe0pMUrOgvjjmKVhUDAG3mh2OPVfUTA/trained_model.tar",
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "jpg",
"guidance_scale": 3.5,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 34
}
)
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 genericdeag/comic-style 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": "genericdeag/comic-style:85ebeee450bd310b8d1c8c202e53fdd25c67fffa3e5cb90edac057165a64482b",
"input": {
"model": "dev",
"prompt": "Create an illustration of a man SBETZIN sitting on a staircase, wearing a dark blue suit and white shirt, with glasses. The man has short, dark brown hair, a light complexion, and is smiling warmly. He is sitting with his hands clasped together in front of him, elbows resting on his knees. The staircase is dark gray and has a modern, sleek design. The background is minimalistic with soft lighting. The overall atmosphere is professional yet approachable. Simple, minimalist, flat design illustration, white background, in the style of GNRCDE.",
"go_fast": false,
"extra_lora": "https://replicate.delivery/yhqm/2MGk61LmrYamGBYtOWVe0pMUrOgvjjmKVhUDAG3mh2OPVfUTA/trained_model.tar",
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "jpg",
"guidance_scale": 3.5,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 34
}
}' \
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
Output
{
"completed_at": "2024-09-03T12:32:15.903103Z",
"created_at": "2024-09-03T12:31:23.088000Z",
"data_removed": false,
"error": null,
"id": "328rzy25t1rm60chpzfa0tsxbg",
"input": {
"model": "dev",
"prompt": "Create an illustration of a man SBETZIN sitting on a staircase, wearing a dark blue suit and white shirt, with glasses. The man has short, dark brown hair, a light complexion, and is smiling warmly. He is sitting with his hands clasped together in front of him, elbows resting on his knees. The staircase is dark gray and has a modern, sleek design. The background is minimalistic with soft lighting. The overall atmosphere is professional yet approachable. Simple, minimalist, flat design illustration, white background, in the style of GNRCDE.",
"extra_lora": "https://replicate.delivery/yhqm/2MGk61LmrYamGBYtOWVe0pMUrOgvjjmKVhUDAG3mh2OPVfUTA/trained_model.tar",
"lora_scale": 1,
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "jpg",
"guidance_scale": 3.5,
"output_quality": 80,
"extra_lora_scale": 1,
"num_inference_steps": 34
},
"logs": "Using seed: 10198\nPrompt: Create an illustration of a man SBETZIN sitting on a staircase, wearing a dark blue suit and white shirt, with glasses. The man has short, dark brown hair, a light complexion, and is smiling warmly. He is sitting with his hands clasped together in front of him, elbows resting on his knees. The staircase is dark gray and has a modern, sleek design. The background is minimalistic with soft lighting. The overall atmosphere is professional yet approachable. Simple, minimalist, flat design illustration, white background, in the style of GNRCDE.\ntxt2img mode\nUsing dev model\nLoading extra LoRA weights from: https://replicate.delivery/yhqm/2MGk61LmrYamGBYtOWVe0pMUrOgvjjmKVhUDAG3mh2OPVfUTA/trained_model.tar\nfree=9111406649344\nDownloading weights\n2024-09-03T12:31:31Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp8bwuz9gw/weights url=https://replicate.delivery/yhqm/YFEkpIw2m7ZQIREyaZZfjukafVwgCNBhiYxSpcDJ5e7AUPymA/trained_model.tar\n2024-09-03T12:31:32Z | INFO | [ Complete ] dest=/tmp/tmp8bwuz9gw/weights size=\"172 MB\" total_elapsed=1.457s url=https://replicate.delivery/yhqm/YFEkpIw2m7ZQIREyaZZfjukafVwgCNBhiYxSpcDJ5e7AUPymA/trained_model.tar\nDownloaded weights in 1.49s\nfree=9111063011328\nDownloading weights\n2024-09-03T12:31:47Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmps_ryjiw3/weights url=https://replicate.delivery/yhqm/2MGk61LmrYamGBYtOWVe0pMUrOgvjjmKVhUDAG3mh2OPVfUTA/trained_model.tar\n2024-09-03T12:31:49Z | INFO | [ Complete ] dest=/tmp/tmps_ryjiw3/weights size=\"172 MB\" total_elapsed=1.520s url=https://replicate.delivery/yhqm/2MGk61LmrYamGBYtOWVe0pMUrOgvjjmKVhUDAG3mh2OPVfUTA/trained_model.tar\nDownloaded weights in 1.55s\nLoaded LoRAs in 33.45s\nThe following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['sleek design. the background is minimalistic with soft lighting. the overall atmosphere is professional yet approachable. simple, minimalist, flat design illustration, white background, in the style of gnrcde.']\n 0%| | 0/34 [00:00<?, ?it/s]\n 3%|▎ | 1/34 [00:00<00:10, 3.15it/s]\n 6%|▌ | 2/34 [00:00<00:09, 3.48it/s]\n 9%|▉ | 3/34 [00:00<00:09, 3.32it/s]\n 12%|█▏ | 4/34 [00:01<00:09, 3.25it/s]\n 15%|█▍ | 5/34 [00:01<00:09, 3.22it/s]\n 18%|█▊ | 6/34 [00:01<00:08, 3.19it/s]\n 21%|██ | 7/34 [00:02<00:08, 3.18it/s]\n 24%|██▎ | 8/34 [00:02<00:08, 3.17it/s]\n 26%|██▋ | 9/34 [00:02<00:07, 3.16it/s]\n 29%|██▉ | 10/34 [00:03<00:07, 3.16it/s]\n 32%|███▏ | 11/34 [00:03<00:07, 3.16it/s]\n 35%|███▌ | 12/34 [00:03<00:06, 3.15it/s]\n 38%|███▊ | 13/34 [00:04<00:06, 3.15it/s]\n 41%|████ | 14/34 [00:04<00:06, 3.15it/s]\n 44%|████▍ | 15/34 [00:04<00:06, 3.15it/s]\n 47%|████▋ | 16/34 [00:05<00:05, 3.15it/s]\n 50%|█████ | 17/34 [00:05<00:05, 3.15it/s]\n 53%|█████▎ | 18/34 [00:05<00:05, 3.15it/s]\n 56%|█████▌ | 19/34 [00:05<00:04, 3.15it/s]\n 59%|█████▉ | 20/34 [00:06<00:04, 3.15it/s]\n 62%|██████▏ | 21/34 [00:06<00:04, 3.15it/s]\n 65%|██████▍ | 22/34 [00:06<00:03, 3.15it/s]\n 68%|██████▊ | 23/34 [00:07<00:03, 3.15it/s]\n 71%|███████ | 24/34 [00:07<00:03, 3.15it/s]\n 74%|███████▎ | 25/34 [00:07<00:02, 3.15it/s]\n 76%|███████▋ | 26/34 [00:08<00:02, 3.15it/s]\n 79%|███████▉ | 27/34 [00:08<00:02, 3.15it/s]\n 82%|████████▏ | 28/34 [00:08<00:01, 3.15it/s]\n 85%|████████▌ | 29/34 [00:09<00:01, 3.15it/s]\n 88%|████████▊ | 30/34 [00:09<00:01, 3.15it/s]\n 91%|█████████ | 31/34 [00:09<00:00, 3.15it/s]\n 94%|█████████▍| 32/34 [00:10<00:00, 3.15it/s]\n 97%|█████████▋| 33/34 [00:10<00:00, 3.15it/s]\n100%|██████████| 34/34 [00:10<00:00, 3.15it/s]\n100%|██████████| 34/34 [00:10<00:00, 3.17it/s]",
"metrics": {
"predict_time": 44.668349067,
"total_time": 52.815103
},
"output": [
"https://replicate.delivery/yhqm/91mJqeJq8MX5Y6Dzfx70LSnve8PUIc3iS3xBeroeVrN95ZJbC/out-0.jpg"
],
"started_at": "2024-09-03T12:31:31.234754Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/328rzy25t1rm60chpzfa0tsxbg",
"cancel": "https://api.replicate.com/v1/predictions/328rzy25t1rm60chpzfa0tsxbg/cancel"
},
"version": "85ebeee450bd310b8d1c8c202e53fdd25c67fffa3e5cb90edac057165a64482b"
}
Using seed: 10198
Prompt: Create an illustration of a man SBETZIN sitting on a staircase, wearing a dark blue suit and white shirt, with glasses. The man has short, dark brown hair, a light complexion, and is smiling warmly. He is sitting with his hands clasped together in front of him, elbows resting on his knees. The staircase is dark gray and has a modern, sleek design. The background is minimalistic with soft lighting. The overall atmosphere is professional yet approachable. Simple, minimalist, flat design illustration, white background, in the style of GNRCDE.
txt2img mode
Using dev model
Loading extra LoRA weights from: https://replicate.delivery/yhqm/2MGk61LmrYamGBYtOWVe0pMUrOgvjjmKVhUDAG3mh2OPVfUTA/trained_model.tar
free=9111406649344
Downloading weights
2024-09-03T12:31:31Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp8bwuz9gw/weights url=https://replicate.delivery/yhqm/YFEkpIw2m7ZQIREyaZZfjukafVwgCNBhiYxSpcDJ5e7AUPymA/trained_model.tar
2024-09-03T12:31:32Z | INFO | [ Complete ] dest=/tmp/tmp8bwuz9gw/weights size="172 MB" total_elapsed=1.457s url=https://replicate.delivery/yhqm/YFEkpIw2m7ZQIREyaZZfjukafVwgCNBhiYxSpcDJ5e7AUPymA/trained_model.tar
Downloaded weights in 1.49s
free=9111063011328
Downloading weights
2024-09-03T12:31:47Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmps_ryjiw3/weights url=https://replicate.delivery/yhqm/2MGk61LmrYamGBYtOWVe0pMUrOgvjjmKVhUDAG3mh2OPVfUTA/trained_model.tar
2024-09-03T12:31:49Z | INFO | [ Complete ] dest=/tmp/tmps_ryjiw3/weights size="172 MB" total_elapsed=1.520s url=https://replicate.delivery/yhqm/2MGk61LmrYamGBYtOWVe0pMUrOgvjjmKVhUDAG3mh2OPVfUTA/trained_model.tar
Downloaded weights in 1.55s
Loaded LoRAs in 33.45s
The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['sleek design. the background is minimalistic with soft lighting. the overall atmosphere is professional yet approachable. simple, minimalist, flat design illustration, white background, in the style of gnrcde.']
0%| | 0/34 [00:00<?, ?it/s]
3%|▎ | 1/34 [00:00<00:10, 3.15it/s]
6%|▌ | 2/34 [00:00<00:09, 3.48it/s]
9%|▉ | 3/34 [00:00<00:09, 3.32it/s]
12%|█▏ | 4/34 [00:01<00:09, 3.25it/s]
15%|█▍ | 5/34 [00:01<00:09, 3.22it/s]
18%|█▊ | 6/34 [00:01<00:08, 3.19it/s]
21%|██ | 7/34 [00:02<00:08, 3.18it/s]
24%|██▎ | 8/34 [00:02<00:08, 3.17it/s]
26%|██▋ | 9/34 [00:02<00:07, 3.16it/s]
29%|██▉ | 10/34 [00:03<00:07, 3.16it/s]
32%|███▏ | 11/34 [00:03<00:07, 3.16it/s]
35%|███▌ | 12/34 [00:03<00:06, 3.15it/s]
38%|███▊ | 13/34 [00:04<00:06, 3.15it/s]
41%|████ | 14/34 [00:04<00:06, 3.15it/s]
44%|████▍ | 15/34 [00:04<00:06, 3.15it/s]
47%|████▋ | 16/34 [00:05<00:05, 3.15it/s]
50%|█████ | 17/34 [00:05<00:05, 3.15it/s]
53%|█████▎ | 18/34 [00:05<00:05, 3.15it/s]
56%|█████▌ | 19/34 [00:05<00:04, 3.15it/s]
59%|█████▉ | 20/34 [00:06<00:04, 3.15it/s]
62%|██████▏ | 21/34 [00:06<00:04, 3.15it/s]
65%|██████▍ | 22/34 [00:06<00:03, 3.15it/s]
68%|██████▊ | 23/34 [00:07<00:03, 3.15it/s]
71%|███████ | 24/34 [00:07<00:03, 3.15it/s]
74%|███████▎ | 25/34 [00:07<00:02, 3.15it/s]
76%|███████▋ | 26/34 [00:08<00:02, 3.15it/s]
79%|███████▉ | 27/34 [00:08<00:02, 3.15it/s]
82%|████████▏ | 28/34 [00:08<00:01, 3.15it/s]
85%|████████▌ | 29/34 [00:09<00:01, 3.15it/s]
88%|████████▊ | 30/34 [00:09<00:01, 3.15it/s]
91%|█████████ | 31/34 [00:09<00:00, 3.15it/s]
94%|█████████▍| 32/34 [00:10<00:00, 3.15it/s]
97%|█████████▋| 33/34 [00:10<00:00, 3.15it/s]
100%|██████████| 34/34 [00:10<00:00, 3.15it/s]
100%|██████████| 34/34 [00:10<00:00, 3.17it/s]