default1girl,face,curly hair,red hair,white background
typetext
{
"guidance_scale": 7.5,
"height": 512,
"lora_scales": "0.5",
"lora_urls": "https://r2.sleepnow.work/fgxp2.safetensors",
"negative_prompt": "wrong structure, EasyNegative,Paintings, sketches, (worst quality:2),(low quality:2),(normal quality:2),lowers, normal quality, ((monochrome)), ((grayscales)), skin spots,acnes,skin blemishes,age spot, glans, (6 more fingers on one hand),(deformity), multiple breasts,(mutated hands and fingers:2 ), (long body :1.2), (mutation, poorly drawn :1.2) ,bad anatomy, liquid body, liquid tongue, disfigured, malformed, mutated,anatomical nonsense, text font ui, error, malformed hands, long neck, blurred, lowers,lowres, bad anatomy, bad proportions, bad shadow, uncoordinated body, unnatural body,fused breasts, bad breasts, huge breasts, poorly drawn breasts, extra breasts, liquid breasts,heavy breasts, missing breasts, huge haunch, huge thighs, huge calf, bad hands, fused hand,missing hand, disappearing arms, disappearing thigh, disappearing calf, disappearing legs,fused ears, bad ears, poorly drawn ears, extra ears, liquid ears, heavy ears, missing ears,fused animal ears, bad animal ears, poorly drawn animal ears, extra animal ears, liquid animal ears,heavy animal ears, missing animal ears, text, ui, error, missing fingers, missing limb, fused fingers,one hand with more than 5 fingers,one hand with less than 5 fingers,one hand with more than 5 digit,one hand with less than 5 digit, extra digit, fewer digits, fused digit,missing digit, bad digit, liquid digit,colorful tongue, black tongue, cropped, watermark, username, blurry,nsfw",
"num_inference_steps": 30,
"num_outputs": 1,
"prompt": "1girl,hair with bangs,black dress,orange background,",
"prompt_strength": 0.8,
"scheduler": "DPMSolverMultistep",
"width": 512
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_CDQ**********************************
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 zhouhaojiang/majicmix_with_lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"zhouhaojiang/majicmix_with_lora:29d0822dc9ca4378bb7d38a1fd32da73c34f3ae027267e303f91016fe8e00845",
{
input: {
guidance_scale: 7.5,
height: 512,
lora_scales: "0.5",
lora_urls: "https://r2.sleepnow.work/fgxp2.safetensors",
negative_prompt: "wrong structure, EasyNegative,Paintings, sketches, (worst quality:2),(low quality:2),(normal quality:2),lowers, normal quality, ((monochrome)), ((grayscales)), skin spots,acnes,skin blemishes,age spot, glans, (6 more fingers on one hand),(deformity), multiple breasts,(mutated hands and fingers:2 ), (long body :1.2), (mutation, poorly drawn :1.2) ,bad anatomy, liquid body, liquid tongue, disfigured, malformed, mutated,anatomical nonsense, text font ui, error, malformed hands, long neck, blurred, lowers,lowres, bad anatomy, bad proportions, bad shadow, uncoordinated body, unnatural body,fused breasts, bad breasts, huge breasts, poorly drawn breasts, extra breasts, liquid breasts,heavy breasts, missing breasts, huge haunch, huge thighs, huge calf, bad hands, fused hand,missing hand, disappearing arms, disappearing thigh, disappearing calf, disappearing legs,fused ears, bad ears, poorly drawn ears, extra ears, liquid ears, heavy ears, missing ears,fused animal ears, bad animal ears, poorly drawn animal ears, extra animal ears, liquid animal ears,heavy animal ears, missing animal ears, text, ui, error, missing fingers, missing limb, fused fingers,one hand with more than 5 fingers,one hand with less than 5 fingers,one hand with more than 5 digit,one hand with less than 5 digit, extra digit, fewer digits, fused digit,missing digit, bad digit, liquid digit,colorful tongue, black tongue, cropped, watermark, username, blurry,nsfw",
num_inference_steps: 30,
num_outputs: 1,
prompt: "1girl,hair with bangs,black dress,orange background,",
prompt_strength: 0.8,
scheduler: "DPMSolverMultistep",
width: 512
}
}
);
// 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_CDQ**********************************
This is your API token. Keep it to yourself.
import replicate
Run zhouhaojiang/majicmix_with_lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"zhouhaojiang/majicmix_with_lora:29d0822dc9ca4378bb7d38a1fd32da73c34f3ae027267e303f91016fe8e00845",
input={
"guidance_scale": 7.5,
"height": 512,
"lora_scales": "0.5",
"lora_urls": "https://r2.sleepnow.work/fgxp2.safetensors",
"negative_prompt": "wrong structure, EasyNegative,Paintings, sketches, (worst quality:2),(low quality:2),(normal quality:2),lowers, normal quality, ((monochrome)), ((grayscales)), skin spots,acnes,skin blemishes,age spot, glans, (6 more fingers on one hand),(deformity), multiple breasts,(mutated hands and fingers:2 ), (long body :1.2), (mutation, poorly drawn :1.2) ,bad anatomy, liquid body, liquid tongue, disfigured, malformed, mutated,anatomical nonsense, text font ui, error, malformed hands, long neck, blurred, lowers,lowres, bad anatomy, bad proportions, bad shadow, uncoordinated body, unnatural body,fused breasts, bad breasts, huge breasts, poorly drawn breasts, extra breasts, liquid breasts,heavy breasts, missing breasts, huge haunch, huge thighs, huge calf, bad hands, fused hand,missing hand, disappearing arms, disappearing thigh, disappearing calf, disappearing legs,fused ears, bad ears, poorly drawn ears, extra ears, liquid ears, heavy ears, missing ears,fused animal ears, bad animal ears, poorly drawn animal ears, extra animal ears, liquid animal ears,heavy animal ears, missing animal ears, text, ui, error, missing fingers, missing limb, fused fingers,one hand with more than 5 fingers,one hand with less than 5 fingers,one hand with more than 5 digit,one hand with less than 5 digit, extra digit, fewer digits, fused digit,missing digit, bad digit, liquid digit,colorful tongue, black tongue, cropped, watermark, username, blurry,nsfw",
"num_inference_steps": 30,
"num_outputs": 1,
"prompt": "1girl,hair with bangs,black dress,orange background,",
"prompt_strength": 0.8,
"scheduler": "DPMSolverMultistep",
"width": 512
}
)
# 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_CDQ**********************************
This is your API token. Keep it to yourself.
Run zhouhaojiang/majicmix_with_lora 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": "zhouhaojiang/majicmix_with_lora:29d0822dc9ca4378bb7d38a1fd32da73c34f3ae027267e303f91016fe8e00845",
"input": {
"guidance_scale": 7.5,
"height": 512,
"lora_scales": "0.5",
"lora_urls": "https://r2.sleepnow.work/fgxp2.safetensors",
"negative_prompt": "wrong structure, EasyNegative,Paintings, sketches, (worst quality:2),(low quality:2),(normal quality:2),lowers, normal quality, ((monochrome)), ((grayscales)), skin spots,acnes,skin blemishes,age spot, glans, (6 more fingers on one hand),(deformity), multiple breasts,(mutated hands and fingers:2 ), (long body :1.2), (mutation, poorly drawn :1.2) ,bad anatomy, liquid body, liquid tongue, disfigured, malformed, mutated,anatomical nonsense, text font ui, error, malformed hands, long neck, blurred, lowers,lowres, bad anatomy, bad proportions, bad shadow, uncoordinated body, unnatural body,fused breasts, bad breasts, huge breasts, poorly drawn breasts, extra breasts, liquid breasts,heavy breasts, missing breasts, huge haunch, huge thighs, huge calf, bad hands, fused hand,missing hand, disappearing arms, disappearing thigh, disappearing calf, disappearing legs,fused ears, bad ears, poorly drawn ears, extra ears, liquid ears, heavy ears, missing ears,fused animal ears, bad animal ears, poorly drawn animal ears, extra animal ears, liquid animal ears,heavy animal ears, missing animal ears, text, ui, error, missing fingers, missing limb, fused fingers,one hand with more than 5 fingers,one hand with less than 5 fingers,one hand with more than 5 digit,one hand with less than 5 digit, extra digit, fewer digits, fused digit,missing digit, bad digit, liquid digit,colorful tongue, black tongue, cropped, watermark, username, blurry,nsfw",
"num_inference_steps": 30,
"num_outputs": 1,
"prompt": "1girl,hair with bangs,black dress,orange background,",
"prompt_strength": 0.8,
"scheduler": "DPMSolverMultistep",
"width": 512
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "v33vwsdbktoy47gtqvssczqbfu",
"model": "zhouhaojiang/majicmix_with_lora",
"version": "29d0822dc9ca4378bb7d38a1fd32da73c34f3ae027267e303f91016fe8e00845",
"input": {
"guidance_scale": 7.5,
"height": 512,
"lora_scales": "0.5",
"lora_urls": "https://r2.sleepnow.work/fgxp2.safetensors",
"negative_prompt": "wrong structure, EasyNegative,Paintings, sketches, (worst quality:2),(low quality:2),(normal quality:2),lowers, normal quality, ((monochrome)), ((grayscales)), skin spots,acnes,skin blemishes,age spot, glans, (6 more fingers on one hand),(deformity), multiple breasts,(mutated hands and fingers:2 ), (long body :1.2), (mutation, poorly drawn :1.2) ,bad anatomy, liquid body, liquid tongue, disfigured, malformed, mutated,anatomical nonsense, text font ui, error, malformed hands, long neck, blurred, lowers,lowres, bad anatomy, bad proportions, bad shadow, uncoordinated body, unnatural body,fused breasts, bad breasts, huge breasts, poorly drawn breasts, extra breasts, liquid breasts,heavy breasts, missing breasts, huge haunch, huge thighs, huge calf, bad hands, fused hand,missing hand, disappearing arms, disappearing thigh, disappearing calf, disappearing legs,fused ears, bad ears, poorly drawn ears, extra ears, liquid ears, heavy ears, missing ears,fused animal ears, bad animal ears, poorly drawn animal ears, extra animal ears, liquid animal ears,heavy animal ears, missing animal ears, text, ui, error, missing fingers, missing limb, fused fingers,one hand with more than 5 fingers,one hand with less than 5 fingers,one hand with more than 5 digit,one hand with less than 5 digit, extra digit, fewer digits, fused digit,missing digit, bad digit, liquid digit,colorful tongue, black tongue, cropped, watermark, username, blurry,nsfw",
"num_inference_steps": 30,
"num_outputs": 1,
"prompt": "1girl,hair with bangs,black dress,orange background,",
"prompt_strength": 0.8,
"scheduler": "DPMSolverMultistep",
"width": 512
},
"logs": "Using seed: 12112\nGenerating image of 512 x 512 with prompt: 1girl,hair with bangs,black dress,orange background,\nYou are using `unload_lora_weights` to disable and unload lora weights. If you want to iteratively enable and disable adapter weights,you can use `pipe.enable_lora()` or `pipe.disable_lora()`. After installing the latest version of PEFT.\nDownloading LoRA model... from https://r2.sleepnow.work/fgxp2.safetensors\nThe current API is supported for operating with a single LoRA file. You are trying to load and fuse more than one LoRA which is not well-supported.\nLoRA models have been loaded and applied.\n 0%| | 0/30 [00:00<?, ?it/s]\n 10%|█ | 3/30 [00:00<00:01, 22.10it/s]\n 20%|██ | 6/30 [00:00<00:01, 19.10it/s]\n 27%|██▋ | 8/30 [00:00<00:01, 18.49it/s]\n 33%|███▎ | 10/30 [00:00<00:01, 18.11it/s]\n 40%|████ | 12/30 [00:00<00:01, 17.88it/s]\n 47%|████▋ | 14/30 [00:00<00:00, 17.74it/s]\n 53%|█████▎ | 16/30 [00:00<00:00, 17.63it/s]\n 60%|██████ | 18/30 [00:00<00:00, 17.56it/s]\n 67%|██████▋ | 20/30 [00:01<00:00, 17.49it/s]\n 73%|███████▎ | 22/30 [00:01<00:00, 17.46it/s]\n 80%|████████ | 24/30 [00:01<00:00, 17.44it/s]\n 87%|████████▋ | 26/30 [00:01<00:00, 17.42it/s]\n 93%|█████████▎| 28/30 [00:01<00:00, 17.40it/s]\n100%|██████████| 30/30 [00:01<00:00, 17.41it/s]\n100%|██████████| 30/30 [00:01<00:00, 17.78it/s]\nYou are using `unload_lora_weights` to disable and unload lora weights. If you want to iteratively enable and disable adapter weights,you can use `pipe.enable_lora()` or `pipe.disable_lora()`. After installing the latest version of PEFT.",
"output": [
"https://replicate.delivery/pbxt/hgHTF4e4CyXEFiKgZE730ZYCVrvzvYSqL9PTOWuC7UO5i8LJA/out-0.png"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2024-02-18T10:43:50.93366Z",
"started_at": "2024-02-18T10:43:50.945036Z",
"completed_at": "2024-02-18T10:44:03.048304Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/v33vwsdbktoy47gtqvssczqbfu/cancel",
"get": "https://api.replicate.com/v1/predictions/v33vwsdbktoy47gtqvssczqbfu"
},
"metrics": {
"predict_time": 12.103268,
"total_time": 12.114644
}
}