Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
zetyquickly-org /faceswap-a-gif:0b15e1d4
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import 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:0b15e1d4296c28eee8557b21167adf9f6ea0da81e897e1dd7de59a845c8c6cdd",
{
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
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import 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:0b15e1d4296c28eee8557b21167adf9f6ea0da81e897e1dd7de59a845c8c6cdd",
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.
REPLICATE_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": "0b15e1d4296c28eee8557b21167adf9f6ea0da81e897e1dd7de59a845c8c6cdd",
"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.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
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"
}