lightweight-ai
/
op_test
- Public
- 29 runs
-
T4
Prediction
lightweight-ai/op_test:40052ca2ID5xcmwy9tjhrg80cnyqj965t2a0StatusSucceededSourceWebHardwareT4Total durationCreatedInput
- width
- 1280
- height
- 1024
- prompt
- High quailty, 4K, UHD
- guidance
- 30
- alignment
- Right
- overlap_top
- overlap_left
- overlap_right
- resize_option
- Full
- overlap_bottom
- overlap_percentage
- 15
- num_inference_steps
- 28
- custom_resize_percentage
- 50
{ "image": "https://replicate.delivery/pbxt/MlYSaSOb3QaDtLorlxkRDkeH6uFi3lr9F3LB6yuXQ4Kn6ZxP/13039-2946705617-1girl%2C%20solo%2C%20long%20hair%2C%20bust%2C%20blindfold%2C%20blush%2C%20black%20hair%2C%20hair%20ornament%2C%20long%20sleeves%2C%20holding%2C%20off%20shoulders%2C%20closed%20mouth%2C%20s.png", "width": 1280, "height": 1024, "prompt": "High quailty, 4K, UHD", "guidance": 30, "alignment": "Right", "overlap_top": false, "overlap_left": true, "overlap_right": false, "resize_option": "Full", "overlap_bottom": false, "overlap_percentage": 15, "num_inference_steps": 28, "custom_resize_percentage": 50 }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run lightweight-ai/op_test using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lightweight-ai/op_test:40052ca2fc1b954fc16b5010733c1a7f28acf47681a507104aefb40238ff2f47", { input: { image: "https://replicate.delivery/pbxt/MlYSaSOb3QaDtLorlxkRDkeH6uFi3lr9F3LB6yuXQ4Kn6ZxP/13039-2946705617-1girl%2C%20solo%2C%20long%20hair%2C%20bust%2C%20blindfold%2C%20blush%2C%20black%20hair%2C%20hair%20ornament%2C%20long%20sleeves%2C%20holding%2C%20off%20shoulders%2C%20closed%20mouth%2C%20s.png", width: 1280, height: 1024, prompt: "High quailty, 4K, UHD", guidance: 30, alignment: "Right", overlap_top: false, overlap_left: true, overlap_right: false, resize_option: "Full", overlap_bottom: false, overlap_percentage: 15, num_inference_steps: 28, custom_resize_percentage: 50 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run lightweight-ai/op_test using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lightweight-ai/op_test:40052ca2fc1b954fc16b5010733c1a7f28acf47681a507104aefb40238ff2f47", input={ "image": "https://replicate.delivery/pbxt/MlYSaSOb3QaDtLorlxkRDkeH6uFi3lr9F3LB6yuXQ4Kn6ZxP/13039-2946705617-1girl%2C%20solo%2C%20long%20hair%2C%20bust%2C%20blindfold%2C%20blush%2C%20black%20hair%2C%20hair%20ornament%2C%20long%20sleeves%2C%20holding%2C%20off%20shoulders%2C%20closed%20mouth%2C%20s.png", "width": 1280, "height": 1024, "prompt": "High quailty, 4K, UHD", "guidance": 30, "alignment": "Right", "overlap_top": False, "overlap_left": True, "overlap_right": False, "resize_option": "Full", "overlap_bottom": False, "overlap_percentage": 15, "num_inference_steps": 28, "custom_resize_percentage": 50 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run lightweight-ai/op_test 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": "40052ca2fc1b954fc16b5010733c1a7f28acf47681a507104aefb40238ff2f47", "input": { "image": "https://replicate.delivery/pbxt/MlYSaSOb3QaDtLorlxkRDkeH6uFi3lr9F3LB6yuXQ4Kn6ZxP/13039-2946705617-1girl%2C%20solo%2C%20long%20hair%2C%20bust%2C%20blindfold%2C%20blush%2C%20black%20hair%2C%20hair%20ornament%2C%20long%20sleeves%2C%20holding%2C%20off%20shoulders%2C%20closed%20mouth%2C%20s.png", "width": 1280, "height": 1024, "prompt": "High quailty, 4K, UHD", "guidance": 30, "alignment": "Right", "overlap_top": false, "overlap_left": true, "overlap_right": false, "resize_option": "Full", "overlap_bottom": false, "overlap_percentage": 15, "num_inference_steps": 28, "custom_resize_percentage": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-04-02T09:46:06.632316Z", "created_at": "2025-04-02T09:45:30.004000Z", "data_removed": false, "error": null, "id": "5xcmwy9tjhrg80cnyqj965t2a0", "input": { "image": "https://replicate.delivery/pbxt/MlYSaSOb3QaDtLorlxkRDkeH6uFi3lr9F3LB6yuXQ4Kn6ZxP/13039-2946705617-1girl%2C%20solo%2C%20long%20hair%2C%20bust%2C%20blindfold%2C%20blush%2C%20black%20hair%2C%20hair%20ornament%2C%20long%20sleeves%2C%20holding%2C%20off%20shoulders%2C%20closed%20mouth%2C%20s.png", "width": 1280, "height": 1024, "prompt": "High quailty, 4K, UHD", "guidance": 30, "alignment": "Right", "overlap_top": false, "overlap_left": true, "overlap_right": false, "resize_option": "Full", "overlap_bottom": false, "overlap_percentage": 15, "num_inference_steps": 28, "custom_resize_percentage": 50 }, "logs": "Running prediction with:\nPrompt: High quailty, 4K, UHD\nImage Path: /tmp/tmp2vizo27p13039-2946705617-1girl, solo, long hair, bust, blindfold, blush, black hair, hair ornament, long sleeves, holding, off shoulders, closed mouth, s.png\nWidth x Height: 1280x1024\nAlignment: Right\nResize Option: Full, Custom %: 50\nOverlap %: 15, Left: True, Right: False, Top: False, Bottom: False\nNum Steps: 28, Guidance: 30.0, Seed: None\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:01<00:48, 1.80s/it]\n 7%|▋ | 2/28 [00:03<00:47, 1.84s/it]\n 11%|█ | 3/28 [00:05<00:45, 1.84s/it]\n 14%|█▍ | 4/28 [00:06<00:36, 1.51s/it]\n 18%|█▊ | 5/28 [00:07<00:30, 1.34s/it]\n 21%|██▏ | 6/28 [00:08<00:27, 1.24s/it]\n 25%|██▌ | 7/28 [00:09<00:24, 1.19s/it]\n 29%|██▊ | 8/28 [00:10<00:22, 1.13s/it]\n 32%|███▏ | 9/28 [00:11<00:20, 1.10s/it]\n 36%|███▌ | 10/28 [00:12<00:19, 1.08s/it]\n 39%|███▉ | 11/28 [00:13<00:18, 1.07s/it]\n 43%|████▎ | 12/28 [00:14<00:16, 1.05s/it]\n 46%|████▋ | 13/28 [00:15<00:15, 1.05s/it]\n 50%|█████ | 14/28 [00:16<00:14, 1.05s/it]\n 54%|█████▎ | 15/28 [00:17<00:13, 1.06s/it]\n 57%|█████▋ | 16/28 [00:19<00:12, 1.06s/it]\n 61%|██████ | 17/28 [00:20<00:11, 1.06s/it]\n 64%|██████▍ | 18/28 [00:21<00:10, 1.07s/it]\n 68%|██████▊ | 19/28 [00:22<00:09, 1.07s/it]\n 71%|███████▏ | 20/28 [00:23<00:08, 1.07s/it]\n 75%|███████▌ | 21/28 [00:24<00:07, 1.07s/it]\n 79%|███████▊ | 22/28 [00:25<00:06, 1.08s/it]\n 82%|████████▏ | 23/28 [00:26<00:05, 1.09s/it]\n 86%|████████▌ | 24/28 [00:27<00:04, 1.09s/it]\n 89%|████████▉ | 25/28 [00:28<00:03, 1.09s/it]\n 93%|█████████▎| 26/28 [00:29<00:02, 1.10s/it]\n 96%|█████████▋| 27/28 [00:31<00:01, 1.10s/it]\n100%|██████████| 28/28 [00:32<00:00, 1.11s/it]\n100%|██████████| 28/28 [00:32<00:00, 1.15s/it]\n출력 이미지가 /tmp/outpaint_output.png에 저장되었습니다.", "metrics": { "predict_time": 36.611090936, "total_time": 36.628316 }, "output": [ "https://replicate.delivery/czjl/Envzpo0YaSYlCpfuVhIBQpr57bqc2AjuFjFdK3pyaWRvyVPKA/outpaint_output.png", "https://replicate.delivery/czjl/fWkpdPhnDC0TOKk2DimBxO2LnihcQ89F7cyuihtFlKUvyVPKA/bg_output.png" ], "started_at": "2025-04-02T09:45:30.021225Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/fddq-2u64r7mkuzjoq5ew3savhrdhfjjmwjq35hsbmjgogetjsachk56a", "get": "https://api.replicate.com/v1/predictions/5xcmwy9tjhrg80cnyqj965t2a0", "cancel": "https://api.replicate.com/v1/predictions/5xcmwy9tjhrg80cnyqj965t2a0/cancel" }, "version": "40052ca2fc1b954fc16b5010733c1a7f28acf47681a507104aefb40238ff2f47" }
Generated inRunning prediction with: Prompt: High quailty, 4K, UHD Image Path: /tmp/tmp2vizo27p13039-2946705617-1girl, solo, long hair, bust, blindfold, blush, black hair, hair ornament, long sleeves, holding, off shoulders, closed mouth, s.png Width x Height: 1280x1024 Alignment: Right Resize Option: Full, Custom %: 50 Overlap %: 15, Left: True, Right: False, Top: False, Bottom: False Num Steps: 28, Guidance: 30.0, Seed: None 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:01<00:48, 1.80s/it] 7%|▋ | 2/28 [00:03<00:47, 1.84s/it] 11%|█ | 3/28 [00:05<00:45, 1.84s/it] 14%|█▍ | 4/28 [00:06<00:36, 1.51s/it] 18%|█▊ | 5/28 [00:07<00:30, 1.34s/it] 21%|██▏ | 6/28 [00:08<00:27, 1.24s/it] 25%|██▌ | 7/28 [00:09<00:24, 1.19s/it] 29%|██▊ | 8/28 [00:10<00:22, 1.13s/it] 32%|███▏ | 9/28 [00:11<00:20, 1.10s/it] 36%|███▌ | 10/28 [00:12<00:19, 1.08s/it] 39%|███▉ | 11/28 [00:13<00:18, 1.07s/it] 43%|████▎ | 12/28 [00:14<00:16, 1.05s/it] 46%|████▋ | 13/28 [00:15<00:15, 1.05s/it] 50%|█████ | 14/28 [00:16<00:14, 1.05s/it] 54%|█████▎ | 15/28 [00:17<00:13, 1.06s/it] 57%|█████▋ | 16/28 [00:19<00:12, 1.06s/it] 61%|██████ | 17/28 [00:20<00:11, 1.06s/it] 64%|██████▍ | 18/28 [00:21<00:10, 1.07s/it] 68%|██████▊ | 19/28 [00:22<00:09, 1.07s/it] 71%|███████▏ | 20/28 [00:23<00:08, 1.07s/it] 75%|███████▌ | 21/28 [00:24<00:07, 1.07s/it] 79%|███████▊ | 22/28 [00:25<00:06, 1.08s/it] 82%|████████▏ | 23/28 [00:26<00:05, 1.09s/it] 86%|████████▌ | 24/28 [00:27<00:04, 1.09s/it] 89%|████████▉ | 25/28 [00:28<00:03, 1.09s/it] 93%|█████████▎| 26/28 [00:29<00:02, 1.10s/it] 96%|█████████▋| 27/28 [00:31<00:01, 1.10s/it] 100%|██████████| 28/28 [00:32<00:00, 1.11s/it] 100%|██████████| 28/28 [00:32<00:00, 1.15s/it] 출력 이미지가 /tmp/outpaint_output.png에 저장되었습니다.
Want to make some of these yourself?
Run this model