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.
stphtan94117 /master_colorization:aa4f2dac
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 stphtan94117/master_colorization using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"stphtan94117/master_colorization:aa4f2dac8c216e98148af3855d1fa5d5f10d7b61ab9069941547c104b266b39b",
{
input: {
image: "https://replicate.delivery/pbxt/JTqNNxKnxmypTtWNfvuf7IRNRgs64oQkdiIwxKEUTsmI17bD/5c5411bd14c50b0006e839a0.jpeg",
factor: 65,
model_type: "stable"
}
}
);
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=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run stphtan94117/master_colorization using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"stphtan94117/master_colorization:aa4f2dac8c216e98148af3855d1fa5d5f10d7b61ab9069941547c104b266b39b",
input={
"image": "https://replicate.delivery/pbxt/JTqNNxKnxmypTtWNfvuf7IRNRgs64oQkdiIwxKEUTsmI17bD/5c5411bd14c50b0006e839a0.jpeg",
"factor": 65,
"model_type": "stable"
}
)
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 stphtan94117/master_colorization 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": "aa4f2dac8c216e98148af3855d1fa5d5f10d7b61ab9069941547c104b266b39b",
"input": {
"image": "https://replicate.delivery/pbxt/JTqNNxKnxmypTtWNfvuf7IRNRgs64oQkdiIwxKEUTsmI17bD/5c5411bd14c50b0006e839a0.jpeg",
"factor": 65,
"model_type": "stable"
}
}' \
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": "2023-09-06T12:04:19.693241Z",
"created_at": "2023-09-06T12:03:00.967340Z",
"data_removed": false,
"error": null,
"id": "l6bj7brbr6ck5wbcqmezrkppfq",
"input": {
"image": "https://replicate.delivery/pbxt/JTqNNxKnxmypTtWNfvuf7IRNRgs64oQkdiIwxKEUTsmI17bD/5c5411bd14c50b0006e839a0.jpeg",
"factor": 65,
"model_type": "stable"
},
"logs": "NumExpr defaulting to 8 threads.",
"metrics": {
"predict_time": 78.749317,
"total_time": 78.725901
},
"output": "https://replicate.delivery/pbxt/SiS3D13Oud4kDhfuNlChYN25PfEXtEIe4ZklhFzrE71GmDDjA/tmp4ymurduy5c5411bd14c50b0006e839a0_colorized.jpeg",
"started_at": "2023-09-06T12:03:00.943924Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/l6bj7brbr6ck5wbcqmezrkppfq",
"cancel": "https://api.replicate.com/v1/predictions/l6bj7brbr6ck5wbcqmezrkppfq/cancel"
},
"version": "aa4f2dac8c216e98148af3855d1fa5d5f10d7b61ab9069941547c104b266b39b"
}
NumExpr defaulting to 8 threads.