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.
vetkastar /image_tune:ae58b31a
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 vetkastar/image_tune using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"vetkastar/image_tune:ae58b31aa9de267c72e0d5e9171f7319b09a7500aef8753e024cf404c7157a8c",
{
input: {
hdr: 0,
vhs: false,
blur: 0,
noise: 0,
glitch: false,
contrast: 1,
vignette: 0,
sharpness: 0,
brightness: 1,
flip_image: false,
saturation: 1,
tilt_shift: "None",
temperature: 1,
ascii_effect: 0,
rotate_degrees: 0,
snowfall_color: "#FFFFFF",
watermark_text: "",
exposure_offset: 0,
snowfall_amount: 0,
chromatic_aberration: 0
}
}
);
// 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=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run vetkastar/image_tune using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"vetkastar/image_tune:ae58b31aa9de267c72e0d5e9171f7319b09a7500aef8753e024cf404c7157a8c",
input={
"hdr": 0,
"vhs": False,
"blur": 0,
"noise": 0,
"glitch": False,
"contrast": 1,
"vignette": 0,
"sharpness": 0,
"brightness": 1,
"flip_image": False,
"saturation": 1,
"tilt_shift": "None",
"temperature": 1,
"ascii_effect": 0,
"rotate_degrees": 0,
"snowfall_color": "#FFFFFF",
"watermark_text": "",
"exposure_offset": 0,
"snowfall_amount": 0,
"chromatic_aberration": 0
}
)
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 vetkastar/image_tune 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": "vetkastar/image_tune:ae58b31aa9de267c72e0d5e9171f7319b09a7500aef8753e024cf404c7157a8c",
"input": {
"hdr": 0,
"vhs": false,
"blur": 0,
"noise": 0,
"glitch": false,
"contrast": 1,
"vignette": 0,
"sharpness": 0,
"brightness": 1,
"flip_image": false,
"saturation": 1,
"tilt_shift": "None",
"temperature": 1,
"ascii_effect": 0,
"rotate_degrees": 0,
"snowfall_color": "#FFFFFF",
"watermark_text": "",
"exposure_offset": 0,
"snowfall_amount": 0,
"chromatic_aberration": 0
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
No output yet! Press "Submit" to start a prediction.