typefile
{
"duration_seconds": 5,
"fps": 30,
"image": "https://replicate.delivery/pbxt/Mz1ZuYVXx3VvmLknBWGEnb6oDzitXmLQkZ6Y8IXQ7nlfqGkp/Popey.png",
"prompt": "Create an animated image of Popeye the Sailor Man. He should be flexing his muscles with his iconic pipe in his mouth, and his can of spinach should be visible nearby. The background should be a nautical scene with a ship and the sea. Make sure to capture his classic sailor outfit and his determined expression.",
"seed": 42,
"steps": 25
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_bUF**********************************
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: 5,
fps: 30,
image: "https://replicate.delivery/pbxt/Mz1ZuYVXx3VvmLknBWGEnb6oDzitXmLQkZ6Y8IXQ7nlfqGkp/Popey.png",
prompt: "Create an animated image of Popeye the Sailor Man. He should be flexing his muscles with his iconic pipe in his mouth, and his can of spinach should be visible nearby. The background should be a nautical scene with a ship and the sea. Make sure to capture his classic sailor outfit and his determined expression.",
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_bUF**********************************
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": 5,
"fps": 30,
"image": "https://replicate.delivery/pbxt/Mz1ZuYVXx3VvmLknBWGEnb6oDzitXmLQkZ6Y8IXQ7nlfqGkp/Popey.png",
"prompt": "Create an animated image of Popeye the Sailor Man. He should be flexing his muscles with his iconic pipe in his mouth, and his can of spinach should be visible nearby. The background should be a nautical scene with a ship and the sea. Make sure to capture his classic sailor outfit and his determined expression.",
"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_bUF**********************************
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": 5,
"fps": 30,
"image": "https://replicate.delivery/pbxt/Mz1ZuYVXx3VvmLknBWGEnb6oDzitXmLQkZ6Y8IXQ7nlfqGkp/Popey.png",
"prompt": "Create an animated image of Popeye the Sailor Man. He should be flexing his muscles with his iconic pipe in his mouth, and his can of spinach should be visible nearby. The background should be a nautical scene with a ship and the sea. Make sure to capture his classic sailor outfit and his determined expression.",
"seed": 42,
"steps": 25
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "vsg1cabhkhrj20cpq58bcj9ebm",
"model": "paullux/framepack-runner",
"version": "2066ad45df0ec8d3041aa40fb18f4f14ae55154dfc85af90b41dc91c705108d8",
"input": {
"duration_seconds": 5,
"fps": 30,
"image": "https://replicate.delivery/pbxt/Mz1ZuYVXx3VvmLknBWGEnb6oDzitXmLQkZ6Y8IXQ7nlfqGkp/Popey.png",
"prompt": "Create an animated image of Popeye the Sailor Man. He should be flexing his muscles with his iconic pipe in his mouth, and his can of spinach should be visible nearby. The background should be a nautical scene with a ship and the sea. Make sure to capture his classic sailor outfit and his determined expression.",
"seed": 42,
"steps": 25
},
"logs": "📸 Chargement de l’image depuis /tmp/tmp74pvhji_Popey.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:20<08:01, 20.06s/it]\n 8%|▊ | 2/25 [00:33<06:17, 16.42s/it]\n 12%|█▏ | 3/25 [00:54<06:39, 18.14s/it]\n 16%|█▌ | 4/25 [01:14<06:38, 18.96s/it]\n 20%|██ | 5/25 [01:34<06:28, 19.41s/it]\n 24%|██▍ | 6/25 [01:54<06:14, 19.69s/it]\n 28%|██▊ | 7/25 [02:15<05:57, 19.87s/it]\n 32%|███▏ | 8/25 [02:35<05:39, 19.99s/it]\n 36%|███▌ | 9/25 [02:55<05:21, 20.07s/it]\n 40%|████ | 10/25 [03:15<05:01, 20.13s/it]\n 44%|████▍ | 11/25 [03:36<04:42, 20.16s/it]\n 48%|████▊ | 12/25 [03:56<04:22, 20.18s/it]\n 52%|█████▏ | 13/25 [04:16<04:02, 20.20s/it]\n 56%|█████▌ | 14/25 [04:36<03:42, 20.21s/it]\n 60%|██████ | 15/25 [04:56<03:22, 20.22s/it]\n 64%|██████▍ | 16/25 [05:17<03:02, 20.23s/it]\n 68%|██████▊ | 17/25 [05:37<02:41, 20.23s/it]\n 72%|███████▏ | 18/25 [05:57<02:21, 20.23s/it]\n 76%|███████▌ | 19/25 [06:17<02:01, 20.23s/it]\n 80%|████████ | 20/25 [06:38<01:41, 20.22s/it]\n 84%|████████▍ | 21/25 [06:58<01:20, 20.22s/it]\n 88%|████████▊ | 22/25 [07:18<01:00, 20.22s/it]\n 92%|█████████▏| 23/25 [07:38<00:40, 20.22s/it]\n 96%|█████████▌| 24/25 [07:58<00:20, 20.22s/it]\n100%|██████████| 25/25 [08:19<00:00, 20.21s/it]\n100%|██████████| 25/25 [08:19<00:00, 19.97s/it]\n🖼️ Décodage final...\n🎬 Vidéo enregistrée à /tmp/tmp2utp2c41.mp4",
"output": "https://replicate.delivery/yhqm/hW0Ex33e6GUyUiXZvG2DWu5ErFbADYbfHRX3TbebaaqGewsSB/tmp2utp2c41.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-05-10T08:29:39.1Z",
"started_at": "2025-05-10T08:34:50.453724Z",
"completed_at": "2025-05-10T08:43:47.205897Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/vsg1cabhkhrj20cpq58bcj9ebm/cancel",
"get": "https://api.replicate.com/v1/predictions/vsg1cabhkhrj20cpq58bcj9ebm",
"stream": "https://stream.replicate.com/v1/files/qoxq-m2xfhsfebsczlogccwrtw6iku6rvcbs4yo23bgjppbtgjgu6namq",
"web": "https://replicate.com/p/vsg1cabhkhrj20cpq58bcj9ebm"
},
"metrics": {
"predict_time": 536.752173676,
"total_time": 848.105897
}
}