typefile
{
"duration_seconds": 2.5,
"fps": 30,
"image": "https://replicate.delivery/pbxt/Mz2XYXBunRYg7SyneW8prtr1E01sPugp3ZzdyqnaCbLlhMWO/FaceSwap_ChatGPT%20Image%209%20mai%202025%2C%2001_23_38.png",
"prompt": "a man with glasses plays acoustic guitar in his room, static camera, warm light",
"seed": 42,
"steps": 25
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Auf**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run paullux/framepack-runner using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"paullux/framepack-runner:2066ad45df0ec8d3041aa40fb18f4f14ae55154dfc85af90b41dc91c705108d8",
{
input: {
duration_seconds: 2.5,
fps: 30,
image: "https://replicate.delivery/pbxt/Mz2XYXBunRYg7SyneW8prtr1E01sPugp3ZzdyqnaCbLlhMWO/FaceSwap_ChatGPT%20Image%209%20mai%202025%2C%2001_23_38.png",
prompt: "a man with glasses plays acoustic guitar in his room, static camera, warm light",
seed: 42,
steps: 25
}
}
);
// 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.
pip install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Auf**********************************
This is your API token. Keep it to yourself.
import replicate
Run paullux/framepack-runner using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"paullux/framepack-runner:2066ad45df0ec8d3041aa40fb18f4f14ae55154dfc85af90b41dc91c705108d8",
input={
"duration_seconds": 2.5,
"fps": 30,
"image": "https://replicate.delivery/pbxt/Mz2XYXBunRYg7SyneW8prtr1E01sPugp3ZzdyqnaCbLlhMWO/FaceSwap_ChatGPT%20Image%209%20mai%202025%2C%2001_23_38.png",
"prompt": "a man with glasses plays acoustic guitar in his room, static camera, warm light",
"seed": 42,
"steps": 25
}
)
# To access the file URL:
print(output.url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Auf**********************************
This is your API token. Keep it to yourself.
Run paullux/framepack-runner 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": "paullux/framepack-runner:2066ad45df0ec8d3041aa40fb18f4f14ae55154dfc85af90b41dc91c705108d8",
"input": {
"duration_seconds": 2.5,
"fps": 30,
"image": "https://replicate.delivery/pbxt/Mz2XYXBunRYg7SyneW8prtr1E01sPugp3ZzdyqnaCbLlhMWO/FaceSwap_ChatGPT%20Image%209%20mai%202025%2C%2001_23_38.png",
"prompt": "a man with glasses plays acoustic guitar in his room, static camera, warm light",
"seed": 42,
"steps": 25
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "51aq7y0hkhrj60cpq65a9p7qsm",
"model": "paullux/framepack-runner",
"version": "2066ad45df0ec8d3041aa40fb18f4f14ae55154dfc85af90b41dc91c705108d8",
"input": {
"duration_seconds": 2.5,
"fps": 30,
"image": "https://replicate.delivery/pbxt/Mz2XYXBunRYg7SyneW8prtr1E01sPugp3ZzdyqnaCbLlhMWO/FaceSwap_ChatGPT%20Image%209%20mai%202025%2C%2001_23_38.png",
"prompt": "a man with glasses plays acoustic guitar in his room, static camera, warm light",
"seed": 42,
"steps": 25
},
"logs": "📸 Chargement de l’image depuis /tmp/tmpplopv35cFaceSwap_ChatGPT Image 9 mai 2025, 01_23_38.png\n🧠 Encodage CLIP Vision...\n🧠 Encodage VAE...\n🧠 Encodage du prompt...\n🎞️ Sampling...\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:06<02:47, 6.98s/it]\n 8%|▊ | 2/25 [00:11<02:11, 5.70s/it]\n 12%|█▏ | 3/25 [00:18<02:18, 6.28s/it]\n 16%|█▌ | 4/25 [00:25<02:17, 6.55s/it]\n 20%|██ | 5/25 [00:32<02:13, 6.70s/it]\n 24%|██▍ | 6/25 [00:39<02:08, 6.79s/it]\n 28%|██▊ | 7/25 [00:46<02:03, 6.85s/it]\n 32%|███▏ | 8/25 [00:53<01:57, 6.89s/it]\n 36%|███▌ | 9/25 [01:00<01:50, 6.92s/it]\n 40%|████ | 10/25 [01:07<01:44, 6.94s/it]\n 44%|████▍ | 11/25 [01:14<01:37, 6.95s/it]\n 48%|████▊ | 12/25 [01:21<01:30, 6.96s/it]\n 52%|█████▏ | 13/25 [01:28<01:23, 6.97s/it]\n 56%|█████▌ | 14/25 [01:35<01:16, 6.98s/it]\n 60%|██████ | 15/25 [01:42<01:09, 6.98s/it]\n 64%|██████▍ | 16/25 [01:49<01:02, 6.98s/it]\n 68%|██████▊ | 17/25 [01:56<00:55, 6.98s/it]\n 72%|███████▏ | 18/25 [02:03<00:48, 6.98s/it]\n 76%|███████▌ | 19/25 [02:10<00:41, 6.98s/it]\n 80%|████████ | 20/25 [02:17<00:34, 6.98s/it]\n 84%|████████▍ | 21/25 [02:24<00:27, 6.98s/it]\n 88%|████████▊ | 22/25 [02:31<00:20, 6.98s/it]\n 92%|█████████▏| 23/25 [02:38<00:13, 6.98s/it]\n 96%|█████████▌| 24/25 [02:45<00:06, 6.98s/it]\n100%|██████████| 25/25 [02:52<00:00, 6.98s/it]\n100%|██████████| 25/25 [02:52<00:00, 6.89s/it]\n🖼️ Décodage final...\n🎬 Vidéo enregistrée à /tmp/tmpq20swoxy.mp4",
"output": "https://replicate.delivery/yhqm/OFBbB86msXpUOxEQF3ekQDoMjbXaJA7nUf2RGhps8mOnINrUA/tmpq20swoxy.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-05-10T09:32:35.612Z",
"started_at": "2025-05-10T09:42:00.587287Z",
"completed_at": "2025-05-10T09:45:11.511481Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/51aq7y0hkhrj60cpq65a9p7qsm/cancel",
"get": "https://api.replicate.com/v1/predictions/51aq7y0hkhrj60cpq65a9p7qsm",
"stream": "https://stream.replicate.com/v1/files/qoxq-jr6h65mdoiyhvtagnjuqrt5u7rzspafmaox3kei5ynsw3zdfs3na",
"web": "https://replicate.com/p/51aq7y0hkhrj60cpq65a9p7qsm"
},
"metrics": {
"predict_time": 190.924194543,
"total_time": 755.899481
}
}