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:974be353
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: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
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: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.
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": "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.
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-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"
}