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:97060296
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:97060296efcc42c90188e6617857a50fff28aa94e7ec6d13dcc7b90131998ed4",
{
input: {
hdr: 0,
vhs: false,
blur: 0,
noise: 0,
sepia: false,
glitch: false,
contrast: 1,
vignette: 0,
sharpness: 0,
brightness: 1,
flip_image: false,
saturation: 1,
tilt_shift: "None",
temperature: 1,
ascii_effect: 0,
auto_contrast: false,
auto_sharpness: false,
rotate_degrees: 0,
black_and_white: false,
exposure_offset: 0,
auto_white_balance: false,
chromatic_aberration: 0,
auto_color_correction: false
}
}
);
// 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:97060296efcc42c90188e6617857a50fff28aa94e7ec6d13dcc7b90131998ed4",
input={
"hdr": 0,
"vhs": False,
"blur": 0,
"noise": 0,
"sepia": False,
"glitch": False,
"contrast": 1,
"vignette": 0,
"sharpness": 0,
"brightness": 1,
"flip_image": False,
"saturation": 1,
"tilt_shift": "None",
"temperature": 1,
"ascii_effect": 0,
"auto_contrast": False,
"auto_sharpness": False,
"rotate_degrees": 0,
"black_and_white": False,
"exposure_offset": 0,
"auto_white_balance": False,
"chromatic_aberration": 0,
"auto_color_correction": False
}
)
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:97060296efcc42c90188e6617857a50fff28aa94e7ec6d13dcc7b90131998ed4",
"input": {
"hdr": 0,
"vhs": false,
"blur": 0,
"noise": 0,
"sepia": false,
"glitch": false,
"contrast": 1,
"vignette": 0,
"sharpness": 0,
"brightness": 1,
"flip_image": false,
"saturation": 1,
"tilt_shift": "None",
"temperature": 1,
"ascii_effect": 0,
"auto_contrast": false,
"auto_sharpness": false,
"rotate_degrees": 0,
"black_and_white": false,
"exposure_offset": 0,
"auto_white_balance": false,
"chromatic_aberration": 0,
"auto_color_correction": false
}
}' \
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.