cjwbw / rmgb
Background removal model developed by BRIA.AI, trained on a carefully selected dataset and is available as an open-source model for non-commercial use.
Prediction
cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989eModelIDbqywgddbes6ji3qnn63zn3rhgqStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KMK4DLdvv5FTRlgzVv3GVIxklvlICpfqRrKoJKMp5pdfWSWS/input.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 cjwbw/rmgb using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e", { input: { image: "https://replicate.delivery/pbxt/KMK4DLdvv5FTRlgzVv3GVIxklvlICpfqRrKoJKMp5pdfWSWS/input.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 cjwbw/rmgb using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e", input={ "image": "https://replicate.delivery/pbxt/KMK4DLdvv5FTRlgzVv3GVIxklvlICpfqRrKoJKMp5pdfWSWS/input.jpg" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/rmgb 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": "cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e", "input": { "image": "https://replicate.delivery/pbxt/KMK4DLdvv5FTRlgzVv3GVIxklvlICpfqRrKoJKMp5pdfWSWS/input.jpg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-02-06T23:36:12.098563Z", "created_at": "2024-02-06T23:34:57.815809Z", "data_removed": false, "error": null, "id": "bqywgddbes6ji3qnn63zn3rhgq", "input": { "image": "https://replicate.delivery/pbxt/KMK4DLdvv5FTRlgzVv3GVIxklvlICpfqRrKoJKMp5pdfWSWS/input.jpg" }, "logs": null, "metrics": { "predict_time": 3.735965, "total_time": 74.282754 }, "output": "https://replicate.delivery/pbxt/GQHlPkwVeGVuKyaDLYfpQJCA5I0QOari8qmbcfykD9yUjOokA/out.png", "started_at": "2024-02-06T23:36:08.362598Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/bqywgddbes6ji3qnn63zn3rhgq", "cancel": "https://api.replicate.com/v1/predictions/bqywgddbes6ji3qnn63zn3rhgq/cancel" }, "version": "e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e" }
Generated inPrediction
cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989eModelIDhkttbd3b7mc5augavcz7xbfnjyStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KMKaAlkTmE3XOn3utmJJ57bfNJyaPd9QM1UmhFr44u5pSu9z/animal-1.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 cjwbw/rmgb using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e", { input: { image: "https://replicate.delivery/pbxt/KMKaAlkTmE3XOn3utmJJ57bfNJyaPd9QM1UmhFr44u5pSu9z/animal-1.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 cjwbw/rmgb using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e", input={ "image": "https://replicate.delivery/pbxt/KMKaAlkTmE3XOn3utmJJ57bfNJyaPd9QM1UmhFr44u5pSu9z/animal-1.jpeg" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/rmgb 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": "cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e", "input": { "image": "https://replicate.delivery/pbxt/KMKaAlkTmE3XOn3utmJJ57bfNJyaPd9QM1UmhFr44u5pSu9z/animal-1.jpeg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-02-07T00:09:39.017608Z", "created_at": "2024-02-07T00:08:41.252571Z", "data_removed": false, "error": null, "id": "hkttbd3b7mc5augavcz7xbfnjy", "input": { "image": "https://replicate.delivery/pbxt/KMKaAlkTmE3XOn3utmJJ57bfNJyaPd9QM1UmhFr44u5pSu9z/animal-1.jpeg" }, "logs": null, "metrics": { "predict_time": 3.23689, "total_time": 57.765037 }, "output": "https://replicate.delivery/pbxt/nebiCELK9ax0SqBLObefKIvIRnIFGfVesMgPGLiD1VhIIeBlE/out.png", "started_at": "2024-02-07T00:09:35.780718Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/hkttbd3b7mc5augavcz7xbfnjy", "cancel": "https://api.replicate.com/v1/predictions/hkttbd3b7mc5augavcz7xbfnjy/cancel" }, "version": "e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e" }
Generated inPrediction
cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989eModelIDzmb7453bjybjm5dhr2px55twkiStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KMKbgDpfO3QLnNfFmNFzzNxao6STwYUbg3CGWrAMWJ5f62Zf/n.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 cjwbw/rmgb using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e", { input: { image: "https://replicate.delivery/pbxt/KMKbgDpfO3QLnNfFmNFzzNxao6STwYUbg3CGWrAMWJ5f62Zf/n.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 cjwbw/rmgb using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e", input={ "image": "https://replicate.delivery/pbxt/KMKbgDpfO3QLnNfFmNFzzNxao6STwYUbg3CGWrAMWJ5f62Zf/n.jpeg" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/rmgb 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": "cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e", "input": { "image": "https://replicate.delivery/pbxt/KMKbgDpfO3QLnNfFmNFzzNxao6STwYUbg3CGWrAMWJ5f62Zf/n.jpeg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-02-07T00:10:17.745798Z", "created_at": "2024-02-07T00:10:15.967493Z", "data_removed": false, "error": null, "id": "zmb7453bjybjm5dhr2px55twki", "input": { "image": "https://replicate.delivery/pbxt/KMKbgDpfO3QLnNfFmNFzzNxao6STwYUbg3CGWrAMWJ5f62Zf/n.jpeg" }, "logs": null, "metrics": { "predict_time": 1.721171, "total_time": 1.778305 }, "output": "https://replicate.delivery/pbxt/OgneehnK9Yh1LkmzaDzXvNTUfG0fSKs8JZ7yjEvlwcdhGfgSC/out.png", "started_at": "2024-02-07T00:10:16.024627Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/zmb7453bjybjm5dhr2px55twki", "cancel": "https://api.replicate.com/v1/predictions/zmb7453bjybjm5dhr2px55twki/cancel" }, "version": "e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e" }
Generated inPrediction
cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989eModelIDml4ztidbfid2zhbl7icbignweuStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KMKc3wnzOBjMPyPdQGXTe1tEQkCc8XnHiuFyZOC7RbFgYLYM/OIG.png" }
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 cjwbw/rmgb using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e", { input: { image: "https://replicate.delivery/pbxt/KMKc3wnzOBjMPyPdQGXTe1tEQkCc8XnHiuFyZOC7RbFgYLYM/OIG.png" } } ); // 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 cjwbw/rmgb using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e", input={ "image": "https://replicate.delivery/pbxt/KMKc3wnzOBjMPyPdQGXTe1tEQkCc8XnHiuFyZOC7RbFgYLYM/OIG.png" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/rmgb 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": "cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e", "input": { "image": "https://replicate.delivery/pbxt/KMKc3wnzOBjMPyPdQGXTe1tEQkCc8XnHiuFyZOC7RbFgYLYM/OIG.png" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-02-07T00:10:43.581170Z", "created_at": "2024-02-07T00:10:41.678158Z", "data_removed": false, "error": null, "id": "ml4ztidbfid2zhbl7icbignweu", "input": { "image": "https://replicate.delivery/pbxt/KMKc3wnzOBjMPyPdQGXTe1tEQkCc8XnHiuFyZOC7RbFgYLYM/OIG.png" }, "logs": null, "metrics": { "predict_time": 1.864864, "total_time": 1.903012 }, "output": "https://replicate.delivery/pbxt/7sIkgkJ4sM77OZk507IAuNuqXzIwKpKZWx5KdEbDHXmg8BlE/out.png", "started_at": "2024-02-07T00:10:41.716306Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ml4ztidbfid2zhbl7icbignweu", "cancel": "https://api.replicate.com/v1/predictions/ml4ztidbfid2zhbl7icbignweu/cancel" }, "version": "e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e" }
Generated inPrediction
cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989eModelIDroegoetbqxf4idx54ryyxp3vvuStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KMKcWHYMrHtaUpdNBuRMeWNPohttm2aygthEuD5istoVVZMz/cyberpunkdolphin.png" }
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 cjwbw/rmgb using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e", { input: { image: "https://replicate.delivery/pbxt/KMKcWHYMrHtaUpdNBuRMeWNPohttm2aygthEuD5istoVVZMz/cyberpunkdolphin.png" } } ); // 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 cjwbw/rmgb using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e", input={ "image": "https://replicate.delivery/pbxt/KMKcWHYMrHtaUpdNBuRMeWNPohttm2aygthEuD5istoVVZMz/cyberpunkdolphin.png" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/rmgb 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": "cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e", "input": { "image": "https://replicate.delivery/pbxt/KMKcWHYMrHtaUpdNBuRMeWNPohttm2aygthEuD5istoVVZMz/cyberpunkdolphin.png" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-02-07T00:11:11.905223Z", "created_at": "2024-02-07T00:11:10.036480Z", "data_removed": false, "error": null, "id": "roegoetbqxf4idx54ryyxp3vvu", "input": { "image": "https://replicate.delivery/pbxt/KMKcWHYMrHtaUpdNBuRMeWNPohttm2aygthEuD5istoVVZMz/cyberpunkdolphin.png" }, "logs": null, "metrics": { "predict_time": 1.828491, "total_time": 1.868743 }, "output": "https://replicate.delivery/pbxt/F1Zw3Yom3CYPCxAPJGfMvJkZMHdfZUM2B0a5gGhBcTuekPokA/out.png", "started_at": "2024-02-07T00:11:10.076732Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/roegoetbqxf4idx54ryyxp3vvu", "cancel": "https://api.replicate.com/v1/predictions/roegoetbqxf4idx54ryyxp3vvu/cancel" }, "version": "e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e" }
Generated inPrediction
cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989eModelIDoitow4tbgyk6udik4jhk7k6kzuStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KMKcmbsENE96SiRmSL1HwuVOw6y6lBD2MuBpqqG1d0BKnB3Z/girl-2.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 cjwbw/rmgb using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e", { input: { image: "https://replicate.delivery/pbxt/KMKcmbsENE96SiRmSL1HwuVOw6y6lBD2MuBpqqG1d0BKnB3Z/girl-2.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 cjwbw/rmgb using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e", input={ "image": "https://replicate.delivery/pbxt/KMKcmbsENE96SiRmSL1HwuVOw6y6lBD2MuBpqqG1d0BKnB3Z/girl-2.jpeg" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/rmgb 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": "cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e", "input": { "image": "https://replicate.delivery/pbxt/KMKcmbsENE96SiRmSL1HwuVOw6y6lBD2MuBpqqG1d0BKnB3Z/girl-2.jpeg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-02-07T00:11:28.134110Z", "created_at": "2024-02-07T00:11:26.565099Z", "data_removed": false, "error": null, "id": "oitow4tbgyk6udik4jhk7k6kzu", "input": { "image": "https://replicate.delivery/pbxt/KMKcmbsENE96SiRmSL1HwuVOw6y6lBD2MuBpqqG1d0BKnB3Z/girl-2.jpeg" }, "logs": null, "metrics": { "predict_time": 1.530837, "total_time": 1.569011 }, "output": "https://replicate.delivery/pbxt/quUDyX1eyIxKekPID7Tnmo8RfnBoefHplTTk1FobT914VeBlE/out.png", "started_at": "2024-02-07T00:11:26.603273Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/oitow4tbgyk6udik4jhk7k6kzu", "cancel": "https://api.replicate.com/v1/predictions/oitow4tbgyk6udik4jhk7k6kzu/cancel" }, "version": "e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e" }
Generated inPrediction
cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989eModelIDfive7mlbjqzq7o5lirx42g2xvmStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KMKicHyDvapAyJ9ktS7gmcslzVpG2sNhXQMCcF6YcphgDixR/Barbie_Ken.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 cjwbw/rmgb using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e", { input: { image: "https://replicate.delivery/pbxt/KMKicHyDvapAyJ9ktS7gmcslzVpG2sNhXQMCcF6YcphgDixR/Barbie_Ken.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 cjwbw/rmgb using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e", input={ "image": "https://replicate.delivery/pbxt/KMKicHyDvapAyJ9ktS7gmcslzVpG2sNhXQMCcF6YcphgDixR/Barbie_Ken.jpg" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/rmgb 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": "cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e", "input": { "image": "https://replicate.delivery/pbxt/KMKicHyDvapAyJ9ktS7gmcslzVpG2sNhXQMCcF6YcphgDixR/Barbie_Ken.jpg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-02-07T00:17:40.578457Z", "created_at": "2024-02-07T00:17:36.842683Z", "data_removed": false, "error": null, "id": "five7mlbjqzq7o5lirx42g2xvm", "input": { "image": "https://replicate.delivery/pbxt/KMKicHyDvapAyJ9ktS7gmcslzVpG2sNhXQMCcF6YcphgDixR/Barbie_Ken.jpg" }, "logs": null, "metrics": { "predict_time": 3.698584, "total_time": 3.735774 }, "output": "https://replicate.delivery/pbxt/CMReAqsBbetKfoSGApl4gHSq2EFzw9H9xFCV6r6ChzZCxPokA/out.png", "started_at": "2024-02-07T00:17:36.879873Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/five7mlbjqzq7o5lirx42g2xvm", "cancel": "https://api.replicate.com/v1/predictions/five7mlbjqzq7o5lirx42g2xvm/cancel" }, "version": "e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e" }
Generated inPrediction
cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989eModelID2tpisytb62bl6w75nfch3haipmStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KMKjyASqwNXy3dh7O1R3Bf060EF8amxYrevwGUVutHUYCaVn/bernese-mountain-dog.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 cjwbw/rmgb using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e", { input: { image: "https://replicate.delivery/pbxt/KMKjyASqwNXy3dh7O1R3Bf060EF8amxYrevwGUVutHUYCaVn/bernese-mountain-dog.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 cjwbw/rmgb using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e", input={ "image": "https://replicate.delivery/pbxt/KMKjyASqwNXy3dh7O1R3Bf060EF8amxYrevwGUVutHUYCaVn/bernese-mountain-dog.jpg" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/rmgb 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": "cjwbw/rmgb:e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e", "input": { "image": "https://replicate.delivery/pbxt/KMKjyASqwNXy3dh7O1R3Bf060EF8amxYrevwGUVutHUYCaVn/bernese-mountain-dog.jpg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-02-07T00:19:03.270411Z", "created_at": "2024-02-07T00:19:01.304782Z", "data_removed": false, "error": null, "id": "2tpisytb62bl6w75nfch3haipm", "input": { "image": "https://replicate.delivery/pbxt/KMKjyASqwNXy3dh7O1R3Bf060EF8amxYrevwGUVutHUYCaVn/bernese-mountain-dog.jpg" }, "logs": null, "metrics": { "predict_time": 1.886307, "total_time": 1.965629 }, "output": "https://replicate.delivery/pbxt/6e4GSe9ee4r6cSKw4D2Zhifr8ltNgzgUjEU6xpy1eexT78DKJA/out.png", "started_at": "2024-02-07T00:19:01.384104Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/2tpisytb62bl6w75nfch3haipm", "cancel": "https://api.replicate.com/v1/predictions/2tpisytb62bl6w75nfch3haipm/cancel" }, "version": "e89200fbc08c5c5e9314e246db83a79d43f16c552dc4005e46cd7896800a989e" }
Generated in
Want to make some of these yourself?
Run this model