typetext
{
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": false,
"guidance_scale": 3,
"lora_scale": 1,
"megapixels": "1",
"model": "dev",
"num_inference_steps": 30,
"num_outputs": 1,
"output_format": "webp",
"output_quality": 80,
"prompt": "chahan and her Black male friend stand awkwardly in front of a full-length mirror by the entrance, trying to take a selfie. chahan is holding up an old iPhone, clearly in selfie mode, but her friend seems unsure—he’s not really posing, barely looking at the camera, and not helping hold the phone at all. The image quality is grainy, with a soft blur. The dim entryway lighting casts moody shadows, and the floor is cluttered with scattered shoes. Jackets hang unevenly on wall hooks behind them. Despite the confusion, both are smiling—chahan a bit more confidently, her friend with a hesitant grin. The mirror is smudged with fingerprints, adding to the raw, spontaneous feel of the scene.\nBREAK,\nchahan Outfit: (a large black T-shirt with short shorts :1.4),\nBREAK,\nchahan hair style: (Two Buns White Hair:1.2),\nBREAK,\nfriend hair style: (Dreadlocks:1.3),\nBREAK,\nfriend Outfit: (a plain white T-shirt with blue jeans:1.3),\n\n",
"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 fafafsf/chahan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"fafafsf/chahan:d85271ec30df7ee29f646b13b4eb1b9e442baafc98181773ca60d448bc668183",
{
input: {
aspect_ratio: "1:1",
extra_lora_scale: 1,
go_fast: false,
guidance_scale: 3,
lora_scale: 1,
megapixels: "1",
model: "dev",
num_inference_steps: 30,
num_outputs: 1,
output_format: "webp",
output_quality: 80,
prompt: "chahan and her Black male friend stand awkwardly in front of a full-length mirror by the entrance, trying to take a selfie. chahan is holding up an old iPhone, clearly in selfie mode, but her friend seems unsure—he’s not really posing, barely looking at the camera, and not helping hold the phone at all. The image quality is grainy, with a soft blur. The dim entryway lighting casts moody shadows, and the floor is cluttered with scattered shoes. Jackets hang unevenly on wall hooks behind them. Despite the confusion, both are smiling—chahan a bit more confidently, her friend with a hesitant grin. The mirror is smudged with fingerprints, adding to the raw, spontaneous feel of the scene.\nBREAK,\nchahan Outfit: (a large black T-shirt with short shorts :1.4),\nBREAK,\nchahan hair style: (Two Buns White Hair:1.2),\nBREAK,\nfriend hair style: (Dreadlocks:1.3),\nBREAK,\nfriend Outfit: (a plain white T-shirt with blue jeans:1.3),\n\n",
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 fafafsf/chahan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fafafsf/chahan:d85271ec30df7ee29f646b13b4eb1b9e442baafc98181773ca60d448bc668183",
input={
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": False,
"guidance_scale": 3,
"lora_scale": 1,
"megapixels": "1",
"model": "dev",
"num_inference_steps": 30,
"num_outputs": 1,
"output_format": "webp",
"output_quality": 80,
"prompt": "chahan and her Black male friend stand awkwardly in front of a full-length mirror by the entrance, trying to take a selfie. chahan is holding up an old iPhone, clearly in selfie mode, but her friend seems unsure—he’s not really posing, barely looking at the camera, and not helping hold the phone at all. The image quality is grainy, with a soft blur. The dim entryway lighting casts moody shadows, and the floor is cluttered with scattered shoes. Jackets hang unevenly on wall hooks behind them. Despite the confusion, both are smiling—chahan a bit more confidently, her friend with a hesitant grin. The mirror is smudged with fingerprints, adding to the raw, spontaneous feel of the scene.\nBREAK,\nchahan Outfit: (a large black T-shirt with short shorts :1.4),\nBREAK,\nchahan hair style: (Two Buns White Hair:1.2),\nBREAK,\nfriend hair style: (Dreadlocks:1.3),\nBREAK,\nfriend Outfit: (a plain white T-shirt with blue jeans:1.3),\n\n",
"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 fafafsf/chahan 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": "fafafsf/chahan:d85271ec30df7ee29f646b13b4eb1b9e442baafc98181773ca60d448bc668183",
"input": {
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": false,
"guidance_scale": 3,
"lora_scale": 1,
"megapixels": "1",
"model": "dev",
"num_inference_steps": 30,
"num_outputs": 1,
"output_format": "webp",
"output_quality": 80,
"prompt": "chahan and her Black male friend stand awkwardly in front of a full-length mirror by the entrance, trying to take a selfie. chahan is holding up an old iPhone, clearly in selfie mode, but her friend seems unsure—he’s not really posing, barely looking at the camera, and not helping hold the phone at all. The image quality is grainy, with a soft blur. The dim entryway lighting casts moody shadows, and the floor is cluttered with scattered shoes. Jackets hang unevenly on wall hooks behind them. Despite the confusion, both are smiling—chahan a bit more confidently, her friend with a hesitant grin. The mirror is smudged with fingerprints, adding to the raw, spontaneous feel of the scene.\\nBREAK,\\nchahan Outfit: (a large black T-shirt with short shorts :1.4),\\nBREAK,\\nchahan hair style: (Two Buns White Hair:1.2),\\nBREAK,\\nfriend hair style: (Dreadlocks:1.3),\\nBREAK,\\nfriend Outfit: (a plain white T-shirt with blue jeans:1.3),\\n\\n",
"prompt_strength": 0.8
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "1w8mb7egnnrmc0cpw6788rq6dw",
"model": "fafafsf/chahan",
"version": "d85271ec30df7ee29f646b13b4eb1b9e442baafc98181773ca60d448bc668183",
"input": {
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": false,
"guidance_scale": 3,
"lora_scale": 1,
"megapixels": "1",
"model": "dev",
"num_inference_steps": 30,
"num_outputs": 1,
"output_format": "webp",
"output_quality": 80,
"prompt": "chahan and her Black male friend stand awkwardly in front of a full-length mirror by the entrance, trying to take a selfie. chahan is holding up an old iPhone, clearly in selfie mode, but her friend seems unsure—he’s not really posing, barely looking at the camera, and not helping hold the phone at all. The image quality is grainy, with a soft blur. The dim entryway lighting casts moody shadows, and the floor is cluttered with scattered shoes. Jackets hang unevenly on wall hooks behind them. Despite the confusion, both are smiling—chahan a bit more confidently, her friend with a hesitant grin. The mirror is smudged with fingerprints, adding to the raw, spontaneous feel of the scene.\nBREAK,\nchahan Outfit: (a large black T-shirt with short shorts :1.4),\nBREAK,\nchahan hair style: (Two Buns White Hair:1.2),\nBREAK,\nfriend hair style: (Dreadlocks:1.3),\nBREAK,\nfriend Outfit: (a plain white T-shirt with blue jeans:1.3),\n\n",
"prompt_strength": 0.8
},
"logs": "Weights already loaded\nLoaded LoRAs in 0.02s\nUsing seed: 51655\nPrompt: chahan and her Black male friend stand awkwardly in front of a full-length mirror by the entrance, trying to take a selfie. chahan is holding up an old iPhone, clearly in selfie mode, but her friend seems unsure—he’s not really posing, barely looking at the camera, and not helping hold the phone at all. The image quality is grainy, with a soft blur. The dim entryway lighting casts moody shadows, and the floor is cluttered with scattered shoes. Jackets hang unevenly on wall hooks behind them. Despite the confusion, both are smiling—chahan a bit more confidently, her friend with a hesitant grin. The mirror is smudged with fingerprints, adding to the raw, spontaneous feel of the scene.\nBREAK,\nchahan Outfit: (a large black T-shirt with short shorts :1.4),\nBREAK,\nchahan hair style: (Two Buns White Hair:1.2),\nBREAK,\nfriend hair style: (Dreadlocks:1.3),\nBREAK,\nfriend Outfit: (a plain white T-shirt with blue jeans:1.3),\n[!] txt2img mode\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:08, 3.55it/s]\n 7%|▋ | 2/30 [00:00<00:06, 4.02it/s]\n 10%|█ | 3/30 [00:00<00:07, 3.80it/s]\n 13%|█▎ | 4/30 [00:01<00:07, 3.70it/s]\n 17%|█▋ | 5/30 [00:01<00:06, 3.65it/s]\n 20%|██ | 6/30 [00:01<00:06, 3.62it/s]\n 23%|██▎ | 7/30 [00:01<00:06, 3.60it/s]\n 27%|██▋ | 8/30 [00:02<00:06, 3.58it/s]\n 30%|███ | 9/30 [00:02<00:05, 3.57it/s]\n 33%|███▎ | 10/30 [00:02<00:05, 3.57it/s]\n 37%|███▋ | 11/30 [00:03<00:05, 3.57it/s]\n 40%|████ | 12/30 [00:03<00:05, 3.57it/s]\n 43%|████▎ | 13/30 [00:03<00:04, 3.57it/s]\n 47%|████▋ | 14/30 [00:03<00:04, 3.57it/s]\n 50%|█████ | 15/30 [00:04<00:04, 3.56it/s]\n 53%|█████▎ | 16/30 [00:04<00:03, 3.56it/s]\n 57%|█████▋ | 17/30 [00:04<00:03, 3.56it/s]\n 60%|██████ | 18/30 [00:05<00:03, 3.56it/s]\n 63%|██████▎ | 19/30 [00:05<00:03, 3.56it/s]\n 67%|██████▋ | 20/30 [00:05<00:02, 3.56it/s]\n 70%|███████ | 21/30 [00:05<00:02, 3.56it/s]\n 73%|███████▎ | 22/30 [00:06<00:02, 3.56it/s]\n 77%|███████▋ | 23/30 [00:06<00:01, 3.56it/s]\n 80%|████████ | 24/30 [00:06<00:01, 3.56it/s]\n 83%|████████▎ | 25/30 [00:06<00:01, 3.56it/s]\n 87%|████████▋ | 26/30 [00:07<00:01, 3.56it/s]\n 90%|█████████ | 27/30 [00:07<00:00, 3.56it/s]\n 93%|█████████▎| 28/30 [00:07<00:00, 3.56it/s]\n 97%|█████████▋| 29/30 [00:08<00:00, 3.56it/s]\n100%|██████████| 30/30 [00:08<00:00, 3.56it/s]\n100%|██████████| 30/30 [00:08<00:00, 3.58it/s]\nTotal safe images: 1 out of 1",
"output": [
"https://replicate.delivery/xezq/pqx1uU2v1maeFCztkDBEe2A18POD1dS88yqy7YKLlzmk3wtUA/out-0.webp"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-05-18T04:02:35.309Z",
"started_at": "2025-05-18T04:02:35.315386Z",
"completed_at": "2025-05-18T04:02:44.058763Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/1w8mb7egnnrmc0cpw6788rq6dw/cancel",
"get": "https://api.replicate.com/v1/predictions/1w8mb7egnnrmc0cpw6788rq6dw",
"stream": "https://stream.replicate.com/v1/files/bcwr-73t4d5ooegcmaxzzzjyxwbbgu5dzf7peos3czuyd2q5hzc4yguca",
"web": "https://replicate.com/p/1w8mb7egnnrmc0cpw6788rq6dw"
},
"metrics": {
"predict_time": 8.743377163,
"total_time": 8.749763
}
}