michaelcarterhere / fluxformichael
- Public
- 128 runs
-
H100
Prediction
michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0IDfbm4w92qpxrm00cjtw8rervg48StatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer, his hair is thick, he is walking down a busy street in manhattan
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- webp
- guidance_scale
- 3.5
- output_quality
- 90
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer, his hair is thick, he is walking down a busy street in manhattan", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run michaelcarterhere/fluxformichael using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0", { input: { model: "dev", prompt: "headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer, his hair is thick, he is walking down a busy street in manhattan", lora_scale: 1, num_outputs: 1, aspect_ratio: "1:1", output_format: "webp", guidance_scale: 3.5, output_quality: 90, prompt_strength: 0.8, 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run michaelcarterhere/fluxformichael using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0", input={ "model": "dev", "prompt": "headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer, his hair is thick, he is walking down a busy street in manhattan", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run michaelcarterhere/fluxformichael 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": "michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0", "input": { "model": "dev", "prompt": "headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer, his hair is thick, he is walking down a busy street in manhattan", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "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.
Output
{ "completed_at": "2024-10-29T06:58:23.610684Z", "created_at": "2024-10-29T06:58:10.999000Z", "data_removed": false, "error": null, "id": "fbm4w92qpxrm00cjtw8rervg48", "input": { "model": "dev", "prompt": "headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer, his hair is thick, he is walking down a busy street in manhattan", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "Using seed: 7594\nPrompt: headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer, his hair is thick, he is walking down a busy street in manhattan\n[!] txt2img mode\nUsing dev model\nfree=7517429190656\nDownloading weights\n2024-10-29T06:58:11Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmphvxeembk/weights url=https://replicate.delivery/yhqm/1QfIImcatuz2QinGOkgvFn43kJujGmdP0onQqlqUjaJJrx1JA/trained_model.tar\n2024-10-29T06:58:13Z | INFO | [ Complete ] dest=/tmp/tmphvxeembk/weights size=\"172 MB\" total_elapsed=1.592s url=https://replicate.delivery/yhqm/1QfIImcatuz2QinGOkgvFn43kJujGmdP0onQqlqUjaJJrx1JA/trained_model.tar\nDownloaded weights in 1.62s\nLoaded LoRAs in 2.21s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:09, 2.89it/s]\n 7%|▋ | 2/28 [00:00<00:08, 3.22it/s]\n 11%|█ | 3/28 [00:00<00:08, 3.06it/s]\n 14%|█▍ | 4/28 [00:01<00:08, 2.99it/s]\n 18%|█▊ | 5/28 [00:01<00:07, 2.95it/s]\n 21%|██▏ | 6/28 [00:02<00:07, 2.93it/s]\n 25%|██▌ | 7/28 [00:02<00:07, 2.92it/s]\n 29%|██▊ | 8/28 [00:02<00:06, 2.91it/s]\n 32%|███▏ | 9/28 [00:03<00:06, 2.90it/s]\n 36%|███▌ | 10/28 [00:03<00:06, 2.90it/s]\n 39%|███▉ | 11/28 [00:03<00:05, 2.89it/s]\n 43%|████▎ | 12/28 [00:04<00:05, 2.89it/s]\n 46%|████▋ | 13/28 [00:04<00:05, 2.89it/s]\n 50%|█████ | 14/28 [00:04<00:04, 2.89it/s]\n 54%|█████▎ | 15/28 [00:05<00:04, 2.89it/s]\n 57%|█████▋ | 16/28 [00:05<00:04, 2.89it/s]\n 61%|██████ | 17/28 [00:05<00:03, 2.89it/s]\n 64%|██████▍ | 18/28 [00:06<00:03, 2.89it/s]\n 68%|██████▊ | 19/28 [00:06<00:03, 2.89it/s]\n 71%|███████▏ | 20/28 [00:06<00:02, 2.89it/s]\n 75%|███████▌ | 21/28 [00:07<00:02, 2.88it/s]\n 79%|███████▊ | 22/28 [00:07<00:02, 2.88it/s]\n 82%|████████▏ | 23/28 [00:07<00:01, 2.88it/s]\n 86%|████████▌ | 24/28 [00:08<00:01, 2.88it/s]\n 89%|████████▉ | 25/28 [00:08<00:01, 2.88it/s]\n 93%|█████████▎| 26/28 [00:08<00:00, 2.88it/s]\n 96%|█████████▋| 27/28 [00:09<00:00, 2.88it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.88it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.90it/s]", "metrics": { "predict_time": 12.196517714, "total_time": 12.611684 }, "output": [ "https://replicate.delivery/yhqm/wb7pCh0TSWaWBdCDvZh0z8XajH36v9FuYGIzGE7bqK2j546E/out-0.webp" ], "started_at": "2024-10-29T06:58:11.414167Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/wcdb-hauvrf6wn2jqyrsoh77fkihxu6kmr6mdwef7wvvl7kim4iffkfla", "get": "https://api.replicate.com/v1/predictions/fbm4w92qpxrm00cjtw8rervg48", "cancel": "https://api.replicate.com/v1/predictions/fbm4w92qpxrm00cjtw8rervg48/cancel" }, "version": "1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0" }
Generated inUsing seed: 7594 Prompt: headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer, his hair is thick, he is walking down a busy street in manhattan [!] txt2img mode Using dev model free=7517429190656 Downloading weights 2024-10-29T06:58:11Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmphvxeembk/weights url=https://replicate.delivery/yhqm/1QfIImcatuz2QinGOkgvFn43kJujGmdP0onQqlqUjaJJrx1JA/trained_model.tar 2024-10-29T06:58:13Z | INFO | [ Complete ] dest=/tmp/tmphvxeembk/weights size="172 MB" total_elapsed=1.592s url=https://replicate.delivery/yhqm/1QfIImcatuz2QinGOkgvFn43kJujGmdP0onQqlqUjaJJrx1JA/trained_model.tar Downloaded weights in 1.62s Loaded LoRAs in 2.21s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:09, 2.89it/s] 7%|▋ | 2/28 [00:00<00:08, 3.22it/s] 11%|█ | 3/28 [00:00<00:08, 3.06it/s] 14%|█▍ | 4/28 [00:01<00:08, 2.99it/s] 18%|█▊ | 5/28 [00:01<00:07, 2.95it/s] 21%|██▏ | 6/28 [00:02<00:07, 2.93it/s] 25%|██▌ | 7/28 [00:02<00:07, 2.92it/s] 29%|██▊ | 8/28 [00:02<00:06, 2.91it/s] 32%|███▏ | 9/28 [00:03<00:06, 2.90it/s] 36%|███▌ | 10/28 [00:03<00:06, 2.90it/s] 39%|███▉ | 11/28 [00:03<00:05, 2.89it/s] 43%|████▎ | 12/28 [00:04<00:05, 2.89it/s] 46%|████▋ | 13/28 [00:04<00:05, 2.89it/s] 50%|█████ | 14/28 [00:04<00:04, 2.89it/s] 54%|█████▎ | 15/28 [00:05<00:04, 2.89it/s] 57%|█████▋ | 16/28 [00:05<00:04, 2.89it/s] 61%|██████ | 17/28 [00:05<00:03, 2.89it/s] 64%|██████▍ | 18/28 [00:06<00:03, 2.89it/s] 68%|██████▊ | 19/28 [00:06<00:03, 2.89it/s] 71%|███████▏ | 20/28 [00:06<00:02, 2.89it/s] 75%|███████▌ | 21/28 [00:07<00:02, 2.88it/s] 79%|███████▊ | 22/28 [00:07<00:02, 2.88it/s] 82%|████████▏ | 23/28 [00:07<00:01, 2.88it/s] 86%|████████▌ | 24/28 [00:08<00:01, 2.88it/s] 89%|████████▉ | 25/28 [00:08<00:01, 2.88it/s] 93%|█████████▎| 26/28 [00:08<00:00, 2.88it/s] 96%|█████████▋| 27/28 [00:09<00:00, 2.88it/s] 100%|██████████| 28/28 [00:09<00:00, 2.88it/s] 100%|██████████| 28/28 [00:09<00:00, 2.90it/s]
Prediction
michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0IDx3k38a1zmnrm00cjtw88rcwg1rStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer, his hair is thick, he is sitting in a cafe in manhattan
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- webp
- guidance_scale
- 3.5
- output_quality
- 90
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer, his hair is thick, he is sitting in a cafe in manhattan", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run michaelcarterhere/fluxformichael using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0", { input: { model: "dev", prompt: "headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer, his hair is thick, he is sitting in a cafe in manhattan", lora_scale: 1, num_outputs: 1, aspect_ratio: "1:1", output_format: "webp", guidance_scale: 3.5, output_quality: 90, prompt_strength: 0.8, 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run michaelcarterhere/fluxformichael using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0", input={ "model": "dev", "prompt": "headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer, his hair is thick, he is sitting in a cafe in manhattan", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run michaelcarterhere/fluxformichael 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": "michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0", "input": { "model": "dev", "prompt": "headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer, his hair is thick, he is sitting in a cafe in manhattan", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "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.
Output
{ "completed_at": "2024-10-29T06:57:13.675626Z", "created_at": "2024-10-29T06:56:59.301000Z", "data_removed": false, "error": null, "id": "x3k38a1zmnrm00cjtw88rcwg1r", "input": { "model": "dev", "prompt": "headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer, his hair is thick, he is sitting in a cafe in manhattan", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "Using seed: 18149\nPrompt: headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer, his hair is thick, he is sitting in a cafe in manhattan\n[!] txt2img mode\nUsing dev model\nfree=8338058121216\nDownloading weights\n2024-10-29T06:56:59Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpruii5hba/weights url=https://replicate.delivery/yhqm/1QfIImcatuz2QinGOkgvFn43kJujGmdP0onQqlqUjaJJrx1JA/trained_model.tar\n2024-10-29T06:57:02Z | INFO | [ Complete ] dest=/tmp/tmpruii5hba/weights size=\"172 MB\" total_elapsed=3.528s url=https://replicate.delivery/yhqm/1QfIImcatuz2QinGOkgvFn43kJujGmdP0onQqlqUjaJJrx1JA/trained_model.tar\nDownloaded weights in 3.56s\nLoaded LoRAs in 4.31s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:09, 2.88it/s]\n 7%|▋ | 2/28 [00:00<00:08, 3.21it/s]\n 11%|█ | 3/28 [00:00<00:08, 3.05it/s]\n 14%|█▍ | 4/28 [00:01<00:08, 2.98it/s]\n 18%|█▊ | 5/28 [00:01<00:07, 2.94it/s]\n 21%|██▏ | 6/28 [00:02<00:07, 2.92it/s]\n 25%|██▌ | 7/28 [00:02<00:07, 2.91it/s]\n 29%|██▊ | 8/28 [00:02<00:06, 2.90it/s]\n 32%|███▏ | 9/28 [00:03<00:06, 2.89it/s]\n 36%|███▌ | 10/28 [00:03<00:06, 2.89it/s]\n 39%|███▉ | 11/28 [00:03<00:05, 2.89it/s]\n 43%|████▎ | 12/28 [00:04<00:05, 2.88it/s]\n 46%|████▋ | 13/28 [00:04<00:05, 2.88it/s]\n 50%|█████ | 14/28 [00:04<00:04, 2.88it/s]\n 54%|█████▎ | 15/28 [00:05<00:04, 2.88it/s]\n 57%|█████▋ | 16/28 [00:05<00:04, 2.88it/s]\n 61%|██████ | 17/28 [00:05<00:03, 2.88it/s]\n 64%|██████▍ | 18/28 [00:06<00:03, 2.88it/s]\n 68%|██████▊ | 19/28 [00:06<00:03, 2.88it/s]\n 71%|███████▏ | 20/28 [00:06<00:02, 2.88it/s]\n 75%|███████▌ | 21/28 [00:07<00:02, 2.88it/s]\n 79%|███████▊ | 22/28 [00:07<00:02, 2.88it/s]\n 82%|████████▏ | 23/28 [00:07<00:01, 2.88it/s]\n 86%|████████▌ | 24/28 [00:08<00:01, 2.88it/s]\n 89%|████████▉ | 25/28 [00:08<00:01, 2.88it/s]\n 93%|█████████▎| 26/28 [00:08<00:00, 2.88it/s]\n 96%|█████████▋| 27/28 [00:09<00:00, 2.88it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.88it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.90it/s]", "metrics": { "predict_time": 14.33180565, "total_time": 14.374626 }, "output": [ "https://replicate.delivery/yhqm/fK43XMm2uK3aWycJ1vCeIdCWyyTGzWsWoG2soN0E2HyJljrTA/out-0.webp" ], "started_at": "2024-10-29T06:56:59.343820Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/wcdb-oidvch3jfwhgppqm2dn6xpl5ae3wnwgatc46hcgp7aoq27qxozva", "get": "https://api.replicate.com/v1/predictions/x3k38a1zmnrm00cjtw88rcwg1r", "cancel": "https://api.replicate.com/v1/predictions/x3k38a1zmnrm00cjtw88rcwg1r/cancel" }, "version": "1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0" }
Generated inUsing seed: 18149 Prompt: headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer, his hair is thick, he is sitting in a cafe in manhattan [!] txt2img mode Using dev model free=8338058121216 Downloading weights 2024-10-29T06:56:59Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpruii5hba/weights url=https://replicate.delivery/yhqm/1QfIImcatuz2QinGOkgvFn43kJujGmdP0onQqlqUjaJJrx1JA/trained_model.tar 2024-10-29T06:57:02Z | INFO | [ Complete ] dest=/tmp/tmpruii5hba/weights size="172 MB" total_elapsed=3.528s url=https://replicate.delivery/yhqm/1QfIImcatuz2QinGOkgvFn43kJujGmdP0onQqlqUjaJJrx1JA/trained_model.tar Downloaded weights in 3.56s Loaded LoRAs in 4.31s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:09, 2.88it/s] 7%|▋ | 2/28 [00:00<00:08, 3.21it/s] 11%|█ | 3/28 [00:00<00:08, 3.05it/s] 14%|█▍ | 4/28 [00:01<00:08, 2.98it/s] 18%|█▊ | 5/28 [00:01<00:07, 2.94it/s] 21%|██▏ | 6/28 [00:02<00:07, 2.92it/s] 25%|██▌ | 7/28 [00:02<00:07, 2.91it/s] 29%|██▊ | 8/28 [00:02<00:06, 2.90it/s] 32%|███▏ | 9/28 [00:03<00:06, 2.89it/s] 36%|███▌ | 10/28 [00:03<00:06, 2.89it/s] 39%|███▉ | 11/28 [00:03<00:05, 2.89it/s] 43%|████▎ | 12/28 [00:04<00:05, 2.88it/s] 46%|████▋ | 13/28 [00:04<00:05, 2.88it/s] 50%|█████ | 14/28 [00:04<00:04, 2.88it/s] 54%|█████▎ | 15/28 [00:05<00:04, 2.88it/s] 57%|█████▋ | 16/28 [00:05<00:04, 2.88it/s] 61%|██████ | 17/28 [00:05<00:03, 2.88it/s] 64%|██████▍ | 18/28 [00:06<00:03, 2.88it/s] 68%|██████▊ | 19/28 [00:06<00:03, 2.88it/s] 71%|███████▏ | 20/28 [00:06<00:02, 2.88it/s] 75%|███████▌ | 21/28 [00:07<00:02, 2.88it/s] 79%|███████▊ | 22/28 [00:07<00:02, 2.88it/s] 82%|████████▏ | 23/28 [00:07<00:01, 2.88it/s] 86%|████████▌ | 24/28 [00:08<00:01, 2.88it/s] 89%|████████▉ | 25/28 [00:08<00:01, 2.88it/s] 93%|█████████▎| 26/28 [00:08<00:00, 2.88it/s] 96%|█████████▋| 27/28 [00:09<00:00, 2.88it/s] 100%|██████████| 28/28 [00:09<00:00, 2.88it/s] 100%|██████████| 28/28 [00:09<00:00, 2.90it/s]
Prediction
michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0ID7my75w1an1rm40cjtwba8c6e08StatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer with a fashionable scarf, he is standing in the lobby of a financial office
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- webp
- guidance_scale
- 3.5
- output_quality
- 90
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer with a fashionable scarf, he is standing in the lobby of a financial office", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run michaelcarterhere/fluxformichael using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0", { input: { model: "dev", prompt: "headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer with a fashionable scarf, he is standing in the lobby of a financial office", lora_scale: 1, num_outputs: 1, aspect_ratio: "1:1", output_format: "webp", guidance_scale: 3.5, output_quality: 90, prompt_strength: 0.8, 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run michaelcarterhere/fluxformichael using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0", input={ "model": "dev", "prompt": "headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer with a fashionable scarf, he is standing in the lobby of a financial office", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run michaelcarterhere/fluxformichael 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": "michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0", "input": { "model": "dev", "prompt": "headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer with a fashionable scarf, he is standing in the lobby of a financial office", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "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.
Output
{ "completed_at": "2024-10-29T07:03:43.199322Z", "created_at": "2024-10-29T07:03:27.144000Z", "data_removed": false, "error": null, "id": "7my75w1an1rm40cjtwba8c6e08", "input": { "model": "dev", "prompt": "headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer with a fashionable scarf, he is standing in the lobby of a financial office", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "Using seed: 47856\nPrompt: headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer with a fashionable scarf, he is standing in the lobby of a financial office\n[!] txt2img mode\nUsing dev model\nfree=7130065387520\nDownloading weights\n2024-10-29T07:03:30Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp0nur5ril/weights url=https://replicate.delivery/yhqm/1QfIImcatuz2QinGOkgvFn43kJujGmdP0onQqlqUjaJJrx1JA/trained_model.tar\n2024-10-29T07:03:32Z | INFO | [ Complete ] dest=/tmp/tmp0nur5ril/weights size=\"172 MB\" total_elapsed=1.644s url=https://replicate.delivery/yhqm/1QfIImcatuz2QinGOkgvFn43kJujGmdP0onQqlqUjaJJrx1JA/trained_model.tar\nDownloaded weights in 1.67s\nLoaded LoRAs in 2.38s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:09, 2.88it/s]\n 7%|▋ | 2/28 [00:00<00:08, 3.22it/s]\n 11%|█ | 3/28 [00:00<00:08, 3.06it/s]\n 14%|█▍ | 4/28 [00:01<00:08, 2.99it/s]\n 18%|█▊ | 5/28 [00:01<00:07, 2.95it/s]\n 21%|██▏ | 6/28 [00:02<00:07, 2.93it/s]\n 25%|██▌ | 7/28 [00:02<00:07, 2.91it/s]\n 29%|██▊ | 8/28 [00:02<00:06, 2.90it/s]\n 32%|███▏ | 9/28 [00:03<00:06, 2.90it/s]\n 36%|███▌ | 10/28 [00:03<00:06, 2.89it/s]\n 39%|███▉ | 11/28 [00:03<00:05, 2.89it/s]\n 43%|████▎ | 12/28 [00:04<00:05, 2.89it/s]\n 46%|████▋ | 13/28 [00:04<00:05, 2.89it/s]\n 50%|█████ | 14/28 [00:04<00:04, 2.89it/s]\n 54%|█████▎ | 15/28 [00:05<00:04, 2.89it/s]\n 57%|█████▋ | 16/28 [00:05<00:04, 2.89it/s]\n 61%|██████ | 17/28 [00:05<00:03, 2.89it/s]\n 64%|██████▍ | 18/28 [00:06<00:03, 2.89it/s]\n 68%|██████▊ | 19/28 [00:06<00:03, 2.89it/s]\n 71%|███████▏ | 20/28 [00:06<00:02, 2.89it/s]\n 75%|███████▌ | 21/28 [00:07<00:02, 2.89it/s]\n 79%|███████▊ | 22/28 [00:07<00:02, 2.89it/s]\n 82%|████████▏ | 23/28 [00:07<00:01, 2.89it/s]\n 86%|████████▌ | 24/28 [00:08<00:01, 2.89it/s]\n 89%|████████▉ | 25/28 [00:08<00:01, 2.89it/s]\n 93%|█████████▎| 26/28 [00:08<00:00, 2.89it/s]\n 96%|█████████▋| 27/28 [00:09<00:00, 2.88it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.88it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.90it/s]", "metrics": { "predict_time": 12.369199489, "total_time": 16.055322 }, "output": [ "https://replicate.delivery/yhqm/KQATOlfVUtVMSCH5NWAyDkH1Gxrw8TL1eTeEz2s9EVf9sOuOB/out-0.webp" ], "started_at": "2024-10-29T07:03:30.830123Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/wcdb-wapmzj56cqgwyd275bkjf5vdajajn4ptns3pufdjy75uz5f36nya", "get": "https://api.replicate.com/v1/predictions/7my75w1an1rm40cjtwba8c6e08", "cancel": "https://api.replicate.com/v1/predictions/7my75w1an1rm40cjtwba8c6e08/cancel" }, "version": "1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0" }
Generated inUsing seed: 47856 Prompt: headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer with a fashionable scarf, he is standing in the lobby of a financial office [!] txt2img mode Using dev model free=7130065387520 Downloading weights 2024-10-29T07:03:30Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp0nur5ril/weights url=https://replicate.delivery/yhqm/1QfIImcatuz2QinGOkgvFn43kJujGmdP0onQqlqUjaJJrx1JA/trained_model.tar 2024-10-29T07:03:32Z | INFO | [ Complete ] dest=/tmp/tmp0nur5ril/weights size="172 MB" total_elapsed=1.644s url=https://replicate.delivery/yhqm/1QfIImcatuz2QinGOkgvFn43kJujGmdP0onQqlqUjaJJrx1JA/trained_model.tar Downloaded weights in 1.67s Loaded LoRAs in 2.38s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:09, 2.88it/s] 7%|▋ | 2/28 [00:00<00:08, 3.22it/s] 11%|█ | 3/28 [00:00<00:08, 3.06it/s] 14%|█▍ | 4/28 [00:01<00:08, 2.99it/s] 18%|█▊ | 5/28 [00:01<00:07, 2.95it/s] 21%|██▏ | 6/28 [00:02<00:07, 2.93it/s] 25%|██▌ | 7/28 [00:02<00:07, 2.91it/s] 29%|██▊ | 8/28 [00:02<00:06, 2.90it/s] 32%|███▏ | 9/28 [00:03<00:06, 2.90it/s] 36%|███▌ | 10/28 [00:03<00:06, 2.89it/s] 39%|███▉ | 11/28 [00:03<00:05, 2.89it/s] 43%|████▎ | 12/28 [00:04<00:05, 2.89it/s] 46%|████▋ | 13/28 [00:04<00:05, 2.89it/s] 50%|█████ | 14/28 [00:04<00:04, 2.89it/s] 54%|█████▎ | 15/28 [00:05<00:04, 2.89it/s] 57%|█████▋ | 16/28 [00:05<00:04, 2.89it/s] 61%|██████ | 17/28 [00:05<00:03, 2.89it/s] 64%|██████▍ | 18/28 [00:06<00:03, 2.89it/s] 68%|██████▊ | 19/28 [00:06<00:03, 2.89it/s] 71%|███████▏ | 20/28 [00:06<00:02, 2.89it/s] 75%|███████▌ | 21/28 [00:07<00:02, 2.89it/s] 79%|███████▊ | 22/28 [00:07<00:02, 2.89it/s] 82%|████████▏ | 23/28 [00:07<00:01, 2.89it/s] 86%|████████▌ | 24/28 [00:08<00:01, 2.89it/s] 89%|████████▉ | 25/28 [00:08<00:01, 2.89it/s] 93%|█████████▎| 26/28 [00:08<00:00, 2.89it/s] 96%|█████████▋| 27/28 [00:09<00:00, 2.88it/s] 100%|██████████| 28/28 [00:09<00:00, 2.88it/s] 100%|██████████| 28/28 [00:09<00:00, 2.90it/s]
Prediction
michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0ID7my75w1an1rm40cjtwba8c6e08StatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer with a fashionable scarf, he is standing in the lobby of a financial office
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- webp
- guidance_scale
- 3.5
- output_quality
- 90
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer with a fashionable scarf, he is standing in the lobby of a financial office", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run michaelcarterhere/fluxformichael using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0", { input: { model: "dev", prompt: "headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer with a fashionable scarf, he is standing in the lobby of a financial office", lora_scale: 1, num_outputs: 1, aspect_ratio: "1:1", output_format: "webp", guidance_scale: 3.5, output_quality: 90, prompt_strength: 0.8, 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run michaelcarterhere/fluxformichael using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0", input={ "model": "dev", "prompt": "headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer with a fashionable scarf, he is standing in the lobby of a financial office", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run michaelcarterhere/fluxformichael 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": "michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0", "input": { "model": "dev", "prompt": "headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer with a fashionable scarf, he is standing in the lobby of a financial office", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "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.
Output
{ "completed_at": "2024-10-29T07:03:43.199322Z", "created_at": "2024-10-29T07:03:27.144000Z", "data_removed": false, "error": null, "id": "7my75w1an1rm40cjtwba8c6e08", "input": { "model": "dev", "prompt": "headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer with a fashionable scarf, he is standing in the lobby of a financial office", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "Using seed: 47856\nPrompt: headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer with a fashionable scarf, he is standing in the lobby of a financial office\n[!] txt2img mode\nUsing dev model\nfree=7130065387520\nDownloading weights\n2024-10-29T07:03:30Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp0nur5ril/weights url=https://replicate.delivery/yhqm/1QfIImcatuz2QinGOkgvFn43kJujGmdP0onQqlqUjaJJrx1JA/trained_model.tar\n2024-10-29T07:03:32Z | INFO | [ Complete ] dest=/tmp/tmp0nur5ril/weights size=\"172 MB\" total_elapsed=1.644s url=https://replicate.delivery/yhqm/1QfIImcatuz2QinGOkgvFn43kJujGmdP0onQqlqUjaJJrx1JA/trained_model.tar\nDownloaded weights in 1.67s\nLoaded LoRAs in 2.38s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:09, 2.88it/s]\n 7%|▋ | 2/28 [00:00<00:08, 3.22it/s]\n 11%|█ | 3/28 [00:00<00:08, 3.06it/s]\n 14%|█▍ | 4/28 [00:01<00:08, 2.99it/s]\n 18%|█▊ | 5/28 [00:01<00:07, 2.95it/s]\n 21%|██▏ | 6/28 [00:02<00:07, 2.93it/s]\n 25%|██▌ | 7/28 [00:02<00:07, 2.91it/s]\n 29%|██▊ | 8/28 [00:02<00:06, 2.90it/s]\n 32%|███▏ | 9/28 [00:03<00:06, 2.90it/s]\n 36%|███▌ | 10/28 [00:03<00:06, 2.89it/s]\n 39%|███▉ | 11/28 [00:03<00:05, 2.89it/s]\n 43%|████▎ | 12/28 [00:04<00:05, 2.89it/s]\n 46%|████▋ | 13/28 [00:04<00:05, 2.89it/s]\n 50%|█████ | 14/28 [00:04<00:04, 2.89it/s]\n 54%|█████▎ | 15/28 [00:05<00:04, 2.89it/s]\n 57%|█████▋ | 16/28 [00:05<00:04, 2.89it/s]\n 61%|██████ | 17/28 [00:05<00:03, 2.89it/s]\n 64%|██████▍ | 18/28 [00:06<00:03, 2.89it/s]\n 68%|██████▊ | 19/28 [00:06<00:03, 2.89it/s]\n 71%|███████▏ | 20/28 [00:06<00:02, 2.89it/s]\n 75%|███████▌ | 21/28 [00:07<00:02, 2.89it/s]\n 79%|███████▊ | 22/28 [00:07<00:02, 2.89it/s]\n 82%|████████▏ | 23/28 [00:07<00:01, 2.89it/s]\n 86%|████████▌ | 24/28 [00:08<00:01, 2.89it/s]\n 89%|████████▉ | 25/28 [00:08<00:01, 2.89it/s]\n 93%|█████████▎| 26/28 [00:08<00:00, 2.89it/s]\n 96%|█████████▋| 27/28 [00:09<00:00, 2.88it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.88it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.90it/s]", "metrics": { "predict_time": 12.369199489, "total_time": 16.055322 }, "output": [ "https://replicate.delivery/yhqm/KQATOlfVUtVMSCH5NWAyDkH1Gxrw8TL1eTeEz2s9EVf9sOuOB/out-0.webp" ], "started_at": "2024-10-29T07:03:30.830123Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/wcdb-wapmzj56cqgwyd275bkjf5vdajajn4ptns3pufdjy75uz5f36nya", "get": "https://api.replicate.com/v1/predictions/7my75w1an1rm40cjtwba8c6e08", "cancel": "https://api.replicate.com/v1/predictions/7my75w1an1rm40cjtwba8c6e08/cancel" }, "version": "1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0" }
Generated inUsing seed: 47856 Prompt: headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a banana republic blazer with a fashionable scarf, he is standing in the lobby of a financial office [!] txt2img mode Using dev model free=7130065387520 Downloading weights 2024-10-29T07:03:30Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp0nur5ril/weights url=https://replicate.delivery/yhqm/1QfIImcatuz2QinGOkgvFn43kJujGmdP0onQqlqUjaJJrx1JA/trained_model.tar 2024-10-29T07:03:32Z | INFO | [ Complete ] dest=/tmp/tmp0nur5ril/weights size="172 MB" total_elapsed=1.644s url=https://replicate.delivery/yhqm/1QfIImcatuz2QinGOkgvFn43kJujGmdP0onQqlqUjaJJrx1JA/trained_model.tar Downloaded weights in 1.67s Loaded LoRAs in 2.38s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:09, 2.88it/s] 7%|▋ | 2/28 [00:00<00:08, 3.22it/s] 11%|█ | 3/28 [00:00<00:08, 3.06it/s] 14%|█▍ | 4/28 [00:01<00:08, 2.99it/s] 18%|█▊ | 5/28 [00:01<00:07, 2.95it/s] 21%|██▏ | 6/28 [00:02<00:07, 2.93it/s] 25%|██▌ | 7/28 [00:02<00:07, 2.91it/s] 29%|██▊ | 8/28 [00:02<00:06, 2.90it/s] 32%|███▏ | 9/28 [00:03<00:06, 2.90it/s] 36%|███▌ | 10/28 [00:03<00:06, 2.89it/s] 39%|███▉ | 11/28 [00:03<00:05, 2.89it/s] 43%|████▎ | 12/28 [00:04<00:05, 2.89it/s] 46%|████▋ | 13/28 [00:04<00:05, 2.89it/s] 50%|█████ | 14/28 [00:04<00:04, 2.89it/s] 54%|█████▎ | 15/28 [00:05<00:04, 2.89it/s] 57%|█████▋ | 16/28 [00:05<00:04, 2.89it/s] 61%|██████ | 17/28 [00:05<00:03, 2.89it/s] 64%|██████▍ | 18/28 [00:06<00:03, 2.89it/s] 68%|██████▊ | 19/28 [00:06<00:03, 2.89it/s] 71%|███████▏ | 20/28 [00:06<00:02, 2.89it/s] 75%|███████▌ | 21/28 [00:07<00:02, 2.89it/s] 79%|███████▊ | 22/28 [00:07<00:02, 2.89it/s] 82%|████████▏ | 23/28 [00:07<00:01, 2.89it/s] 86%|████████▌ | 24/28 [00:08<00:01, 2.89it/s] 89%|████████▉ | 25/28 [00:08<00:01, 2.89it/s] 93%|█████████▎| 26/28 [00:08<00:00, 2.89it/s] 96%|█████████▋| 27/28 [00:09<00:00, 2.88it/s] 100%|██████████| 28/28 [00:09<00:00, 2.88it/s] 100%|██████████| 28/28 [00:09<00:00, 2.90it/s]
Prediction
michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0IDqbfwqkwksxrm40cjtwcbhyw7n4StatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a casual blazer with an edgy urban style, he is at an art gallery with digital displays showing abstract art in the background
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- webp
- guidance_scale
- 3.5
- output_quality
- 90
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a casual blazer with an edgy urban style, he is at an art gallery with digital displays showing abstract art in the background", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run michaelcarterhere/fluxformichael using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0", { input: { model: "dev", prompt: "headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a casual blazer with an edgy urban style, he is at an art gallery with digital displays showing abstract art in the background", lora_scale: 1, num_outputs: 1, aspect_ratio: "1:1", output_format: "webp", guidance_scale: 3.5, output_quality: 90, prompt_strength: 0.8, 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run michaelcarterhere/fluxformichael using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0", input={ "model": "dev", "prompt": "headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a casual blazer with an edgy urban style, he is at an art gallery with digital displays showing abstract art in the background", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run michaelcarterhere/fluxformichael 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": "michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0", "input": { "model": "dev", "prompt": "headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a casual blazer with an edgy urban style, he is at an art gallery with digital displays showing abstract art in the background", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "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.
Output
{ "completed_at": "2024-10-29T07:06:17.278128Z", "created_at": "2024-10-29T07:06:05.135000Z", "data_removed": false, "error": null, "id": "qbfwqkwksxrm40cjtwcbhyw7n4", "input": { "model": "dev", "prompt": "headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a casual blazer with an edgy urban style, he is at an art gallery with digital displays showing abstract art in the background", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "Using seed: 40880\nPrompt: headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a casual blazer with an edgy urban style, he is at an art gallery with digital displays showing abstract art in the background\n[!] txt2img mode\nUsing dev model\nfree=7016747974656\nDownloading weights\n2024-10-29T07:06:05Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmplu6fmb8j/weights url=https://replicate.delivery/yhqm/1QfIImcatuz2QinGOkgvFn43kJujGmdP0onQqlqUjaJJrx1JA/trained_model.tar\n2024-10-29T07:06:06Z | INFO | [ Complete ] dest=/tmp/tmplu6fmb8j/weights size=\"172 MB\" total_elapsed=1.249s url=https://replicate.delivery/yhqm/1QfIImcatuz2QinGOkgvFn43kJujGmdP0onQqlqUjaJJrx1JA/trained_model.tar\nDownloaded weights in 1.28s\nLoaded LoRAs in 1.99s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:09, 2.87it/s]\n 7%|▋ | 2/28 [00:00<00:08, 3.20it/s]\n 11%|█ | 3/28 [00:00<00:08, 3.04it/s]\n 14%|█▍ | 4/28 [00:01<00:08, 2.97it/s]\n 18%|█▊ | 5/28 [00:01<00:07, 2.94it/s]\n 21%|██▏ | 6/28 [00:02<00:07, 2.91it/s]\n 25%|██▌ | 7/28 [00:02<00:07, 2.90it/s]\n 29%|██▊ | 8/28 [00:02<00:06, 2.89it/s]\n 32%|███▏ | 9/28 [00:03<00:06, 2.89it/s]\n 36%|███▌ | 10/28 [00:03<00:06, 2.88it/s]\n 39%|███▉ | 11/28 [00:03<00:05, 2.88it/s]\n 43%|████▎ | 12/28 [00:04<00:05, 2.88it/s]\n 46%|████▋ | 13/28 [00:04<00:05, 2.88it/s]\n 50%|█████ | 14/28 [00:04<00:04, 2.88it/s]\n 54%|█████▎ | 15/28 [00:05<00:04, 2.87it/s]\n 57%|█████▋ | 16/28 [00:05<00:04, 2.87it/s]\n 61%|██████ | 17/28 [00:05<00:03, 2.87it/s]\n 64%|██████▍ | 18/28 [00:06<00:03, 2.87it/s]\n 68%|██████▊ | 19/28 [00:06<00:03, 2.87it/s]\n 71%|███████▏ | 20/28 [00:06<00:02, 2.87it/s]\n 75%|███████▌ | 21/28 [00:07<00:02, 2.87it/s]\n 79%|███████▊ | 22/28 [00:07<00:02, 2.87it/s]\n 82%|████████▏ | 23/28 [00:07<00:01, 2.87it/s]\n 86%|████████▌ | 24/28 [00:08<00:01, 2.87it/s]\n 89%|████████▉ | 25/28 [00:08<00:01, 2.87it/s]\n 93%|█████████▎| 26/28 [00:08<00:00, 2.87it/s]\n 96%|█████████▋| 27/28 [00:09<00:00, 2.87it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.87it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.89it/s]", "metrics": { "predict_time": 12.015215513, "total_time": 12.143128 }, "output": [ "https://replicate.delivery/yhqm/hGXnCriecnQiUSFC9kFeqTHu2STVbthw2VypF0PS6ZTptjrTA/out-0.webp" ], "started_at": "2024-10-29T07:06:05.262913Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/wcdb-4axeud5e46msa7h66jqw2sgsxh7ox6lz3hkxbszh7utedzkod4ra", "get": "https://api.replicate.com/v1/predictions/qbfwqkwksxrm40cjtwcbhyw7n4", "cancel": "https://api.replicate.com/v1/predictions/qbfwqkwksxrm40cjtwcbhyw7n4/cancel" }, "version": "1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0" }
Generated inUsing seed: 40880 Prompt: headshot of TOKmachine, he is wearing Meta Ray-Ban smart glasses, he is dressed in a casual blazer with an edgy urban style, he is at an art gallery with digital displays showing abstract art in the background [!] txt2img mode Using dev model free=7016747974656 Downloading weights 2024-10-29T07:06:05Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmplu6fmb8j/weights url=https://replicate.delivery/yhqm/1QfIImcatuz2QinGOkgvFn43kJujGmdP0onQqlqUjaJJrx1JA/trained_model.tar 2024-10-29T07:06:06Z | INFO | [ Complete ] dest=/tmp/tmplu6fmb8j/weights size="172 MB" total_elapsed=1.249s url=https://replicate.delivery/yhqm/1QfIImcatuz2QinGOkgvFn43kJujGmdP0onQqlqUjaJJrx1JA/trained_model.tar Downloaded weights in 1.28s Loaded LoRAs in 1.99s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:09, 2.87it/s] 7%|▋ | 2/28 [00:00<00:08, 3.20it/s] 11%|█ | 3/28 [00:00<00:08, 3.04it/s] 14%|█▍ | 4/28 [00:01<00:08, 2.97it/s] 18%|█▊ | 5/28 [00:01<00:07, 2.94it/s] 21%|██▏ | 6/28 [00:02<00:07, 2.91it/s] 25%|██▌ | 7/28 [00:02<00:07, 2.90it/s] 29%|██▊ | 8/28 [00:02<00:06, 2.89it/s] 32%|███▏ | 9/28 [00:03<00:06, 2.89it/s] 36%|███▌ | 10/28 [00:03<00:06, 2.88it/s] 39%|███▉ | 11/28 [00:03<00:05, 2.88it/s] 43%|████▎ | 12/28 [00:04<00:05, 2.88it/s] 46%|████▋ | 13/28 [00:04<00:05, 2.88it/s] 50%|█████ | 14/28 [00:04<00:04, 2.88it/s] 54%|█████▎ | 15/28 [00:05<00:04, 2.87it/s] 57%|█████▋ | 16/28 [00:05<00:04, 2.87it/s] 61%|██████ | 17/28 [00:05<00:03, 2.87it/s] 64%|██████▍ | 18/28 [00:06<00:03, 2.87it/s] 68%|██████▊ | 19/28 [00:06<00:03, 2.87it/s] 71%|███████▏ | 20/28 [00:06<00:02, 2.87it/s] 75%|███████▌ | 21/28 [00:07<00:02, 2.87it/s] 79%|███████▊ | 22/28 [00:07<00:02, 2.87it/s] 82%|████████▏ | 23/28 [00:07<00:01, 2.87it/s] 86%|████████▌ | 24/28 [00:08<00:01, 2.87it/s] 89%|████████▉ | 25/28 [00:08<00:01, 2.87it/s] 93%|█████████▎| 26/28 [00:08<00:00, 2.87it/s] 96%|█████████▋| 27/28 [00:09<00:00, 2.87it/s] 100%|██████████| 28/28 [00:09<00:00, 2.87it/s] 100%|██████████| 28/28 [00:09<00:00, 2.89it/s]
Prediction
michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0IDsf86spqtgsrm00cjtwk8fs9rcmStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- photo of TOKmachine, he is a young and handsome professor dressed in a casual blazer with an edgy urban style, he is wearing thick rimmed black smart glasses in Ray-Ban wayfarer style, his hair is thick with a fade, he is wearing a bright coloured shawl, he is giving a lecture about artificial intelligence, photorealistic, blurry background, looks earthy and smart, a screen in the background has the words artificial intelligence displayed,
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- webp
- guidance_scale
- 3.5
- output_quality
- 90
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "photo of TOKmachine, he is a young and handsome professor dressed in a casual blazer with an edgy urban style, he is wearing thick rimmed black smart glasses in Ray-Ban wayfarer style, his hair is thick with a fade, he is wearing a bright coloured shawl, he is giving a lecture about artificial intelligence, photorealistic, blurry background, looks earthy and smart, a screen in the background has the words artificial intelligence displayed, ", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run michaelcarterhere/fluxformichael using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0", { input: { model: "dev", prompt: "photo of TOKmachine, he is a young and handsome professor dressed in a casual blazer with an edgy urban style, he is wearing thick rimmed black smart glasses in Ray-Ban wayfarer style, his hair is thick with a fade, he is wearing a bright coloured shawl, he is giving a lecture about artificial intelligence, photorealistic, blurry background, looks earthy and smart, a screen in the background has the words artificial intelligence displayed, ", lora_scale: 1, num_outputs: 1, aspect_ratio: "1:1", output_format: "webp", guidance_scale: 3.5, output_quality: 90, prompt_strength: 0.8, 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run michaelcarterhere/fluxformichael using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0", input={ "model": "dev", "prompt": "photo of TOKmachine, he is a young and handsome professor dressed in a casual blazer with an edgy urban style, he is wearing thick rimmed black smart glasses in Ray-Ban wayfarer style, his hair is thick with a fade, he is wearing a bright coloured shawl, he is giving a lecture about artificial intelligence, photorealistic, blurry background, looks earthy and smart, a screen in the background has the words artificial intelligence displayed, ", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run michaelcarterhere/fluxformichael 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": "michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0", "input": { "model": "dev", "prompt": "photo of TOKmachine, he is a young and handsome professor dressed in a casual blazer with an edgy urban style, he is wearing thick rimmed black smart glasses in Ray-Ban wayfarer style, his hair is thick with a fade, he is wearing a bright coloured shawl, he is giving a lecture about artificial intelligence, photorealistic, blurry background, looks earthy and smart, a screen in the background has the words artificial intelligence displayed, ", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "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.
Output
{ "completed_at": "2024-10-29T07:22:01.307284Z", "created_at": "2024-10-29T07:21:48.934000Z", "data_removed": false, "error": null, "id": "sf86spqtgsrm00cjtwk8fs9rcm", "input": { "model": "dev", "prompt": "photo of TOKmachine, he is a young and handsome professor dressed in a casual blazer with an edgy urban style, he is wearing thick rimmed black smart glasses in Ray-Ban wayfarer style, his hair is thick with a fade, he is wearing a bright coloured shawl, he is giving a lecture about artificial intelligence, photorealistic, blurry background, looks earthy and smart, a screen in the background has the words artificial intelligence displayed, ", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "Using seed: 16148\nPrompt: photo of TOKmachine, he is a young and handsome professor dressed in a casual blazer with an edgy urban style, he is wearing thick rimmed black smart glasses in Ray-Ban wayfarer style, his hair is thick with a fade, he is wearing a bright coloured shawl, he is giving a lecture about artificial intelligence, photorealistic, blurry background, looks earthy and smart, a screen in the background has the words artificial intelligence displayed,\n[!] txt2img mode\nUsing dev model\nfree=6850973818880\nDownloading weights\n2024-10-29T07:21:49Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpuxf86we7/weights url=https://replicate.delivery/yhqm/1QfIImcatuz2QinGOkgvFn43kJujGmdP0onQqlqUjaJJrx1JA/trained_model.tar\n2024-10-29T07:21:50Z | INFO | [ Complete ] dest=/tmp/tmpuxf86we7/weights size=\"172 MB\" total_elapsed=1.510s url=https://replicate.delivery/yhqm/1QfIImcatuz2QinGOkgvFn43kJujGmdP0onQqlqUjaJJrx1JA/trained_model.tar\nDownloaded weights in 1.54s\nLoaded LoRAs in 2.27s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:09, 2.87it/s]\n 7%|▋ | 2/28 [00:00<00:08, 3.20it/s]\n 11%|█ | 3/28 [00:00<00:08, 3.04it/s]\n 14%|█▍ | 4/28 [00:01<00:08, 2.97it/s]\n 18%|█▊ | 5/28 [00:01<00:07, 2.93it/s]\n 21%|██▏ | 6/28 [00:02<00:07, 2.91it/s]\n 25%|██▌ | 7/28 [00:02<00:07, 2.90it/s]\n 29%|██▊ | 8/28 [00:02<00:06, 2.89it/s]\n 32%|███▏ | 9/28 [00:03<00:06, 2.88it/s]\n 36%|███▌ | 10/28 [00:03<00:06, 2.88it/s]\n 39%|███▉ | 11/28 [00:03<00:05, 2.88it/s]\n 43%|████▎ | 12/28 [00:04<00:05, 2.88it/s]\n 46%|████▋ | 13/28 [00:04<00:05, 2.87it/s]\n 50%|█████ | 14/28 [00:04<00:04, 2.87it/s]\n 54%|█████▎ | 15/28 [00:05<00:04, 2.87it/s]\n 57%|█████▋ | 16/28 [00:05<00:04, 2.87it/s]\n 61%|██████ | 17/28 [00:05<00:03, 2.87it/s]\n 64%|██████▍ | 18/28 [00:06<00:03, 2.87it/s]\n 68%|██████▊ | 19/28 [00:06<00:03, 2.87it/s]\n 71%|███████▏ | 20/28 [00:06<00:02, 2.87it/s]\n 75%|███████▌ | 21/28 [00:07<00:02, 2.87it/s]\n 79%|███████▊ | 22/28 [00:07<00:02, 2.87it/s]\n 82%|████████▏ | 23/28 [00:07<00:01, 2.87it/s]\n 86%|████████▌ | 24/28 [00:08<00:01, 2.87it/s]\n 89%|████████▉ | 25/28 [00:08<00:01, 2.87it/s]\n 93%|█████████▎| 26/28 [00:08<00:00, 2.87it/s]\n 96%|█████████▋| 27/28 [00:09<00:00, 2.87it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.87it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.89it/s]", "metrics": { "predict_time": 12.304110241, "total_time": 12.373284 }, "output": [ "https://replicate.delivery/yhqm/Vsii5m1CLpoJKhfOBDnqNoQpJ1W4vmDtaO8vREvSdXxMejrTA/out-0.webp" ], "started_at": "2024-10-29T07:21:49.003174Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/wcdb-mq26uwily3bqwwjk5usfi7fsnzcwhrjygmoyvseye2ul643sqkia", "get": "https://api.replicate.com/v1/predictions/sf86spqtgsrm00cjtwk8fs9rcm", "cancel": "https://api.replicate.com/v1/predictions/sf86spqtgsrm00cjtwk8fs9rcm/cancel" }, "version": "1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0" }
Generated inUsing seed: 16148 Prompt: photo of TOKmachine, he is a young and handsome professor dressed in a casual blazer with an edgy urban style, he is wearing thick rimmed black smart glasses in Ray-Ban wayfarer style, his hair is thick with a fade, he is wearing a bright coloured shawl, he is giving a lecture about artificial intelligence, photorealistic, blurry background, looks earthy and smart, a screen in the background has the words artificial intelligence displayed, [!] txt2img mode Using dev model free=6850973818880 Downloading weights 2024-10-29T07:21:49Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpuxf86we7/weights url=https://replicate.delivery/yhqm/1QfIImcatuz2QinGOkgvFn43kJujGmdP0onQqlqUjaJJrx1JA/trained_model.tar 2024-10-29T07:21:50Z | INFO | [ Complete ] dest=/tmp/tmpuxf86we7/weights size="172 MB" total_elapsed=1.510s url=https://replicate.delivery/yhqm/1QfIImcatuz2QinGOkgvFn43kJujGmdP0onQqlqUjaJJrx1JA/trained_model.tar Downloaded weights in 1.54s Loaded LoRAs in 2.27s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:09, 2.87it/s] 7%|▋ | 2/28 [00:00<00:08, 3.20it/s] 11%|█ | 3/28 [00:00<00:08, 3.04it/s] 14%|█▍ | 4/28 [00:01<00:08, 2.97it/s] 18%|█▊ | 5/28 [00:01<00:07, 2.93it/s] 21%|██▏ | 6/28 [00:02<00:07, 2.91it/s] 25%|██▌ | 7/28 [00:02<00:07, 2.90it/s] 29%|██▊ | 8/28 [00:02<00:06, 2.89it/s] 32%|███▏ | 9/28 [00:03<00:06, 2.88it/s] 36%|███▌ | 10/28 [00:03<00:06, 2.88it/s] 39%|███▉ | 11/28 [00:03<00:05, 2.88it/s] 43%|████▎ | 12/28 [00:04<00:05, 2.88it/s] 46%|████▋ | 13/28 [00:04<00:05, 2.87it/s] 50%|█████ | 14/28 [00:04<00:04, 2.87it/s] 54%|█████▎ | 15/28 [00:05<00:04, 2.87it/s] 57%|█████▋ | 16/28 [00:05<00:04, 2.87it/s] 61%|██████ | 17/28 [00:05<00:03, 2.87it/s] 64%|██████▍ | 18/28 [00:06<00:03, 2.87it/s] 68%|██████▊ | 19/28 [00:06<00:03, 2.87it/s] 71%|███████▏ | 20/28 [00:06<00:02, 2.87it/s] 75%|███████▌ | 21/28 [00:07<00:02, 2.87it/s] 79%|███████▊ | 22/28 [00:07<00:02, 2.87it/s] 82%|████████▏ | 23/28 [00:07<00:01, 2.87it/s] 86%|████████▌ | 24/28 [00:08<00:01, 2.87it/s] 89%|████████▉ | 25/28 [00:08<00:01, 2.87it/s] 93%|█████████▎| 26/28 [00:08<00:00, 2.87it/s] 96%|█████████▋| 27/28 [00:09<00:00, 2.87it/s] 100%|██████████| 28/28 [00:09<00:00, 2.87it/s] 100%|██████████| 28/28 [00:09<00:00, 2.89it/s]
Prediction
michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0IDa0bfhtard1rm40cjtwm8y5jpj4StatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- photo of TOKmachine, he is a young and handsome professor dressed in a casual blazer with an edgy urban style, he is wearing thick rimmed black smart glasses in Ray-Ban wayfarer style, his hair is thick with a fade, he is wearing a bright coloured pashtush, he is giving a lecture about artificial intelligence, photorealistic, blurry background, looks earthy and smart, a screen in the background has the words artificial intelligence displayed,
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- webp
- guidance_scale
- 3.5
- output_quality
- 90
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "photo of TOKmachine, he is a young and handsome professor dressed in a casual blazer with an edgy urban style, he is wearing thick rimmed black smart glasses in Ray-Ban wayfarer style, his hair is thick with a fade, he is wearing a bright coloured pashtush, he is giving a lecture about artificial intelligence, photorealistic, blurry background, looks earthy and smart, a screen in the background has the words artificial intelligence displayed, ", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run michaelcarterhere/fluxformichael using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0", { input: { model: "dev", prompt: "photo of TOKmachine, he is a young and handsome professor dressed in a casual blazer with an edgy urban style, he is wearing thick rimmed black smart glasses in Ray-Ban wayfarer style, his hair is thick with a fade, he is wearing a bright coloured pashtush, he is giving a lecture about artificial intelligence, photorealistic, blurry background, looks earthy and smart, a screen in the background has the words artificial intelligence displayed, ", lora_scale: 1, num_outputs: 1, aspect_ratio: "1:1", output_format: "webp", guidance_scale: 3.5, output_quality: 90, prompt_strength: 0.8, 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run michaelcarterhere/fluxformichael using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0", input={ "model": "dev", "prompt": "photo of TOKmachine, he is a young and handsome professor dressed in a casual blazer with an edgy urban style, he is wearing thick rimmed black smart glasses in Ray-Ban wayfarer style, his hair is thick with a fade, he is wearing a bright coloured pashtush, he is giving a lecture about artificial intelligence, photorealistic, blurry background, looks earthy and smart, a screen in the background has the words artificial intelligence displayed, ", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run michaelcarterhere/fluxformichael 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": "michaelcarterhere/fluxformichael:1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0", "input": { "model": "dev", "prompt": "photo of TOKmachine, he is a young and handsome professor dressed in a casual blazer with an edgy urban style, he is wearing thick rimmed black smart glasses in Ray-Ban wayfarer style, his hair is thick with a fade, he is wearing a bright coloured pashtush, he is giving a lecture about artificial intelligence, photorealistic, blurry background, looks earthy and smart, a screen in the background has the words artificial intelligence displayed, ", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "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.
Output
{ "completed_at": "2024-10-29T07:23:29.402415Z", "created_at": "2024-10-29T07:23:18.504000Z", "data_removed": false, "error": null, "id": "a0bfhtard1rm40cjtwm8y5jpj4", "input": { "model": "dev", "prompt": "photo of TOKmachine, he is a young and handsome professor dressed in a casual blazer with an edgy urban style, he is wearing thick rimmed black smart glasses in Ray-Ban wayfarer style, his hair is thick with a fade, he is wearing a bright coloured pashtush, he is giving a lecture about artificial intelligence, photorealistic, blurry background, looks earthy and smart, a screen in the background has the words artificial intelligence displayed, ", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "Using seed: 63567\nPrompt: photo of TOKmachine, he is a young and handsome professor dressed in a casual blazer with an edgy urban style, he is wearing thick rimmed black smart glasses in Ray-Ban wayfarer style, his hair is thick with a fade, he is wearing a bright coloured pashtush, he is giving a lecture about artificial intelligence, photorealistic, blurry background, looks earthy and smart, a screen in the background has the words artificial intelligence displayed,\n[!] txt2img mode\nUsing dev model\nLoaded LoRAs in 0.81s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:09, 2.88it/s]\n 7%|▋ | 2/28 [00:00<00:08, 3.21it/s]\n 11%|█ | 3/28 [00:00<00:08, 3.06it/s]\n 14%|█▍ | 4/28 [00:01<00:08, 2.99it/s]\n 18%|█▊ | 5/28 [00:01<00:07, 2.95it/s]\n 21%|██▏ | 6/28 [00:02<00:07, 2.93it/s]\n 25%|██▌ | 7/28 [00:02<00:07, 2.91it/s]\n 29%|██▊ | 8/28 [00:02<00:06, 2.90it/s]\n 32%|███▏ | 9/28 [00:03<00:06, 2.90it/s]\n 36%|███▌ | 10/28 [00:03<00:06, 2.89it/s]\n 39%|███▉ | 11/28 [00:03<00:05, 2.89it/s]\n 43%|████▎ | 12/28 [00:04<00:05, 2.89it/s]\n 46%|████▋ | 13/28 [00:04<00:05, 2.89it/s]\n 50%|█████ | 14/28 [00:04<00:04, 2.89it/s]\n 54%|█████▎ | 15/28 [00:05<00:04, 2.89it/s]\n 57%|█████▋ | 16/28 [00:05<00:04, 2.89it/s]\n 61%|██████ | 17/28 [00:05<00:03, 2.89it/s]\n 64%|██████▍ | 18/28 [00:06<00:03, 2.89it/s]\n 68%|██████▊ | 19/28 [00:06<00:03, 2.88it/s]\n 71%|███████▏ | 20/28 [00:06<00:02, 2.88it/s]\n 75%|███████▌ | 21/28 [00:07<00:02, 2.88it/s]\n 79%|███████▊ | 22/28 [00:07<00:02, 2.88it/s]\n 82%|████████▏ | 23/28 [00:07<00:01, 2.88it/s]\n 86%|████████▌ | 24/28 [00:08<00:01, 2.89it/s]\n 89%|████████▉ | 25/28 [00:08<00:01, 2.88it/s]\n 93%|█████████▎| 26/28 [00:08<00:00, 2.89it/s]\n 96%|█████████▋| 27/28 [00:09<00:00, 2.89it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.89it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.90it/s]", "metrics": { "predict_time": 10.813316823, "total_time": 10.898415 }, "output": [ "https://replicate.delivery/yhqm/Z0B6dd04lsYFN1vS0pEc91Rv14xJw6eb6ux8v6YgAC94ejrTA/out-0.webp" ], "started_at": "2024-10-29T07:23:18.589098Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/wcdb-pzj76p2legjw3q6kxhezsvsfxgx3l5txysgdp4pcexg5qdpwmd5q", "get": "https://api.replicate.com/v1/predictions/a0bfhtard1rm40cjtwm8y5jpj4", "cancel": "https://api.replicate.com/v1/predictions/a0bfhtard1rm40cjtwm8y5jpj4/cancel" }, "version": "1d0bc226b56ecd66d1dd3db2ebd5713027a070d29459a9255a676bed7fe5e4f0" }
Generated inUsing seed: 63567 Prompt: photo of TOKmachine, he is a young and handsome professor dressed in a casual blazer with an edgy urban style, he is wearing thick rimmed black smart glasses in Ray-Ban wayfarer style, his hair is thick with a fade, he is wearing a bright coloured pashtush, he is giving a lecture about artificial intelligence, photorealistic, blurry background, looks earthy and smart, a screen in the background has the words artificial intelligence displayed, [!] txt2img mode Using dev model Loaded LoRAs in 0.81s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:09, 2.88it/s] 7%|▋ | 2/28 [00:00<00:08, 3.21it/s] 11%|█ | 3/28 [00:00<00:08, 3.06it/s] 14%|█▍ | 4/28 [00:01<00:08, 2.99it/s] 18%|█▊ | 5/28 [00:01<00:07, 2.95it/s] 21%|██▏ | 6/28 [00:02<00:07, 2.93it/s] 25%|██▌ | 7/28 [00:02<00:07, 2.91it/s] 29%|██▊ | 8/28 [00:02<00:06, 2.90it/s] 32%|███▏ | 9/28 [00:03<00:06, 2.90it/s] 36%|███▌ | 10/28 [00:03<00:06, 2.89it/s] 39%|███▉ | 11/28 [00:03<00:05, 2.89it/s] 43%|████▎ | 12/28 [00:04<00:05, 2.89it/s] 46%|████▋ | 13/28 [00:04<00:05, 2.89it/s] 50%|█████ | 14/28 [00:04<00:04, 2.89it/s] 54%|█████▎ | 15/28 [00:05<00:04, 2.89it/s] 57%|█████▋ | 16/28 [00:05<00:04, 2.89it/s] 61%|██████ | 17/28 [00:05<00:03, 2.89it/s] 64%|██████▍ | 18/28 [00:06<00:03, 2.89it/s] 68%|██████▊ | 19/28 [00:06<00:03, 2.88it/s] 71%|███████▏ | 20/28 [00:06<00:02, 2.88it/s] 75%|███████▌ | 21/28 [00:07<00:02, 2.88it/s] 79%|███████▊ | 22/28 [00:07<00:02, 2.88it/s] 82%|████████▏ | 23/28 [00:07<00:01, 2.88it/s] 86%|████████▌ | 24/28 [00:08<00:01, 2.89it/s] 89%|████████▉ | 25/28 [00:08<00:01, 2.88it/s] 93%|█████████▎| 26/28 [00:08<00:00, 2.89it/s] 96%|█████████▋| 27/28 [00:09<00:00, 2.89it/s] 100%|██████████| 28/28 [00:09<00:00, 2.89it/s] 100%|██████████| 28/28 [00:09<00:00, 2.90it/s]
Want to make some of these yourself?
Run this model