lucataco / remove-bg
Remove background from an image
Prediction
lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1Input
{ "image": "https://replicate.delivery/pbxt/JWsWduDtsYBHTqgfGCykzZtUkG0KolDhpjUPuz2Ns3MoO864/lion.jpeg" }
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 lucataco/remove-bg using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1", { input: { image: "https://replicate.delivery/pbxt/JWsWduDtsYBHTqgfGCykzZtUkG0KolDhpjUPuz2Ns3MoO864/lion.jpeg" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", 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
Import the client:import replicate
Run lucataco/remove-bg using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1", input={ "image": "https://replicate.delivery/pbxt/JWsWduDtsYBHTqgfGCykzZtUkG0KolDhpjUPuz2Ns3MoO864/lion.jpeg" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/remove-bg 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": "lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1", "input": { "image": "https://replicate.delivery/pbxt/JWsWduDtsYBHTqgfGCykzZtUkG0KolDhpjUPuz2Ns3MoO864/lion.jpeg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-08-04T23:29:01.087957Z", "created_at": "2024-08-04T23:28:59.395000Z", "data_removed": false, "error": null, "id": "k5egqmwc0drga0ch3ywr763t3g", "input": { "image": "https://replicate.delivery/pbxt/JWsWduDtsYBHTqgfGCykzZtUkG0KolDhpjUPuz2Ns3MoO864/lion.jpeg" }, "logs": null, "metrics": { "predict_time": 1.139457223, "total_time": 1.692957 }, "output": "https://replicate.delivery/czjl/fBllB7QPqGRSXaXMXN0O9U9TOEN6qmx59ObqAWEFc2BeCcPTA/output.png", "started_at": "2024-08-04T23:28:59.948499Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/k5egqmwc0drga0ch3ywr763t3g", "cancel": "https://api.replicate.com/v1/predictions/k5egqmwc0drga0ch3ywr763t3g/cancel" }, "version": "95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1" }
Generated inPrediction
lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1IDbqdf1x3jqxrgc0ch3yx8z44w98StatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/LODIsNd0da4f9nj6UzCN2LGXHjFZnzAm4O1i6qaGsrOZ7blZ/ppl.webp" }
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 lucataco/remove-bg using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1", { input: { image: "https://replicate.delivery/pbxt/LODIsNd0da4f9nj6UzCN2LGXHjFZnzAm4O1i6qaGsrOZ7blZ/ppl.webp" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", 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
Import the client:import replicate
Run lucataco/remove-bg using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1", input={ "image": "https://replicate.delivery/pbxt/LODIsNd0da4f9nj6UzCN2LGXHjFZnzAm4O1i6qaGsrOZ7blZ/ppl.webp" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/remove-bg 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": "lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1", "input": { "image": "https://replicate.delivery/pbxt/LODIsNd0da4f9nj6UzCN2LGXHjFZnzAm4O1i6qaGsrOZ7blZ/ppl.webp" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-08-04T23:30:00.027724Z", "created_at": "2024-08-04T23:29:58.463000Z", "data_removed": false, "error": null, "id": "bqdf1x3jqxrgc0ch3yx8z44w98", "input": { "image": "https://replicate.delivery/pbxt/LODIsNd0da4f9nj6UzCN2LGXHjFZnzAm4O1i6qaGsrOZ7blZ/ppl.webp" }, "logs": null, "metrics": { "predict_time": 1.551273373, "total_time": 1.564724 }, "output": "https://replicate.delivery/czjl/C6Sa0vXOtRajFtIbhn2GkNGPmbQZq9BUiQleanmRtuf3DcPTA/output.png", "started_at": "2024-08-04T23:29:58.476451Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/bqdf1x3jqxrgc0ch3yx8z44w98", "cancel": "https://api.replicate.com/v1/predictions/bqdf1x3jqxrgc0ch3yx8z44w98/cancel" }, "version": "95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1" }
Generated inPrediction
lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1ID0te4t9cnrsrg80ch3yxaehc9awStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/LODJ1cWhszHOrBPPKNHvqnMODpop8g8jxcHojFO4fxm8sP2a/replicate-prediction-76vf5sft51rm40ch1ssrc9pkrc.webp" }
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 lucataco/remove-bg using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1", { input: { image: "https://replicate.delivery/pbxt/LODJ1cWhszHOrBPPKNHvqnMODpop8g8jxcHojFO4fxm8sP2a/replicate-prediction-76vf5sft51rm40ch1ssrc9pkrc.webp" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", 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
Import the client:import replicate
Run lucataco/remove-bg using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1", input={ "image": "https://replicate.delivery/pbxt/LODJ1cWhszHOrBPPKNHvqnMODpop8g8jxcHojFO4fxm8sP2a/replicate-prediction-76vf5sft51rm40ch1ssrc9pkrc.webp" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/remove-bg 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": "lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1", "input": { "image": "https://replicate.delivery/pbxt/LODJ1cWhszHOrBPPKNHvqnMODpop8g8jxcHojFO4fxm8sP2a/replicate-prediction-76vf5sft51rm40ch1ssrc9pkrc.webp" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-08-04T23:30:08.725792Z", "created_at": "2024-08-04T23:30:07.430000Z", "data_removed": false, "error": null, "id": "0te4t9cnrsrg80ch3yxaehc9aw", "input": { "image": "https://replicate.delivery/pbxt/LODJ1cWhszHOrBPPKNHvqnMODpop8g8jxcHojFO4fxm8sP2a/replicate-prediction-76vf5sft51rm40ch1ssrc9pkrc.webp" }, "logs": null, "metrics": { "predict_time": 1.282295738, "total_time": 1.295792 }, "output": "https://replicate.delivery/czjl/g9wPrCjLz2ZKCdat9CCGo3keWWQxQ6jk97jw7aKhIibACunJA/output.png", "started_at": "2024-08-04T23:30:07.443497Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/0te4t9cnrsrg80ch3yxaehc9aw", "cancel": "https://api.replicate.com/v1/predictions/0te4t9cnrsrg80ch3yxaehc9aw/cancel" }, "version": "95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1" }
Generated inPrediction
lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1IDq9emkn7kq5rg80ch3yx86bvtfgStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/LODJPUyBAivMsPOUmORoomeKEbnYOJdUfVsjfwEo7Pe5L1Kr/skate.webp" }
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 lucataco/remove-bg using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1", { input: { image: "https://replicate.delivery/pbxt/LODJPUyBAivMsPOUmORoomeKEbnYOJdUfVsjfwEo7Pe5L1Kr/skate.webp" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", 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
Import the client:import replicate
Run lucataco/remove-bg using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1", input={ "image": "https://replicate.delivery/pbxt/LODJPUyBAivMsPOUmORoomeKEbnYOJdUfVsjfwEo7Pe5L1Kr/skate.webp" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/remove-bg 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": "lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1", "input": { "image": "https://replicate.delivery/pbxt/LODJPUyBAivMsPOUmORoomeKEbnYOJdUfVsjfwEo7Pe5L1Kr/skate.webp" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-08-04T23:30:32.832772Z", "created_at": "2024-08-04T23:30:31.481000Z", "data_removed": false, "error": null, "id": "q9emkn7kq5rg80ch3yx86bvtfg", "input": { "image": "https://replicate.delivery/pbxt/LODJPUyBAivMsPOUmORoomeKEbnYOJdUfVsjfwEo7Pe5L1Kr/skate.webp" }, "logs": null, "metrics": { "predict_time": 1.337072485, "total_time": 1.351772 }, "output": "https://replicate.delivery/czjl/ec28s6pUpWUcBCfkgzTu8pSBMesNrbBvwoCSRDn0JepjRw9MB/output.png", "started_at": "2024-08-04T23:30:31.495700Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/q9emkn7kq5rg80ch3yx86bvtfg", "cancel": "https://api.replicate.com/v1/predictions/q9emkn7kq5rg80ch3yx86bvtfg/cancel" }, "version": "95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1" }
Generated inPrediction
lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1IDs6eq8je731rgc0ch3yxbcxbgzwStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/LODJDe44nGJCgAXHpbuA9OgKONu5mqPBTZJLY6kW5eRjOywK/replicate-prediction-jyy8z6vze9rm60ch23ttqk6rpc.webp" }
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 lucataco/remove-bg using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1", { input: { image: "https://replicate.delivery/pbxt/LODJDe44nGJCgAXHpbuA9OgKONu5mqPBTZJLY6kW5eRjOywK/replicate-prediction-jyy8z6vze9rm60ch23ttqk6rpc.webp" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", 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
Import the client:import replicate
Run lucataco/remove-bg using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1", input={ "image": "https://replicate.delivery/pbxt/LODJDe44nGJCgAXHpbuA9OgKONu5mqPBTZJLY6kW5eRjOywK/replicate-prediction-jyy8z6vze9rm60ch23ttqk6rpc.webp" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/remove-bg 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": "lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1", "input": { "image": "https://replicate.delivery/pbxt/LODJDe44nGJCgAXHpbuA9OgKONu5mqPBTZJLY6kW5eRjOywK/replicate-prediction-jyy8z6vze9rm60ch23ttqk6rpc.webp" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-08-04T23:30:21.633987Z", "created_at": "2024-08-04T23:30:20.056000Z", "data_removed": false, "error": null, "id": "s6eq8je731rgc0ch3yxbcxbgzw", "input": { "image": "https://replicate.delivery/pbxt/LODJDe44nGJCgAXHpbuA9OgKONu5mqPBTZJLY6kW5eRjOywK/replicate-prediction-jyy8z6vze9rm60ch23ttqk6rpc.webp" }, "logs": null, "metrics": { "predict_time": 1.34334384, "total_time": 1.577987 }, "output": "https://replicate.delivery/czjl/68YlWIonABZdO5FAwhrgDD5EFp4uBlXfvNy9yeRgKjDNEcPTA/output.png", "started_at": "2024-08-04T23:30:20.290644Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/s6eq8je731rgc0ch3yxbcxbgzw", "cancel": "https://api.replicate.com/v1/predictions/s6eq8je731rgc0ch3yxbcxbgzw/cancel" }, "version": "95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1" }
Generated inPrediction
lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1ID60xytd9za5rga0ch3yybzv41a0StatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/LODKkPAP5jIGdQtKfpvQ9V3TBgKKR0ioNEka19WTrE5tQYJx/replicate-prediction-f65z2hnc2nrm40ch34trgwjyyc.webp" }
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 lucataco/remove-bg using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1", { input: { image: "https://replicate.delivery/pbxt/LODKkPAP5jIGdQtKfpvQ9V3TBgKKR0ioNEka19WTrE5tQYJx/replicate-prediction-f65z2hnc2nrm40ch34trgwjyyc.webp" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", 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
Import the client:import replicate
Run lucataco/remove-bg using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1", input={ "image": "https://replicate.delivery/pbxt/LODKkPAP5jIGdQtKfpvQ9V3TBgKKR0ioNEka19WTrE5tQYJx/replicate-prediction-f65z2hnc2nrm40ch34trgwjyyc.webp" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/remove-bg 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": "lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1", "input": { "image": "https://replicate.delivery/pbxt/LODKkPAP5jIGdQtKfpvQ9V3TBgKKR0ioNEka19WTrE5tQYJx/replicate-prediction-f65z2hnc2nrm40ch34trgwjyyc.webp" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-08-04T23:31:59.029861Z", "created_at": "2024-08-04T23:31:56.369000Z", "data_removed": false, "error": null, "id": "60xytd9za5rga0ch3yybzv41a0", "input": { "image": "https://replicate.delivery/pbxt/LODKkPAP5jIGdQtKfpvQ9V3TBgKKR0ioNEka19WTrE5tQYJx/replicate-prediction-f65z2hnc2nrm40ch34trgwjyyc.webp" }, "logs": null, "metrics": { "predict_time": 1.326336864, "total_time": 2.660861 }, "output": "https://replicate.delivery/czjl/jFJcnIhpnaJcORFdNjfOpuLXeWxFfpM5OUXlV43uETNdL4eMB/output.png", "started_at": "2024-08-04T23:31:57.703524Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/60xytd9za5rga0ch3yybzv41a0", "cancel": "https://api.replicate.com/v1/predictions/60xytd9za5rga0ch3yybzv41a0/cancel" }, "version": "95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1" }
Generated inPrediction
lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1IDwabdcmkj5nrgc0ch34prjbkf88StatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/JWsXzrTTAGmNWmJJRBUC1R8mfwbtiXg3HafeemMGLlGinScN/F54bD7jWQAAR0GE.jpeg" }
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 lucataco/remove-bg using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1", { input: { image: "https://replicate.delivery/pbxt/JWsXzrTTAGmNWmJJRBUC1R8mfwbtiXg3HafeemMGLlGinScN/F54bD7jWQAAR0GE.jpeg" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", 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
Import the client:import replicate
Run lucataco/remove-bg using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1", input={ "image": "https://replicate.delivery/pbxt/JWsXzrTTAGmNWmJJRBUC1R8mfwbtiXg3HafeemMGLlGinScN/F54bD7jWQAAR0GE.jpeg" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/remove-bg 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": "lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1", "input": { "image": "https://replicate.delivery/pbxt/JWsXzrTTAGmNWmJJRBUC1R8mfwbtiXg3HafeemMGLlGinScN/F54bD7jWQAAR0GE.jpeg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-08-03T16:58:16.289376Z", "created_at": "2024-08-03T16:58:14.445000Z", "data_removed": false, "error": null, "id": "wabdcmkj5nrgc0ch34prjbkf88", "input": { "image": "https://replicate.delivery/pbxt/JWsXzrTTAGmNWmJJRBUC1R8mfwbtiXg3HafeemMGLlGinScN/F54bD7jWQAAR0GE.jpeg" }, "logs": null, "metrics": { "predict_time": 1.828959131, "total_time": 1.844376 }, "output": "https://replicate.delivery/czjl/HpQe51Pxbk3rAy8Erd2TpIN0gTUNzAXcAed3zWzQH4ZoOBPTA/output.png", "started_at": "2024-08-03T16:58:14.460417Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/wabdcmkj5nrgc0ch34prjbkf88", "cancel": "https://api.replicate.com/v1/predictions/wabdcmkj5nrgc0ch34prjbkf88/cancel" }, "version": "95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1" }
Generated inPrediction
lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1Input
{ "image": "https://replicate.delivery/pbxt/JWsRA6DxCK24PlMYK5ENFYAFxJGUQTLr0JmLwsLb8uhv1JTU/shoe.jpg" }
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 lucataco/remove-bg using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1", { input: { image: "https://replicate.delivery/pbxt/JWsRA6DxCK24PlMYK5ENFYAFxJGUQTLr0JmLwsLb8uhv1JTU/shoe.jpg" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", 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
Import the client:import replicate
Run lucataco/remove-bg using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1", input={ "image": "https://replicate.delivery/pbxt/JWsRA6DxCK24PlMYK5ENFYAFxJGUQTLr0JmLwsLb8uhv1JTU/shoe.jpg" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/remove-bg 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": "lucataco/remove-bg:95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1", "input": { "image": "https://replicate.delivery/pbxt/JWsRA6DxCK24PlMYK5ENFYAFxJGUQTLr0JmLwsLb8uhv1JTU/shoe.jpg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-12-06T21:02:50.260785Z", "created_at": "2024-12-06T21:02:49.588000Z", "data_removed": false, "error": null, "id": "ydgjvctayhrga0ckkq48yvs4sr", "input": { "image": "https://replicate.delivery/pbxt/JWsRA6DxCK24PlMYK5ENFYAFxJGUQTLr0JmLwsLb8uhv1JTU/shoe.jpg" }, "logs": null, "metrics": { "predict_time": 0.657144865, "total_time": 0.672785 }, "output": "https://replicate.delivery/czjl/acDfUb39DJ1xLCxEWu0aDm9xQS1QV3CRSoOEbCAr3EG9wI8JA/output.png", "started_at": "2024-12-06T21:02:49.603640Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/fddq-xnbtacovv7u4rvsm2wntrcuddh3arqocilibb46dvudzjvy5akwa", "get": "https://api.replicate.com/v1/predictions/ydgjvctayhrga0ckkq48yvs4sr", "cancel": "https://api.replicate.com/v1/predictions/ydgjvctayhrga0ckkq48yvs4sr/cancel" }, "version": "95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1" }
Generated in
Want to make some of these yourself?
Run this model