warf23
/
ai_glasses
- Public
- 58 runs
-
H100
Prediction
warf23/ai_glasses:cc967e7fa521659abdf055258534678b91c8fc2727fc08cf58696ff512783a1cID4x0bed7as9rm40chjke9978d54StatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- Capture a vibrant and engaging scene showcasing stylish AIGLASSES , highlighting their sleek design and modern features, set against a trendy urban backdrop to emphasize their appeal to fashion-forward individuals.
- lora_scale
- 1
- num_outputs
- 2
- aspect_ratio
- 16:9
- output_format
- jpg
- guidance_scale
- 3.5
- output_quality
- 84
- extra_lora_scale
- 0.8
- num_inference_steps
- 28
{ "model": "dev", "prompt": "Capture a vibrant and engaging scene showcasing stylish AIGLASSES , highlighting their sleek design and modern features, set against a trendy urban backdrop to emphasize their appeal to fashion-forward individuals.", "lora_scale": 1, "num_outputs": 2, "aspect_ratio": "16:9", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 84, "extra_lora_scale": 0.8, "num_inference_steps": 28 }
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 warf23/ai_glasses using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "warf23/ai_glasses:cc967e7fa521659abdf055258534678b91c8fc2727fc08cf58696ff512783a1c", { input: { model: "dev", prompt: "Capture a vibrant and engaging scene showcasing stylish AIGLASSES , highlighting their sleek design and modern features, set against a trendy urban backdrop to emphasize their appeal to fashion-forward individuals.", lora_scale: 1, num_outputs: 2, aspect_ratio: "16:9", output_format: "jpg", guidance_scale: 3.5, output_quality: 84, extra_lora_scale: 0.8, 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 warf23/ai_glasses using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "warf23/ai_glasses:cc967e7fa521659abdf055258534678b91c8fc2727fc08cf58696ff512783a1c", input={ "model": "dev", "prompt": "Capture a vibrant and engaging scene showcasing stylish AIGLASSES , highlighting their sleek design and modern features, set against a trendy urban backdrop to emphasize their appeal to fashion-forward individuals.", "lora_scale": 1, "num_outputs": 2, "aspect_ratio": "16:9", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 84, "extra_lora_scale": 0.8, "num_inference_steps": 28 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run warf23/ai_glasses 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": "cc967e7fa521659abdf055258534678b91c8fc2727fc08cf58696ff512783a1c", "input": { "model": "dev", "prompt": "Capture a vibrant and engaging scene showcasing stylish AIGLASSES , highlighting their sleek design and modern features, set against a trendy urban backdrop to emphasize their appeal to fashion-forward individuals.", "lora_scale": 1, "num_outputs": 2, "aspect_ratio": "16:9", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 84, "extra_lora_scale": 0.8, "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-08-27T17:23:39.358035Z", "created_at": "2024-08-27T17:23:11.690000Z", "data_removed": false, "error": null, "id": "4x0bed7as9rm40chjke9978d54", "input": { "model": "dev", "prompt": "Capture a vibrant and engaging scene showcasing stylish AIGLASSES , highlighting their sleek design and modern features, set against a trendy urban backdrop to emphasize their appeal to fashion-forward individuals.", "lora_scale": 1, "num_outputs": 2, "aspect_ratio": "16:9", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 84, "extra_lora_scale": 0.8, "num_inference_steps": 28 }, "logs": "Using seed: 4012\nPrompt: Capture a vibrant and engaging scene showcasing stylish AIGLASSES , highlighting their sleek design and modern features, set against a trendy urban backdrop to emphasize their appeal to fashion-forward individuals.\ntxt2img mode\nUsing dev model\nfree=9573001527296\nDownloading weights\n2024-08-27T17:23:11Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp0kcb5lm9/weights url=https://replicate.delivery/yhqm/IeJx286U8Ey6bidSIIaDeNr98dXpK1fedXgs2XReOfdRv4u1E/trained_model.tar\n2024-08-27T17:23:14Z | INFO | [ Complete ] dest=/tmp/tmp0kcb5lm9/weights size=\"172 MB\" total_elapsed=3.062s url=https://replicate.delivery/yhqm/IeJx286U8Ey6bidSIIaDeNr98dXpK1fedXgs2XReOfdRv4u1E/trained_model.tar\nDownloaded weights in 3.09s\nLoaded LoRAs in 12.44s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:13, 1.94it/s]\n 7%|▋ | 2/28 [00:00<00:11, 2.22it/s]\n 11%|█ | 3/28 [00:01<00:12, 2.08it/s]\n 14%|█▍ | 4/28 [00:01<00:11, 2.02it/s]\n 18%|█▊ | 5/28 [00:02<00:11, 1.98it/s]\n 21%|██▏ | 6/28 [00:02<00:11, 1.96it/s]\n 25%|██▌ | 7/28 [00:03<00:10, 1.95it/s]\n 29%|██▊ | 8/28 [00:04<00:10, 1.94it/s]\n 32%|███▏ | 9/28 [00:04<00:09, 1.94it/s]\n 36%|███▌ | 10/28 [00:05<00:09, 1.93it/s]\n 39%|███▉ | 11/28 [00:05<00:08, 1.93it/s]\n 43%|████▎ | 12/28 [00:06<00:08, 1.93it/s]\n 46%|████▋ | 13/28 [00:06<00:07, 1.93it/s]\n 50%|█████ | 14/28 [00:07<00:07, 1.92it/s]\n 54%|█████▎ | 15/28 [00:07<00:06, 1.92it/s]\n 57%|█████▋ | 16/28 [00:08<00:06, 1.92it/s]\n 61%|██████ | 17/28 [00:08<00:05, 1.92it/s]\n 64%|██████▍ | 18/28 [00:09<00:05, 1.92it/s]\n 68%|██████▊ | 19/28 [00:09<00:04, 1.92it/s]\n 71%|███████▏ | 20/28 [00:10<00:04, 1.92it/s]\n 75%|███████▌ | 21/28 [00:10<00:03, 1.92it/s]\n 79%|███████▊ | 22/28 [00:11<00:03, 1.92it/s]\n 82%|████████▏ | 23/28 [00:11<00:02, 1.92it/s]\n 86%|████████▌ | 24/28 [00:12<00:02, 1.92it/s]\n 89%|████████▉ | 25/28 [00:12<00:01, 1.92it/s]\n 93%|█████████▎| 26/28 [00:13<00:01, 1.92it/s]\n 96%|█████████▋| 27/28 [00:13<00:00, 1.92it/s]\n100%|██████████| 28/28 [00:14<00:00, 1.92it/s]\n100%|██████████| 28/28 [00:14<00:00, 1.94it/s]", "metrics": { "predict_time": 27.657667476, "total_time": 27.668035 }, "output": [ "https://replicate.delivery/yhqm/IQ2L7ghuklZ6NlwWBxReb9cbflyBcAARCTbtNNfUo3n2s3tmA/out-0.jpg", "https://replicate.delivery/yhqm/sKhIcmZRecUOH6eWXb6e8KWLyV2KlBc40I0WAbQHUEG2s3tmA/out-1.jpg" ], "started_at": "2024-08-27T17:23:11.700367Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/4x0bed7as9rm40chjke9978d54", "cancel": "https://api.replicate.com/v1/predictions/4x0bed7as9rm40chjke9978d54/cancel" }, "version": "cc967e7fa521659abdf055258534678b91c8fc2727fc08cf58696ff512783a1c" }
Generated inUsing seed: 4012 Prompt: Capture a vibrant and engaging scene showcasing stylish AIGLASSES , highlighting their sleek design and modern features, set against a trendy urban backdrop to emphasize their appeal to fashion-forward individuals. txt2img mode Using dev model free=9573001527296 Downloading weights 2024-08-27T17:23:11Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp0kcb5lm9/weights url=https://replicate.delivery/yhqm/IeJx286U8Ey6bidSIIaDeNr98dXpK1fedXgs2XReOfdRv4u1E/trained_model.tar 2024-08-27T17:23:14Z | INFO | [ Complete ] dest=/tmp/tmp0kcb5lm9/weights size="172 MB" total_elapsed=3.062s url=https://replicate.delivery/yhqm/IeJx286U8Ey6bidSIIaDeNr98dXpK1fedXgs2XReOfdRv4u1E/trained_model.tar Downloaded weights in 3.09s Loaded LoRAs in 12.44s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:13, 1.94it/s] 7%|▋ | 2/28 [00:00<00:11, 2.22it/s] 11%|█ | 3/28 [00:01<00:12, 2.08it/s] 14%|█▍ | 4/28 [00:01<00:11, 2.02it/s] 18%|█▊ | 5/28 [00:02<00:11, 1.98it/s] 21%|██▏ | 6/28 [00:02<00:11, 1.96it/s] 25%|██▌ | 7/28 [00:03<00:10, 1.95it/s] 29%|██▊ | 8/28 [00:04<00:10, 1.94it/s] 32%|███▏ | 9/28 [00:04<00:09, 1.94it/s] 36%|███▌ | 10/28 [00:05<00:09, 1.93it/s] 39%|███▉ | 11/28 [00:05<00:08, 1.93it/s] 43%|████▎ | 12/28 [00:06<00:08, 1.93it/s] 46%|████▋ | 13/28 [00:06<00:07, 1.93it/s] 50%|█████ | 14/28 [00:07<00:07, 1.92it/s] 54%|█████▎ | 15/28 [00:07<00:06, 1.92it/s] 57%|█████▋ | 16/28 [00:08<00:06, 1.92it/s] 61%|██████ | 17/28 [00:08<00:05, 1.92it/s] 64%|██████▍ | 18/28 [00:09<00:05, 1.92it/s] 68%|██████▊ | 19/28 [00:09<00:04, 1.92it/s] 71%|███████▏ | 20/28 [00:10<00:04, 1.92it/s] 75%|███████▌ | 21/28 [00:10<00:03, 1.92it/s] 79%|███████▊ | 22/28 [00:11<00:03, 1.92it/s] 82%|████████▏ | 23/28 [00:11<00:02, 1.92it/s] 86%|████████▌ | 24/28 [00:12<00:02, 1.92it/s] 89%|████████▉ | 25/28 [00:12<00:01, 1.92it/s] 93%|█████████▎| 26/28 [00:13<00:01, 1.92it/s] 96%|█████████▋| 27/28 [00:13<00:00, 1.92it/s] 100%|██████████| 28/28 [00:14<00:00, 1.92it/s] 100%|██████████| 28/28 [00:14<00:00, 1.94it/s]
Prediction
warf23/ai_glasses:cc967e7fa521659abdf055258534678b91c8fc2727fc08cf58696ff512783a1cIDkb9qpv7pxnrm60chjkb9hmfn5mStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- A realistic photo of AIGLASSES a man and woman wearing AI glasses in Casablanca City near the Twin Center, with dynamic lighting.
- lora_scale
- 1
- num_outputs
- 2
- aspect_ratio
- 16:9
- output_format
- jpg
- guidance_scale
- 3.5
- output_quality
- 80
- extra_lora_scale
- 0.8
- num_inference_steps
- 28
{ "model": "dev", "prompt": "A realistic photo of AIGLASSES a man and woman wearing AI glasses in Casablanca City near the Twin Center, with dynamic lighting.", "lora_scale": 1, "num_outputs": 2, "aspect_ratio": "16:9", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 80, "extra_lora_scale": 0.8, "num_inference_steps": 28 }
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 warf23/ai_glasses using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "warf23/ai_glasses:cc967e7fa521659abdf055258534678b91c8fc2727fc08cf58696ff512783a1c", { input: { model: "dev", prompt: "A realistic photo of AIGLASSES a man and woman wearing AI glasses in Casablanca City near the Twin Center, with dynamic lighting.", lora_scale: 1, num_outputs: 2, aspect_ratio: "16:9", output_format: "jpg", guidance_scale: 3.5, output_quality: 80, extra_lora_scale: 0.8, 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 warf23/ai_glasses using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "warf23/ai_glasses:cc967e7fa521659abdf055258534678b91c8fc2727fc08cf58696ff512783a1c", input={ "model": "dev", "prompt": "A realistic photo of AIGLASSES a man and woman wearing AI glasses in Casablanca City near the Twin Center, with dynamic lighting.", "lora_scale": 1, "num_outputs": 2, "aspect_ratio": "16:9", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 80, "extra_lora_scale": 0.8, "num_inference_steps": 28 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run warf23/ai_glasses 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": "cc967e7fa521659abdf055258534678b91c8fc2727fc08cf58696ff512783a1c", "input": { "model": "dev", "prompt": "A realistic photo of AIGLASSES a man and woman wearing AI glasses in Casablanca City near the Twin Center, with dynamic lighting.", "lora_scale": 1, "num_outputs": 2, "aspect_ratio": "16:9", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 80, "extra_lora_scale": 0.8, "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-08-27T17:17:07.752988Z", "created_at": "2024-08-27T17:16:41.581000Z", "data_removed": false, "error": null, "id": "kb9qpv7pxnrm60chjkb9hmfn5m", "input": { "model": "dev", "prompt": "A realistic photo of AIGLASSES a man and woman wearing AI glasses in Casablanca City near the Twin Center, with dynamic lighting.", "lora_scale": 1, "num_outputs": 2, "aspect_ratio": "16:9", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 80, "extra_lora_scale": 0.8, "num_inference_steps": 28 }, "logs": "Using seed: 39404\nPrompt: A realistic photo of AIGLASSES a man and woman wearing AI glasses in Casablanca City near the Twin Center, with dynamic lighting.\ntxt2img mode\nUsing dev model\nfree=9457996423168\nDownloading weights\n2024-08-27T17:16:41Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpwp2u3n1e/weights url=https://replicate.delivery/yhqm/IeJx286U8Ey6bidSIIaDeNr98dXpK1fedXgs2XReOfdRv4u1E/trained_model.tar\n2024-08-27T17:16:44Z | INFO | [ Complete ] dest=/tmp/tmpwp2u3n1e/weights size=\"172 MB\" total_elapsed=3.202s url=https://replicate.delivery/yhqm/IeJx286U8Ey6bidSIIaDeNr98dXpK1fedXgs2XReOfdRv4u1E/trained_model.tar\nDownloaded weights in 3.23s\nLoaded LoRAs in 11.09s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:13, 1.95it/s]\n 7%|▋ | 2/28 [00:00<00:11, 2.24it/s]\n 11%|█ | 3/28 [00:01<00:11, 2.09it/s]\n 14%|█▍ | 4/28 [00:01<00:11, 2.03it/s]\n 18%|█▊ | 5/28 [00:02<00:11, 2.00it/s]\n 21%|██▏ | 6/28 [00:02<00:11, 1.98it/s]\n 25%|██▌ | 7/28 [00:03<00:10, 1.97it/s]\n 29%|██▊ | 8/28 [00:04<00:10, 1.96it/s]\n 32%|███▏ | 9/28 [00:04<00:09, 1.95it/s]\n 36%|███▌ | 10/28 [00:05<00:09, 1.95it/s]\n 39%|███▉ | 11/28 [00:05<00:08, 1.95it/s]\n 43%|████▎ | 12/28 [00:06<00:08, 1.94it/s]\n 46%|████▋ | 13/28 [00:06<00:07, 1.94it/s]\n 50%|█████ | 14/28 [00:07<00:07, 1.94it/s]\n 54%|█████▎ | 15/28 [00:07<00:06, 1.94it/s]\n 57%|█████▋ | 16/28 [00:08<00:06, 1.94it/s]\n 61%|██████ | 17/28 [00:08<00:05, 1.94it/s]\n 64%|██████▍ | 18/28 [00:09<00:05, 1.94it/s]\n 68%|██████▊ | 19/28 [00:09<00:04, 1.94it/s]\n 71%|███████▏ | 20/28 [00:10<00:04, 1.94it/s]\n 75%|███████▌ | 21/28 [00:10<00:03, 1.94it/s]\n 79%|███████▊ | 22/28 [00:11<00:03, 1.94it/s]\n 82%|████████▏ | 23/28 [00:11<00:02, 1.94it/s]\n 86%|████████▌ | 24/28 [00:12<00:02, 1.94it/s]\n 89%|████████▉ | 25/28 [00:12<00:01, 1.94it/s]\n 93%|█████████▎| 26/28 [00:13<00:01, 1.94it/s]\n 96%|█████████▋| 27/28 [00:13<00:00, 1.94it/s]\n100%|██████████| 28/28 [00:14<00:00, 1.94it/s]\n100%|██████████| 28/28 [00:14<00:00, 1.96it/s]", "metrics": { "predict_time": 26.163644392, "total_time": 26.171988 }, "output": [ "https://replicate.delivery/yhqm/0x6Xe5ruWXQwFibqZVabsIeQYPfdXfTsZiUwnceMh9dZCeu1E/out-0.jpg", "https://replicate.delivery/yhqm/fWAexcxfieKiiRmb6Ody078yQLRfZP058Bdn7HQpn2JZCeu1E/out-1.jpg" ], "started_at": "2024-08-27T17:16:41.589343Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/kb9qpv7pxnrm60chjkb9hmfn5m", "cancel": "https://api.replicate.com/v1/predictions/kb9qpv7pxnrm60chjkb9hmfn5m/cancel" }, "version": "cc967e7fa521659abdf055258534678b91c8fc2727fc08cf58696ff512783a1c" }
Generated inUsing seed: 39404 Prompt: A realistic photo of AIGLASSES a man and woman wearing AI glasses in Casablanca City near the Twin Center, with dynamic lighting. txt2img mode Using dev model free=9457996423168 Downloading weights 2024-08-27T17:16:41Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpwp2u3n1e/weights url=https://replicate.delivery/yhqm/IeJx286U8Ey6bidSIIaDeNr98dXpK1fedXgs2XReOfdRv4u1E/trained_model.tar 2024-08-27T17:16:44Z | INFO | [ Complete ] dest=/tmp/tmpwp2u3n1e/weights size="172 MB" total_elapsed=3.202s url=https://replicate.delivery/yhqm/IeJx286U8Ey6bidSIIaDeNr98dXpK1fedXgs2XReOfdRv4u1E/trained_model.tar Downloaded weights in 3.23s Loaded LoRAs in 11.09s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:13, 1.95it/s] 7%|▋ | 2/28 [00:00<00:11, 2.24it/s] 11%|█ | 3/28 [00:01<00:11, 2.09it/s] 14%|█▍ | 4/28 [00:01<00:11, 2.03it/s] 18%|█▊ | 5/28 [00:02<00:11, 2.00it/s] 21%|██▏ | 6/28 [00:02<00:11, 1.98it/s] 25%|██▌ | 7/28 [00:03<00:10, 1.97it/s] 29%|██▊ | 8/28 [00:04<00:10, 1.96it/s] 32%|███▏ | 9/28 [00:04<00:09, 1.95it/s] 36%|███▌ | 10/28 [00:05<00:09, 1.95it/s] 39%|███▉ | 11/28 [00:05<00:08, 1.95it/s] 43%|████▎ | 12/28 [00:06<00:08, 1.94it/s] 46%|████▋ | 13/28 [00:06<00:07, 1.94it/s] 50%|█████ | 14/28 [00:07<00:07, 1.94it/s] 54%|█████▎ | 15/28 [00:07<00:06, 1.94it/s] 57%|█████▋ | 16/28 [00:08<00:06, 1.94it/s] 61%|██████ | 17/28 [00:08<00:05, 1.94it/s] 64%|██████▍ | 18/28 [00:09<00:05, 1.94it/s] 68%|██████▊ | 19/28 [00:09<00:04, 1.94it/s] 71%|███████▏ | 20/28 [00:10<00:04, 1.94it/s] 75%|███████▌ | 21/28 [00:10<00:03, 1.94it/s] 79%|███████▊ | 22/28 [00:11<00:03, 1.94it/s] 82%|████████▏ | 23/28 [00:11<00:02, 1.94it/s] 86%|████████▌ | 24/28 [00:12<00:02, 1.94it/s] 89%|████████▉ | 25/28 [00:12<00:01, 1.94it/s] 93%|█████████▎| 26/28 [00:13<00:01, 1.94it/s] 96%|█████████▋| 27/28 [00:13<00:00, 1.94it/s] 100%|██████████| 28/28 [00:14<00:00, 1.94it/s] 100%|██████████| 28/28 [00:14<00:00, 1.96it/s]
Prediction
warf23/ai_glasses:cc967e7fa521659abdf055258534678b91c8fc2727fc08cf58696ff512783a1cIDkb9qpv7pxnrm60chjkb9hmfn5mStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- A realistic photo of AIGLASSES a man and woman wearing AI glasses in Casablanca City near the Twin Center, with dynamic lighting.
- lora_scale
- 1
- num_outputs
- 2
- aspect_ratio
- 16:9
- output_format
- jpg
- guidance_scale
- 3.5
- output_quality
- 80
- extra_lora_scale
- 0.8
- num_inference_steps
- 28
{ "model": "dev", "prompt": "A realistic photo of AIGLASSES a man and woman wearing AI glasses in Casablanca City near the Twin Center, with dynamic lighting.", "lora_scale": 1, "num_outputs": 2, "aspect_ratio": "16:9", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 80, "extra_lora_scale": 0.8, "num_inference_steps": 28 }
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 warf23/ai_glasses using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "warf23/ai_glasses:cc967e7fa521659abdf055258534678b91c8fc2727fc08cf58696ff512783a1c", { input: { model: "dev", prompt: "A realistic photo of AIGLASSES a man and woman wearing AI glasses in Casablanca City near the Twin Center, with dynamic lighting.", lora_scale: 1, num_outputs: 2, aspect_ratio: "16:9", output_format: "jpg", guidance_scale: 3.5, output_quality: 80, extra_lora_scale: 0.8, 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 warf23/ai_glasses using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "warf23/ai_glasses:cc967e7fa521659abdf055258534678b91c8fc2727fc08cf58696ff512783a1c", input={ "model": "dev", "prompt": "A realistic photo of AIGLASSES a man and woman wearing AI glasses in Casablanca City near the Twin Center, with dynamic lighting.", "lora_scale": 1, "num_outputs": 2, "aspect_ratio": "16:9", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 80, "extra_lora_scale": 0.8, "num_inference_steps": 28 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run warf23/ai_glasses 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": "cc967e7fa521659abdf055258534678b91c8fc2727fc08cf58696ff512783a1c", "input": { "model": "dev", "prompt": "A realistic photo of AIGLASSES a man and woman wearing AI glasses in Casablanca City near the Twin Center, with dynamic lighting.", "lora_scale": 1, "num_outputs": 2, "aspect_ratio": "16:9", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 80, "extra_lora_scale": 0.8, "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-08-27T17:17:07.752988Z", "created_at": "2024-08-27T17:16:41.581000Z", "data_removed": false, "error": null, "id": "kb9qpv7pxnrm60chjkb9hmfn5m", "input": { "model": "dev", "prompt": "A realistic photo of AIGLASSES a man and woman wearing AI glasses in Casablanca City near the Twin Center, with dynamic lighting.", "lora_scale": 1, "num_outputs": 2, "aspect_ratio": "16:9", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 80, "extra_lora_scale": 0.8, "num_inference_steps": 28 }, "logs": "Using seed: 39404\nPrompt: A realistic photo of AIGLASSES a man and woman wearing AI glasses in Casablanca City near the Twin Center, with dynamic lighting.\ntxt2img mode\nUsing dev model\nfree=9457996423168\nDownloading weights\n2024-08-27T17:16:41Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpwp2u3n1e/weights url=https://replicate.delivery/yhqm/IeJx286U8Ey6bidSIIaDeNr98dXpK1fedXgs2XReOfdRv4u1E/trained_model.tar\n2024-08-27T17:16:44Z | INFO | [ Complete ] dest=/tmp/tmpwp2u3n1e/weights size=\"172 MB\" total_elapsed=3.202s url=https://replicate.delivery/yhqm/IeJx286U8Ey6bidSIIaDeNr98dXpK1fedXgs2XReOfdRv4u1E/trained_model.tar\nDownloaded weights in 3.23s\nLoaded LoRAs in 11.09s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:13, 1.95it/s]\n 7%|▋ | 2/28 [00:00<00:11, 2.24it/s]\n 11%|█ | 3/28 [00:01<00:11, 2.09it/s]\n 14%|█▍ | 4/28 [00:01<00:11, 2.03it/s]\n 18%|█▊ | 5/28 [00:02<00:11, 2.00it/s]\n 21%|██▏ | 6/28 [00:02<00:11, 1.98it/s]\n 25%|██▌ | 7/28 [00:03<00:10, 1.97it/s]\n 29%|██▊ | 8/28 [00:04<00:10, 1.96it/s]\n 32%|███▏ | 9/28 [00:04<00:09, 1.95it/s]\n 36%|███▌ | 10/28 [00:05<00:09, 1.95it/s]\n 39%|███▉ | 11/28 [00:05<00:08, 1.95it/s]\n 43%|████▎ | 12/28 [00:06<00:08, 1.94it/s]\n 46%|████▋ | 13/28 [00:06<00:07, 1.94it/s]\n 50%|█████ | 14/28 [00:07<00:07, 1.94it/s]\n 54%|█████▎ | 15/28 [00:07<00:06, 1.94it/s]\n 57%|█████▋ | 16/28 [00:08<00:06, 1.94it/s]\n 61%|██████ | 17/28 [00:08<00:05, 1.94it/s]\n 64%|██████▍ | 18/28 [00:09<00:05, 1.94it/s]\n 68%|██████▊ | 19/28 [00:09<00:04, 1.94it/s]\n 71%|███████▏ | 20/28 [00:10<00:04, 1.94it/s]\n 75%|███████▌ | 21/28 [00:10<00:03, 1.94it/s]\n 79%|███████▊ | 22/28 [00:11<00:03, 1.94it/s]\n 82%|████████▏ | 23/28 [00:11<00:02, 1.94it/s]\n 86%|████████▌ | 24/28 [00:12<00:02, 1.94it/s]\n 89%|████████▉ | 25/28 [00:12<00:01, 1.94it/s]\n 93%|█████████▎| 26/28 [00:13<00:01, 1.94it/s]\n 96%|█████████▋| 27/28 [00:13<00:00, 1.94it/s]\n100%|██████████| 28/28 [00:14<00:00, 1.94it/s]\n100%|██████████| 28/28 [00:14<00:00, 1.96it/s]", "metrics": { "predict_time": 26.163644392, "total_time": 26.171988 }, "output": [ "https://replicate.delivery/yhqm/0x6Xe5ruWXQwFibqZVabsIeQYPfdXfTsZiUwnceMh9dZCeu1E/out-0.jpg", "https://replicate.delivery/yhqm/fWAexcxfieKiiRmb6Ody078yQLRfZP058Bdn7HQpn2JZCeu1E/out-1.jpg" ], "started_at": "2024-08-27T17:16:41.589343Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/kb9qpv7pxnrm60chjkb9hmfn5m", "cancel": "https://api.replicate.com/v1/predictions/kb9qpv7pxnrm60chjkb9hmfn5m/cancel" }, "version": "cc967e7fa521659abdf055258534678b91c8fc2727fc08cf58696ff512783a1c" }
Generated inUsing seed: 39404 Prompt: A realistic photo of AIGLASSES a man and woman wearing AI glasses in Casablanca City near the Twin Center, with dynamic lighting. txt2img mode Using dev model free=9457996423168 Downloading weights 2024-08-27T17:16:41Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpwp2u3n1e/weights url=https://replicate.delivery/yhqm/IeJx286U8Ey6bidSIIaDeNr98dXpK1fedXgs2XReOfdRv4u1E/trained_model.tar 2024-08-27T17:16:44Z | INFO | [ Complete ] dest=/tmp/tmpwp2u3n1e/weights size="172 MB" total_elapsed=3.202s url=https://replicate.delivery/yhqm/IeJx286U8Ey6bidSIIaDeNr98dXpK1fedXgs2XReOfdRv4u1E/trained_model.tar Downloaded weights in 3.23s Loaded LoRAs in 11.09s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:13, 1.95it/s] 7%|▋ | 2/28 [00:00<00:11, 2.24it/s] 11%|█ | 3/28 [00:01<00:11, 2.09it/s] 14%|█▍ | 4/28 [00:01<00:11, 2.03it/s] 18%|█▊ | 5/28 [00:02<00:11, 2.00it/s] 21%|██▏ | 6/28 [00:02<00:11, 1.98it/s] 25%|██▌ | 7/28 [00:03<00:10, 1.97it/s] 29%|██▊ | 8/28 [00:04<00:10, 1.96it/s] 32%|███▏ | 9/28 [00:04<00:09, 1.95it/s] 36%|███▌ | 10/28 [00:05<00:09, 1.95it/s] 39%|███▉ | 11/28 [00:05<00:08, 1.95it/s] 43%|████▎ | 12/28 [00:06<00:08, 1.94it/s] 46%|████▋ | 13/28 [00:06<00:07, 1.94it/s] 50%|█████ | 14/28 [00:07<00:07, 1.94it/s] 54%|█████▎ | 15/28 [00:07<00:06, 1.94it/s] 57%|█████▋ | 16/28 [00:08<00:06, 1.94it/s] 61%|██████ | 17/28 [00:08<00:05, 1.94it/s] 64%|██████▍ | 18/28 [00:09<00:05, 1.94it/s] 68%|██████▊ | 19/28 [00:09<00:04, 1.94it/s] 71%|███████▏ | 20/28 [00:10<00:04, 1.94it/s] 75%|███████▌ | 21/28 [00:10<00:03, 1.94it/s] 79%|███████▊ | 22/28 [00:11<00:03, 1.94it/s] 82%|████████▏ | 23/28 [00:11<00:02, 1.94it/s] 86%|████████▌ | 24/28 [00:12<00:02, 1.94it/s] 89%|████████▉ | 25/28 [00:12<00:01, 1.94it/s] 93%|█████████▎| 26/28 [00:13<00:01, 1.94it/s] 96%|█████████▋| 27/28 [00:13<00:00, 1.94it/s] 100%|██████████| 28/28 [00:14<00:00, 1.94it/s] 100%|██████████| 28/28 [00:14<00:00, 1.96it/s]
Want to make some of these yourself?
Run this model