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.
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export 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 arielreplicate/paella_fast_image_interpolation using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"arielreplicate/paella_fast_image_interpolation:82f5ceda76ca5a754184549a5c5f3401ac339d1e1c3535098dad38f4d037723a",
{
input: {
text1: "High quality front portrait photo of a tiger.",
text2: "High quality front portrait photo of a dog.",
n_interpolations: 9
}
}
);
// To access the file URL:
console.log(output[0].url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output[0]);
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=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run arielreplicate/paella_fast_image_interpolation using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"arielreplicate/paella_fast_image_interpolation:82f5ceda76ca5a754184549a5c5f3401ac339d1e1c3535098dad38f4d037723a",
input={
"text1": "High quality front portrait photo of a tiger.",
"text2": "High quality front portrait photo of a dog.",
"n_interpolations": 9
}
)
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=<paste-your-token-here>
Find your API token in your account settings.
Run arielreplicate/paella_fast_image_interpolation 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": "82f5ceda76ca5a754184549a5c5f3401ac339d1e1c3535098dad38f4d037723a",
"input": {
"text1": "High quality front portrait photo of a tiger.",
"text2": "High quality front portrait photo of a dog.",
"n_interpolations": 9
}
}' \
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": "2022-12-09T16:17:04.887479Z",
"created_at": "2022-12-09T16:13:45.099642Z",
"data_removed": false,
"error": null,
"id": "zne6gnrn5vfbdpe6tn2hihwvai",
"input": {
"text1": "High quality front portrait photo of a tiger.",
"text2": "High quality front portrait photo of a dog.",
"n_interpolations": 9
},
"logs": null,
"metrics": {
"predict_time": 21.624708,
"total_time": 199.787837
},
"output": [
"https://replicate.delivery/pbxt/I07ae7T506QNGS7fS2L4ZizuLEbVr6fbQN4qMNZhfa5fvICBC/OutputImage-0.png",
"https://replicate.delivery/pbxt/wmpXizaW5XrDHFCofOjqVMfJOGi8Q9MLM1gKgPm03mCfLiQgA/OutputImage-1.png",
"https://replicate.delivery/pbxt/JCgCbSbUvp51AZiUBaEPa49e1nTTEAlZKIc6NQqDJPkfFRIQA/OutputImage-2.png",
"https://replicate.delivery/pbxt/01NZme2wVDVcMKQ5DqkDwpG6w5RWQX8fr05mgqvZeof9XEhAB/OutputImage-3.png",
"https://replicate.delivery/pbxt/jrPtJpB5Mx6NKJpfz76WkAwbycNh4wdX58pu5nVLWe2AGRIQA/OutputImage-4.png",
"https://replicate.delivery/pbxt/Zyt35WpLdo7LHhwZ9H8X0Xbiu4Vuc5wYtXrHrzftb9FAjIEIA/OutputImage-5.png",
"https://replicate.delivery/pbxt/NiclHa8HEZ6JPZN37TXMIg6QilUohdb1tkXfo6P6EpZAjIEIA/OutputImage-6.png",
"https://replicate.delivery/pbxt/J8eNgtsjxdXMdaai3bfb04YLMT8jktxa0JnHwvyifiEBMiQgA/OutputImage-7.png",
"https://replicate.delivery/pbxt/it5zBfuKZzWPKSQWPYKfjIHaBsm7TEfuvu6EfwjytpfFwICBC/OutputImage-8.png"
],
"started_at": "2022-12-09T16:16:43.262771Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/zne6gnrn5vfbdpe6tn2hihwvai",
"cancel": "https://api.replicate.com/v1/predictions/zne6gnrn5vfbdpe6tn2hihwvai/cancel"
},
"version": "82f5ceda76ca5a754184549a5c5f3401ac339d1e1c3535098dad38f4d037723a"
}