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: "A photo of a tree in the summer.",
text2: "A photo of a tree in the winter.",
n_interpolations: 25
}
}
);
// 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": "A photo of a tree in the summer.",
"text2": "A photo of a tree in the winter.",
"n_interpolations": 25
}
)
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": "A photo of a tree in the summer.",
"text2": "A photo of a tree in the winter.",
"n_interpolations": 25
}
}' \
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:19:49.197751Z",
"created_at": "2022-12-09T16:19:13.057104Z",
"data_removed": false,
"error": null,
"id": "3olphuk6nngihlc6od53vvlnfm",
"input": {
"text1": "A photo of a tree in the summer.",
"text2": "A photo of a tree in the winter.",
"n_interpolations": 25
},
"logs": null,
"metrics": {
"predict_time": 36.105982,
"total_time": 36.140647
},
"output": [
"https://replicate.delivery/pbxt/GAoBH4ryeTyAYyQWmoxrObrNbbfUeFGz7Gb8XQee09YHEJCBC/OutputImage-0.png",
"https://replicate.delivery/pbxt/IfczQ47blzwfkE68eyz42BPIkFjAULfwyjKDfUzwnJBHEJCBC/OutputImage-1.png",
"https://replicate.delivery/pbxt/lr0qfWdU5B04RyipKjuJpcQQzOlf1ZBPT1pGbVQxRetARiQgA/OutputImage-2.png",
"https://replicate.delivery/pbxt/ScoEMPg5jDrhB18oNKghirSheResnkmsySu3CyxJBDvhIRIQA/OutputImage-3.png",
"https://replicate.delivery/pbxt/FM9dG9TffbqHeJPwhg9YXIhAhtOFsbyh7OK6JzKoINPDRiQgA/OutputImage-4.png",
"https://replicate.delivery/pbxt/rwk6rzoYBqLVJxTbTffZCNMA4ZCcAJ9eZYqCMeoF5zdHiEhAB/OutputImage-5.png",
"https://replicate.delivery/pbxt/sCfaOerhl4qbrEWsawfe9SyAwEpxceUmqtH1KHpxbntPEJCBC/OutputImage-6.png",
"https://replicate.delivery/pbxt/MvhQOOvm4fXTeksN70augpq1TxDBD2eHiOToeT3e3OPOEJCBC/OutputImage-7.png",
"https://replicate.delivery/pbxt/k1CAyvfzBvW2f08NTxqyVPMzeyNbmVjxjTuqfWIwqqnIiEhAB/OutputImage-8.png",
"https://replicate.delivery/pbxt/sZ0pwuD5f51rYKefq6zL1fjUfPdN0XfyDcXFtzXCF1hlISECE/OutputImage-9.png",
"https://replicate.delivery/pbxt/eMkN0663Bx1aCqnNiXWLEqFsuDhc04LBKIEo7TqHb4BRkIEIA/OutputImage-10.png",
"https://replicate.delivery/pbxt/sudLjbSrsaLPKdLsifFPxBkegfFejvfDqyjFX57DZZTVEJCBC/OutputImage-11.png",
"https://replicate.delivery/pbxt/ewHXbmMsQiSCJq1Tl5oUEb9aL1ezkggqxGObSXDXfTqERiQgA/OutputImage-12.png",
"https://replicate.delivery/pbxt/2j7EFJxZRDJyOBwMxUjpDlQ5NaLrv6Ns7HjKcROmCO1ISECE/OutputImage-13.png",
"https://replicate.delivery/pbxt/AZxMZB2NeSxQe0o526FrBVK14aDtNqvtSxf7fIA5aPrOiEhAB/OutputImage-14.png",
"https://replicate.delivery/pbxt/2QPb0uTUH165AV80gdKkrzyI8JdfClPWfMwFpLAyIoCjIRIQA/OutputImage-15.png",
"https://replicate.delivery/pbxt/Zra9Rl0Jfs1SCSzQwfRzfKwZRJ35MvZ7KOZvaGKzeLgMiEhAB/OutputImage-16.png",
"https://replicate.delivery/pbxt/1bCha36bGn70EhXRFQW64puZDF6CpqVR86wLSiwuG2fRkIEIA/OutputImage-17.png",
"https://replicate.delivery/pbxt/T4SxHpSB5e2FJSftmSpRLvuW6idEGDGmOd35o7eyFI1HRiQgA/OutputImage-18.png",
"https://replicate.delivery/pbxt/YX85IIDfa1xMcipBYfTgh55PsEfY6vef0X78cuXja8BlEJCBC/OutputImage-19.png",
"https://replicate.delivery/pbxt/dzyKCJ5LxaorCVKcLUZj2a7CC9KhpG9GzXeHlYx2TSQSkIEIA/OutputImage-20.png",
"https://replicate.delivery/pbxt/i7bEF6eZrUWQGSae7pDFBEJ63UhxAP7dXuKIDHuHGMikIRIQA/OutputImage-21.png",
"https://replicate.delivery/pbxt/V4NlYLRR8vreaazOwum1LmsepUPQduIE5ccF83XhVsykIRIQA/OutputImage-22.png",
"https://replicate.delivery/pbxt/zvGgk6KRFCKQIR7dDbTM0KJmEeomebH8hCsKErRZ7gfJRiQgA/OutputImage-23.png",
"https://replicate.delivery/pbxt/Z7OxuEJzpuZwG1i519SJdleb130KLWEeeFfQYtCGkfKvEJCBC/OutputImage-24.png"
],
"started_at": "2022-12-09T16:19:13.091769Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/3olphuk6nngihlc6od53vvlnfm",
"cancel": "https://api.replicate.com/v1/predictions/3olphuk6nngihlc6od53vvlnfm/cancel"
},
"version": "82f5ceda76ca5a754184549a5c5f3401ac339d1e1c3535098dad38f4d037723a"
}