typefile
{
"image1": "https://replicate.delivery/pbxt/Nxodr27ViFWMgmAPFO5uJHpZj0G33gBDLQm26TAdzlIxBu7T/replicate-prediction-7yszzt7wwhrme0ct5cw9nh1e5c.jpeg",
"image2": "https://replicate.delivery/pbxt/NxoZp5f674giVSwohRDswZsSHolZKiCK0rEHx5mJAUtpjK7h/replicate-prediction-pab4r579whrm80ct5cnaw2j0s8.jpeg",
"image3": "https://replicate.delivery/pbxt/Nxodrkd0JpHyEtRhEnhi8pydrcctZz9HhuA0OAGtCDl4nXXq/replicate-prediction-vrs4j918vnrmc0ct5crb84j9cm.jpeg",
"orientation": "9:16"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_d35**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run lucataco/triblend using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
image1: "https://replicate.delivery/pbxt/Nxodr27ViFWMgmAPFO5uJHpZj0G33gBDLQm26TAdzlIxBu7T/replicate-prediction-7yszzt7wwhrme0ct5cw9nh1e5c.jpeg",
image2: "https://replicate.delivery/pbxt/NxoZp5f674giVSwohRDswZsSHolZKiCK0rEHx5mJAUtpjK7h/replicate-prediction-pab4r579whrm80ct5cnaw2j0s8.jpeg",
image3: "https://replicate.delivery/pbxt/Nxodrkd0JpHyEtRhEnhi8pydrcctZz9HhuA0OAGtCDl4nXXq/replicate-prediction-vrs4j918vnrmc0ct5crb84j9cm.jpeg",
orientation: "9:16"
};
const output = await replicate.run("lucataco/triblend", { input });
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 variable:export REPLICATE_API_TOKEN=r8_d35**********************************
This is your API token. Keep it to yourself.
import replicate
Run lucataco/triblend using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"lucataco/triblend",
input={
"image1": "https://replicate.delivery/pbxt/Nxodr27ViFWMgmAPFO5uJHpZj0G33gBDLQm26TAdzlIxBu7T/replicate-prediction-7yszzt7wwhrme0ct5cw9nh1e5c.jpeg",
"image2": "https://replicate.delivery/pbxt/NxoZp5f674giVSwohRDswZsSHolZKiCK0rEHx5mJAUtpjK7h/replicate-prediction-pab4r579whrm80ct5cnaw2j0s8.jpeg",
"image3": "https://replicate.delivery/pbxt/Nxodrkd0JpHyEtRhEnhi8pydrcctZz9HhuA0OAGtCDl4nXXq/replicate-prediction-vrs4j918vnrmc0ct5crb84j9cm.jpeg",
"orientation": "9:16"
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_d35**********************************
This is your API token. Keep it to yourself.
Run lucataco/triblend 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 $'{
"input": {
"image1": "https://replicate.delivery/pbxt/Nxodr27ViFWMgmAPFO5uJHpZj0G33gBDLQm26TAdzlIxBu7T/replicate-prediction-7yszzt7wwhrme0ct5cw9nh1e5c.jpeg",
"image2": "https://replicate.delivery/pbxt/NxoZp5f674giVSwohRDswZsSHolZKiCK0rEHx5mJAUtpjK7h/replicate-prediction-pab4r579whrm80ct5cnaw2j0s8.jpeg",
"image3": "https://replicate.delivery/pbxt/Nxodrkd0JpHyEtRhEnhi8pydrcctZz9HhuA0OAGtCDl4nXXq/replicate-prediction-vrs4j918vnrmc0ct5crb84j9cm.jpeg",
"orientation": "9:16"
}
}' \
https://api.replicate.com/v1/models/lucataco/triblend/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Object output with 1 properties
{
"id": "tnn625jsxsrm80ct5d6bghxdk0",
"model": "lucataco/triblend",
"version": "hidden",
"input": {
"image1": "https://replicate.delivery/pbxt/Nxodr27ViFWMgmAPFO5uJHpZj0G33gBDLQm26TAdzlIxBu7T/replicate-prediction-7yszzt7wwhrme0ct5cw9nh1e5c.jpeg",
"image2": "https://replicate.delivery/pbxt/NxoZp5f674giVSwohRDswZsSHolZKiCK0rEHx5mJAUtpjK7h/replicate-prediction-pab4r579whrm80ct5cnaw2j0s8.jpeg",
"image3": "https://replicate.delivery/pbxt/Nxodrkd0JpHyEtRhEnhi8pydrcctZz9HhuA0OAGtCDl4nXXq/replicate-prediction-vrs4j918vnrmc0ct5crb84j9cm.jpeg",
"orientation": "9:16"
},
"logs": "",
"output": {
"image": "https://replicate.delivery/xezq/GEKWBteR6p1FJaekvjxaou15Zqu8KhXn8iYStacAQNOooojVA/collage_output.jpg"
},
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-10-28T14:50:15.406Z",
"started_at": "2025-10-28T14:50:15.911096Z",
"completed_at": "2025-10-28T14:50:16.290474Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/tnn625jsxsrm80ct5d6bghxdk0/cancel",
"children": "https://api.replicate.com/v1/predictions/tnn625jsxsrm80ct5d6bghxdk0/children",
"get": "https://api.replicate.com/v1/predictions/tnn625jsxsrm80ct5d6bghxdk0",
"root": "https://api.replicate.com/v1/predictions/tnn625jsxsrm80ct5d6bghxdk0",
"web": "https://replicate.com/p/tnn625jsxsrm80ct5d6bghxdk0"
},
"metrics": {
"predict_time": 0.379378441,
"total_time": 0.884474819
}
}


