zetyquickly-org
/
faceswap-a-gif
Make Fun by Changing Face on a GIF!
- Public
- 14.5K runs
-
L40S
Prediction
zetyquickly-org/faceswap-a-gif:974be353IDbaxj7m6d3hrma0cmvs4ajmav0rStatusSucceededSourceWebHardwareL40STotal durationCreatedInput
{ "source": "https://replicate.delivery/pbxt/MSGVMZFwtAVjR6GfWtJPXkWY8oD5x1VU1YD33L0cDfus1PpX/target2.jpg", "target": "https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExcng1OHp0ZHh3d2QxaXQ5cXlid3JrdWRia2J6OXdtcWw2MHgwam40OCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/s239QJIh56sRW/giphy.gif" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run zetyquickly-org/faceswap-a-gif using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "zetyquickly-org/faceswap-a-gif:974be35318aab27d78c8c935761e665620236d3b157a9b35385c7905c601d977", { input: { source: "https://replicate.delivery/pbxt/MSGVMZFwtAVjR6GfWtJPXkWY8oD5x1VU1YD33L0cDfus1PpX/target2.jpg", target: "https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExcng1OHp0ZHh3d2QxaXQ5cXlid3JrdWRia2J6OXdtcWw2MHgwam40OCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/s239QJIh56sRW/giphy.gif" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run zetyquickly-org/faceswap-a-gif using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "zetyquickly-org/faceswap-a-gif:974be35318aab27d78c8c935761e665620236d3b157a9b35385c7905c601d977", input={ "source": "https://replicate.delivery/pbxt/MSGVMZFwtAVjR6GfWtJPXkWY8oD5x1VU1YD33L0cDfus1PpX/target2.jpg", "target": "https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExcng1OHp0ZHh3d2QxaXQ5cXlid3JrdWRia2J6OXdtcWw2MHgwam40OCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/s239QJIh56sRW/giphy.gif" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run zetyquickly-org/faceswap-a-gif 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": "974be35318aab27d78c8c935761e665620236d3b157a9b35385c7905c601d977", "input": { "source": "https://replicate.delivery/pbxt/MSGVMZFwtAVjR6GfWtJPXkWY8oD5x1VU1YD33L0cDfus1PpX/target2.jpg", "target": "https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExcng1OHp0ZHh3d2QxaXQ5cXlid3JrdWRia2J6OXdtcWw2MHgwam40OCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/s239QJIh56sRW/giphy.gif" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run zetyquickly-org/faceswap-a-gif using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/zetyquickly-org/faceswap-a-gif@sha256:974be35318aab27d78c8c935761e665620236d3b157a9b35385c7905c601d977 \ -i 'source="https://replicate.delivery/pbxt/MSGVMZFwtAVjR6GfWtJPXkWY8oD5x1VU1YD33L0cDfus1PpX/target2.jpg"' \ -i 'target="https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExcng1OHp0ZHh3d2QxaXQ5cXlid3JrdWRia2J6OXdtcWw2MHgwam40OCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/s239QJIh56sRW/giphy.gif"'
To learn more, take a look at the Cog documentation.
Pull and run zetyquickly-org/faceswap-a-gif using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/zetyquickly-org/faceswap-a-gif@sha256:974be35318aab27d78c8c935761e665620236d3b157a9b35385c7905c601d977
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "source": "https://replicate.delivery/pbxt/MSGVMZFwtAVjR6GfWtJPXkWY8oD5x1VU1YD33L0cDfus1PpX/target2.jpg", "target": "https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExcng1OHp0ZHh3d2QxaXQ5cXlid3JrdWRia2J6OXdtcWw2MHgwam40OCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/s239QJIh56sRW/giphy.gif" } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2025-02-07T02:41:45.050963Z", "created_at": "2025-02-07T02:41:40.636000Z", "data_removed": false, "error": null, "id": "baxj7m6d3hrma0cmvs4ajmav0r", "input": { "source": "https://replicate.delivery/pbxt/MSGVMZFwtAVjR6GfWtJPXkWY8oD5x1VU1YD33L0cDfus1PpX/target2.jpg", "target": "https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExcng1OHp0ZHh3d2QxaXQ5cXlid3JrdWRia2J6OXdtcWw2MHgwam40OCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/s239QJIh56sRW/giphy.gif" }, "logs": null, "metrics": { "predict_time": 4.40681078, "total_time": 4.414963 }, "output": "https://replicate.delivery/xezq/kT4Ym3MemxwDLiwXuNWxL7aQHTpcWqUSGtP2BSaoRUk0JZGKA/tmpq2ryvg8r.gif", "started_at": "2025-02-07T02:41:40.644152Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-wzcbpc6ivsfbuxpxnawg7tjq2hmhdctyxtjnzfzjpmmwpe3sg4oa", "get": "https://api.replicate.com/v1/predictions/baxj7m6d3hrma0cmvs4ajmav0r", "cancel": "https://api.replicate.com/v1/predictions/baxj7m6d3hrma0cmvs4ajmav0r/cancel" }, "version": "0b15e1d4296c28eee8557b21167adf9f6ea0da81e897e1dd7de59a845c8c6cdd" }
Generated inPrediction
zetyquickly-org/faceswap-a-gif:974be353ID6wytmc5885rmc0cmvvt8c9jk78StatusSucceededSourceWebHardwareL40STotal durationCreatedInput
{ "source": "https://replicate.delivery/pbxt/MSGVMZFwtAVjR6GfWtJPXkWY8oD5x1VU1YD33L0cDfus1PpX/target2.jpg", "target": "https://media1.giphy.com/media/v1.Y2lkPTc5MGI3NjExOWl1eXQzbm5ic3Ywam00aDNyaWY1M2lzYXhxa2F0eWc4ejZlamtiMyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/MVDPX3gaKFPuo/giphy.gif" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run zetyquickly-org/faceswap-a-gif using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "zetyquickly-org/faceswap-a-gif:974be35318aab27d78c8c935761e665620236d3b157a9b35385c7905c601d977", { input: { source: "https://replicate.delivery/pbxt/MSGVMZFwtAVjR6GfWtJPXkWY8oD5x1VU1YD33L0cDfus1PpX/target2.jpg", target: "https://media1.giphy.com/media/v1.Y2lkPTc5MGI3NjExOWl1eXQzbm5ic3Ywam00aDNyaWY1M2lzYXhxa2F0eWc4ejZlamtiMyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/MVDPX3gaKFPuo/giphy.gif" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run zetyquickly-org/faceswap-a-gif using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "zetyquickly-org/faceswap-a-gif:974be35318aab27d78c8c935761e665620236d3b157a9b35385c7905c601d977", input={ "source": "https://replicate.delivery/pbxt/MSGVMZFwtAVjR6GfWtJPXkWY8oD5x1VU1YD33L0cDfus1PpX/target2.jpg", "target": "https://media1.giphy.com/media/v1.Y2lkPTc5MGI3NjExOWl1eXQzbm5ic3Ywam00aDNyaWY1M2lzYXhxa2F0eWc4ejZlamtiMyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/MVDPX3gaKFPuo/giphy.gif" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run zetyquickly-org/faceswap-a-gif 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": "974be35318aab27d78c8c935761e665620236d3b157a9b35385c7905c601d977", "input": { "source": "https://replicate.delivery/pbxt/MSGVMZFwtAVjR6GfWtJPXkWY8oD5x1VU1YD33L0cDfus1PpX/target2.jpg", "target": "https://media1.giphy.com/media/v1.Y2lkPTc5MGI3NjExOWl1eXQzbm5ic3Ywam00aDNyaWY1M2lzYXhxa2F0eWc4ejZlamtiMyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/MVDPX3gaKFPuo/giphy.gif" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run zetyquickly-org/faceswap-a-gif using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/zetyquickly-org/faceswap-a-gif@sha256:974be35318aab27d78c8c935761e665620236d3b157a9b35385c7905c601d977 \ -i 'source="https://replicate.delivery/pbxt/MSGVMZFwtAVjR6GfWtJPXkWY8oD5x1VU1YD33L0cDfus1PpX/target2.jpg"' \ -i 'target="https://media1.giphy.com/media/v1.Y2lkPTc5MGI3NjExOWl1eXQzbm5ic3Ywam00aDNyaWY1M2lzYXhxa2F0eWc4ejZlamtiMyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/MVDPX3gaKFPuo/giphy.gif"'
To learn more, take a look at the Cog documentation.
Pull and run zetyquickly-org/faceswap-a-gif using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/zetyquickly-org/faceswap-a-gif@sha256:974be35318aab27d78c8c935761e665620236d3b157a9b35385c7905c601d977
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "source": "https://replicate.delivery/pbxt/MSGVMZFwtAVjR6GfWtJPXkWY8oD5x1VU1YD33L0cDfus1PpX/target2.jpg", "target": "https://media1.giphy.com/media/v1.Y2lkPTc5MGI3NjExOWl1eXQzbm5ic3Ywam00aDNyaWY1M2lzYXhxa2F0eWc4ejZlamtiMyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/MVDPX3gaKFPuo/giphy.gif" } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2025-02-07T05:49:25.018535Z", "created_at": "2025-02-07T05:49:23.393000Z", "data_removed": false, "error": null, "id": "6wytmc5885rmc0cmvvt8c9jk78", "input": { "source": "https://replicate.delivery/pbxt/MSGVMZFwtAVjR6GfWtJPXkWY8oD5x1VU1YD33L0cDfus1PpX/target2.jpg", "target": "https://media1.giphy.com/media/v1.Y2lkPTc5MGI3NjExOWl1eXQzbm5ic3Ywam00aDNyaWY1M2lzYXhxa2F0eWc4ejZlamtiMyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/MVDPX3gaKFPuo/giphy.gif" }, "logs": null, "metrics": { "predict_time": 1.595612415, "total_time": 1.625535 }, "output": "https://replicate.delivery/xezq/rLv0eKFHSxVwXazeTcsmkAiMqIqUqXY0ghYRVfXLaaMLHqZoA/tmpglceyi2z.gif", "started_at": "2025-02-07T05:49:23.422922Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-2i5vwhooy4pj343w2chzson6zaeqygazytc23k75yxy6rqboxvvq", "get": "https://api.replicate.com/v1/predictions/6wytmc5885rmc0cmvvt8c9jk78", "cancel": "https://api.replicate.com/v1/predictions/6wytmc5885rmc0cmvvt8c9jk78/cancel" }, "version": "974be35318aab27d78c8c935761e665620236d3b157a9b35385c7905c601d977" }
Generated inPrediction
zetyquickly-org/faceswap-a-gif:974be353IDsq585vmbtxrma0cmvvtspw3eq4StatusSucceededSourceWebHardwareL40STotal durationCreatedInput
{ "source": "https://replicate.delivery/pbxt/MSGVMZFwtAVjR6GfWtJPXkWY8oD5x1VU1YD33L0cDfus1PpX/target2.jpg", "target": "https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExcXZ5NHJmczN3YmFpcjUzdml4MWIwcWJ5MmNhbWNzY3BkMWs2b2VocSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/fwEB7wWfavrNyuTbMe/giphy.gif" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run zetyquickly-org/faceswap-a-gif using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "zetyquickly-org/faceswap-a-gif:974be35318aab27d78c8c935761e665620236d3b157a9b35385c7905c601d977", { input: { source: "https://replicate.delivery/pbxt/MSGVMZFwtAVjR6GfWtJPXkWY8oD5x1VU1YD33L0cDfus1PpX/target2.jpg", target: "https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExcXZ5NHJmczN3YmFpcjUzdml4MWIwcWJ5MmNhbWNzY3BkMWs2b2VocSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/fwEB7wWfavrNyuTbMe/giphy.gif" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run zetyquickly-org/faceswap-a-gif using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "zetyquickly-org/faceswap-a-gif:974be35318aab27d78c8c935761e665620236d3b157a9b35385c7905c601d977", input={ "source": "https://replicate.delivery/pbxt/MSGVMZFwtAVjR6GfWtJPXkWY8oD5x1VU1YD33L0cDfus1PpX/target2.jpg", "target": "https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExcXZ5NHJmczN3YmFpcjUzdml4MWIwcWJ5MmNhbWNzY3BkMWs2b2VocSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/fwEB7wWfavrNyuTbMe/giphy.gif" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run zetyquickly-org/faceswap-a-gif 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": "974be35318aab27d78c8c935761e665620236d3b157a9b35385c7905c601d977", "input": { "source": "https://replicate.delivery/pbxt/MSGVMZFwtAVjR6GfWtJPXkWY8oD5x1VU1YD33L0cDfus1PpX/target2.jpg", "target": "https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExcXZ5NHJmczN3YmFpcjUzdml4MWIwcWJ5MmNhbWNzY3BkMWs2b2VocSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/fwEB7wWfavrNyuTbMe/giphy.gif" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run zetyquickly-org/faceswap-a-gif using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/zetyquickly-org/faceswap-a-gif@sha256:974be35318aab27d78c8c935761e665620236d3b157a9b35385c7905c601d977 \ -i 'source="https://replicate.delivery/pbxt/MSGVMZFwtAVjR6GfWtJPXkWY8oD5x1VU1YD33L0cDfus1PpX/target2.jpg"' \ -i 'target="https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExcXZ5NHJmczN3YmFpcjUzdml4MWIwcWJ5MmNhbWNzY3BkMWs2b2VocSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/fwEB7wWfavrNyuTbMe/giphy.gif"'
To learn more, take a look at the Cog documentation.
Pull and run zetyquickly-org/faceswap-a-gif using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/zetyquickly-org/faceswap-a-gif@sha256:974be35318aab27d78c8c935761e665620236d3b157a9b35385c7905c601d977
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "source": "https://replicate.delivery/pbxt/MSGVMZFwtAVjR6GfWtJPXkWY8oD5x1VU1YD33L0cDfus1PpX/target2.jpg", "target": "https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExcXZ5NHJmczN3YmFpcjUzdml4MWIwcWJ5MmNhbWNzY3BkMWs2b2VocSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/fwEB7wWfavrNyuTbMe/giphy.gif" } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2025-02-07T05:50:25.188414Z", "created_at": "2025-02-07T05:50:21.655000Z", "data_removed": false, "error": null, "id": "sq585vmbtxrma0cmvvtspw3eq4", "input": { "source": "https://replicate.delivery/pbxt/MSGVMZFwtAVjR6GfWtJPXkWY8oD5x1VU1YD33L0cDfus1PpX/target2.jpg", "target": "https://media2.giphy.com/media/v1.Y2lkPTc5MGI3NjExcXZ5NHJmczN3YmFpcjUzdml4MWIwcWJ5MmNhbWNzY3BkMWs2b2VocSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/fwEB7wWfavrNyuTbMe/giphy.gif" }, "logs": null, "metrics": { "predict_time": 3.44221904, "total_time": 3.533414 }, "output": "https://replicate.delivery/xezq/UbMIZTBeafkKJ0C3XaEMxkSE6mya8IQelfZXyg1Uq51GSUzQB/tmph8w_y0vi.gif", "started_at": "2025-02-07T05:50:21.746195Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-i4w7sjhez3rqj5hcbmkuqymuj7jxmr5j3xb4eukvgpsfofl4wqfa", "get": "https://api.replicate.com/v1/predictions/sq585vmbtxrma0cmvvtspw3eq4", "cancel": "https://api.replicate.com/v1/predictions/sq585vmbtxrma0cmvvtspw3eq4/cancel" }, "version": "974be35318aab27d78c8c935761e665620236d3b157a9b35385c7905c601d977" }
Generated in
Want to make some of these yourself?
Run this model