moonpig / dis-background-removal
- Public
- 82 runs
-
T4
Prediction
moonpig/dis-background-removal:85045bfc27d832efcc5f07ae57110246919d595c441d0036d058ec6221650b87ID4tyd60k7nhrgc0cn2pkv6f9fb4StatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "images": [ "https://replicate.delivery/pbxt/MW6ClsSPWSCkLwedMooddfLtWsTBtfYLtz1OFRzisZWsLP9p/bee.png" ] }
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 moonpig/dis-background-removal using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "moonpig/dis-background-removal:85045bfc27d832efcc5f07ae57110246919d595c441d0036d058ec6221650b87", { input: { images: ["https://replicate.delivery/pbxt/MW6ClsSPWSCkLwedMooddfLtWsTBtfYLtz1OFRzisZWsLP9p/bee.png"] } } ); // 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 moonpig/dis-background-removal using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "moonpig/dis-background-removal:85045bfc27d832efcc5f07ae57110246919d595c441d0036d058ec6221650b87", input={ "images": ["https://replicate.delivery/pbxt/MW6ClsSPWSCkLwedMooddfLtWsTBtfYLtz1OFRzisZWsLP9p/bee.png"] } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run moonpig/dis-background-removal 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": "moonpig/dis-background-removal:85045bfc27d832efcc5f07ae57110246919d595c441d0036d058ec6221650b87", "input": { "images": ["https://replicate.delivery/pbxt/MW6ClsSPWSCkLwedMooddfLtWsTBtfYLtz1OFRzisZWsLP9p/bee.png"] } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-17T20:44:08.079167Z", "created_at": "2025-02-17T20:44:07.468000Z", "data_removed": false, "error": null, "id": "4tyd60k7nhrgc0cn2pkv6f9fb4", "input": { "images": [ "https://replicate.delivery/pbxt/MW6ClsSPWSCkLwedMooddfLtWsTBtfYLtz1OFRzisZWsLP9p/bee.png" ] }, "logs": "Preprocessing took 0.034 seconds\nInference took 0.144 seconds\nPost processing took 0.231 seconds\nTotal time: 0.409 seconds", "metrics": { "predict_time": 0.59625028, "total_time": 0.611167 }, "output": [ "https://replicate.delivery/czjl/XyZS3NfGDZXGWqBhs5O0x6jXAokPiXQKyj7xjBeBrsdYGVQUA/output.png" ], "started_at": "2025-02-17T20:44:07.482916Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/fddq-mev5o7rodgymxhsbal6nwqfz2qrg4fzzwbpc3mtwqmyckzuecafq", "get": "https://api.replicate.com/v1/predictions/4tyd60k7nhrgc0cn2pkv6f9fb4", "cancel": "https://api.replicate.com/v1/predictions/4tyd60k7nhrgc0cn2pkv6f9fb4/cancel" }, "version": "85045bfc27d832efcc5f07ae57110246919d595c441d0036d058ec6221650b87" }
Prediction
moonpig/dis-background-removal:0a5c3f3f4b6c5f90c7aaf6ff142bc783420143ddcba3d6b5f9fc63e3849c4f9fIDa4jg4a8y41rge0cn2qwv62dj0rStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "images": [ "https://replicate.delivery/pbxt/MW7ZKNzej2tBMFrko1etJNN6QubehWJLzhdkVX6ZlXFqfKSL/bee.png", "https://replicate.delivery/pbxt/MW7ZLD0tlJnb746Ed64I8a0elg1Fvmn7lJCYnDtMJ1pmsHO1/bee1.png", "https://replicate.delivery/pbxt/MW7ZKxH4tLlviEWqUk81Ajqqd2UpxNRlET9Y7LZ7dnP8HQR8/pingu.png" ] }
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 moonpig/dis-background-removal using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "moonpig/dis-background-removal:0a5c3f3f4b6c5f90c7aaf6ff142bc783420143ddcba3d6b5f9fc63e3849c4f9f", { input: { images: ["https://replicate.delivery/pbxt/MW7ZKNzej2tBMFrko1etJNN6QubehWJLzhdkVX6ZlXFqfKSL/bee.png","https://replicate.delivery/pbxt/MW7ZLD0tlJnb746Ed64I8a0elg1Fvmn7lJCYnDtMJ1pmsHO1/bee1.png","https://replicate.delivery/pbxt/MW7ZKxH4tLlviEWqUk81Ajqqd2UpxNRlET9Y7LZ7dnP8HQR8/pingu.png"] } } ); // 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 moonpig/dis-background-removal using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "moonpig/dis-background-removal:0a5c3f3f4b6c5f90c7aaf6ff142bc783420143ddcba3d6b5f9fc63e3849c4f9f", input={ "images": ["https://replicate.delivery/pbxt/MW7ZKNzej2tBMFrko1etJNN6QubehWJLzhdkVX6ZlXFqfKSL/bee.png","https://replicate.delivery/pbxt/MW7ZLD0tlJnb746Ed64I8a0elg1Fvmn7lJCYnDtMJ1pmsHO1/bee1.png","https://replicate.delivery/pbxt/MW7ZKxH4tLlviEWqUk81Ajqqd2UpxNRlET9Y7LZ7dnP8HQR8/pingu.png"] } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run moonpig/dis-background-removal 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": "moonpig/dis-background-removal:0a5c3f3f4b6c5f90c7aaf6ff142bc783420143ddcba3d6b5f9fc63e3849c4f9f", "input": { "images": ["https://replicate.delivery/pbxt/MW7ZKNzej2tBMFrko1etJNN6QubehWJLzhdkVX6ZlXFqfKSL/bee.png","https://replicate.delivery/pbxt/MW7ZLD0tlJnb746Ed64I8a0elg1Fvmn7lJCYnDtMJ1pmsHO1/bee1.png","https://replicate.delivery/pbxt/MW7ZKxH4tLlviEWqUk81Ajqqd2UpxNRlET9Y7LZ7dnP8HQR8/pingu.png"] } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-17T22:13:23.723854Z", "created_at": "2025-02-17T22:13:22.592000Z", "data_removed": false, "error": null, "id": "a4jg4a8y41rge0cn2qwv62dj0r", "input": { "images": [ "https://replicate.delivery/pbxt/MW7ZKNzej2tBMFrko1etJNN6QubehWJLzhdkVX6ZlXFqfKSL/bee.png", "https://replicate.delivery/pbxt/MW7ZLD0tlJnb746Ed64I8a0elg1Fvmn7lJCYnDtMJ1pmsHO1/bee1.png", "https://replicate.delivery/pbxt/MW7ZKxH4tLlviEWqUk81Ajqqd2UpxNRlET9Y7LZ7dnP8HQR8/pingu.png" ] }, "logs": "Image preprocessing took 0.044 seconds\nImage preprocessing took 0.135 seconds\nImage preprocessing took 0.141 seconds\nImage inference took 0.389 seconds\nImage inference took 0.355 seconds\nImage inference took 0.424 seconds\nImage postprocessing took 0.274 seconds\nImage postprocessing took 0.213 seconds\nImage postprocessing took 0.227 seconds\nTotal time: 0.789 seconds", "metrics": { "predict_time": 1.117062374, "total_time": 1.131854 }, "output": [ "https://replicate.delivery/czjl/ieaUFG0aaiXe6kaJpNNnKHtfx4KzT1IgetJMT4iuSSyNoZBRB/output_tmpe102m4ijbee1.png", "https://replicate.delivery/czjl/GvsoK04MMHbYKtdlEGP7Lq8DZ8enB7f5uW0MyhjetUyG0sgoA/output_tmpriul9nl3bee.png", "https://replicate.delivery/czjl/Oq2GTqCLqVKpGtq7pTqn8NJf11r2DwOz6Nda79C3j3fDaWQUA/output_tmpr6wny8d_pingu.png" ], "started_at": "2025-02-17T22:13:22.606792Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/fddq-jgos4owokhicbsjx2mmsygqfdar36lie7y7hm7u6x2lr7qeqxqma", "get": "https://api.replicate.com/v1/predictions/a4jg4a8y41rge0cn2qwv62dj0r", "cancel": "https://api.replicate.com/v1/predictions/a4jg4a8y41rge0cn2qwv62dj0r/cancel" }, "version": "0a5c3f3f4b6c5f90c7aaf6ff142bc783420143ddcba3d6b5f9fc63e3849c4f9f" }
Generated inImage preprocessing took 0.044 seconds Image preprocessing took 0.135 seconds Image preprocessing took 0.141 seconds Image inference took 0.389 seconds Image inference took 0.355 seconds Image inference took 0.424 seconds Image postprocessing took 0.274 seconds Image postprocessing took 0.213 seconds Image postprocessing took 0.227 seconds Total time: 0.789 seconds
Prediction
IDthgjjm2db9rga0cn2raa4141bgStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "images": [ "https://replicate.delivery/pbxt/MW81TNlOfrLGPd3i4AeJQzsJMhe8ccadcD2VZtlDfEgUtsaO/out-1.png", "https://replicate.delivery/pbxt/MW81T8ABTUHZ6pjTkpGu4vFQZBfqwUgyezLoVPZXi2nJE3Nq/out-2.png", "https://replicate.delivery/pbxt/MW81TFEAOOUdtjSaaEKHzdkNDrpsGu1RgytkoTzApDBgeVxE/out-3.png" ] }
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 moonpig/dis-background-removal using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "moonpig/dis-background-removal:0a5c3f3f4b6c5f90c7aaf6ff142bc783420143ddcba3d6b5f9fc63e3849c4f9f", { input: { images: ["https://replicate.delivery/pbxt/MW81TNlOfrLGPd3i4AeJQzsJMhe8ccadcD2VZtlDfEgUtsaO/out-1.png","https://replicate.delivery/pbxt/MW81T8ABTUHZ6pjTkpGu4vFQZBfqwUgyezLoVPZXi2nJE3Nq/out-2.png","https://replicate.delivery/pbxt/MW81TFEAOOUdtjSaaEKHzdkNDrpsGu1RgytkoTzApDBgeVxE/out-3.png"] } } ); // 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 moonpig/dis-background-removal using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "moonpig/dis-background-removal:0a5c3f3f4b6c5f90c7aaf6ff142bc783420143ddcba3d6b5f9fc63e3849c4f9f", input={ "images": ["https://replicate.delivery/pbxt/MW81TNlOfrLGPd3i4AeJQzsJMhe8ccadcD2VZtlDfEgUtsaO/out-1.png","https://replicate.delivery/pbxt/MW81T8ABTUHZ6pjTkpGu4vFQZBfqwUgyezLoVPZXi2nJE3Nq/out-2.png","https://replicate.delivery/pbxt/MW81TFEAOOUdtjSaaEKHzdkNDrpsGu1RgytkoTzApDBgeVxE/out-3.png"] } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run moonpig/dis-background-removal 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": "moonpig/dis-background-removal:0a5c3f3f4b6c5f90c7aaf6ff142bc783420143ddcba3d6b5f9fc63e3849c4f9f", "input": { "images": ["https://replicate.delivery/pbxt/MW81TNlOfrLGPd3i4AeJQzsJMhe8ccadcD2VZtlDfEgUtsaO/out-1.png","https://replicate.delivery/pbxt/MW81T8ABTUHZ6pjTkpGu4vFQZBfqwUgyezLoVPZXi2nJE3Nq/out-2.png","https://replicate.delivery/pbxt/MW81TFEAOOUdtjSaaEKHzdkNDrpsGu1RgytkoTzApDBgeVxE/out-3.png"] } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-17T22:43:05.239755Z", "created_at": "2025-02-17T22:43:04.154000Z", "data_removed": false, "error": null, "id": "thgjjm2db9rga0cn2raa4141bg", "input": { "images": [ "https://replicate.delivery/pbxt/MW81TNlOfrLGPd3i4AeJQzsJMhe8ccadcD2VZtlDfEgUtsaO/out-1.png", "https://replicate.delivery/pbxt/MW81T8ABTUHZ6pjTkpGu4vFQZBfqwUgyezLoVPZXi2nJE3Nq/out-2.png", "https://replicate.delivery/pbxt/MW81TFEAOOUdtjSaaEKHzdkNDrpsGu1RgytkoTzApDBgeVxE/out-3.png" ] }, "logs": "Image preprocessing took 0.064 seconds\nImage preprocessing took 0.130 seconds\nImage preprocessing took 0.134 seconds\nImage inference took 0.274 seconds\nImage inference took 0.352 seconds\nImage inference took 0.426 seconds\nImage postprocessing took 0.147 seconds\nImage postprocessing took 0.298 seconds\nImage postprocessing took 0.282 seconds\nTotal time: 0.769 seconds", "metrics": { "predict_time": 1.070371842, "total_time": 1.085755 }, "output": [ "https://replicate.delivery/czjl/oe1ZZOVAf7qJokKfnTOSPmDYGJubdiIqkNoiHTqX1ixyrtgoA/output_tmpqtxwmr4uout-1.png", "https://replicate.delivery/czjl/hbYpBJu6wdZJABDMMdg0JJ1qP88eVUMMJFNaCGKDmV88aLIKA/output_tmp1dxojt3hout-3.png", "https://replicate.delivery/czjl/YeogdP3VG2yKMiLuv5h0LliK7mrh3FCTF2HwLbV6J4i8aLIKA/output_tmp1bstr_rxout-2.png" ], "started_at": "2025-02-17T22:43:04.169383Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/fddq-x2dppevd2van4eq4y3v3spop2whu7gu2rtptrkrzdmilqlbmw4nq", "get": "https://api.replicate.com/v1/predictions/thgjjm2db9rga0cn2raa4141bg", "cancel": "https://api.replicate.com/v1/predictions/thgjjm2db9rga0cn2raa4141bg/cancel" }, "version": "0a5c3f3f4b6c5f90c7aaf6ff142bc783420143ddcba3d6b5f9fc63e3849c4f9f" }
Generated inImage preprocessing took 0.064 seconds Image preprocessing took 0.130 seconds Image preprocessing took 0.134 seconds Image inference took 0.274 seconds Image inference took 0.352 seconds Image inference took 0.426 seconds Image postprocessing took 0.147 seconds Image postprocessing took 0.298 seconds Image postprocessing took 0.282 seconds Total time: 0.769 seconds
Want to make some of these yourself?
Run this model