prompthero
/
majicmix
Generate a new image given any input text with majicMix realistic v6
- Public
- 34.4K runs
-
A100 (80GB)
Prediction
prompthero/majicmix:a11dab78f9dd9d9356b7b364cb93045ea89de1899543280ca9a9f4b77062b761Input
- width
- 512
- height
- 512
- prompt
- editorial (portrait:1. 2) of a beautiful multiracial woman with [freckles] modeling casual athleisure outfit, city background, costume design, symmetrical face and body, single face, fashion, hyperrealism, Guweiz, detailed, intricate, elegant, postprocessing, 8k
- scheduler
- K_EULER_ANCESTRAL
- num_outputs
- 1
- guidance_scale
- 7.5
- negative_prompt
- (worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale))
- prompt_strength
- 0.8
- num_inference_steps
- 30
{ "width": 512, "height": 512, "prompt": "editorial (portrait:1. 2) of a beautiful multiracial woman with [freckles] modeling casual athleisure outfit, city background, costume design, symmetrical face and body, single face, fashion, hyperrealism, Guweiz, detailed, intricate, elegant, postprocessing, 8k", "scheduler": "K_EULER_ANCESTRAL", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "(worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale))", "prompt_strength": 0.8, "num_inference_steps": 30 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run prompthero/majicmix using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "prompthero/majicmix:a11dab78f9dd9d9356b7b364cb93045ea89de1899543280ca9a9f4b77062b761", { input: { width: 512, height: 512, prompt: "editorial (portrait:1. 2) of a beautiful multiracial woman with [freckles] modeling casual athleisure outfit, city background, costume design, symmetrical face and body, single face, fashion, hyperrealism, Guweiz, detailed, intricate, elegant, postprocessing, 8k", scheduler: "K_EULER_ANCESTRAL", num_outputs: 1, guidance_scale: 7.5, negative_prompt: "(worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale))", prompt_strength: 0.8, num_inference_steps: 30 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run prompthero/majicmix using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "prompthero/majicmix:a11dab78f9dd9d9356b7b364cb93045ea89de1899543280ca9a9f4b77062b761", input={ "width": 512, "height": 512, "prompt": "editorial (portrait:1. 2) of a beautiful multiracial woman with [freckles] modeling casual athleisure outfit, city background, costume design, symmetrical face and body, single face, fashion, hyperrealism, Guweiz, detailed, intricate, elegant, postprocessing, 8k", "scheduler": "K_EULER_ANCESTRAL", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "(worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale))", "prompt_strength": 0.8, "num_inference_steps": 30 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run prompthero/majicmix 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": "prompthero/majicmix:a11dab78f9dd9d9356b7b364cb93045ea89de1899543280ca9a9f4b77062b761", "input": { "width": 512, "height": 512, "prompt": "editorial (portrait:1. 2) of a beautiful multiracial woman with [freckles] modeling casual athleisure outfit, city background, costume design, symmetrical face and body, single face, fashion, hyperrealism, Guweiz, detailed, intricate, elegant, postprocessing, 8k", "scheduler": "K_EULER_ANCESTRAL", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "(worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale))", "prompt_strength": 0.8, "num_inference_steps": 30 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-07-07T10:39:10.304572Z", "created_at": "2023-07-07T10:38:53.567826Z", "data_removed": false, "error": null, "id": "q6kwnubbuw73fmbgg2dz4r3kpa", "input": { "width": 512, "height": 512, "prompt": "editorial (portrait:1. 2) of a beautiful multiracial woman with [freckles] modeling casual athleisure outfit, city background, costume design, symmetrical face and body, single face, fashion, hyperrealism, Guweiz, detailed, intricate, elegant, postprocessing, 8k", "scheduler": "K_EULER_ANCESTRAL", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "(worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale))", "prompt_strength": 0.8, "num_inference_steps": 30 }, "logs": "Using seed: 59191\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:15, 1.84it/s]\n 7%|▋ | 2/30 [00:01<00:14, 1.95it/s]\n 10%|█ | 3/30 [00:01<00:13, 1.98it/s]\n 13%|█▎ | 4/30 [00:02<00:13, 2.00it/s]\n 17%|█▋ | 5/30 [00:02<00:12, 2.00it/s]\n 20%|██ | 6/30 [00:03<00:11, 2.01it/s]\n 23%|██▎ | 7/30 [00:03<00:11, 2.01it/s]\n 27%|██▋ | 8/30 [00:04<00:10, 2.00it/s]\n 30%|███ | 9/30 [00:04<00:10, 2.01it/s]\n 33%|███▎ | 10/30 [00:05<00:09, 2.01it/s]\n 37%|███▋ | 11/30 [00:05<00:09, 2.01it/s]\n 40%|████ | 12/30 [00:06<00:08, 2.00it/s]\n 43%|████▎ | 13/30 [00:06<00:08, 2.00it/s]\n 47%|████▋ | 14/30 [00:07<00:08, 1.99it/s]\n 50%|█████ | 15/30 [00:07<00:07, 1.99it/s]\n 53%|█████▎ | 16/30 [00:08<00:07, 1.99it/s]\n 57%|█████▋ | 17/30 [00:08<00:06, 2.00it/s]\n 60%|██████ | 18/30 [00:09<00:06, 1.99it/s]\n 63%|██████▎ | 19/30 [00:09<00:05, 1.99it/s]\n 67%|██████▋ | 20/30 [00:10<00:05, 1.98it/s]\n 70%|███████ | 21/30 [00:10<00:04, 1.98it/s]\n 73%|███████▎ | 22/30 [00:11<00:04, 1.98it/s]\n 77%|███████▋ | 23/30 [00:11<00:03, 1.98it/s]\n 80%|████████ | 24/30 [00:12<00:03, 1.97it/s]\n 83%|████████▎ | 25/30 [00:12<00:02, 1.97it/s]\n 87%|████████▋ | 26/30 [00:13<00:02, 1.97it/s]\n 90%|█████████ | 27/30 [00:13<00:01, 1.97it/s]\n 93%|█████████▎| 28/30 [00:14<00:01, 1.96it/s]\n 97%|█████████▋| 29/30 [00:14<00:00, 1.97it/s]\n100%|██████████| 30/30 [00:15<00:00, 1.97it/s]\n100%|██████████| 30/30 [00:15<00:00, 1.98it/s]", "metrics": { "predict_time": 16.77057, "total_time": 16.736746 }, "output": [ "https://replicate.delivery/pbxt/hx2SyxhFQbICDFexvQb3oeFMMbFUefJcBMvRzzvLqvk2Un1EB/out-0.png" ], "started_at": "2023-07-07T10:38:53.534002Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/q6kwnubbuw73fmbgg2dz4r3kpa", "cancel": "https://api.replicate.com/v1/predictions/q6kwnubbuw73fmbgg2dz4r3kpa/cancel" }, "version": "a11dab78f9dd9d9356b7b364cb93045ea89de1899543280ca9a9f4b77062b761" }
Generated inUsing seed: 59191 0%| | 0/30 [00:00<?, ?it/s] 3%|▎ | 1/30 [00:00<00:15, 1.84it/s] 7%|▋ | 2/30 [00:01<00:14, 1.95it/s] 10%|█ | 3/30 [00:01<00:13, 1.98it/s] 13%|█▎ | 4/30 [00:02<00:13, 2.00it/s] 17%|█▋ | 5/30 [00:02<00:12, 2.00it/s] 20%|██ | 6/30 [00:03<00:11, 2.01it/s] 23%|██▎ | 7/30 [00:03<00:11, 2.01it/s] 27%|██▋ | 8/30 [00:04<00:10, 2.00it/s] 30%|███ | 9/30 [00:04<00:10, 2.01it/s] 33%|███▎ | 10/30 [00:05<00:09, 2.01it/s] 37%|███▋ | 11/30 [00:05<00:09, 2.01it/s] 40%|████ | 12/30 [00:06<00:08, 2.00it/s] 43%|████▎ | 13/30 [00:06<00:08, 2.00it/s] 47%|████▋ | 14/30 [00:07<00:08, 1.99it/s] 50%|█████ | 15/30 [00:07<00:07, 1.99it/s] 53%|█████▎ | 16/30 [00:08<00:07, 1.99it/s] 57%|█████▋ | 17/30 [00:08<00:06, 2.00it/s] 60%|██████ | 18/30 [00:09<00:06, 1.99it/s] 63%|██████▎ | 19/30 [00:09<00:05, 1.99it/s] 67%|██████▋ | 20/30 [00:10<00:05, 1.98it/s] 70%|███████ | 21/30 [00:10<00:04, 1.98it/s] 73%|███████▎ | 22/30 [00:11<00:04, 1.98it/s] 77%|███████▋ | 23/30 [00:11<00:03, 1.98it/s] 80%|████████ | 24/30 [00:12<00:03, 1.97it/s] 83%|████████▎ | 25/30 [00:12<00:02, 1.97it/s] 87%|████████▋ | 26/30 [00:13<00:02, 1.97it/s] 90%|█████████ | 27/30 [00:13<00:01, 1.97it/s] 93%|█████████▎| 28/30 [00:14<00:01, 1.96it/s] 97%|█████████▋| 29/30 [00:14<00:00, 1.97it/s] 100%|██████████| 30/30 [00:15<00:00, 1.97it/s] 100%|██████████| 30/30 [00:15<00:00, 1.98it/s]
Prediction
prompthero/majicmix:a11dab78f9dd9d9356b7b364cb93045ea89de1899543280ca9a9f4b77062b761IDl4izeezbpbxlejpgn5opkowuyyStatusSucceededSourceWebHardwareT4Total durationCreatedInput
- width
- 512
- height
- 512
- prompt
- RAW photo of a beautiful multiracial woman in casual athleisure outfit, little smile, (high detailed skin:1. 2), small details, photorealistic, ultra-realistic photo, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3, (masterpiece)
- scheduler
- K_EULER_ANCESTRAL
- num_outputs
- 1
- guidance_scale
- 7.5
- negative_prompt
- (worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale))
- prompt_strength
- 0.8
- num_inference_steps
- 30
{ "width": 512, "height": 512, "prompt": "RAW photo of a beautiful multiracial woman in casual athleisure outfit, little smile, (high detailed skin:1. 2), small details, photorealistic, ultra-realistic photo, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3, (masterpiece)", "scheduler": "K_EULER_ANCESTRAL", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "(worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale))", "prompt_strength": 0.8, "num_inference_steps": 30 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run prompthero/majicmix using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "prompthero/majicmix:a11dab78f9dd9d9356b7b364cb93045ea89de1899543280ca9a9f4b77062b761", { input: { width: 512, height: 512, prompt: "RAW photo of a beautiful multiracial woman in casual athleisure outfit, little smile, (high detailed skin:1. 2), small details, photorealistic, ultra-realistic photo, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3, (masterpiece)", scheduler: "K_EULER_ANCESTRAL", num_outputs: 1, guidance_scale: 7.5, negative_prompt: "(worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale))", prompt_strength: 0.8, num_inference_steps: 30 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run prompthero/majicmix using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "prompthero/majicmix:a11dab78f9dd9d9356b7b364cb93045ea89de1899543280ca9a9f4b77062b761", input={ "width": 512, "height": 512, "prompt": "RAW photo of a beautiful multiracial woman in casual athleisure outfit, little smile, (high detailed skin:1. 2), small details, photorealistic, ultra-realistic photo, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3, (masterpiece)", "scheduler": "K_EULER_ANCESTRAL", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "(worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale))", "prompt_strength": 0.8, "num_inference_steps": 30 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run prompthero/majicmix 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": "prompthero/majicmix:a11dab78f9dd9d9356b7b364cb93045ea89de1899543280ca9a9f4b77062b761", "input": { "width": 512, "height": 512, "prompt": "RAW photo of a beautiful multiracial woman in casual athleisure outfit, little smile, (high detailed skin:1. 2), small details, photorealistic, ultra-realistic photo, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3, (masterpiece)", "scheduler": "K_EULER_ANCESTRAL", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "(worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale))", "prompt_strength": 0.8, "num_inference_steps": 30 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-07-07T10:39:56.941416Z", "created_at": "2023-07-07T10:39:40.555196Z", "data_removed": false, "error": null, "id": "l4izeezbpbxlejpgn5opkowuyy", "input": { "width": 512, "height": 512, "prompt": "RAW photo of a beautiful multiracial woman in casual athleisure outfit, little smile, (high detailed skin:1. 2), small details, photorealistic, ultra-realistic photo, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3, (masterpiece)", "scheduler": "K_EULER_ANCESTRAL", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "(worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale))", "prompt_strength": 0.8, "num_inference_steps": 30 }, "logs": "Using seed: 62315\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:15, 1.83it/s]\n 7%|▋ | 2/30 [00:01<00:14, 1.96it/s]\n 10%|█ | 3/30 [00:01<00:13, 1.99it/s]\n 13%|█▎ | 4/30 [00:02<00:12, 2.01it/s]\n 17%|█▋ | 5/30 [00:02<00:12, 2.02it/s]\n 20%|██ | 6/30 [00:02<00:11, 2.03it/s]\n 23%|██▎ | 7/30 [00:03<00:11, 2.03it/s]\n 27%|██▋ | 8/30 [00:03<00:10, 2.03it/s]\n 30%|███ | 9/30 [00:04<00:10, 2.03it/s]\n 33%|███▎ | 10/30 [00:04<00:09, 2.03it/s]\n 37%|███▋ | 11/30 [00:05<00:09, 2.02it/s]\n 40%|████ | 12/30 [00:05<00:08, 2.02it/s]\n 43%|████▎ | 13/30 [00:06<00:08, 2.02it/s]\n 47%|████▋ | 14/30 [00:06<00:07, 2.02it/s]\n 50%|█████ | 15/30 [00:07<00:07, 2.02it/s]\n 53%|█████▎ | 16/30 [00:07<00:06, 2.01it/s]\n 57%|█████▋ | 17/30 [00:08<00:06, 2.01it/s]\n 60%|██████ | 18/30 [00:08<00:05, 2.01it/s]\n 63%|██████▎ | 19/30 [00:09<00:05, 2.03it/s]\n 67%|██████▋ | 20/30 [00:09<00:04, 2.02it/s]\n 70%|███████ | 21/30 [00:10<00:04, 2.02it/s]\n 73%|███████▎ | 22/30 [00:10<00:03, 2.02it/s]\n 77%|███████▋ | 23/30 [00:11<00:03, 2.02it/s]\n 80%|████████ | 24/30 [00:11<00:02, 2.02it/s]\n 83%|████████▎ | 25/30 [00:12<00:02, 2.01it/s]\n 87%|████████▋ | 26/30 [00:12<00:01, 2.01it/s]\n 90%|█████████ | 27/30 [00:13<00:01, 2.01it/s]\n 93%|█████████▎| 28/30 [00:13<00:00, 2.00it/s]\n 97%|█████████▋| 29/30 [00:14<00:00, 2.00it/s]\n100%|██████████| 30/30 [00:14<00:00, 2.00it/s]\n100%|██████████| 30/30 [00:14<00:00, 2.01it/s]", "metrics": { "predict_time": 16.399917, "total_time": 16.38622 }, "output": [ "https://replicate.delivery/pbxt/GBFtQM23sfwobiBGsIqa6dzmRPkYeVcT214EDXlcmFM81ZNRA/out-0.png" ], "started_at": "2023-07-07T10:39:40.541499Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/l4izeezbpbxlejpgn5opkowuyy", "cancel": "https://api.replicate.com/v1/predictions/l4izeezbpbxlejpgn5opkowuyy/cancel" }, "version": "a11dab78f9dd9d9356b7b364cb93045ea89de1899543280ca9a9f4b77062b761" }
Generated inUsing seed: 62315 0%| | 0/30 [00:00<?, ?it/s] 3%|▎ | 1/30 [00:00<00:15, 1.83it/s] 7%|▋ | 2/30 [00:01<00:14, 1.96it/s] 10%|█ | 3/30 [00:01<00:13, 1.99it/s] 13%|█▎ | 4/30 [00:02<00:12, 2.01it/s] 17%|█▋ | 5/30 [00:02<00:12, 2.02it/s] 20%|██ | 6/30 [00:02<00:11, 2.03it/s] 23%|██▎ | 7/30 [00:03<00:11, 2.03it/s] 27%|██▋ | 8/30 [00:03<00:10, 2.03it/s] 30%|███ | 9/30 [00:04<00:10, 2.03it/s] 33%|███▎ | 10/30 [00:04<00:09, 2.03it/s] 37%|███▋ | 11/30 [00:05<00:09, 2.02it/s] 40%|████ | 12/30 [00:05<00:08, 2.02it/s] 43%|████▎ | 13/30 [00:06<00:08, 2.02it/s] 47%|████▋ | 14/30 [00:06<00:07, 2.02it/s] 50%|█████ | 15/30 [00:07<00:07, 2.02it/s] 53%|█████▎ | 16/30 [00:07<00:06, 2.01it/s] 57%|█████▋ | 17/30 [00:08<00:06, 2.01it/s] 60%|██████ | 18/30 [00:08<00:05, 2.01it/s] 63%|██████▎ | 19/30 [00:09<00:05, 2.03it/s] 67%|██████▋ | 20/30 [00:09<00:04, 2.02it/s] 70%|███████ | 21/30 [00:10<00:04, 2.02it/s] 73%|███████▎ | 22/30 [00:10<00:03, 2.02it/s] 77%|███████▋ | 23/30 [00:11<00:03, 2.02it/s] 80%|████████ | 24/30 [00:11<00:02, 2.02it/s] 83%|████████▎ | 25/30 [00:12<00:02, 2.01it/s] 87%|████████▋ | 26/30 [00:12<00:01, 2.01it/s] 90%|█████████ | 27/30 [00:13<00:01, 2.01it/s] 93%|█████████▎| 28/30 [00:13<00:00, 2.00it/s] 97%|█████████▋| 29/30 [00:14<00:00, 2.00it/s] 100%|██████████| 30/30 [00:14<00:00, 2.00it/s] 100%|██████████| 30/30 [00:14<00:00, 2.01it/s]
Prediction
prompthero/majicmix:a11dab78f9dd9d9356b7b364cb93045ea89de1899543280ca9a9f4b77062b761Input
- width
- 512
- height
- "640"
- prompt
- RAW photo of a beautiful multiracial woman in casual athleisure outfit, little smile, (high detailed skin:1.2), small details, photorealistic, ultra-realistic photo, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3, (masterpiece)
- scheduler
- K_EULER_ANCESTRAL
- num_outputs
- 1
- guidance_scale
- 7.5
- negative_prompt
- (worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale))
- prompt_strength
- 0
- num_inference_steps
- 30
{ "width": 512, "height": "640", "prompt": "RAW photo of a beautiful multiracial woman in casual athleisure outfit, little smile, (high detailed skin:1.2), small details, photorealistic, ultra-realistic photo, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3, (masterpiece)", "scheduler": "K_EULER_ANCESTRAL", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "(worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale))", "prompt_strength": 0, "num_inference_steps": 30 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run prompthero/majicmix using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "prompthero/majicmix:a11dab78f9dd9d9356b7b364cb93045ea89de1899543280ca9a9f4b77062b761", { input: { width: 512, height: "640", prompt: "RAW photo of a beautiful multiracial woman in casual athleisure outfit, little smile, (high detailed skin:1.2), small details, photorealistic, ultra-realistic photo, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3, (masterpiece)", scheduler: "K_EULER_ANCESTRAL", num_outputs: 1, guidance_scale: 7.5, negative_prompt: "(worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale))", prompt_strength: 0, num_inference_steps: 30 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run prompthero/majicmix using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "prompthero/majicmix:a11dab78f9dd9d9356b7b364cb93045ea89de1899543280ca9a9f4b77062b761", input={ "width": 512, "height": "640", "prompt": "RAW photo of a beautiful multiracial woman in casual athleisure outfit, little smile, (high detailed skin:1.2), small details, photorealistic, ultra-realistic photo, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3, (masterpiece)", "scheduler": "K_EULER_ANCESTRAL", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "(worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale))", "prompt_strength": 0, "num_inference_steps": 30 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run prompthero/majicmix 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": "prompthero/majicmix:a11dab78f9dd9d9356b7b364cb93045ea89de1899543280ca9a9f4b77062b761", "input": { "width": 512, "height": "640", "prompt": "RAW photo of a beautiful multiracial woman in casual athleisure outfit, little smile, (high detailed skin:1.2), small details, photorealistic, ultra-realistic photo, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3, (masterpiece)", "scheduler": "K_EULER_ANCESTRAL", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "(worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale))", "prompt_strength": 0, "num_inference_steps": 30 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-07-07T10:40:53.746482Z", "created_at": "2023-07-07T10:40:30.518098Z", "data_removed": false, "error": null, "id": "wjd44srb3hpntzkk4om5dpi7ui", "input": { "width": 512, "height": "640", "prompt": "RAW photo of a beautiful multiracial woman in casual athleisure outfit, little smile, (high detailed skin:1.2), small details, photorealistic, ultra-realistic photo, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3, (masterpiece)", "scheduler": "K_EULER_ANCESTRAL", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "(worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, normal quality, ((monochrome)), ((grayscale))", "prompt_strength": 0, "num_inference_steps": 30 }, "logs": "Using seed: 64710\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:21, 1.34it/s]\n 7%|▋ | 2/30 [00:01<00:20, 1.37it/s]\n 10%|█ | 3/30 [00:02<00:19, 1.39it/s]\n 13%|█▎ | 4/30 [00:02<00:18, 1.39it/s]\n 17%|█▋ | 5/30 [00:03<00:17, 1.39it/s]\n 20%|██ | 6/30 [00:04<00:17, 1.39it/s]\n 23%|██▎ | 7/30 [00:05<00:16, 1.39it/s]\n 27%|██▋ | 8/30 [00:05<00:15, 1.39it/s]\n 30%|███ | 9/30 [00:06<00:15, 1.39it/s]\n 33%|███▎ | 10/30 [00:07<00:14, 1.39it/s]\n 37%|███▋ | 11/30 [00:07<00:13, 1.39it/s]\n 40%|████ | 12/30 [00:08<00:12, 1.39it/s]\n 43%|████▎ | 13/30 [00:09<00:12, 1.39it/s]\n 47%|████▋ | 14/30 [00:10<00:11, 1.39it/s]\n 50%|█████ | 15/30 [00:10<00:10, 1.38it/s]\n 53%|█████▎ | 16/30 [00:11<00:10, 1.39it/s]\n 57%|█████▋ | 17/30 [00:12<00:09, 1.38it/s]\n 60%|██████ | 18/30 [00:12<00:08, 1.38it/s]\n 63%|██████▎ | 19/30 [00:13<00:07, 1.39it/s]\n 67%|██████▋ | 20/30 [00:14<00:07, 1.38it/s]\n 70%|███████ | 21/30 [00:15<00:06, 1.39it/s]\n 73%|███████▎ | 22/30 [00:15<00:05, 1.39it/s]\n 77%|███████▋ | 23/30 [00:16<00:05, 1.39it/s]\n 80%|████████ | 24/30 [00:17<00:04, 1.39it/s]\n 83%|████████▎ | 25/30 [00:18<00:03, 1.39it/s]\n 87%|████████▋ | 26/30 [00:18<00:02, 1.39it/s]\n 90%|█████████ | 27/30 [00:19<00:02, 1.39it/s]\n 93%|█████████▎| 28/30 [00:20<00:01, 1.39it/s]\n 97%|█████████▋| 29/30 [00:20<00:00, 1.39it/s]\n100%|██████████| 30/30 [00:21<00:00, 1.39it/s]\n100%|██████████| 30/30 [00:21<00:00, 1.39it/s]", "metrics": { "predict_time": 23.256031, "total_time": 23.228384 }, "output": [ "https://replicate.delivery/pbxt/eyWuZBef0eYKVQTNvr2DyQQgJQ6UsWuUzCnI9qIj5EqXbn1EB/out-0.png" ], "started_at": "2023-07-07T10:40:30.490451Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/wjd44srb3hpntzkk4om5dpi7ui", "cancel": "https://api.replicate.com/v1/predictions/wjd44srb3hpntzkk4om5dpi7ui/cancel" }, "version": "a11dab78f9dd9d9356b7b364cb93045ea89de1899543280ca9a9f4b77062b761" }
Generated inUsing seed: 64710 0%| | 0/30 [00:00<?, ?it/s] 3%|▎ | 1/30 [00:00<00:21, 1.34it/s] 7%|▋ | 2/30 [00:01<00:20, 1.37it/s] 10%|█ | 3/30 [00:02<00:19, 1.39it/s] 13%|█▎ | 4/30 [00:02<00:18, 1.39it/s] 17%|█▋ | 5/30 [00:03<00:17, 1.39it/s] 20%|██ | 6/30 [00:04<00:17, 1.39it/s] 23%|██▎ | 7/30 [00:05<00:16, 1.39it/s] 27%|██▋ | 8/30 [00:05<00:15, 1.39it/s] 30%|███ | 9/30 [00:06<00:15, 1.39it/s] 33%|███▎ | 10/30 [00:07<00:14, 1.39it/s] 37%|███▋ | 11/30 [00:07<00:13, 1.39it/s] 40%|████ | 12/30 [00:08<00:12, 1.39it/s] 43%|████▎ | 13/30 [00:09<00:12, 1.39it/s] 47%|████▋ | 14/30 [00:10<00:11, 1.39it/s] 50%|█████ | 15/30 [00:10<00:10, 1.38it/s] 53%|█████▎ | 16/30 [00:11<00:10, 1.39it/s] 57%|█████▋ | 17/30 [00:12<00:09, 1.38it/s] 60%|██████ | 18/30 [00:12<00:08, 1.38it/s] 63%|██████▎ | 19/30 [00:13<00:07, 1.39it/s] 67%|██████▋ | 20/30 [00:14<00:07, 1.38it/s] 70%|███████ | 21/30 [00:15<00:06, 1.39it/s] 73%|███████▎ | 22/30 [00:15<00:05, 1.39it/s] 77%|███████▋ | 23/30 [00:16<00:05, 1.39it/s] 80%|████████ | 24/30 [00:17<00:04, 1.39it/s] 83%|████████▎ | 25/30 [00:18<00:03, 1.39it/s] 87%|████████▋ | 26/30 [00:18<00:02, 1.39it/s] 90%|█████████ | 27/30 [00:19<00:02, 1.39it/s] 93%|█████████▎| 28/30 [00:20<00:01, 1.39it/s] 97%|█████████▋| 29/30 [00:20<00:00, 1.39it/s] 100%|██████████| 30/30 [00:21<00:00, 1.39it/s] 100%|██████████| 30/30 [00:21<00:00, 1.39it/s]
Want to make some of these yourself?
Run this model